joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100976d8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10097710
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1009578c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10095764
jmp 0x1009771c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10098dc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10098e08
call fcn.1009ea62
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10098e08
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10098dff
xor eax, eax
jmp 0x10098e10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10098e16
pop edi
pop esi
pop ebx
ret 4
Function at 0x401f67
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401188
push edi
call esi
push 0x401198
push edi
mov dword [ebx], eax
call esi
push 0x4011a8
push edi
mov dword [ebx + 4], eax
call esi
push 0x4011bc
push edi
mov dword [ebx + 0x10], eax
call esi
push 0x4011d4
push edi
mov dword [ebx + 8], eax
call esi
push 0xd4
push edi
mov dword [ebx + 0xc], eax
call esi
push 0xd5
push edi
mov dword [ebx + 0x14], eax
call esi
push 0xd6
push edi
mov dword [ebx + 0x18], eax
call esi
push 0xd7
push edi
mov dword [ebx + 0x1c], eax
call esi
push 0xfb
push edi
mov dword [ebx + 0x20], eax
call esi
xor ecx, ecx
mov dword [ebx + 0x24], eax
pop esi
cmp dword [ebx], ecx
je 0x40200e
cmp dword [ebx + 4], ecx
je 0x40200e
cmp dword [ebx + 0x10], ecx
je 0x40200e
cmp dword [ebx + 0xc], ecx
je 0x40200e
cmp dword [ebx + 8], ecx
je 0x40200e
cmp dword [ebx + 0x14], ecx
je 0x40200e
cmp dword [ebx + 0x18], ecx
je 0x40200e
cmp dword [ebx + 0x1c], ecx
je 0x40200e
test eax, eax
je 0x40200e
xor eax, eax
ret
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4020ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call fcn.004024c2
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x401238
mov edi, 0x7530
push 0x80000002
mov dword [0x404490], 0x401490
mov dword [0x4044c4], edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402181
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x401204
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402178
mov eax, dword [ebp - 8]
cmp eax, edi
jbe 0x402178
mov dword [0x4044c4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0x404490
pop esi
leave
ret
Function at 0x402352
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push edi
push dword [esi + 0x34]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x34]
mov byte [esi + 0x3d], 0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402368
cmp eax, reloc.ADVAPI32.dll_UnregisterTraceGuids
je 0x40241b
call dword [0x40443c]
mov edi, eax
mov ecx, dword [0x404084]
cmp ecx, 0x404084
je 0x4023b4
test byte [ecx + 0x1c], 2
je 0x4023b4
push edi
push 0x4014b8
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0040158d
cmp byte [esi + 0x3d], 0
jne 0x40235c
cmp dword [esi + 8], 0
jne 0x40235c
test edi, edi
jne 0x40235c
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoSuspendClassObjects]
cmp dword [esi + 8], edi
jne 0x40235c
call dword [0x40443c]
test eax, eax
jne 0x40235c
mov eax, dword [0x404084]
cmp eax, 0x404084
je 0x4023fe
test byte [eax + 0x1c], 2
je 0x4023fe
push edi
push 0x4014b8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040158d
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0x12
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x404084]
cmp eax, 0x404084
je 0x40244b
test byte [eax + 0x1c], 1
je 0x40244b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x404084]
push 0x4014b8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040158d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402459
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4044c0], eax
test eax, eax
je 0x4024a0
lea eax, [ebp - 4]
push eax
push esi
push 0x404490
push 0x4024a8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40249e
push dword [0x4044c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x402835
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push 0x4013a0
push 0x80000002
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4028fe
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x40136c
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x40289e
mov eax, dword [ebp - 4]
mov dword [0x404484], eax
jmp 0x4028a3
mov eax, dword [0x404484]
test eax, eax
je 0x4028f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x401338
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x4028cd
mov eax, dword [ebp - 4]
mov dword [reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x40130c
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x4028f3
mov eax, dword [ebp - 4]
mov dword [0x404480], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp dword [0x404484], 0
pop edi
je 0x402915
push 0x4027c0
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
leave
ret
Function at 0x402c92
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4033b0
call fcn.00402d8c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], UnregisterTraceGuids
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x4044d8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x402b07
cmp eax, edi
jne 0x402afa
xor edi, edi
inc edi
mov esi, edi
jmp 0x402b0a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402ade
xor edi, edi
inc edi
cmp dword [0x4044dc], edi
jne 0x402b1c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402b4a
cmp dword [0x4044dc], ebx
jne 0x402b44
mov dword [0x4044dc], edi
push 0x401020
push 0x401014
call fcn.00402a7e
pop ecx
pop ecx
test eax, eax
je 0x402b4a
jmp 0x402c7b
mov dword [0x4040ec], edi
cmp dword [0x4044dc], edi
jne 0x402b6d
push 0x401010
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4044dc], 2
test esi, esi
jne 0x402b7d
push ebx
push 0x4044d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4044e8], 0
je 0x402b9f
push 0x4044e8
call fcn.00403050
pop ecx
test eax, eax
je 0x402b9f
push ebx
push 2
push ebx
call dword [0x4044e8]
mov ecx, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [ecx], ebx
je 0x402c7b
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x402c0f
test ax, ax
je 0x402bc9
test edx, edx
jne 0x402c0f
movzx eax, word [ecx]
test ax, ax
je 0x402bde
cmp ax, si
ja 0x402bde
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x402bc9
test byte [ebp - 0x3c], 1
je 0x402bea
movzx eax, word [ebp - 0x38]
jmp 0x402bed
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x4040e8], eax
cmp dword [0x404100], 0
jne 0x402c57
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x402c20
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x402bb8
cmp dword [0x4040ec], 0
jne 0x402c6b
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4040e8]
mov dword [ebp - 4], UnregisterTraceGuids
jmp 0x402c87
mov dword [ebp - 4], UnregisterTraceGuids
mov eax, 0xff
call fcn.00402dd1
ret
call fcn.00403111
jmp 0x402aa7

