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

Disassembly:
mov eax, 0xc49af9
call fcn.00c35038
mov eax, 0x400c
call fcn.00c347f0
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00c3099d
lea eax, [ebp - 0x10]
push eax
call fcn.00c2ce9b
cmp dword [ebp + 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ecx
mov dword [ebp - 0x14], edi
je 0xc2dab7
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x10], ebx
jne 0xc2dadd
mov ebx, dword [ebp + 0xc]
call fcn.00c2c225
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0xc2daef
push edi
call fcn.00c2ce9b
pop ecx
push 0xb
pop edi
call fcn.00c2cf1e
mov esi, eax
jmp 0xc2dbba
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push edi
push edi
push ebx
mov dword [ebp - 0x14], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea eax, [ebp - 0x14]
push eax
push 0xc5ab50
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00c30e43
test eax, eax
jne 0xc2db22
push edi
call fcn.00c2ce9b
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xc2db95
call ebx
cmp dword [ebp - 0x14], edi
jne 0xc2db31
push edi
push edi
push edi
push dword [ebp + 0x10]
call esi
mov dword [0xc5ab4c], edi
call ebx
mov esi, 0x4000
jmp 0xc2db6f
je 0xc2db9c
add dword [0xc5ab4c], ebx
add dword [0xc5ab60], ebx
add dword [0xc5ab64], ebx
call fcn.00c2cec9
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x4018]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x4018]
push esi
lea ecx, [ebp - 0x10]
push eax
call fcn.00c30fc7
mov ebx, eax
cmp ebx, edi
jge 0xc2db40
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00c2ce9b
pop ecx
push 8
jmp 0xc2dad0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00c2cec9
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00c2ce9b
xor esi, esi
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00c2d5e4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0xc2dcd5
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push 0xc5a2d0
push 0xc4bac4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
add esp, 0x10
cmp dword [ebp + 0x10], edi
jne 0xc2dd10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov dword [0xc5a814], 1
call fcn.00c2dc81
add esp, 0xc
test eax, eax
jne 0xc2dd40
push 0x13
pop edi
call fcn.00c2cf1e
jmp 0xc2de1d
mov dword [0xc5a814], edi
mov dword [0xc5ab4c], edi
mov dword [0xc5ab50], edi
call fcn.00c2cec9
cmp dword [ebp + 0x14], edi
jne 0xc2dd6e
lea eax, [ebp - 0x208]
push eax
call fcn.00c2d7d9
pop ecx
jmp 0xc2de19
push esi
mov dword [0xc5ab4c], edi
mov dword [0xc5ab50], edi
call fcn.00c2cec9
mov esi, 0xc5a3d8
push esi
push str.http:__
mov dword [0xc5ab4c], edi
mov dword [0xc5ab60], edi
mov dword [0xc5ab64], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea eax, [ebp - 0x104]
jne 0xc2dde6
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0xc2ddd3
cmp byte [ebp + eax - 0x104], 0x5c
je 0xc2ddd8
dec eax
jns 0xc2ddc9
jmp 0xc2ddee
push 0xc4b518
lea eax, [ebp + eax - 0x103]
jmp 0xc2dde7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
push edi
push str.FullVersion
push str.VERSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0xc5ab50], eax
lea eax, [ebp - 0x208]
push eax
call fcn.00c2d917
pop ecx
pop esi
test eax, eax
jne 0xc2de21
xor eax, eax
jmp 0xc2de31
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0xc2f3c9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, 0x103
push ebx
push dword [ebp + 0x1c]
mov dword [0xc59bbc], eax
mov eax, dword [ebp + 0x20]
mov esi, 0xc5a1c8
push esi
mov dword [0xc5a7ec], eax
call edi
call fcn.00c2d225
xor esi, esi
push 0xc5988c
mov dword [0xc5a810], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov dword [0xc5a7e0], eax
mov eax, dword [ebp + 0xc]
mov dword [0xc5a7e4], eax
mov eax, dword [ebp + 0x10]
push 0x3ff
push dword [ebp + 0x14]
mov dword [0xc5a7e8], eax
mov eax, dword [ebp + 0x18]
push 0xc5a3d8
mov dword [0xc5a7d8], eax
call edi
cmp dword [ebp + 0x1c], esi
mov byte [0xc5a2d0], 0
je 0xc2f454
push ebx
push dword [ebp + 0x1c]
push 0xc5a2d0
call edi
lea eax, [ebp + 0x24]
push eax
push esi
push esi
push 0xc2f3ab
push esi
push esi
mov dword [ebp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov dword [0xc5a7dc], eax
pop ebx
pop ebp
ret
Function at 0xc3083a
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0xc30850
mov eax, dword [ebp + 8]
leave
ret
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0xc3085e
leave
ret
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.00c32a40
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
leave
ret

Function at 0xc308e5
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0xc30900
push dword [ebp + 8]
call fcn.00c3083a
test eax, eax
pop ecx
jne 0xc30904
xor eax, eax
jmp 0xc30943
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00c32a40
add esp, 0xc
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call sub.WSOCK32.dll_connect
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret 8

Function at 0xc30948
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0xc30971
xor ecx, ecx
cmp dword [esp + 4], ecx
je 0xc30971
cmp dword [esp + 8], ecx
jle 0xc30976
push ecx
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0xc30978
or eax, 0xffffffff
jmp 0xc30978
xor eax, eax
ret 8

Function at 0xc3097b
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0xc30997
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0xc3099a
or eax, 0xffffffff
ret 8

Function at 0xc3099d
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
call fcn.00c3087b
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret
Function at 0xc309f5
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00c347f0
push esi
push edi
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp + 8]
mov esi, ecx
call fcn.00c30b8e
xor edi, edi
add esp, 0xc
cmp eax, 0x1bb
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xc4b7e0
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x84400100
jne 0xc30a43
mov dword [ebp + 8], 0x84c00100
push edi
push edi
push edi
push edi
push str.PMang
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi], eax
jne 0xc30a5f
xor eax, eax
jmp 0xc30b61
push ebx
push edi
push edi
push 3
mov ebx, 0xc4b60c
push ebx
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 4], eax
jne 0xc30a8a
xor eax, eax
jmp 0xc30b60
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push str.HTTP_1.0
lea ecx, [ebp - 0x2010]
push ecx
push 0xc4b8dc
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 8], eax
je 0xc30a83
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestA]
push edi
push edi
push edi
push edi
push eax
call ebx
test eax, eax
jne 0xc30aed
mov eax, dword [esi + 8]
or word [ebp + 8], 0xf180
push 4
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0xc30a83
mov eax, dword [esi + 8]
push edi
push edi
push edi
push edi
push eax
call ebx
test eax, eax
je 0xc30a83
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push edi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x20000013
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0xc30a83
cmp dword [ebp - 4], 0xc8
jne 0xc30a83
cmp dword [ebp + 0x10], edi
je 0xc30b5d
mov esi, dword [esi + 8]
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0xc30b57
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0xc30b5d
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0xc30e43
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2100
call fcn.00c347f0
push ebx
push esi
push edi
lea eax, [ebp - 0x2100]
push eax
lea eax, [ebp - 0x1100]
push eax
push dword [ebp + 8]
mov edi, ecx
call fcn.00c30b8e
add esp, 0xc
xor ebx, ebx
push ebx
mov ecx, edi
mov esi, eax
call fcn.00c30890
push esi
lea eax, [ebp - 0x1100]
push eax
mov ecx, edi
call fcn.00c308e5
test eax, eax
je 0xc30fb2
cmp dword [ebp + 0xc], ebx
je 0xc30f31
cmp dword [ebp + 0x10], ebx
je 0xc30f31
push 5
inc ebx
push str.POST
mov ecx, edi
call fcn.00c30948
lea eax, [ebp - 0x2100]
push eax
call fcn.00c332d0
pop ecx
push eax
lea eax, [ebp - 0x2100]
push eax
mov ecx, edi
call fcn.00c30948
mov esi, str._HTTP_1.0_r_nConnection:_Close_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.0__NeoWiz__r_nHost:
push esi
call fcn.00c332d0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00c30948
lea eax, [ebp - 0x1100]
push eax
call fcn.00c332d0
pop ecx
push eax
lea eax, [ebp - 0x1100]
push eax
mov ecx, edi
call fcn.00c30948
test ebx, ebx
mov esi, dword [ebp + 0x14]
je 0xc30f3d
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp - 0x100]
push str._r_nContent_Type:_text_plain_r_nContent_Length:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push eax
lea eax, [ebp - 0x100]
push eax
mov ecx, edi
call fcn.00c30948
jmp 0xc30f80
push 4
push str.GET
jmp 0xc30eab
test esi, esi
je 0xc30f80
mov eax, dword [esi]
test eax, eax
jge 0xc30f4c
and dword [esi], 0
jmp 0xc30f80
je 0xc30f80
push eax
lea eax, [ebp - 0x100]
push str._r_nRange:_bytes_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push eax
lea eax, [ebp - 0x100]
push eax
mov ecx, edi
call fcn.00c30948
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 4
push str._r_n_r_n
mov ecx, edi
call fcn.00c30948
test ebx, ebx
je 0xc30fa1
mov eax, dword [ebp + 0x10]
push dword [eax]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00c30948
push esi
push dword [ebp + 0x10]
push edi
call fcn.00c30ca5
add esp, 0xc
test eax, eax
jne 0xc30fbd
mov ecx, edi
call fcn.00c3087b
xor eax, eax
jmp 0xc30fc0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0xc30fc7
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [ecx], 0xffffffff
jne 0xc30fd1
xor eax, eax
ret 8
jmp fcn.00c3097b

