joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421f70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x422018
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x422018
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dbe5
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
je 0x422018
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42200f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44bbec
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42200f
cmp dword [ebp - 8], edi
jbe 0x422001
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x422003
mov eax, edi
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [ebp - 0x10], 1
push dword [ebp + 0xc]
call fcn.0042c0c6
pop ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x422840
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x190
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x18c], eax
push esi
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0x95]
push edi
push eax
mov byte [esp + 0x9c], 0
call fcn.0042c350
push 0x83
lea ecx, [esp + 0x1d]
push edi
push ecx
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], 0
call fcn.0042c350
push 0x288
call fcn.0042cca0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x422a71
push 0x288
push edi
push esi
mov dword [esp + 0x14], 0x288
call fcn.0042c350
add esp, 0xc
lea edx, [esp + 8]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x42291e
push esi
call fcn.0042c0c6
mov eax, 0xca4587e7
mul dword [esp + 0xc]
mov eax, edx
shr eax, 9
xor ecx, ecx
add eax, 1
mov edx, 0x288
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dbe5
mov esi, eax
add esp, 8
test esi, esi
je 0x422a71
mov eax, dword [esp + 8]
push eax
push edi
push esi
call fcn.0042c350
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
push ebp
mov ebp, esi
jne 0x422a47
lea esp, [esp]
lea edx, [esi + 0x10c]
push edx
lea eax, [esp + 0x14]
push 0x84
push eax
call fcn.0042fdf0
lea ecx, [esp + 0x1c]
push ecx
call fcn.004460f8
push eax
lea edx, [esp + 0x24]
push 0x84
push edx
call fcn.0042fdf0
lea eax, [esp + 0x2c]
push str.vmware
push eax
call fcn.0042f7c0
add esp, 0x24
test eax, eax
je 0x422985
lea ecx, [esp + 0x10]
sub eax, ecx
cmp eax, 0xffffffff
jne 0x422a3d
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
push eax
push ecx
lea edx, [esp + 0xac]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.004223b0
lea eax, [esp + 0xb4]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4229d4
sub eax, edx
lea edi, [edi + eax + 1]
cmp edi, 0x200
jge 0x422a47
cmp byte [0x45e6e0], cl
jne 0x422a0f
lea eax, [esp + 0x94]
push eax
push 0x200
push 0x45e6e0
call fcn.0042fdf0
add esp, 0xc
jmp 0x422a3d
push 0x44f68c
push 0x200
push 0x45e6e0
call fcn.0042fe55
lea ecx, [esp + 0xa0]
push ecx
push 0x200
push 0x45e6e0
call fcn.0042fe55
add esp, 0x18
mov esi, dword [esi]
test esi, esi
jne 0x422930
test ebp, ebp
je 0x422a54
push ebp
call fcn.0042d399
add esp, 4
pop ebp
pop edi
mov eax, 0x45e6e0
pop esi
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x190
ret
mov ecx, dword [esp + 0x194]
pop edi
pop esi
xor ecx, esp
mov eax, 0x45e6e0
call fcn.0042c3ca
add esp, 0x190
ret
Function at 0x422e80
Capabilities:
Link many functions at runtime

Disassembly:
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x45e90c], eax
jne 0x422e95
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZwOpenSection
push eax
call esi
test eax, eax
mov dword [0x45e908], eax
je 0x422ef1
mov eax, dword [0x45e90c]
push str.ZwMapViewOfSection
push eax
call esi
test eax, eax
mov dword [0x45e904], eax
je 0x422ef1
mov ecx, dword [0x45e90c]
push str.ZwUnmapViewOfSection
push ecx
call esi
test eax, eax
mov dword [0x45e900], eax
je 0x422ef1
mov edx, dword [0x45e90c]
push str.RtlInitUnicodeString
push edx
call esi
test eax, eax
mov dword [0x45e8fc], eax
jne 0x422ef5
xor eax, eax
pop esi
ret
mov eax, dword [0x45e90c]
push str.ZwClose
push eax
call esi
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x45e8f8], eax
pop esi
mov eax, ecx
ret

