joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b940
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4563e4]
xor eax, ebp
mov dword [ebp - 4], eax
push str.____Caching_MSI
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push esi
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x42ba12
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b995
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea ecx, [ebp - 0x260]
push 0x104
push ecx
call fcn.0042eee3
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.______Copying_to_cache
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
push 1
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.______Adding_to_source_list
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.msi.dll_MsiIsProductElevatedW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee49
mov esp, ebp
pop ebp
ret
Function at 0x42c160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444f16
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4563e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x284], ax
lea esi, [ebx + 0xac]
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
jb 0x42c1c3
mov eax, dword [esi]
jmp 0x42c1c5
mov eax, esi
lea edx, [ebp - 0x60]
push edx
push ecx
push ecx
push eax
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x42c2db
cmp dword [ebx + 0x30], 8
lea esi, [ebx + 0x1c]
jb 0x42c1e5
mov esi, dword [esi]
mov edi, dword [edi + 4]
push str.IIF_CACHELOC
call fcn.00416580
push eax
lea eax, [ebp - 0x268]
push 0x104
push eax
call fcn.0042eee3
add esp, 0xc
push esi
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
lea edx, [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2a4]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebx + 0x58]
call fcn.00417440
mov edi, eax
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 1
call fcn.0040ecb0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x28c], esi
jb 0x42c284
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.0042ee58
add esp, 4
mov eax, dword [ebp - 0x284]
cmp dword [ebp - 0x270], esi
jae 0x42c298
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x60]
push ecx
push str.__Uninstalling_product_code__s__Properties__s
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
mov eax, dword [ebp - 0x284]
add esp, 0x10
cmp dword [ebp - 0x270], esi
jae 0x42c2c8
lea eax, [ebp - 0x284]
push eax
push 2
push 0
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.msi.dll_MsiGetFileVersionA]
mov esi, eax
jmp 0x42c2fd
cmp dword [esi + 0x14], 8
jb 0x42c2e3
mov esi, dword [esi]
push esi
push str.____Upgrade_code__s_is_not_installed
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x270], 8
jb 0x42c315
mov eax, dword [ebp - 0x284]
push eax
call fcn.0042ee58
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee49
mov esp, ebp
pop ebp
ret