Function at 0xc31019
Capabilities:
Read .ini file

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0xc31024
mov ecx, dword [ecx + 8]
jmp 0xc31027
add ecx, 8
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0xc31036
mov edx, dword [eax + 4]
jmp 0xc31039
lea edx, [eax + 4]
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0xc31048
mov eax, dword [eax + 4]
jmp 0xc3104b
add eax, 4
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 8
Function at 0xc31157
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and dword [ebp - 4], 0
push edi
mov edx, ecx
push 0x7f
xor eax, eax
cmp dword [edx + 0x1c], 0x10
mov byte [ebp - 0x204], 0
pop ecx
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
jb 0xc3118a
mov edx, dword [edx + 8]
jmp 0xc3118d
add edx, 8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0xc3119b
mov ecx, dword [eax + 4]
jmp 0xc3119e
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0xc311ac
mov eax, dword [eax + 4]
jmp 0xc311af
add eax, 4
push esi
push edx
push 0x200
lea edx, [ebp - 0x204]
push edx
mov esi, 0xc4b60c
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0xc311e9
lea eax, [ebp - 0x204]
push eax
call fcn.00c332d0
test eax, eax
pop ecx
je 0xc311e9
lea eax, [ebp - 0x204]
push eax
jmp 0xc311ea
push esi
mov ecx, dword [ebp + 8]
call fcn.00c01920
mov eax, dword [ebp + 8]
pop esi
leave
ret 0xc

