joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x544ebc], 0
je 0x515a81
cmp word [0x545198], 0xd7b2
jne 0x515a49
cmp dword [0x5451a0], 0
jbe 0x515a49
mov eax, 0x545194
call dword [0x5451b0]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x515aac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x53b74c], 0
jne 0x515a9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x51760c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x517773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0051623c
cmp si, word [0x53bef0]
jb 0x5176a6
cmp si, word [0x53c0f0]
ja 0x5176a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x5176a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53bef0]
jae 0x517680
mov edi, ebx
dec edi
jmp 0x5176a1
cmp si, word [ebx*8 + 0x53bef0]
jbe 0x517690
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x5176a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x53bef4]
call fcn.0051751c
jmp 0x5176a6
cmp edi, dword [ebp - 0xc]
jae 0x51766a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x517755
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x517755
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00516424
push dword [ebp - 0x164]
push 0x517790
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00516424
push dword [ebp - 0x168]
push 0x5177a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00516424
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00516710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51777a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00516234
ret
Function at 0x5177a4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x51798a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5479d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x5479e8]
cmp ax, word [ebp - 2]
jne 0x5177fc
mov eax, dword [ebp - 6]
mov edx, 0x5479ec
mov ecx, 0x55
call fcn.00516424
push 0x5479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x517974
push 0x5479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0051623c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x51793c
cmp byte [0x5479cc], 0
je 0x5178f2
call dword [0x5479c4]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5479c8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x5178eb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x5479c0]
test al, al
je 0x5178c4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0051443c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x5479c0]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x5178b9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x5178b5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x5178a2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.005163e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51793c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5479c8]
cmp dword [ebp - 0x10], 0
je 0x5178ea
mov eax, dword [ebp - 0x10]
call fcn.00514458
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0051760c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x51793c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x517921
mov eax, dword [ebp - 6]
mov edx, 0x5179a4
call fcn.0051656c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0051760c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0051656c
mov eax, dword [ebp - 6]
push 0x5479d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5479e8], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.005162c8
push eax
push 0x5479ec
call sub.KERNEL32.DLL_lstrcpynW
push 0x5479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517991
lea eax, [ebp - 0x1c]
call fcn.0051622c
ret
Function at 0x517bc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00516224
xor eax, eax
push ebp
push 0x517dad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x517c08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x517c22
push 0x105
mov eax, dword [ebp - 4]
call fcn.005162c8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x517d97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x517dbc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x517cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x517dbc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x517cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x517df0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x517cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x517e24
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x517d97
xor eax, eax
push ebp
push 0x517d90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.005179cc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x517d20
mov eax, dword [ebp - 0x10]
call fcn.0051443c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.005163e8
jmp 0x517d6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x517e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x517d6b
mov eax, dword [ebp - 0x10]
call fcn.0051443c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x517e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.005163e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517d97
cmp dword [ebp - 8], 0
je 0x517d86
mov eax, dword [ebp - 8]
call fcn.00514458
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517db4
lea eax, [ebp - 4]
call fcn.0051622c
ret
Function at 0x518078
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00516224
mov eax, dword [ebp - 0x21c]
call fcn.00516224
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x518217
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0051623c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.005162c8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x518118
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x51812a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x518115
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x5181e3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x518153
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00517bc8
cmp dword [ebp - 0x220], 0
je 0x51818b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00517f6c
pop ecx
mov ebx, eax
jmp 0x5181e3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.005177a4
mov eax, dword [ebp - 0x224]
call fcn.00517f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x5181d6
cmp byte [0x5479cc], 0
jne 0x5181d6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.005177a4
mov eax, dword [ebp - 0x228]
call fcn.00517f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x5181e3
push ebp
call fcn.0051801c
pop ecx
mov ebx, eax
test bl, bl
je 0x5181f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00516424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51821e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00516234
ret