Function at 0x4239e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x448008
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c530]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x44f7e0
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.00423210
push 2
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [esi]
cmp eax, ebp
je 0x423a32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
push 0x44f788
push 1
push ebp
push 0x44f7d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
mov ebx, dword [esp + 0x14]
jge 0x423a52
mov dword [esi], ebp
jmp 0x423abe
cmp dword [esi], ebp
jne 0x423a60
push 0x80004003
call fcn.004458f0
mov edi, dword [esi]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x423a74
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
mov dword [esi], 0
je 0x423a82
mov eax, dword [ebx]
jmp 0x423a84
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push edi
call edx
test eax, eax
jl 0x423abe
mov esi, dword [esi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push esi
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x423abe
mov ebp, 1
test ebx, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x423afe
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x423afe
mov eax, dword [ebx]
test eax, eax
je 0x423ae5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x423af5
push eax
call fcn.0042d399
add esp, 4
push ebx
call fcn.0042c0c6
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x424cf0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x68]
push 0x58
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042c350
mov eax, dword [esp + 0x7c]
push esi
lea esi, [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00424b60
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.00424c00
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor ecx, esp
call fcn.0042c3ca
add esp, 0x5c
ret

Function at 0x425290
Capabilities:
Terminate process

Disassembly:
push esi
push 0x14
call fcn.0042c1f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4252bb
pop esi
mov dword [esp + 0xc], str.shttpd_add_mime_type:_no_memory
mov dword [esp + 8], eax
mov dword [esp + 4], 1
jmp fcn.004279b0
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.004278c0
add esp, 4
test eax, eax
mov dword [esi + 8], eax
jne 0x4252eb
pop edi
pop esi
mov dword [esp + 0xc], str.shttpd_add_mime_type:_no_memory
mov dword [esp + 8], eax
mov dword [esp + 4], 1
jmp fcn.004279b0
mov eax, dword [esp + 0x14]
push eax
call fcn.004278c0
add esp, 4
test eax, eax
mov dword [esi + 0x10], eax
jne 0x42531a
pop edi
pop esi
mov dword [esp + 0xc], str.shttpd_add_mime_type:_no_memory
mov dword [esp + 8], eax
mov dword [esp + 4], 1
jmp fcn.004279b0
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425320
sub eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x2c]
add eax, 0x2c
mov dword [ecx + 4], esi
mov edx, dword [eax]
mov dword [esi], edx
mov dword [esi + 4], eax
pop edi
mov dword [eax], esi
pop esi
ret
Function at 0x425490
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x1a8], eax
push esi
lea eax, [esp + 0x1c]
push eax
push 0x202
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
mov dword [esp + 0xc], 0x10
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 6
push 1
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x425549
push esi
call fcn.00428220
add esp, 4
test eax, eax
jne 0x425542
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x425542
mov edx, dword [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x425542
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x425582
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.0043099b
mov ecx, dword [eax]
push ecx
call fcn.004308f9
push eax
push edi
push str.open_listening_port__d_:__s
push 0
push 2
call fcn.004279b0
add esp, 0x18
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1ac
ret
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1ac
ret
Function at 0x426ae0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x426af4
push esi
push eax
call fcn.00427b00
add esp, 8
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x94], 0
je 0x426b07
push 0
call fcn.0042d768
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x426b24
mov eax, dword [eax + 0xc]
test eax, eax
je 0x426b24
lea edx, [esi + 0xc8]
push edx
call eax
add esp, 4
cmp dword [esi + 0x74], 0xa
jl 0x426b3d
mov eax, dword [esi + 0x70]
push 0xa
push eax
push str.keep_alive
call fcn.00427820
add esp, 0xc
mov eax, dword [esi + 0x48]
test eax, eax
je 0x426b4d
push eax
call fcn.0042c2b3
add esp, 4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x426b5d
push eax
call fcn.0042c2b3
add esp, 4
mov eax, dword [esi + 0x144]
test eax, eax
je 0x426b76
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x110]
push ecx
call edx
add esp, 4
mov eax, dword [esi + 8]
add eax, 0x98
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 8]
mov dword [esi], esi
mov dword [esi + 4], esi
add dword [eax + 8], 0xffffffff
mov edx, dword [esi + 8]
add edx, 0x98
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0042c2b3
pop ecx
ret
Function at 0x427360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push str.1.38
push str.SHTTPD_version__s__c__Sergey_Lyubka_nusage:__s__OPTIONS___config_file__nNote:_config_line_keyword_for_every_option_is_in_the_round_brackets_n
call fcn.00430fc8
add eax, 0x40
push eax
call fcn.00430e79
add esp, 0x10
push str._A__htpasswd_file___realm___user___passwd__n
call fcn.00430fc8
add eax, 0x40
push eax
call fcn.00430e79
mov eax, dword [str.document_root]
add esp, 8
test eax, eax
je 0x4273d2
push esi
mov esi, 0x4501f4
mov ecx, dword [esi - 0xc]
mov edx, dword [esi]
push eax
mov eax, dword [esi - 0x14]
push ecx
push edx
push eax
push str.__c___s__t_t_s___s__n
call fcn.00430fc8
add eax, 0x40
push eax
call fcn.00430e79
mov eax, dword [esi + 0x10]
add esi, 0x20
add esp, 0x18
test eax, eax
jne 0x4273a5
pop esi
push 1
call fcn.0042d768
int3
Function at 0x4279b0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x8044
call fcn.0042c820
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x8040], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8058]
test esi, esi
push edi
jne 0x4279db
xor ebp, ebp
jmp 0x4279ea
mov eax, dword [esi + 8]
cmp dword [eax + 0x94], 0
mov ebp, dword [eax + 0x50]
jne 0x427a1b
mov ecx, dword [esp + 0x8060]
lea eax, [esp + 0x8064]
push eax
push ecx
call fcn.00430fc8
add eax, 0x40
push eax
call fcn.0043221a
call fcn.00430fc8
add eax, 0x40
push eax
push 0xa
call fcn.00431f8d
add esp, 0x14
push 0x45fda8
call fcn.00430242
push eax
push str._a__b__d__H:_M:_S__Y
lea edx, [esp + 0x1c]
push 0x40
push edx
call fcn.00431f70
add esp, 0x14
test esi, esi
je 0x427a45
mov edi, dword [esi + 0x48]
test edi, edi
jne 0x427a4a
mov edi, 0x44c6f0
test esi, esi
je 0x427a5a
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x427a5f
mov eax, 0x44c6f0
push edi
push eax
lea ecx, [esp + 0x18]
push ecx
push str.__s___error___client__s____s_
lea edx, [esp + 0x60]
push 0x8000
push edx
call fcn.004278f0
mov edx, dword [esp + 0x8078]
lea ecx, [esp + 0x807c]
push ecx
push edx
mov ecx, 0x8000
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x74]
push edx
call fcn.0042e999
mov bl, byte [esp + 0x8080]
add esp, 0x28
test ebp, ebp
mov byte [esp + 0x804f], 0
je 0x427ad0
test bl, 3
je 0x427ad0
lea eax, [esp + 0x50]
push eax
push 0x4505b8
push ebp
call fcn.00430e79
push ebp
call fcn.0043146e
add esp, 0x10
pop edi
pop esi
pop ebp
test bl, 1
pop ebx
je 0x427ae0
push 1
call fcn.0042d768
mov ecx, dword [esp + 0x8040]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x8044
ret