Function at 0x42ee49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4563e4]
jne 0x42ee53
repz ret
jmp fcn.004339da
Function at 0x43c445
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4563e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004346d1
and dword [ebp - 0x14], 0
cmp dword [0x458cf8], 0
mov dword [ebp - 0x18], eax
jne 0x43c4f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43c5a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44914c
push ebx
call edi
test eax, eax
je 0x43c5a0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x458cf8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x458cfc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x458d00], eax
call edi
push eax
call esi
mov dword [0x458d08], eax
test eax, eax
je 0x43c4f8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x458d04], eax
mov eax, dword [0x458d04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43c551
cmp dword [0x458d08], ecx
je 0x43c551
push eax
call esi
push dword [0x458d08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43c551
test ebx, ebx
je 0x43c551
call edi
test eax, eax
je 0x43c548
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43c548
test byte [ebp - 8], 1
jne 0x43c551
or dword [ebp + 0x10], 0x200000
jmp 0x43c584
mov eax, dword [0x458cfc]
cmp eax, dword [ebp - 0x18]
je 0x43c584
push eax
call esi
test eax, eax
je 0x43c584
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43c584
mov eax, dword [0x458d00]
cmp eax, dword [ebp - 0x18]
je 0x43c584
push eax
call esi
test eax, eax
je 0x43c584
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x458cf8]
call esi
test eax, eax
je 0x43c5a0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43c5a2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee49
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x414c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x414c52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414c59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414c48
mov eax, 1
add ebx, ebx
jne 0x414c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414c60
jne 0x414c7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c60
xor ecx, ecx
sub eax, 3
jb 0x414c90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414d02
mov ebp, eax
add ebx, ebx
jne 0x414c9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ccc
inc ecx
add ebx, ebx
jne 0x414cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414cad
jne 0x414cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414cad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414cec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414cdd
jmp 0x414c4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414cec
add edi, ecx
jmp 0x414c4e
pop esi
mov edi, esi
mov ecx, 0x198
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414d0a
cmp byte [edi], 0xb
jne 0x414d0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414d0f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414d7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x187d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414d3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1884c]
or eax, eax
je 0x414d78
mov dword [ebx], eax
add ebx, 4
jmp 0x414d59
call dword [esi + 0x18848]
mov ebp, dword [esi + 0x18850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414db2
sub esp, 0xffffff80
jmp 0x402530

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x6fac0fa2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x7e6714bf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x6807577d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3104c7d
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call fcn.0052c000
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x401dc1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401df6
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401df3
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x401dff
add edx, 0x28
cmp edx, esi
jne 0x401de1
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401dfc

Function at 0x4023b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4023f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4023f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4023f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4023f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4023f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40e767
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e7a6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e7a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e7a6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e7a6
cmp dword [ecx + 0x74], 0xe
jbe 0x40e7a6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42fdeb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fcbe
Function at 0x4308ef
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43093a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00430d8d
test al, al
jne 0x430934
sub edx, 2
cmp edx, edi
jne 0x43091a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43095c
lea eax, [edi + 2]
cmp edx, eax
je 0x43095c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004305af
add esp, 0x10
jmp 0x430a54
push esi
lea ecx, [ebp - 0x255]
call fcn.00430d8d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43099d
push dword [ebp - 0x25c]
jmp 0x43094c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4309da
cmp word [ebp - 0x226], 0
je 0x4309fb
cmp word [ebp - 0x226], ax
jne 0x4309da
cmp word [ebp - 0x224], 0
je 0x4309fb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004305af
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x430a47
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4309b4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x430a2f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x430a54
push 0x42ffff
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043ca90
add esp, 0x10
jmp 0x430a24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017e5
leave
ret
Function at 0x4322cd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43236a
push ebx
push esi
call fcn.00432289
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004321c8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x432317
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432369
push edi
push eax
call fcn.0042eb70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x432337
call fcn.0042eb20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432368
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004321c8
add esp, 0x20
test eax, eax
jne 0x432356
push edi
call fcn.0042eb20
jmp 0x43235e
push ebx
call fcn.0042eb20
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43236d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43237e
pop esi
ret
push ebx
push edi
push esi
call fcn.00432289
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042eb70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4323a6
push ebx
push esi
push edi
call fcn.0040b100
add esp, 0xc
push 0
call fcn.0042eb20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x432c92
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432619

Function at 0x436da2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042f467
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436e11
cmp esi, dword [ebp - 4]
je 0x436e0c
cmp dword [ebp + 0xc], 0
je 0x436e0c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x436de9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004368f7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x436e13
xor eax, eax
inc eax
jmp 0x436e13
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x436e7e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042f467
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042f467
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x436ef5
cmp word [ecx], dx
je 0x436ef5
mov eax, dword [0x450b3c]
push edi
dec eax
push eax
push 0x450a28
call fcn.00436e17
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x436f68
cmp word [eax], dx
je 0x436f68
mov eax, dword [edi]
test eax, eax
je 0x436f19
cmp word [eax], dx
je 0x436f19
lea eax, [ebp - 0x10]
push eax
call fcn.004367fd
jmp 0x436f22
lea eax, [ebp - 0x10]
push eax
call fcn.00436898
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x436f92
mov eax, dword [0x450a24]
push dword [ebp - 0x14]
dec eax
push eax
push 0x450718
call fcn.00436e17
add esp, 0xc
test al, al
je 0x436f92
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x436f5d
cmp word [eax], di
je 0x436f5d
lea eax, [ebp - 0x10]
push eax
call fcn.004367fd
pop ecx
jmp 0x436f94
lea eax, [ebp - 0x10]
push eax
call fcn.00436898
jmp 0x436f5a
mov eax, dword [edi]
test eax, eax
je 0x436f7f
cmp word [eax], dx
je 0x436f7f
lea eax, [ebp - 0x10]
push eax
call fcn.00436794
pop ecx
jmp 0x436f92
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43705d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00436c9c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43705d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43705d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43705d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x436fea
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00437f05
test ebx, ebx
je 0x437058
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00437f05
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43705d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43705d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043de6b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43705f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017e5
leave
ret