joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b8b9
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41b8c4
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x41bf59
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x41bf74
cmp word [ecx], bx
je 0x41bf74
xor eax, eax
jmp 0x41bf77
xor eax, eax
inc eax
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esi + 4], eax
je 0x41c036
cmp dword [edi], 0x18
jne 0x41c036
push dword [edi + 8]
lea ecx, [ebp + 8]
call fcn.00401af2
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x41bfa7
push ebx
push ebx
push ebx
push 1
jmp 0x41c016
cmp eax, 1
je 0x41c012
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
je 0x41c012
push dword [edi + 0x10]
lea ecx, [esi + 0x10]
call fcn.00401bc2
push dword [edi + 0x14]
lea ecx, [esi + 0x14]
call fcn.00401bc2
push dword [edi + 0xc]
mov eax, dword [0x453170]
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00401d30
mov edi, dword [ebp - 4]
add esp, 0x10
push ebx
push str._local_
push edi
push 3
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [edi - 0xc]
mov dword [esi], eax
cmp ecx, dword [0x453174]
je 0x41c021
call fcn.004013ad
jmp 0x41c021
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x41c043
call fcn.004013ad
jmp 0x41c043
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
xor eax, eax
cmp dword [esi], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 8
Function at 0x41df07
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], 0x440a58
mov dword [esi + 4], 1
lea edi, [esi + 8]
xor ebp, ebp
lea ecx, [esi + 0xc]
mov dword [edi], ebp
call fcn.0041d3d6
push 0x3c
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebp
call fcn.0042cb56
cmp eax, ebp
pop ecx
je 0x41df4c
mov ecx, eax
call fcn.0041d40a
mov ebx, eax
jmp 0x41df4e
xor ebx, ebx
cmp ebx, ebp
je 0x41df60
push ebx
mov ecx, edi
call fcn.00412d4d
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov edi, 0x104
push edi
lea ebx, [esi + 0x64]
push ebp
push ebx
mov dword [esi + 0x60], ebp
call fcn.0042d770
push edi
lea ebp, [esi + 0x26c]
push 0
push ebp
call fcn.0042d770
add esp, 0x18
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ShareFile.bat
push ebx
call fcn.0042dc09
pop ecx
pop ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TTRecomList.xml
push ebp
call fcn.0042dc09
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x405bc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42d393
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], edi
lea ecx, [esi + 0x3c]
push edi
mov dword [esp + 0x18], edi
mov dword [ecx], edi
call section..text
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 1
call fcn.00403310
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405fe0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d408
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0
push edi
mov edi, ecx
je 0x40601a
pop edi
mov al, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov eax, dword [edi]
test eax, eax
jne 0x406043
push str.gpib_32.dll_library_not_loaded
push edi
call fcn.00406100
add esp, 8
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push esi
mov esi, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebx], eax
jne 0x4060a1
lea ecx, [esp + 0xc]
call fcn.004060c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
push str.Cannot_get_address_of__s_function__Win32_error__i:__s
push edi
mov dword [esp + 0x30], 0
call fcn.00406100
mov edx, dword [esp + 0x24]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x14]
pop esi
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x406270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42d408
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 8]
lea ebx, [esi + 0xc]
mov dword [esi + 4], edi
mov dword [ebp], edi
mov dword [ebx], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.00405b50
push str.gpib_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [esi], eax
jne 0x406334
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push eax
push edi
push 0x13ff
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push str.Cannot_load_gpib_32.dll_library__Win32_error__i:__s
push esi
mov dword [esp + 0x30], edi
call fcn.00406100
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
push str.ThreadIbcntl
mov ecx, esi
call fcn.00405fe0
test al, al
je 0x40631f
push ebp
push str.ThreadIberr
mov ecx, esi
call fcn.00405fe0
test al, al
je 0x40631f
lea eax, [esi + 4]
push eax
push str.ThreadIbsta
mov ecx, esi
call fcn.00405fe0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
test al, al
pop ebp
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407570
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0xaa8c
call fcn.004224a0
mov eax, dword [0x4353ac]
push esi
push 8
mov dword [esp + 0xaa90], eax
lea eax, [esp + 0x298]
push 8
push eax
mov esi, ecx
call fcn.00420e00
mov ecx, dword [esi + 0xc]
push 0x64
push ecx
lea edx, [esp + 0x2a8]
push 0
push edx
call fcn.0041b710
add esp, 0x1c
test eax, eax
jge 0x4052e0
lea eax, [esp + 0x294]
push 0x4353d0
push eax
call fcn.0041e8e0
mov ecx, dword [esi + 0xc]
push ecx
push str._n_Probably_port__i_is_already_in_use._n_n
call fcn.00422048
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xaa88]
call fcn.00421df2
add esp, 0xaa8c
ret
push edi
lea edx, [esp + 0x108]
push edx
push 2
xor edi, edi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40532f
push 0xff
lea eax, [esp + 0xc]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x405326
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x405326
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
call sub.WS2_32.dll_WSACleanup
test edi, edi
jne 0x405334
mov edi, str.___.___.___.___
mov edx, dword [esi + 0xc]
push edx
push edi
push str.Listening_for_clients_connecting_to__s:_d_n
call fcn.00422048
lea eax, [esp + 0x2a4]
push eax
call fcn.004033a0
add esp, 0x10
mov byte [esi + 8], 1
pop edi
jmp 0x405360
lea ecx, [esp + 0x294]
push ecx
call fcn.0041bb00
add esp, 4
test eax, eax
jl 0x4053ee
push str._n_New_request:_n
call fcn.00422048
add esp, 4
lea edx, [esp + 0x294]
push edx
mov ecx, esi
call fcn.00404ac0
test eax, eax
je 0x4053b5
lea eax, [esp + 0x294]
push 0x4353d0
push eax
call fcn.0041e8e0
push 0x42e864
call fcn.00422048
add esp, 0xc
jmp 0x4053c2
push str._Request_served_OK_n
call fcn.00422048
add esp, 4
lea ecx, [esp + 0x294]
push 0
push ecx
call fcn.00418020
lea edx, [esp + 0x29c]
push edx
call fcn.0041c4c0
mov al, byte [esi + 8]
add esp, 0xc
test al, al
jne 0x405360
jmp 0x405403
lea eax, [esp + 0x294]
push 0x4353d0
push eax
call fcn.0041e8e0
add esp, 8
push str._nStopped_listening_for_clients_nServer_stopped_n_n
call fcn.00422048
mov ecx, dword [esp + 0xaa90]
add esp, 4
xor eax, eax
pop esi
call fcn.00421df2
add esp, 0xaa8c
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
mov ecx, 0x436394
call fcn.00404990
push str.TSSInstrumentAPIApplication1
push 0x42ecd0
mov ecx, 0x436394
call fcn.00404950
push str.TSSInstrumentAPICommon1
push 0x42ecb4
mov ecx, 0x436394
call fcn.00404950
push str.TSSInstrumentAPISwitch1
push 0x42ec98
mov ecx, 0x436394
call fcn.00404950
mov ecx, 0x436394
jmp 0x405260
Function at 0x417680
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4353ac]
mov dword [esp + 0x190], eax
mov eax, 1
mov dword [ecx + 0xa798], eax
mov ecx, dword [0x4363dc]
test ecx, ecx
jne 0x4176de
lea edx, [esp]
push edx
push 0x101
mov dword [0x4363dc], eax
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4176de
mov dword [0x4363dc], 0
or eax, 0xffffffff
mov ecx, dword [esp + 0x190]
call fcn.00421df2
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
call fcn.00421df2
add esp, 0x194
ret

