joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dfa0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.1004e4c0
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1000dff9
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push str._M:_I64X
mov ecx, dword [ebp + 8]
push ecx
call fcn.10051528
add esp, 0x10
mov dword [ebp - 4], 1
xor edx, edx
jne 0x1000dfad
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000e730
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x10076610]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x454], ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x1000e766
jmp 0x1000e88e
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.1004e4c0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x1000e879
cmp dword [ebp - 0x230], 0
je 0x1000e85b
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x1000e85b
xor ecx, ecx
mov word [ebp - 0x450], cx
push 0x206
push 0
lea edx, [ebp - 0x44e]
push edx
call fcn.1004e4c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x450]
push eax
push 0
mov ecx, dword [ebp - 0x244]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1000e84e
lea ecx, [ebp + 8]
call fcn.1000c760
push eax
lea edx, [ebp - 0x450]
push edx
call fcn.10050fe1
add esp, 8
test eax, eax
jne 0x1000e84e
push 9
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x240], eax
jmp 0x1000e7a9
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
jne 0x1000e749
lea ecx, [ebp + 8]
call fcn.1000c720
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b0b2
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
push 0x208
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.1004e4c0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 0x12], cx
add dword [ebp - 0xc], 2
cmp word [ebp - 0x12], 0
jne 0x1000e8db
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x104
jae 0x1000e948
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.1004b0c1
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000e948
mov eax, dword [ebp - 8]
push eax
call fcn.1000b640
add esp, 4
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1000ed50
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ec30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10076610]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.1004e4c0
add esp, 0xc
mov ecx, dword [ebp - 0x214]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
push 0x10071b18
push 0x10071b30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000eccf
lea eax, [ebp - 0x210]
push eax
call fcn.10051168
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.1004e4c0
add esp, 0xc
mov eax, dword [ebp - 0x214]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0x10071b44
push 0x10071b5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000ed25
lea edx, [ebp - 0x210]
push edx
call fcn.10051168
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ebp - 4], 1
xor edx, edx
jne 0x1000ec50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004b0b2
mov esp, ebp
pop ebp
ret 8
Function at 0x100199e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x100199d0
movzx eax, byte [esi]
push eax
call fcn.1001b350
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x100199b1
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x10019a0d
call fcn.100197f0
test eax, eax
jne 0x10019a0d
lea eax, [esp + 4]
push eax
call fcn.10019940
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x100199a0
xor eax, eax
pop esi
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001bbf2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x1001bd30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x1001bd79
push 1
push esi
call fcn.1001efd0
mov eax, dword [esi + 0x59c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x608]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.1001efd0
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x1001bdb9
cmp eax, 2
jg 0x1001bdb9
mov edx, dword [esi + 0x598]
push edx
push 1
lea eax, [eax + eax*2 + 0x10069408]
push 2
push eax
call fcn.1004df14
mov ecx, dword [esi + 0x598]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.1004df14
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov ecx, dword [ebx + 0x2a8]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x1001c3cf
cmp dword [ebx + eax*4 + 0x1c0], 0x1001c060
jne 0x1001c3cf
cmp dword [esi], 0
je 0x1001c36a
test edi, edi
je 0x1001c3cf
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.1001c5b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1001c3cf
test al, 1
je 0x1001c3cf
cmp dword [esi], 0
jne 0x1001c3b1
mov edx, dword [ebx]
mov eax, dword [edx + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1001c3cc
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001c3cf
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x1001c3e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x10076610]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
mov esi, dword [esp + 0xa4]
push edi
mov edi, dword [esp + 0xa0]
call fcn.1001c330
mov eax, dword [esp + 0xa4]
push 0
push eax
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x1001c48a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1001c459
xor eax, eax
mov dword [esi], 0x51
jmp 0x1001c48a
push 0x80
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.10012a60
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.1001bea0
mov eax, dword [ebx]
mov dword [eax + 0xcac], ebp
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004b0b2
add esp, 0x84
ret
Function at 0x1001cd90
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2b0], 2
jne 0x1001cda2
jmp fcn.1001cd30
mov eax, 1
ret

Function at 0x1001d080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10076610]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x1001d0df
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1001d0c5
mov eax, dword [esp]
cmp al, 2
jne 0x1001d0bf
shr eax, 8
cmp al, 2
je 0x1001d0df
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1004b0b2
add esp, 0x194
ret
push 3
push 2
push 0
push 6
call fcn.1001cdc0
add esp, 0x10
test eax, eax
je 0x1001d11f
push 0x10079470
mov dword [0x10079478], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1004b0b2
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov dword [0x10079478], 0
xor eax, eax
call fcn.1004b0b2
add esp, 0x194
ret