Function at 0xc31250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
push esi
mov esi, ecx
je 0xc312b3
push edi
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp - 0x104]
add esi, 4
push eax
mov ecx, esi
call fcn.00c179a0
cmp byte [ebp + edi - 0x105], 0x5c
pop edi
mov ecx, esi
jne 0xc312a5
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00c023f0
jmp 0xc312c2
push 0xc4b588
call fcn.00c2e2c9
mov ecx, esi
jmp 0xc31297
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.00c01b30
pop esi
leave
ret 8
Function at 0xc316e9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0xc4a086
call fcn.00c35038
mov eax, 0x203c
call fcn.00c347f0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], 0xf
call fcn.00c17850
lea ecx, [ebp - 0x2c]
call fcn.00c203e0
cmp dword [esi + 0x1c], 0x10
mov byte [ebp - 4], 1
jb 0xc31731
mov esi, dword [esi + 8]
jmp 0xc31734
add esi, 8
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0xc31740
lea eax, [ebp + 0xc]
push esi
push 0x1000
lea ecx, [ebp - 0x1048]
push ecx
mov ebx, 0xc4b60c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call edi
cmp byte [ebp - 0x1048], 0
lea esi, [ebp - 0x1048]
je 0xc317cf
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0x10
jb 0xc3177a
mov eax, dword [eax + 8]
jmp 0xc3177d
add eax, 8
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0xc31789
lea ecx, [ebp + 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x2048]
push eax
push ebx
push esi
push ecx
call edi
push esi
lea ecx, [ebp - 0x48]
call fcn.00c179a0
lea eax, [ebp - 0x2048]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00c179a0
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 0x48]
push eax
call fcn.00c316a9
push esi
call fcn.00c332d0
lea esi, [esi + eax + 1]
cmp byte [esi], 0
pop ecx
jne 0xc3176c
mov ecx, dword [ebp + 0x24]
call fcn.00c30fed
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
lea ecx, [ebp - 0x48]
neg esi
call fcn.00c29900
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00c01f20
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0xc31806
Capabilities:
Read .ini file