Function at 0x417750
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, ecx
push esi
mov edi, eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x417768
mov dword [edi], eax
pop edi
xor eax, eax
pop esi
ret
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x417787
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx + 0xa79c], eax
or eax, 0xffffffff
pop esi
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
xor eax, eax
pop esi
ret

Function at 0x419c30
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x419c40
mov eax, 0xf
pop esi
ret
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov byte [esi], 0
je 0x419d0f
push ebx
push ebp
mov ebp, dword [esp + 0x20]
cmp ebp, 2
jbe 0x419ca2
lea ecx, [ebp - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
movzx eax, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
mov cl, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, 4
lea ecx, [ecx]
mov ebx, ecx
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec eax
shr ecx, 6
test eax, eax
mov byte [eax + esi], bl
ja 0x419c80
add esi, 4
sub ebp, 3
add edi, 3
dec edx
jne 0x419c68
test ebp, ebp
mov byte [esi], 0
jbe 0x419d0d
xor ecx, ecx
xor eax, eax
test ebp, ebp
jbe 0x419cc6
mov edx, ebp
mov eax, ebp
movzx ebx, byte [edi]
shl ecx, 8
or ecx, ebx
inc edi
dec edx
jne 0x419cb5
cmp ebp, 3
jae 0x419cd6
mov edx, 3
sub edx, eax
add eax, edx
nop
shl ecx, 8
dec edx
jne 0x419cd0
inc eax
je 0x419cf6
lea esp, [esp]
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec eax
shr ecx, 6
test eax, eax
mov byte [eax + esi], dl
ja 0x419ce0
mov eax, 3
cmp ebp, eax
jae 0x419d09
nop
mov byte [eax + esi], 0x3d
dec eax
cmp eax, ebp
ja 0x419d00
mov byte [esi + 4], 0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x41b9b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [esp + 0x218]
mov eax, dword [esi + 0x14dc]
test eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x110], 0
jl 0x41ba00
mov edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
jmp 0x41ba59
mov eax, dword [esi + 0x14d8]
test eax, eax
jl 0x41ba2c
lea edx, [esp + 4]
push edx
push 0
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
push edx
jmp 0x41ba6d
mov eax, dword [esi + 0x14e8]
mov ecx, dword [esi + 0x14ec]
cmp eax, ecx
mov edx, 1
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
jg 0x41ba59
mov eax, ecx
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x118]
lea ecx, [esp + 0x14]
push edx
push ecx
inc eax
push eax
call sub.WS2_32.dll_select
test eax, eax
jle 0x41ba82
xor eax, eax
pop esi
add esp, 0x210
ret
jge 0x41bade
mov eax, dword [esi + 0x14d8]
test eax, eax
jge 0x41ba98
mov eax, dword [esi + 0x14dc]
test eax, eax
jl 0x41bade
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x41bade
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xa79c], eax
push 0x14
push str.select_failed_in_soap_poll__
mov eax, esi
call fcn.0041b200
push eax
push esi
call fcn.0041a480
add esp, 0x10
mov dword [esi + 0xa794], 0x14
mov eax, 0x14
pop esi
add esp, 0x210
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa79c], eax
or eax, 0xffffffff
pop esi
add esp, 0x210
ret
Function at 0x422113
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4364fc], esi
push edi
jne 0x422133
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 [0x4364f8], esi
mov byte [0x4364f4], al
jne 0x422199
mov ecx, dword [0x437c8c]
test ecx, ecx
je 0x42217a
mov eax, dword [0x437c88]
sub eax, 4
cmp eax, ecx
jmp 0x422173
mov eax, dword [eax]
test eax, eax
je 0x422165
call eax
mov eax, dword [0x437c88]
sub eax, 4
cmp eax, dword [0x437c8c]
mov dword [0x437c88], eax
jae 0x42215d
mov eax, 0x435048
mov esi, 0x435050
cmp eax, esi
mov edi, eax
jae 0x422199
mov eax, dword [edi]
test eax, eax
je 0x422192
call eax
add edi, 4
cmp edi, esi
jb 0x42218a
mov eax, 0x435054
mov esi, 0x43505c
cmp eax, esi
mov edi, eax
jae 0x4221b8
mov eax, dword [edi]
test eax, eax
je 0x4221b1
call eax
add edi, 4
cmp edi, esi
jb 0x4221a9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4221d2
push dword [ebp + 8]
mov dword [0x4364fc], 1
call fcn.00422079
pop ebp
ret
Function at 0x423002
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x431480
call fcn.00425098
mov edi, 0x94
mov eax, edi
call fcn.004224a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4364bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4364c8], eax
mov edx, dword [esi + 8]
mov dword [0x4364cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4364c0], esi
cmp ecx, 2
je 0x423062
or esi, 0x8000
mov dword [0x4364c0], esi
shl eax, 8
add eax, edx
mov dword [0x4364c4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x42309b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42309b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4230b3
cmp eax, 0x20b
je 0x4230a0
mov dword [ebp - 0x1c], edi
jmp 0x4230c7
cmp dword [ecx + 0x84], 0xe
jbe 0x42309b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4230c1
cmp dword [ecx + 0x74], 0xe
jbe 0x42309b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0042684d
pop ecx
test eax, eax
jne 0x4230f3
cmp dword [0x436540], 2
je 0x4230e0
call fcn.00428af8
push 0x1c
call fcn.00428981
push 0xff
call fcn.00422079
pop ecx
pop ecx
call fcn.00425ea0
mov dword [ebp - 4], edi
call fcn.004264a7
test eax, eax
jge 0x42310c
push 0x1b
call fcn.00422fdd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436c64], eax
call fcn.00428f77
mov dword [0x436538], eax
call fcn.00428ed5
test eax, eax
jge 0x423132
push 8
call fcn.00422fdd
pop ecx
call fcn.00428ca2
test eax, eax
jge 0x423143
push 9
call fcn.00422fdd
pop ecx
push 1
call fcn.004220a9
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x423159
push eax
call fcn.00422fdd
pop ecx
mov eax, dword [0x4364dc]
mov dword [0x4364e0], eax
push eax
push dword [0x4364d4]
push dword [0x4364d0]
call fcn.00407570
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x423188
push esi
call fcn.004221d4
call fcn.004221f6
jmp 0x4231ba
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004250d3
ret
Function at 0x42889e
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.004224a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428939
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 [0x4364bc]
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 0x428939
cmp eax, 1
je 0x42895a
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 0x428939
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x428906
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x428935
xor eax, eax
inc eax
jmp 0x428979
cmp edi, eax
jae 0x42893d
xor eax, eax
jmp 0x428979
cmp eax, esi
jae 0x428944
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 [0x4364bc]
jmp 0x42895d
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 0x428981
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4353ac]
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 + 0x435d18]
je 0x4289b6
inc eax
cmp eax, 0x13
jb 0x4289a7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x435d18]
jne 0x428adc
mov eax, dword [0x436540]
cmp eax, 1
je 0x428ab4
cmp eax, edx
jne 0x4289e6
cmp dword [0x435714], 1
je 0x428ab4
cmp ecx, 0xfc
je 0x428adc
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 0x428a1c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004251f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004231f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x428a50
mov eax, edi
push eax
call fcn.004231f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x431c3c
push edi
call fcn.00422a00
add esp, 0x10
push edi
call fcn.004231f0
push dword [esi + 0x435d1c]
mov ebx, eax
call fcn.004231f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004224a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004251f0
push edi
push ebx
call fcn.00425200
push 0x431c38
push ebx
call fcn.00425200
push dword [esi + 0x435d1c]
push ebx
call fcn.00425200
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042aad2
add esp, 0x2c
jmp 0x428adc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x435d1c]
push dword [esi]
call fcn.004231f0
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.00421df2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42aad2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x436834], ebx
push esi
push edi
jne 0x42ab52
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ab8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x436834], eax
je 0x42ab8d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x436838], eax
call esi
cmp dword [0x4364bc], 2
mov dword [0x43683c], eax
jne 0x42ab52
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x436844], eax
je 0x42ab52
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x436840], eax
mov eax, dword [0x436840]
test eax, eax
je 0x42ab97
call eax
test eax, eax
je 0x42ab7e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x436844]
test eax, eax
je 0x42ab7e
test byte [ebp - 8], 1
jne 0x42ab97
cmp dword [0x4364c8], 4
jb 0x42ab91
or byte [ebp + 0x12], 0x20
jmp 0x42abb6
xor eax, eax
jmp 0x42abc6
or byte [ebp + 0x12], 4
jmp 0x42abb6
mov eax, dword [0x436838]
test eax, eax
je 0x42abb6
call eax
mov ebx, eax
test ebx, ebx
je 0x42abb6
mov eax, dword [0x43683c]
test eax, eax
je 0x42abb6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x436834]
pop edi
pop esi
pop ebx
leave
ret