Function at 0x10021910
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0xa90]
push 4
lea ecx, [esp + 4]
push ecx
push 8
shr eax, 0xc
push 0xffff
and eax, 1
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1002194f
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1001bdc0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xa50]
push edx
mov dword [esp + 0xc], 1
call fcn.1001b970
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa54]
push eax
call fcn.1001b970
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100219c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.1001bdc0
add esp, 0x10
add esp, 0x14
ret
Function at 0x10022140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18c
mov eax, dword [0x10076610]
xor eax, esp
mov dword [esp + 0x188], eax
push ebp
mov ebp, dword [esp + 0x194]
cmp dword [ebp + 0x90], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x100222fd
mov eax, dword [ebp + 0x280]
push ebx
push esi
test al, 2
jne 0x100222f2
test eax, 0x8000000
jne 0x100222f2
mov esi, dword [esp + 0x1a4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100221e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.10012a60
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.1001bea0
add esp, 0x1c
jmp 0x100222fb
push ebx
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x1c], ebx
call fcn.1004e4c0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10022235
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.10012a60
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1001bea0
add esp, 0x1c
jmp 0x100222fb
lea edi, [ebp + 0x10a]
lea ebx, [ebp + 0x138]
lea esi, [esp + 0x98]
call fcn.100220c0
test eax, eax
jne 0x1002228c
call fcn.1004e6a6
mov esi, eax
call fcn.1004e6a6
mov edx, dword [esi]
push 0x80
lea ecx, [esp + 0x11c]
push ecx
push edx
mov edi, eax
call fcn.10012a60
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.1001bea0
add esp, 0x1c
jmp 0x100222fb
lea edi, [ebp + 0x5c]
mov ecx, 0xb
lea esi, [ebp + 0x10a]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x16c]
lea edi, [ebp + 0x13c]
lea esi, [esp + 0x18]
call fcn.100220c0
test eax, eax
jne 0x100222f2
call fcn.1004e6a6
mov esi, eax
call fcn.1004e6a6
push 0x80
lea edx, [esp + 0x11c]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.10012a60
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.1001bea0
add esp, 0x1c
jmp 0x100222fb
push ebp
call fcn.10022040
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
pop edi
pop ebp
xor ecx, esp
call fcn.1004b0b2
add esp, 0x18c
ret
Function at 0x10022320
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x88
mov eax, dword [0x10076610]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10022397
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10012a60
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1001bdc0
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1004b0b2
add esp, 0x88
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1001bdc0
mov ecx, dword [esp + 0x90]
add esp, 8
pop esi
xor ecx, esp
call fcn.1004b0b2
add esp, 0x88
ret
Function at 0x1002ba30
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10069264
push ecx
call fcn.1001bdc0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1002aa50
test eax, eax
jne 0x1002ba60
mov ecx, esi
jmp fcn.1002af00
ret
Function at 0x1002db60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [esi + 0x1a8]
mov al, byte [esp + 8]
push edi
mov edi, dword [esi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1002dba4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1001bea0
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, ebx
mov edi, str.SENT
call fcn.1002da60
pop edi
pop ecx
ret
Function at 0x1002e930
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x154]
mov dword [esp + 4], eax
jne 0x1002ea89
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1002e967
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e972
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e97d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9af
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9bd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9c7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9d1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9dc
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e9e7
mov byte [eax], pe_nt_image_headers32
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.1002def0
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x1002ea44
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001bea0
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.1002e770
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x1002ea86
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001bea0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10032d10
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x10032d4a
push str.Couldnt_set_desired_mode
push edi
call fcn.1001bea0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10032d61
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.1001bdc0
add esp, 0xc
cmp ebp, 0x13
jne 0x10032d76
push ebx
call fcn.10032ca0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10032d87
call fcn.10030130
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10032d9a
mov eax, ebx
call fcn.10032cf0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10032da8
mov eax, ebx
call fcn.10032d00
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x1004b0b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10076610]
jne 0x1004b0bc
repz ret
jmp fcn.100515de
Function at 0x1006095d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10051756
and dword [ebp - 4], 0
cmp dword [0x10078174], 0
mov ebx, eax
jne 0x10060a0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10060abf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10060abf
push eax
call fcn.100516e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10078174], eax
call esi
push eax
call fcn.100516e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10078178], eax
call esi
push eax
call fcn.100516e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007817c], eax
call esi
push eax
call fcn.100516e4
pop ecx
mov dword [0x10078184], eax
test eax, eax
je 0x10060a0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100516e4
pop ecx
mov dword [0x10078180], eax
mov eax, dword [0x10078180]
cmp eax, ebx
je 0x10060a66
cmp dword [0x10078184], ebx
je 0x10060a66
push eax
call fcn.1005175f
push dword [0x10078184]
mov esi, eax
call fcn.1005175f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10060a66
test edi, edi
je 0x10060a66
call esi
test eax, eax
je 0x10060a5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10060a5d
test byte [ebp - 0xc], 1
jne 0x10060a66
or dword [ebp + 0x10], 0x200000
jmp 0x10060a9f
mov eax, dword [0x10078178]
cmp eax, ebx
je 0x10060a9f
push eax
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060a9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10060a9f
mov eax, dword [0x1007817c]
cmp eax, ebx
je 0x10060a9f
push eax
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060a9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10078174]
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060abf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10060ac1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10065bc9
call fcn.1004e6b9
mov dword [eax], esi
call fcn.1004e6a6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1004b652
add esp, 0x14
push 0x16
pop eax
jmp 0x10065c1e
test dword [ebp + 0xc], 0xfffffff9
jne 0x10065ba5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10065bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004e6cc
pop ecx
call fcn.1004e6a6
mov eax, dword [eax]
jmp 0x10065c1e
test al, 0x10
jne 0x10065c1c
test al, 1
je 0x10065c1c
test byte [ebp + 0xc], 2
je 0x10065c1c
call fcn.1004e6b9
mov dword [eax], 5
call fcn.1004e6a6
mov dword [eax], 0xd
jmp 0x10065bed
xor eax, eax
pop esi
pop ebp
ret