Disassembly:
mov eax, 0xc4a0a8
call fcn.00c35038
sub esp, 0x420
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x200
push esi
xor ebx, ebx
lea eax, [ebp - 0x42c]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00c33270
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00c33270
add esp, 0x18
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0xc31856
lea eax, [ebp + 0x28]
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x42c]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [edi + 0x1c], 0x10
jb 0xc3187a
mov eax, dword [edi + 8]
jmp 0xc3187d
lea eax, [edi + 8]
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0xc31889
lea ecx, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
push 0xc4b60c
lea eax, [ebp - 0x42c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x22c], 0
je 0xc318e3
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00c01920
mov ecx, dword [ebp + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00c05840
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00c01f20
inc dword [ebp - 0x10]
jmp 0xc3184a
cmp dword [ebp - 0x10], ebx
jle 0xc318ec
mov esi, ebx
jmp 0xc318ee
xor esi, esi
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.00c01f20
push 0
push ebx
lea ecx, [ebp + 0x24]
call fcn.00c01f20
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x3c

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xc34aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00c352dc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0xc34ac8
test byte [esp + 8], 2
je 0xc34ac8
call fcn.00c352ca
mov dword [eax], 0xd
call fcn.00c352d3
mov dword [eax], 5
jmp 0xc34aa1
xor eax, eax
ret
Function at 0xc34b31
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.00c347f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xc34bcc
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 [0xc5b350]
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 0xc34bcc
cmp eax, 1
je 0xc34bed
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 0xc34bcc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0xc34b99
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0xc34bc8
xor eax, eax
inc eax
jmp 0xc34c0c
cmp edi, eax
jae 0xc34bd0
xor eax, eax
jmp 0xc34c0c
cmp eax, esi
jae 0xc34bd7
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 [0xc5b350]
jmp 0xc34bf0
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 0xc34e0e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0xc4dba0
call fcn.00c34fe4
mov edi, 0x94
mov eax, edi
call fcn.00c347f0
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 [0xc5b350], ecx
mov eax, dword [esi + 4]
mov dword [0xc5b35c], eax
mov edx, dword [esi + 8]
mov dword [0xc5b360], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xc5b354], esi
cmp ecx, 2
je 0xc34e6e
or esi, 0x8000
mov dword [0xc5b354], esi
shl eax, 8
add eax, edx
mov dword [0xc5b358], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0xc34ea9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc34ea9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0xc34ec1
cmp eax, 0x20b
je 0xc34eae
mov dword [ebp - 0x1c], esi
jmp 0xc34ed5
cmp dword [ecx + 0x84], 0xe
jbe 0xc34ea9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0xc34ecf
cmp dword [ecx + 0x74], 0xe
jbe 0xc34ea9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00c36af1
pop ecx
test eax, eax
jne 0xc34ee9
push 0x1c
call fcn.00c34dea
pop ecx
call fcn.00c3838c
test eax, eax
jne 0xc34efa
push 0x10
call fcn.00c34dea
pop ecx
call fcn.00c3acad
mov dword [ebp - 4], esi
call fcn.00c3aaaf
test eax, eax
jge 0xc34f13
push 0x1b
call fcn.00c34dc5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xc5efa4], eax
call fcn.00c3a98d
mov dword [0xc5b180], eax
call fcn.00c3a8eb
test eax, eax
jge 0xc34f39
push 8
call fcn.00c34dc5
pop ecx
call fcn.00c3a6b8
test eax, eax
jge 0xc34f4a
push 9
call fcn.00c34dc5
pop ecx
push 1
call fcn.00c37721
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0xc34f60
push eax
call fcn.00c34dc5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00c3a65b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0xc34f81
movzx eax, word [ebp - 0x40]
jmp 0xc34f84
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00c21020
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0xc34fa2
push edi
call fcn.00c3784e
call fcn.00c37870
jmp 0xc34fd4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00c3501f
ret