Function at 0x402fc0
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 0x402fd6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.ADVAPI32.dll_UnregisterTraceGuids
jne 0x402ff1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x403000
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40303e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403036
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403040
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403026
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4013a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x4013bc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x401310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4013e4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x401ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ac9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b00
lea ebx, [ebx]
cmp esi, eax
jae 0x401b04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401af0
cmp esi, eax
jb 0x401b0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e4d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4291d4]
jne 0x40e4e0
repz ret
jmp fcn.0041381b
Function at 0x411574
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x429368]
je 0x41158f
inc edi
cmp edi, 0x17
jb 0x411580
cmp edi, 0x17
jae 0x41170f
push ebp
push 3
call fcn.004183c0
cmp eax, 1
pop ecx
je 0x4116db
push 3
call fcn.004183c0
test eax, eax
pop ecx
jne 0x4115c3
cmp dword [0x4291b4], 1
je 0x4116db
cmp ebx, 0xfc
je 0x41170e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42c540
push ebp
call fcn.0041835b
add esp, 0xc
test eax, eax
je 0x4115f9
push esi
push esi
push esi
push esi
push esi
call fcn.00413d6f
add esp, 0x14
push 0x104
mov esi, 0x42c559
push esi
push 0
mov byte [0x42c65d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41163d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041835b
add esp, 0xc
test eax, eax
je 0x41163d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00413d6f
add esp, 0x14
push esi
call fcn.004182d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411682
push esi
call fcn.004182d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42c854
push 0x42204c
sub ecx, eax
push ecx
push eax
call fcn.00418210
add esp, 0x14
test eax, eax
je 0x411682
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00413d6f
add esp, 0x14
jmp 0x411684
xor esi, esi
push 0x422048
push ebx
push ebp
call fcn.0041819f
add esp, 0xc
test eax, eax
je 0x4116a4
push esi
push esi
push esi
push esi
push esi
call fcn.00413d6f
add esp, 0x14
push dword [edi*8 + 0x42936c]
push ebx
push ebp
call fcn.0041819f
add esp, 0xc
test eax, eax
je 0x4116c6
push esi
push esi
push esi
push esi
push esi
call fcn.00413d6f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00417fe2
add esp, 0xc
jmp 0x41170e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41170e
cmp ebp, 0xffffffff
je 0x41170e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42936c]
push dword [esi]
call fcn.004182d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417fe2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412125
xor ebx, ebx
cmp dword [0x42d038], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4180b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418198
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x418198
push eax
call fcn.004120b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42d038], eax
call esi
push eax
call fcn.004120b7
mov dword [esp], 0x422274
push edi
mov dword [0x42d03c], eax
call esi
push eax
call fcn.004120b7
mov dword [0x42d040], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004112b6
test eax, eax
pop ecx
pop ecx
je 0x418086
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413d6f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4180b8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004120b7
cmp eax, ebx
pop ecx
mov dword [0x42d048], eax
je 0x4180b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004120b7
pop ecx
mov dword [0x42d044], eax
mov eax, dword [0x42d044]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41813d
cmp dword [0x42d048], ecx
je 0x41813d
push eax
call fcn.0041212e
push dword [0x42d048]
mov esi, eax
call fcn.0041212e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41813d
cmp edi, ebx
je 0x41813d
call esi
cmp eax, ebx
je 0x41810a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41810a
test byte [ebp - 0x18], 1
jne 0x41813d
lea eax, [ebp - 0x10]
push eax
call fcn.004112ed
test eax, eax
pop ecx
je 0x418125
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413d6f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x418134
or dword [ebp + 0x10], 0x200000
jmp 0x418178
or dword [ebp + 0x10], 0x40000
jmp 0x418178
mov eax, dword [0x42d03c]
cmp eax, dword [ebp - 8]
je 0x418178
push eax
call fcn.0041212e
cmp eax, ebx
pop ecx
je 0x418178
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418178
mov eax, dword [0x42d040]
cmp eax, dword [ebp - 8]
je 0x418178
push eax
call fcn.0041212e
cmp eax, ebx
pop ecx
je 0x418178
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d038]
call fcn.0041212e
cmp eax, ebx
pop ecx
je 0x418198
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41819a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dfa0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4291d4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041df35
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410d40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41dfef
cmp dword [ebp - 0x1c], 5
jb 0x41e007
jmp 0x41e003
cmp dword [ebp - 0x10], 1
jne 0x41e007
cmp dword [ebp - 0x1c], 4
ja 0x41e003
jne 0x41e007
cmp dword [ebp - 0x18], 0
jbe 0x41e007
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42344c
call fcn.00401140
test eax, eax
jge 0x41e028
mov byte [0x42a5c0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e4d6
add ebp, 0x78
leave
ret
Function at 0x402b08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042e0
test esi, esi
jne 0x402b3e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043d0
jmp 0x402b5c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402b5c
cmp dword [ebx], 0
je 0x402b5c
dec esi
jmp 0x402b45
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4fb020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403378
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403358
xor eax, eax
push ebp
push 0x403351
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403394
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403358
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4fb020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4fb020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404164
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fe04c], 0
je 0x4041c5
cmp word [0x4fe220], 0xd7b2
jne 0x40418d
cmp dword [0x4fe228], 0
jbe 0x40418d
mov eax, 0x4fe21c
call dword [0x4fe238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4fb06c
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 0x4041ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fb030], 0
jne 0x4041e1
push 0
push 0x4fb064
push 0x4fb06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406616
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404550
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406600
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40661d
lea eax, [ebp - 0x10]
call fcn.004042e0
ret

Function at 0x40c6b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d0
jmp 0x40c6fa
mov eax, ebx
mov edx, esi
call fcn.00404334
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c704
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c725
mov al, byte [esp]
jmp 0x40c727
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cdac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc24
mov eax, dword [0x4fcfc0]
cmp byte [eax], 0
je 0x40ce28
mov eax, dword [0x4fcc80]
call fcn.00402c68
call fcn.00402948
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409710
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ce70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4fcc00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fe668]
call fcn.00405aa8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret