joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41ff89
mov eax, 1
jmp 0x420079
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], 0
jmp 0x41ffa2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x14
jge 0x41ffd3
push 0x16
push str.ngslotd
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41ffcf
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ffd1
jmp 0x41ffd3
jmp 0x41ff99
cmp dword [ebp - 0x20], 0
jne 0x41ffe3
mov eax, 1
jmp 0x420079
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 0
jmp 0x420014
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x64
jge 0x420052
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x420046
cmp dword [ebp - 0x18], 4
je 0x42003e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42000b
mov byte [ebp - 0x25], 1
jmp 0x420052
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42000b
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx edx, byte [ebp - 0x25]
test edx, edx
jne 0x420077
mov eax, 1
jmp 0x420079
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x420140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4724e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 1
push 0
mov eax, dword [0x463eec]
push eax
push 0x4795d8
mov ecx, dword [ebp - 0x28]
add ecx, 0x188
call fcn.004034b0
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [0x463ee8]
push ecx
push 0x478da0
mov ecx, dword [ebp - 0x28]
add ecx, 0x188
call fcn.004034b0
mov dword [ebp - 0x1c], eax
push 0
push 0
mov edx, dword [0x463ef0]
push edx
push str.NetSignRes_C.dll
mov ecx, dword [ebp - 0x28]
add ecx, 0x188
call fcn.00403cd0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
call fcn.00403120
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.ret_d_ret1_d_ret2_d
lea eax, [ebp - 0x14]
push eax
call fcn.00402860
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00412a00
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x1c], 1
jne 0x42022a
cmp dword [ebp - 0x10], 0
jne 0x42022a
cmp dword [ebp - 0x18], 1
jne 0x42022a
jmp 0x420252
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xb0], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403140
mov eax, dword [ebp - 0x20]
jmp 0x42026b
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403140
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x420280
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea eax, [ebp - 0x137]
push eax
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x28], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x4202ed
xor al, al
jmp 0x420442
mov dword [ebp - 0x140], 0
jmp 0x420308
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0x14
jge 0x42033f
push 0x14
push 0x462a50
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42033b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42033d
jmp 0x42033f
jmp 0x4202f9
cmp dword [ebp - 0x24], 0
jne 0x420359
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x420442
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x420392
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x420442
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov edx, 1
test edx, edx
je 0x42041c
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4203f9
cmp dword [ebp - 0x18], 4
je 0x4203f5
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0xc8
jle 0x4203e9
jmp 0x42041c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4203b4
jmp 0x42041c
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xc8
jle 0x42040d
jmp 0x42041c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4203b4
cmp dword [ebp - 0x20], 0xc8
jle 0x420429
xor al, al
jmp 0x420442
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret
Function at 0x4207b0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x42080e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
xor al, al
jmp 0x4208b8
push 0xf01ff
push str.ngSlotD
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x420844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x4208b8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4208a2
cmp dword [ebp - 0x18], 1
jne 0x42085e
jmp 0x4208a2
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4208a2
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x18], 3
jne 0x4208a2
cmp dword [ebp - 0x2c], 0x258
jle 0x42088a
jmp 0x4208a2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x420879
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x42713b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42715f
cmp dword [edi + 0x54], 0
jne 0x42715f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00426703
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004270fc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42c54c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42c593
call fcn.00426703
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42c593
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42c5af
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042c0c6
mov esi, eax
test edi, edi
je 0x42c5ad
test ebx, ebx
je 0x42c5ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42d3c1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x458948
call fcn.00445d31
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42d3e6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42d42c
lea ecx, [ebp - 0x10]
call fcn.00403120
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417420
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403340
mov eax, esi
call fcn.00445e09
ret 8
Function at 0x438ce8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x438d30
call fcn.00426703
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x438d30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x438d73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x438d5c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x438d5c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x438d70
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x441f6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4724e4]
jne 0x441f78
repz ret
jmp fcn.0044802f