Function at 0x5186b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x5187a0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x545754], 1
jae 0x518849
call fcn.005116dc
call fcn.00514230
call fcn.0051738c
mov byte [0x53b73c], 2
mov dword [0x544e78], 0x53a2e2
mov dword [0x544e7c], 0x53a2f4
mov byte [0x544ebe], 2
call fcn.005186b4
mov dword [0x544ec0], eax
mov dword [0x544e64], 0x516e48
call fcn.00514cb0
mov word [0x544ec8], 0xd7b0
mov word [0x545198], 0xd7b0
mov word [0x545468], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x544eb0], eax
call fcn.00512828
mov dword [0x544eac], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x54573c], eax
mov dword [0x545740], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x544ea4], eax
call fcn.005186c8
ret
Function at 0x52f9a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x52f9c0
call fcn.00530b34
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x52f9df
test bl, 1
je 0x52f9df
call fcn.00536334
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x532d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x540ee3
lea ecx, [ebp - 0x200]
push ecx
call fcn.0052e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0052e7d8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0052e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x540ee5
lea ecx, [ebp - 0x200]
push ecx
call fcn.0052e728
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0052e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00534024
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x532e8d
push esi
call fcn.0052e7d8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0052e7d8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0052d934
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x532e64
xor eax, eax
jmp 0x532f16
push esi
call fcn.0052e7d8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0052e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0052e657
add esp, 0xc
jmp 0x532ecf
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.0052e7d8
pop ecx
push eax
push esi
call fcn.0052e7d8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0052e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0052d954
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x532ecf
xor eax, eax
jmp 0x532f16
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0052e728
add esp, 8
push 0x540ee7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0052e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0052e728
add esp, 8
push 0x540ee9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0052e728
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5362c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x5362f5
jmp 0x53632c
call fcn.00536278
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0052e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0052e7d8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5363b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x541524], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x53648a
cmp dword [0x541520], 0
jne 0x53648a
cmp dword [0x541720], 0
je 0x536444
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00535d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x53642a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00535d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x53642a
lea ebx, [ebp - 0x84]
jmp 0x53642b
inc ebx
call fcn.00536368
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x5364c5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x541528
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0052e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x54152b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x5364c5
cmp dword [0x541520], 0
je 0x5364a4
cmp dword [0x541520], 0xffffffff
je 0x5364c5
push esi
call dword [0x541520]
pop ecx
mov eax, dword [0x541524]
test eax, eax
je 0x5364c5
cmp dword [0x541524], 0xffffffff
je 0x5364c5
cmp byte [eax], 0
je 0x5364c5
push esi
push eax
call fcn.005362c8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x536d64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x54878c], 0
jne 0x536de5
cmp dword [0x5487ac], 0
jne 0x536d94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5487ac], eax
test eax, eax
jne 0x536d94
push str.GetEnvironmentStrings_failed
call fcn.005364dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5487ac]
jmp 0x536da8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0052e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x536da0
lea edi, [ebp + 1]
push edi
call fcn.0052d934
pop ecx
mov ebx, eax
mov dword [0x548790], ebx
test ebx, ebx
jne 0x536dd2
xor eax, eax
jmp 0x536ea5
push edi
mov edx, dword [0x5487ac]
push edx
push ebx
call fcn.0052e470
add esp, 0xc
jmp 0x536e07
xor esi, esi
mov ebx, dword [0x54878c]
jmp 0x536dff
push eax
call fcn.0052e7d8
pop ecx
test eax, eax
jne 0x536dfb
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x536def
lea ebx, [esi + 4]
push 4
mov dword [0x548794], ebx
inc ebx
push ebx
call fcn.0052d898
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x536e27
xor eax, eax
jmp 0x536ea5
cmp dword [0x54878c], 0
jne 0x536e56
xor esi, esi
mov ebx, dword [0x548790]
mov ebp, dword [esp]
jmp 0x536e47
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0052e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x536e3d
jmp 0x536e87
xor esi, esi
mov ebx, dword [0x54878c]
mov edi, dword [esp]
jmp 0x536e7f
push eax
call fcn.0052e7d8
pop ecx
test eax, eax
je 0x536e74
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x536e78
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x536e63
mov eax, dword [0x54878c]
test eax, eax
je 0x536e97
push eax
call fcn.0052d944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x54878c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401858
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x4018ad
sub al, 7
je 0x401921
dec al
je 0x40187b
sub al, 2
je 0x4018a5
sub al, 3
je 0x401897
jmp 0x4018ad
mov eax, dword [0x407230]
cmp eax, dword [0x4071b0]
jle 0x401921
dec dword [0x407230]
jmp 0x401921
mov edi, dword [0x4071b0]
mov dword [0x407230], edi
jmp 0x401921
inc dword [0x407220]
jmp 0x401921
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x407170]
mov word [ebp - 2], ax
mov eax, dword [0x407230]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x407230]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4070e0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x407230]
mov eax, dword [0x407230]
cmp eax, dword [0x4071d0]
jle 0x40194f
mov edi, dword [0x4071b0]
mov dword [0x407230], edi
inc dword [0x407220]
jmp 0x40194f
push 1
call fcn.00401a48
dec dword [0x407220]
mov eax, dword [0x407220]
cmp eax, dword [0x4071e0]
jg 0x401942
leave
ret 4
Function at 0x409e80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cdfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004617d6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409f02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f6ed
mov eax, dword [eax]
push 0x4911c0
push eax
call fcn.00452554
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461a61
test bl, bl
je 0x409f02
push 0x4911c0
lea ecx, [esp + 0xc]
call fcn.00461df1
push 0x494d3c
lea ecx, [esp + 0xc]
call fcn.00461df1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409f3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461a61
jmp 0x40a009
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409fc2
lea edx, [esp + 0x7c]
push 0x494d38
push edx
call fcn.00452554
add esp, 8
test eax, eax
je 0x409fc2
lea eax, [esp + 0x7c]
push 0x494d34
push eax
call fcn.00452554
add esp, 8
test eax, eax
je 0x409fc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409f52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461a61
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a800
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a862
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40a870
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ce7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49b608]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a9a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a8d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461a61
xor eax, eax
jmp 0x40aa1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461b9e
push esi
lea ecx, [esp + 0xc]
call fcn.00461e2d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a9fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a800
test eax, eax
jne 0x40a9fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040a800
test eax, eax
jne 0x40a9fd
lea eax, [esp + 0x14]
push 0x494d50
push eax
call fcn.00453590
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a9dc
lea ecx, [esp + 0x14]
push 0x494d4c
push ecx
call fcn.00453510
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a9dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a9df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461b4e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a8ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461a61
xor eax, eax
jmp 0x40aa1f
mov byte [esi], 0
push 0x494d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00461a61
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4