joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446171
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4461c7
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4461a0
call fcn.00430328
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4461b5
call fcn.00430328
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4461c7
call fcn.00430328
call fcn.00432e37
cmp dword [eax + 0x3c], 0
je 0x4461dc
push esi
mov ecx, ebx
call fcn.00445897
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004463c2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x446205
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x446211
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x463534
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x59e4d1
call fcn.0056f94c
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.00432e37
push 0
mov ecx, dword [eax + 4]
call fcn.0043e664
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x5abacc]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.004632e5
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004034c0
test esi, esi
jne 0x463726
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005720f0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x4636c2
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.005720f0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004634d5
test eax, eax
jne 0x4636ad
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.00462320
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.00580cd0
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004036d0
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x46361a
test edi, edi
je 0x4636e4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x5abacc]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.00462ad3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.004034c0
jmp 0x46372c
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x463737
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.0043e64a
mov eax, dword [ebp - 0x228]
call fcn.0056f8fb
ret
Function at 0x46d6d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x46d6ea
call fcn.00432e37
mov esi, dword [eax + 0xc]
push 0x5b5190
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x46d72c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46d72c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46d72c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046d735
jmp 0x46d72e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48d341
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042e6ba
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x48d37d
call fcn.0048d55e
mov dword [esi + 0xc], 1
jmp 0x48d382
call fcn.0048d55e
cmp dword [esi], 0
je 0x48d3cd
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x48d3a8
push edi
call fcn.00426c23
lea ecx, [edi + 1]
push ecx
jmp 0x48d3b7
push 0xff
call fcn.00403640
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00408640
pop edi
jmp 0x48d3f1
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x48d3f1
push dword [esi]
push dword [ebp - 4]
call fcn.00440ebe
pop esi
leave
ret 0xc

Function at 0x48d4b5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0048d55e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x48d4fd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00426c23
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00408640
jmp 0x48d508
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00440ebe
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x48ded1
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48e017
mov ecx, 0x608600
call fcn.00441a11
mov esi, eax
test esi, esi
je 0x48e00c
xor eax, eax
cmp word [esi + 8], ax
jne 0x48dfd6
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x48df92
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x48df58
push str.MS_UI_Gothic
call fcn.0048e055
pop ecx
test eax, eax
je 0x48df58
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x48df73
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48df92
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x48df98
push ebx
push edi
push eax
call fcn.004491f0
add esp, 0xc
jmp 0x48df98
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00431c7a
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x48e011
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00426015
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x48dfd9
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x48dfe7
push edi
call fcn.00580cd0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004036d0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00431865
call fcn.0043187f
int3
Function at 0x4b5142
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5a30e6
call fcn.0056f94c
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x4b52d3
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x4b52a5
sub eax, 1
je 0x4b51c1
sub eax, 1
je 0x4b5199
sub eax, 1
je 0x4b51c1
push 0x5e21bf
mov ecx, edi
call fcn.00403810
mov eax, edi
call fcn.0056f8fb
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4b5183
lea eax, [ebp - 0x28c]
push eax
jmp 0x4b5188
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4b5183
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.0043aab5
test eax, eax
je 0x4b5183
lea ecx, [ebp - 0x3a0]
call fcn.00402de0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4b525b
test byte [ebp - 0x21c], 0x18
jne 0x4b527d
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5abacc]
mov ecx, ebx
call esi
jmp 0x4b527d
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5abacc]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.004039d0
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004034c0
jmp 0x4b518f
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4b5183
lea eax, [ebp - 0x390]
jmp 0x4b51be
call fcn.00431865
int3

Function at 0x4b544b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0054c33c
call fcn.00432e8b
cmp dword [eax + 0x14], 0
jne 0x4b5466
mov ecx, esi
pop esi
jmp fcn.004b4764
pop esi
ret

Function at 0x4b584d
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4b5883
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00427ef6
test eax, eax
je 0x4b586b
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4b688e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b68bb
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4b68d0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b68d0
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042960e
jmp 0x4b69a1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042960e
cmp eax, edi
jne 0x4b69ab
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4b693d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4b6981
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4b69ab
cmp eax, 0x205
je 0x4b69ab
cmp eax, 0x201
je 0x4b69ab
cmp eax, 0x204
je 0x4b69ab
cmp eax, 0x100
jne 0x4b6969
cmp dword [ebp - 0x18], 0x1b
je 0x4b69ab
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4b69a1
ja 0x4b699a
cmp eax, dword [0x6123d4]
jbe 0x4b69a1
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4b68f2
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5162e7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x516351
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x516336
lea eax, [ebp - 0x158]
push eax
jmp 0x51633b
push 0x5c62c8
call fcn.00403810
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056ee93
leave
ret 8
call fcn.00431865
int3

Function at 0x516836
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401e10
call fcn.00432e8b
cmp dword [eax + 0x14], 0
jne 0x516851
mov ecx, esi
pop esi
jmp fcn.00516091
pop esi
ret
Function at 0x52ea26
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00584f46
pop ecx
test eax, eax
jne 0x52ea68
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00407210
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52ea2e
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x5619fa
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x59f3e2
call fcn.0056f919
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x561ae0
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x561ae0
cmp esi, 0x43
je 0x561a3c
cmp esi, 0x2d
jne 0x561ae0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x561ae0
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402de0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403070
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x561ace
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x561ace
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004034c0
push ebx
mov ecx, edi
call fcn.004333fc
call fcn.0056f8e7
ret 4

Function at 0x56ff65
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56ffa4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56ffa4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56ffa4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56ffa4
cmp dword [ecx + 0x74], 0xe
jbe 0x56ffa4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x580650
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.0056fad0
mov ebx, esp
lea eax, [ebp - 0x30]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x580709
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call fcn.0058b32a
test eax, eax
je 0x5806b3
cmp dword [ebp - 8], esi
cmova esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea edi, [edx - 1]
not edi
lea eax, [edx - 1]
add eax, esi
lea esi, [edx + edx]
and eax, edi
lea ecx, [eax + edx]
cmove ecx, eax
mov eax, dword [ebp - 0x10]
cmp ecx, esi
cmovae esi, ecx
and edi, ebx
sub edi, esi
add eax, edx
cmp edi, eax
jb 0x580709
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x580709
lea eax, [ebp - 0x14]
push eax
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
neg eax
jmp 0x58070b
xor eax, eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ee93
leave
ret
Function at 0x58d0cd
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x58d0e7
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x58d0fe
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x58d156
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00582d6e
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x58d156
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x58d156
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x58d156
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x58d150
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x58d152
xor bl, bl
mov al, bl
jmp 0x58d158
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x58d296
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x58d2d9
call fcn.0057b090
mov dword [eax], 0xf
call fcn.0057b0a5
mov dword [eax], 0xd
call fcn.0057503f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ee93
leave
ret
test eax, eax
jne 0x58d2e0
inc eax
jmp 0x58d2cd
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x58d2cb
xor eax, eax
cmp ecx, 1
setne al
jmp 0x58d2cd
Function at 0x590738
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 0x5907d5
push ebx
push esi
call fcn.00590701
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.0058beba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x590782
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5907d4
push edi
push eax
call fcn.00589490
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5907a2
call fcn.00589440
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5907d3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0058beba
add esp, 0x20
test eax, eax
jne 0x5907c1
push edi
call fcn.00589440
jmp 0x5907c9
push ebx
call fcn.00589440
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 0x5907d8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5907e9
pop esi
ret
push ebx
push edi
push esi
call fcn.00590701
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00589490
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x590811
push ebx
push esi
push edi
call fcn.00571b70
add esp, 0xc
push 0
call fcn.00589440
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x590f68
Capabilities:
Set environment variable

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

Function at 0x5933e5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005892c8
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 0x593454
cmp esi, dword [ebp - 4]
je 0x59344f
cmp dword [ebp + 0xc], 0
je 0x59344f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59342c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00592f3a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x593456
xor eax, eax
inc eax
jmp 0x593456
xor eax, eax
pop edi
pop esi
leave
ret