Function at 0x428220
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret

Function at 0x42a1a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x42c3ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c530]
jne 0x42c3d4
repz ret
jmp fcn.00434d09

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42f1fc
call fcn.004309ae
mov dword [eax], esi
call fcn.0043099b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042cc53
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42f1d8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004309c1
pop ecx
call fcn.0043099b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42f252
test al, 1
je 0x42f252
test byte [esp + 0xc], 2
je 0x42f252
call fcn.004309ae
mov dword [eax], 5
call fcn.0043099b
mov dword [eax], 0xd
jmp 0x42f222
xor eax, eax
pop esi
ret
Function at 0x434a0a
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 + 0x45cb70]
je 0x434a25
inc edi
cmp edi, 0x17
jb 0x434a16
cmp edi, 0x17
jae 0x434ba5
push ebp
push 3
call fcn.0043fefe
cmp eax, 1
pop ecx
je 0x434b71
push 3
call fcn.0043fefe
test eax, eax
pop ecx
jne 0x434a59
cmp dword [0x45c580], 1
je 0x434b71
cmp ebx, 0xfc
je 0x434ba4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45f2f0
push ebp
call fcn.0042fdf0
add esp, 0xc
test eax, eax
je 0x434a8f
push esi
push esi
push esi
push esi
push esi
call fcn.0042cb57
add esp, 0x14
push 0x104
mov esi, 0x45f309
push esi
push 0
mov byte [0x45f40d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x434ad3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042fdf0
add esp, 0xc
test eax, eax
je 0x434ad3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042cb57
add esp, 0x14
push esi
call fcn.0042d200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x434b18
push esi
call fcn.0042d200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45f604
push 0x451a14
sub ecx, eax
push ecx
push eax
call fcn.0043c2bd
add esp, 0x14
test eax, eax
je 0x434b18
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042cb57
add esp, 0x14
jmp 0x434b1a
xor esi, esi
push 0x451a10
push ebx
push ebp
call fcn.0042fe55
add esp, 0xc
test eax, eax
je 0x434b3a
push esi
push esi
push esi
push esi
push esi
call fcn.0042cb57
add esp, 0x14
push dword [edi*8 + 0x45cb74]
push ebx
push ebp
call fcn.0042fe55
add esp, 0xc
test eax, eax
je 0x434b5c
push esi
push esi
push esi
push esi
push esi
call fcn.0042cb57
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043fd41
add esp, 0xc
jmp 0x434ba4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x434ba4
cmp ebp, 0xffffffff
je 0x434ba4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45cb74]
push dword [esi]
call fcn.0042d200
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 0x43eb4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43eb79
call fcn.004309ae
mov dword [eax], esi
call fcn.0043099b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042cc53
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x43eb55
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43eba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004309c1
pop ecx
call fcn.0043099b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x43ebcf
test al, 1
je 0x43ebcf
test byte [esp + 0xc], 2
je 0x43ebcf
call fcn.004309ae
mov dword [eax], 5
call fcn.0043099b
mov dword [eax], 0xd
jmp 0x43eb9f
xor eax, eax
pop esi
ret
Function at 0x43fd41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00435fb5
xor ebx, ebx
cmp dword [0x45fc9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43fe17
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43fef7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43fef7
push eax
call fcn.00435f47
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45fc9c], eax
call esi
push eax
call fcn.00435f47
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45fca0], eax
call esi
push eax
call fcn.00435f47
mov dword [0x45fca4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042d545
test eax, eax
pop ecx
pop ecx
je 0x43fde5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042cb57
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43fe17
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00435f47
cmp eax, ebx
pop ecx
mov dword [0x45fcac], eax
je 0x43fe17
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435f47
pop ecx
mov dword [0x45fca8], eax
mov eax, dword [0x45fca8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43fe9c
cmp dword [0x45fcac], ecx
je 0x43fe9c
push eax
call fcn.00435fbe
push dword [0x45fcac]
mov esi, eax
call fcn.00435fbe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43fe9c
cmp edi, ebx
je 0x43fe9c
call esi
cmp eax, ebx
je 0x43fe69
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fe69
test byte [ebp - 0x18], 1
jne 0x43fe9c
lea eax, [ebp - 0x10]
push eax
call fcn.0042d5b8
test eax, eax
pop ecx
je 0x43fe84
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042cb57
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43fe93
or dword [ebp + 0x10], 0x200000
jmp 0x43fed7
or dword [ebp + 0x10], 0x40000
jmp 0x43fed7
mov eax, dword [0x45fca0]
cmp eax, dword [ebp - 8]
je 0x43fed7
push eax
call fcn.00435fbe
cmp eax, ebx
pop ecx
je 0x43fed7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43fed7
mov eax, dword [0x45fca4]
cmp eax, dword [ebp - 8]
je 0x43fed7
push eax
call fcn.00435fbe
cmp eax, ebx
pop ecx
je 0x43fed7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45fc9c]
call fcn.00435fbe
cmp eax, ebx
pop ecx
je 0x43fef7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43fef9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4456e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00445621
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.0042c350
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 0x445731
cmp dword [ebp - 0x1c], 5
jb 0x445749
jmp 0x445745
cmp dword [ebp - 0x10], 1
jne 0x445749
cmp dword [ebp - 0x1c], 4
ja 0x445745
jne 0x445749
cmp dword [ebp - 0x18], 0
jbe 0x445749
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x453068
call fcn.004013c3
test eax, eax
jge 0x44576a
mov byte [0x45dcd8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c3ca
add ebp, 0x78
leave
ret

Function at 0x1002989
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002e08
call fcn.01002b34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100279e
cmp eax, esi
jne 0x1002791
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10027a1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002778
xor esi, esi
inc esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x10027b4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10027ef
mov eax, dword [0x1004374]
test eax, eax
jne 0x10027e9
mov dword [0x1004374], esi
push 0x10011b0
push 0x10011a4
call fcn.010026f5
pop ecx
pop ecx
test eax, eax
je 0x10027ef
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10028b9
mov dword [0x1004038], esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x1002813
push 0x10011a0
push 0x1001198
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002820
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100437c], ebx
je 0x1002841
push 0x100437c
call fcn.01002aa9
pop ecx
test eax, eax
je 0x1002841
push ebx
push 2
push ebx
call dword [0x100437c]
push dword [0x1004020]
push dword [0x1004024]
push dword [0x100401c]
call fcn.010025bb
add esp, 0xc
mov dword [0x1004034], eax
cmp dword [0x1004028], ebx
jne 0x100289f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004038], ebx
jne 0x10028ad
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004034]
call fcn.01002b79
ret
call fcn.01002c81
jmp 0x1002756