Function at 0x443c5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x443c8e
call fcn.004460f1
mov dword [eax], esi
call fcn.004460de
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004436d4
add esp, 0x14
push 0x16
pop eax
jmp 0x443ce3
test dword [ebp + 0xc], 0xfffffff9
jne 0x443c6a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x443cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00446104
pop ecx
call fcn.004460de
mov eax, dword [eax]
jmp 0x443ce3
test al, 0x10
jne 0x443ce1
test al, 1
je 0x443ce1
test byte [ebp + 0xc], 2
je 0x443ce1
call fcn.004460f1
mov dword [eax], 5
call fcn.004460de
mov dword [eax], 0xd
jmp 0x443cb2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x452972
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044b534
and dword [ebp - 4], 0
cmp dword [0x486050], 0
mov ebx, eax
jne 0x452a23
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x452ad4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4601d8
push edi
call esi
test eax, eax
je 0x452ad4
push eax
call fcn.0044b4c2
mov dword [esp], 0x4601c8
push edi
mov dword [0x486050], eax
call esi
push eax
call fcn.0044b4c2
mov dword [esp], 0x4601b4
push edi
mov dword [0x486054], eax
call esi
push eax
call fcn.0044b4c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x486058], eax
call esi
push eax
call fcn.0044b4c2
pop ecx
mov dword [0x486060], eax
test eax, eax
je 0x452a23
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044b4c2
pop ecx
mov dword [0x48605c], eax
mov eax, dword [0x48605c]
cmp eax, ebx
je 0x452a7b
cmp dword [0x486060], ebx
je 0x452a7b
push eax
call fcn.0044b53d
push dword [0x486060]
mov esi, eax
call fcn.0044b53d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x452a7b
test edi, edi
je 0x452a7b
call esi
test eax, eax
je 0x452a72
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x452a72
test byte [ebp - 0xc], 1
jne 0x452a7b
or dword [ebp + 0x10], 0x200000
jmp 0x452ab4
mov eax, dword [0x486054]
cmp eax, ebx
je 0x452ab4
push eax
call fcn.0044b53d
pop ecx
test eax, eax
je 0x452ab4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x452ab4
mov eax, dword [0x486058]
cmp eax, ebx
je 0x452ab4
push eax
call fcn.0044b53d
pop ecx
test eax, eax
je 0x452ab4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486050]
call fcn.0044b53d
pop ecx
test eax, eax
je 0x452ad4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x452ad6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e9160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x3c], 0x21f8
mov dword [ebp - 0x38], 0x18d8
mov dword [ebp - 0x40], 0x1de8
mov dword [ebp - 0x44], 0x2452
mov dword [ebp - 0x48], 0x1b0f
mov dword [ebp - 0x14], 0xfd4
mov dword [ebp - 0x4c], 0x2411
mov dword [ebp - 0x50], 0x19d6
mov dword [ebp - 0x54], 0x952
mov dword [ebp - 0x58], 0x1e14
mov dword [ebp - 0x5c], 0x129e
mov dword [ebp - 0x24], 0x175a
mov dword [ebp - 0x30], 0x1a65
mov dword [ebp - 0x60], 0x19d4
mov dword [ebp - 0x34], 0x1a91
mov dword [ebp - 0x64], 0x2002
mov dword [ebp - 8], 0x15f3
mov dword [ebp - 0x68], 0x198e
mov dword [ebp - 0x6c], 0x111e
mov dword [ebp - 0x2c], 0x2105
mov dword [ebp - 0x70], 0x1a87
mov dword [ebp - 4], 0xe0d
mov dword [ebp - 0x28], 0x1b96
mov eax, dword [0x58ff64]
sub eax, 1
mov dword [0x58ff64], eax
mov ecx, dword [0x58ff14]
add ecx, 1
mov dword [0x58ff14], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x28]
jge 0x4e9234
mov dword [ebp - 0x1c], 1
jmp 0x4e923b
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x58ff94]
jge 0x4e924f
mov dword [ebp - 0x20], 1
jmp 0x4e9256
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x2c]
or ecx, dword [0x58ff08]
mov edx, dword [0x58ff0c]
xor edx, dword [ebp - 0x20]
or ecx, edx
je 0x4e9278
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4f4a25
Capabilities:
Parse pe header

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

Function at 0x5010d4
Capabilities:
Parse pe header

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

Function at 0x520d59
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00520c2d
Function at 0x521854
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x59c0c0]
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 0x52189f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00521cf4
test al, al
jne 0x521899
sub edx, 2
cmp edx, edi
jne 0x52187f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5218c1
lea eax, [edi + 2]
cmp edx, eax
je 0x5218c1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0052151b
add esp, 0x10
jmp 0x5219bb
push esi
lea ecx, [ebp - 0x255]
call fcn.00521cf4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x521904
push dword [ebp - 0x25c]
jmp 0x5218b1
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 0x521941
cmp word [ebp - 0x226], 0
je 0x521962
cmp word [ebp - 0x226], ax
jne 0x521941
cmp word [ebp - 0x224], 0
je 0x521962
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0052151b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5219ae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x52191b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x521996
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5219bb
push 0x520f6b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0052cad0
add esp, 0x10
jmp 0x52198b
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.004f4f99
leave
ret
Function at 0x52323b
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 0x5232d8
push ebx
push esi
call fcn.005231f7
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.00523134
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x523285
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5232d7
push edi
push eax
call fcn.00525a3e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5232a5
call fcn.00520f19
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5232d6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00523134
add esp, 0x20
test eax, eax
jne 0x5232c4
push edi
call fcn.00520f19
jmp 0x5232cc
push ebx
call fcn.00520f19
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 0x5232db
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5232ec
pop esi
ret
push ebx
push edi
push esi
call fcn.005231f7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00525a3e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x523314
push ebx
push esi
push edi
call fcn.004fdb40
add esp, 0xc
push 0
call fcn.00520f19
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x523c03
Capabilities:
Set environment variable

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

Function at 0x527d56
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00520273
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 0x527dc5
cmp esi, dword [ebp - 4]
je 0x527dc0
cmp dword [ebp + 0xc], 0
je 0x527dc0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x527d9d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005278a8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x527dc7
xor eax, eax
inc eax
jmp 0x527dc7
xor eax, eax
pop edi
pop esi
leave
ret