joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43d3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x45447c]
push ebx
push ebp
push esi
push edi
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov ebp, ecx
mov edi, 7
mov dword [esp + 0x2c], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.VssClient::ExcludeWritersWithNoRestoreEvents
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], ebp
mov word [esi + 4], bx
call fcn.0042fe2d
add esp, 4
push eax
push str.VssClient::ExcludeWritersWithNoRestoreEvents
mov ecx, esi
call fcn.00402190
push 0xb0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.._select.cpp
mov dword [esp + 0xa4], ebx
mov word [esi + 4], bx
call fcn.0042fe2d
add esp, 4
push eax
push str.._select.cpp
mov ecx, esi
call fcn.00402190
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0041fd60
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.Exclude_writers_that_do_not_support_restore_events_...
mov dword [esp + 0x84], 1
mov word [esi + 4], bx
call fcn.0042fe2d
add esp, 4
push eax
push str.Exclude_writers_that_do_not_support_restore_events_...
mov ecx, esi
call fcn.00402190
lea eax, [esp + 0x38]
push eax
call fcn.00420010
add esp, 0x20
mov dword [esp + 0x10], ebx
xor edi, edi
jmp 0x415b10
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x415bc4
mov ecx, dword [ebp + 0x54]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x415bc4
mov eax, dword [ebp + 0x50]
mov cl, byte [edi + eax + 0x81]
cmp cl, bl
lea ebp, [edi + eax + 0x81]
jne 0x415bac
cmp byte [edi + eax + 0x78], bl
jne 0x415bac
cmp dword [edi + eax + 0x18], 8
jb 0x415b65
mov eax, dword [edi + eax + 4]
jmp 0x415b69
lea eax, [edi + eax + 4]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push str.__Excluding_writer__s_since_it_does_not_support_restore_events.
mov word [esi + 4], bx
call fcn.0042fe2d
add esp, 4
push eax
push str.__Excluding_writer__s_since_it_does_not_support_restore_events.
mov ecx, esi
call fcn.00402190
lea ecx, [esp + 0x3c]
push ecx
call fcn.00420010
add esp, 0x24
mov byte [ebp], 1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
add edi, 0x84
jmp 0x415b10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0041fed0
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
call fcn.0043053d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x431fb9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4554c4], esi
push edi
jne 0x431fd9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4554c0], esi
mov byte [0x4554bc], al
jne 0x43203f
mov ecx, dword [0x455cac]
test ecx, ecx
je 0x432020
mov eax, dword [0x455ca8]
sub eax, 4
cmp eax, ecx
jmp 0x432019
mov eax, dword [eax]
test eax, eax
je 0x43200b
call eax
mov eax, dword [0x455ca8]
sub eax, 4
cmp eax, dword [0x455cac]
mov dword [0x455ca8], eax
jae 0x432003
mov eax, 0x454054
mov esi, 0x45405c
cmp eax, esi
mov edi, eax
jae 0x43203f
mov eax, dword [edi]
test eax, eax
je 0x432038
call eax
add edi, 4
cmp edi, esi
jb 0x432030
mov eax, 0x454060
mov esi, 0x454068
cmp eax, esi
mov edi, eax
jae 0x43205e
mov eax, dword [edi]
test eax, eax
je 0x432057
call eax
add edi, 4
cmp edi, esi
jb 0x43204f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x432078
push dword [ebp + 8]
mov dword [0x4554c4], 1
call fcn.00431f1f
pop ebp
ret
Function at 0x43564e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x455b60]
mov eax, dword [0x45447c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x435814
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x455b80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x435814
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4356b8
xor eax, eax
jmp 0x435828
test al, 0x20
je 0x4356c9
push 2
push edi
push edi
push ecx
call fcn.00439d94
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43579e
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4357e5
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x43572b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43571c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4356fe
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43576b
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x435777
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4356f2
jmp 0x435779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x43580f
cmp dword [ebp + 0x3a4], edi
je 0x4357e5
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4357d7
mov dword [0x45547c], eax
jmp 0x43581b
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4357c9
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x435779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x435779
push dword [ebp + 0x3a4]
call fcn.00439d35
pop ecx
jmp 0x435825
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4357fd
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4356b1
mov dword [0x455478], 0x1c
mov dword [0x45547c], edi
jmp 0x435825
sub eax, dword [ebp - 0x7c]
jmp 0x435828
and dword [0x45547c], 0
mov dword [0x455478], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0043053d
add ebp, 0x39c
leave
ret
Function at 0x436f56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x455b60]
push edi
jae 0x43712b
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x455b80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x43712b
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x437001
test dl, 2
jne 0x437001
test dl, 0x48
je 0x436fcb
cmp byte [eax + 5], 0xa
je 0x436fcb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437014
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x436ffc
mov dword [0x45547c], ecx
jmp 0x437132
cmp eax, 0x6d
jne 0x437008
xor eax, eax
jmp 0x43713f
push eax
call fcn.00439d35
pop ecx
jmp 0x43713c
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x437126
test eax, eax
je 0x43703b
cmp byte [ebx], 0xa
jne 0x43703b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x437044
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x437120
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x437110
cmp al, 0xd
je 0x437076
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x437102
dec ecx
cmp dword [ebp - 8], ecx
jae 0x437090
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x43708b
add dword [ebp - 8], 2
jmp 0x4370e4
mov dword [ebp - 8], eax
jmp 0x4370fe
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4370b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4370fe
cmp dword [ebp - 0x10], 0
je 0x4370fe
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4370d9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4370e4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x437101
cmp ebx, dword [ebp + 0xc]
jne 0x4370e9
cmp byte [ebp - 1], 0xa
jne 0x4370e9
mov byte [ebx], 0xa
jmp 0x437101
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435f48
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x437102
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x43705a
jmp 0x437120
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x437120
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x43713f
and dword [0x45547c], 0
mov dword [0x455478], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437217
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x437245
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43724c
cmp ebx, dword [eax + 4]
jae 0x43724c
xor eax, eax
jmp 0x43743c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43725d
xor eax, eax
inc eax
jmp 0x43743b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x437273
cmp ecx, edx
jae 0x4373b8
cmp dword [eax + 4], 0
je 0x43727c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x437264
cmp dword [ebp + 8], 0
je 0x43729e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4373b8
cmp eax, esi
jae 0x4373b8
mov eax, dword [0x455558]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4372c3
cmp dword [esi*4 + 0x455560], edi
je 0x4373bc
inc esi
cmp esi, eax
jl 0x4372b1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x437438
cmp dword [ebp - 8], 0x1000000
jne 0x437438
test byte [ebp - 0xc], 0xcc
je 0x437341
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x437438
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x437438
cmp word [eax + 0x18], 0x10b
jne 0x437438
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x437438
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x437341
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x437341
test byte [ecx + 0x27], 0x80
jne 0x4373b8
push 1
push 0x4555a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x437255
mov ecx, dword [0x455558]
test ecx, ecx
mov edx, ecx
jle 0x437375
lea eax, [ecx*4 + 0x45555c]
cmp dword [eax], edi
je 0x437375
dec edx
sub eax, 4
test edx, edx
jg 0x437369
test edx, edx
jne 0x4373a6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x437382
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43739a
lea eax, [edx*4 + 0x455560]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x437388
cmp ecx, 0x10
jge 0x4373a6
inc ecx
mov dword [0x455558], ecx
push 0
push 0x4555a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x437255
xor eax, eax
jmp 0x43743b
test esi, esi
jle 0x437255
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4555a0
call ebx
test eax, eax
jne 0x437255
cmp dword [esi*4 + 0x455560], edi
je 0x437412
mov eax, dword [0x455558]
lea esi, [eax - 1]
test esi, esi
jl 0x437400
cmp dword [esi*4 + 0x455560], edi
je 0x4373fc
dec esi
jns 0x4373f0
test esi, esi
jge 0x437410
cmp eax, 0x10
jge 0x43740b
inc eax
mov dword [0x455558], eax
lea esi, [eax - 1]
jmp 0x437412
je 0x43742a
xor ecx, ecx
test esi, esi
jl 0x43742a
lea eax, [ecx*4 + 0x455560]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x437418
push 0
push 0x4555a0
call ebx
jmp 0x437255
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43753c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45447c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x454970]
je 0x437571
inc eax
cmp eax, 0x13
jb 0x437562
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x454970]
jne 0x437697
mov eax, dword [0x45546c]
cmp eax, 1
je 0x43766f
cmp eax, edx
jne 0x4375a1
cmp dword [0x454764], 1
je 0x43766f
cmp ecx, 0xfc
je 0x437697
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4375d7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00433a90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004316f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43760b
mov eax, edi
push eax
call fcn.004316f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44d3c4
push edi
call fcn.00438a80
add esp, 0x10
push edi
call fcn.004316f0
push dword [esi + 0x454974]
mov ebx, eax
call fcn.004316f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00437dc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00433a90
push edi
push ebx
call fcn.00433aa0
push 0x44d3c0
push ebx
call fcn.00433aa0
push dword [esi + 0x454974]
push ebx
call fcn.00433aa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00439906
add esp, 0x2c
jmp 0x437697
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x454974]
push dword [esi]
call fcn.004316f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0043053d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x437b26
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4557c4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x437b6f
call ebp
mov esi, eax
cmp esi, ebx
je 0x437b55
mov dword [0x4557c4], 1
jmp 0x437b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x437b6a
push 2
pop eax
mov dword [0x4557c4], eax
jmp 0x437b6f
mov eax, dword [0x4557c4]
cmp eax, 1
jne 0x437bcc
cmp esi, ebx
jne 0x437b87
call ebp
mov esi, eax
cmp esi, ebx
jne 0x437b87
xor eax, eax
jmp 0x437c73
cmp word [esi], bx
mov eax, esi
je 0x437b9c
inc eax
inc eax
cmp word [eax], bx
jne 0x437b8e
inc eax
inc eax
cmp word [eax], bx
jne 0x437b8e
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004316b7
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x437bbf
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x437c73
push ebp
push esi
push edi
call fcn.00431780
add esp, 0xc
jmp 0x437bb1
cmp eax, 2
je 0x437bd5
cmp eax, ebx
jne 0x437b80
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x437b80
cmp byte [ebp], bl
mov esi, ebp
je 0x437c0b
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x437b80
push esi
add edi, eax
call fcn.004316f0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x437be8
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004316b7
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x437c84
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x437c65
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x437c7a
push edi
call fcn.004316f0
push esi
lea edi, [edi + eax + 1]
call fcn.0042fe2d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x437c2b
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004307a8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x437b80
Function at 0x437c90
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4557c8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x437cd0
call esi
test eax, eax
je 0x437cb5
mov dword [0x4557c8], 1
jmp 0x437cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x437ccc
mov dword [0x4557c8], 2
jmp 0x437cde
xor eax, eax
jmp 0x437d2c
cmp eax, 1
jne 0x437cd9
call esi
jmp 0x437d2c
cmp eax, 2
jne 0x437ccc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x437d24
lea eax, [esi + esi]
push eax
call fcn.004316b7
mov ebp, eax
test ebp, ebp
pop ecx
je 0x437d24
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x437d28
push ebp
call fcn.004307a8
pop ecx
xor eax, eax
jmp 0x437d2a
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x438009
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00437dc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4380a4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x455484]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4380a4
cmp eax, 1
je 0x4380c5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4380a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x438071
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4380a0
xor eax, eax
inc eax
jmp 0x4380e4
cmp edi, eax
jae 0x4380a8
xor eax, eax
jmp 0x4380e4
cmp eax, esi
jae 0x4380af
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x455484]
jmp 0x4380c8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439906
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x455810], ebx
push esi
push edi
jne 0x439986
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4399c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x455810], eax
je 0x4399c1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x455814], eax
call esi
cmp dword [0x455484], 2
mov dword [0x455818], eax
jne 0x439986
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x455820], eax
je 0x439986
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45581c], eax
mov eax, dword [0x45581c]
test eax, eax
je 0x4399cb
call eax
test eax, eax
je 0x4399b2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x455820]
test eax, eax
je 0x4399b2
test byte [ebp - 8], 1
jne 0x4399cb
cmp dword [0x455490], 4
jb 0x4399c5
or byte [ebp + 0x12], 0x20
jmp 0x4399ea
xor eax, eax
jmp 0x4399fa
or byte [ebp + 0x12], 4
jmp 0x4399ea
mov eax, dword [0x455814]
test eax, eax
je 0x4399ea
call eax
mov ebx, eax
test ebx, ebx
je 0x4399ea
mov eax, dword [0x455818]
test eax, eax
je 0x4399ea
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x455810]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439ac5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x44e8d8
call fcn.0043373c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x455824], edi
jne 0x439b09
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439af4
mov dword [0x455824], ebx
jmp 0x439b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x439b09
mov dword [0x455824], 2
mov eax, dword [0x455824]
cmp eax, ebx
jne 0x439b29
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x439bec
cmp eax, 2
je 0x439b32
cmp eax, edi
jne 0x439b5a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x439b45
mov eax, dword [0x45550c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x439b61
xor eax, eax
jmp 0x439bec
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00437dc0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x439b94
cmp esi, edi
jne 0x439baa
push dword [ebp - 0x20]
call fcn.004316b7
pop ecx
mov esi, eax
cmp esi, edi
je 0x439b5a
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x439bdd
cmp dword [ebp + 0x14], edi
jne 0x439bc7
push edi
push edi
jmp 0x439bcd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x439be9
push esi
call fcn.004307a8
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00433777
ret