joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420f49
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
cmp dword [ebp + 0xc], 0
jne 0x420f8f
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
je 0x420faa
push 0x4415ad
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_LoadLibraryA
leave
ret 8
Function at 0x421a3e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
cmp dword [0x44191c], 0
je 0x421a9a
mov esi, dword [0x44191c]
mov dword [ebp - 4], 0
mov eax, dword [0x441918]
jmp 0x421a95
cmp dword [esi + 0xc], 1
jne 0x421a8a
cmp dword [esi + 0x38], 0
je 0x421a8a
push 0x8000
push 0
push dword [esi + 0x38]
call sub.KERNEL32.dll_VirtualFree
mov dword [esi + 0x38], 0
mov dword [esi + 0xc], 0
add esi, 0x54
inc dword [ebp - 4]
mov eax, dword [0x441918]
cmp dword [ebp - 4], eax
jb 0x421a61
cmp dword [0x441928], 0
je 0x421ae1
mov esi, dword [0x441928]
mov dword [ebp - 4], 0
mov eax, dword [0x441924]
jmp 0x421adc
cmp dword [esi], 0
je 0x421ad1
push dword [esi]
call sub.KERNEL32.dll_DeleteFileA
push 0x8000
push 0
push dword [esi]
call sub.KERNEL32.dll_VirtualFree
lea esi, [esi + 4]
inc dword [ebp - 4]
mov eax, dword [0x441924]
cmp dword [ebp - 4], eax
jb 0x421ab7
leave
ret
Function at 0x42236b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x4223a1
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x4223d5
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 1
push 0
push 0
push 0xce
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push 0
push 0xffffffffffffffff
push 0xbb
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x2c], eax
push 0
push eax
push 0xd6
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov ax, 1
push eax
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
sub eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 0x10
and dword [ebp - 8], 0xffff
dec dword [ebp - 8]
or eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
add eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x423816
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x42383e
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x423872
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 1
push 0
push 0
push 0x147
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x4253bb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0042e274
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call fcn.0042e274
add dword [ebp - 4], eax
add dword [ebp - 4], 0x64
push dword [ebp - 4]
push 0
push dword [0x441044]
call sub.KERNEL32.dll_HeapAlloc
or eax, eax
jne 0x42547a
pushfd
pushal
sub esp, 0x6c
wait
fnsave dword [esp]
cld
mov eax, esp
and esp, 0xfffffffc
push eax
mov eax, dword [eax + 0x88]
push 0x441054
call sub.KERNEL32.dll_EnterCriticalSection
push str.DBPLUGIN
push 0
push 0xff
push str.MemAlloc_failed
call fcn.0042c32b
test dword [0x441050], 1
je 0x42544f
push str.DBPLUGIN
push 0
push 0x808080
push str.__frmcommn.asm__245_
call fcn.0042c32b
push str.DBPLUGIN
push 0x80
push 0
push 0x43a5b4
call fcn.0042c32b
push 0x441054
call sub.KERNEL32.dll_LeaveCriticalSection
pop esp
frstor dword [esp]
add esp, 0x6c
popal
popfd
xor eax, eax
mov dword [ebp - 8], eax
or eax, eax
je 0x425595
mov byte [eax], 0
push dword [ebp + 8]
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push 0x4415ce
push dword [ebp - 8]
push 1
call fcn.0042e1a8
mov dword [ebp - 4], eax
push dword [ebp - 8]
call fcn.0042e274
cmp dword [ebp - 4], 0
jbe 0x4254c6
cmp dword [ebp - 4], eax
jne 0x4254bf
mov eax, 0x4415bb
jmp 0x4254cb
mov eax, 0x4415c2
jmp 0x4254cb
mov eax, 0x4415ce
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push 1
push 0
push 0
push dword [ebp - 8]
push 0x415e15
push dword [0x441160]
call sub.SHELL32.dll_ShellExecuteA
push eax
push dword [ebp - 8]
push 0
push dword [0x441044]
call sub.KERNEL32.dll_HeapFree
or eax, eax
jne 0x425594
pushfd
pushal
sub esp, 0x6c
wait
fnsave dword [esp]
cld
mov eax, esp
and esp, 0xfffffffc
push eax
mov eax, dword [eax + 0x88]
push 0x441054
call sub.KERNEL32.dll_EnterCriticalSection
push str.DBPLUGIN
push 0
push 0xff
push str.MemFree_failed
call fcn.0042c32b
test dword [0x441050], 1
je 0x425569
push str.DBPLUGIN
push 0
push 0x808080
push str.__frmcommn.asm__269_
call fcn.0042c32b
push str.DBPLUGIN
push 0x80
push 0
push 0x43a5b4
call fcn.0042c32b
push 0x441054
call sub.KERNEL32.dll_LeaveCriticalSection
pop esp
frstor dword [esp]
add esp, 0x6c
popal
popfd
xor eax, eax
pop eax
cmp eax, 0x20
jbe 0x4255a1
mov eax, 0
jmp 0x4255c3
push dword [0x451adc]
push 0xf
call fcn.0040c1be
push 0
push 0
push eax
push dword [0x441160]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop edi
pop ebx
pop ecx
pop esi
leave
ret 8
Function at 0x425e39
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x208]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.dll_lstrcatA
cmp dword [ebp + 0x10], 0
jne 0x425e7a
lea eax, [ebp - 0x408]
mov dword [ebp - 8], eax
jmp 0x425e80
push dword [ebp + 0x10]
pop dword [ebp - 8]
mov eax, dword [ebp + 0xc]
inc dword [eax]
inc dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 8]
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x425ebf
jmp 0x425ec7
cmp dword [ebp - 4], 0xa
jae 0x425ec7
jmp 0x425e80
leave
ret 0xc

Function at 0x425ecb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0x10]
call sub.USER32.dll_wsprintfA
add esp, 0xc
leave
ret 0xc

Function at 0x425f0d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
lea eax, [ebp - 0x204]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x442f1d]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x425f48
leave
ret 8
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_DeleteFileA
dec dword [ebp - 4]
jmp 0x425f3e
Function at 0x42696b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push 0xa5
lea eax, [ebp - 0xb5]
push eax
push dword [ebp + 8]
call fcn.0042e300
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x426a68
mov dword [ebp - 0xa9], eax
cmp byte [ebp - 0x65], 0
jne 0x426a08
push dword [ebp - 0xb5]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4269ff
push dword [ebp - 0xb5]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x4269f3
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], 1
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xb5]
push eax
call fcn.0042e300
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x426a02
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x9d]
push dword [ebp - 0xad]
push dword [ebp - 0xa9]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x426a78
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xa9]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x426a66
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x426a66
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], eax
jmp 0x426a78
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], eax
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xb5]
push eax
call fcn.0042e300
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push 0xa5
lea eax, [ebp - 0xa5]
push eax
push dword [ebp + 8]
call fcn.0042e300
cmp dword [ebp - 0x50], 0
jne 0x426abe
push dword [ebp - 0x54]
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x50], eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x99]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x426b42
mov dword [ebp - 0x67], 0
mov byte [ebp - 0x63], 0
mov byte [ebp - 0x62], 0
mov byte [ebp - 0x61], 0
mov word [ebp - 0x69], 0
push 0x200
push dword [ebp - 0x4c]
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x5a], 0
mov dword [ebp - 0x59], 0
cmp dword [ebp - 0x10], 0
je 0x426b52
push 0x8000
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_VirtualFree
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x426b52
mov dword [ebp - 0x95], 0
mov dword [ebp - 0x89], eax
mov dword [ebp - 0x3c], 0
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xa5]
push eax
call fcn.0042e300
leave
ret 4
Function at 0x426b71
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push 0xa5
lea eax, [ebp - 0xa5]
push eax
push dword [ebp + 8]
call fcn.0042e300
lea eax, [ebp - 0x71]
push eax
push 0x4004667f
push dword [ebp - 0x99]
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp - 0x71], 0
jne 0x426bac
leave
ret 4
push dword [ebp - 0x71]
push 0x42
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x85], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x81], eax
push 0
push dword [ebp - 0x71]
push dword [ebp - 0x81]
push dword [ebp - 0x99]
call sub.WSOCK32.dll_recv
push eax
cmp eax, 0xffffffff
je 0x426c54
mov dword [ebp - 0x71], eax
cmp byte [ebp - 0x63], 0
jne 0x426bfb
lea eax, [ebp - 0xa5]
push eax
call fcn.00427001
jmp 0x426c3c
cmp byte [ebp - 0x5a], 0
je 0x426c0d
cmp byte [ebp - 0x5a], 1
jne 0x426c30
cmp byte [ebp - 0x5c], 1
jne 0x426c30
cmp dword [ebp - 0x18], 2
je 0x426c19
cmp dword [ebp - 0x18], 3
jne 0x426c3c
push dword [ebp - 0x71]
push dword [ebp - 0x81]
lea eax, [ebp - 0xa5]
push eax
call fcn.004274e1
jmp 0x426c3c
lea eax, [ebp - 0xa5]
push eax
call fcn.00426f58
push dword [ebp - 0x81]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x85]
call sub.KERNEL32.dll_GlobalFree
jmp 0x426c77
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x426c77
cmp eax, 0x2734
je 0x426c77
mov dword [ebp - 0x95], 0
mov dword [ebp - 0x89], eax
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xa5]
push eax
call fcn.0042e300
pop eax
leave
ret 4
Function at 0x427001
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb58
push edi
push esi
push 0xa5
lea eax, [ebp - 0x4a5]
push eax
push dword [ebp + 8]
call fcn.0042e300
lea edi, [ebp - 0x400]
add edi, dword [ebp - 0x467]
mov esi, dword [ebp - 0x481]
push esi
call sub.KERNEL32.dll_lstrlenA
jmp 0x427248
cmp byte [esi], 0xa
jne 0x42723b
cmp byte [esi - 2], 0xa
jne 0x42723b
mov cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
mov byte [edi], 0
mov byte [ebp - 0x463], 1
mov dword [ebp - 0x475], esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426e35
lea eax, [ebp - 0x43c]
push eax
call fcn.0042dbc4
mov word [ebp - 0x469], ax
cmp byte [ebp - 0x43c], 0x33
jne 0x427157
mov byte [ebp - 0x461], 1
lea eax, [ebp - 0x400]
push eax
call sub.USER32.dll_CharLowerA
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ecx, eax
lea edi, [ebp - 0x400]
mov al, 0x6c
repne scasb al, byte es:[edi]
push edi
push ecx
dec edi
mov esi, str.location:
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
mov esi, edi
pop ecx
pop edi
je 0x4270ee
test ecx, ecx
jne 0x4270c0
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426c90
jmp 0x427250
push 0x200
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov edi, esi
lea esi, [ebp - 0x200]
cmp byte [edi], 0x20
jne 0x427116
mov al, 0x20
mov ecx, 0x200
repe scasb al, byte es:[edi]
dec edi
jmp 0x42711e
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
je 0x42712d
cmp byte [edi], 0xd
je 0x42712d
cmp byte [edi], 0xa
jne 0x427118
lea eax, [ebp - 0x200]
push eax
pop dword [ebp - 0x440]
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426cd1
lea eax, [ebp - 0x4a5]
push eax
call fcn.0042696b
jmp 0x427237
cmp word [ebp - 0x469], 0xcc
je 0x42716b
cmp byte [ebp - 0x43c], 0x34
jne 0x42717c
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426c90
jmp 0x427237
cmp byte [ebp - 0x43c], 0x32
je 0x427192
cmp byte [ebp - 0x43c], 0x35
jne 0x42722b
push str.multipart_
lea eax, [ebp - 0x400]
push eax
call fcn.0042726a
cmp eax, 0
jbe 0x4271c4
mov byte [ebp - 0x45b], 1
mov byte [ebp - 0x45a], 1
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426f58
jmp 0x427237
push str.accept_ranges:
lea eax, [ebp - 0x400]
push eax
call fcn.0042726a
cmp eax, 0
ja 0x4271e5
cmp word [ebp - 0x469], 0xce
jne 0x4271ee
mov byte [ebp - 0x45b], 1
jmp 0x42720b
push str.Content_Range:
lea eax, [ebp - 0x400]
push eax
call fcn.0042726a
cmp eax, 0
jbe 0x42720b
mov byte [ebp - 0x45b], 1
cmp dword [ebp - 0x418], 2
je 0x42721d
cmp dword [ebp - 0x418], 3
jne 0x427229
lea eax, [ebp - 0x4a5]
push eax
call fcn.00427426
jmp 0x427237
lea eax, [ebp - 0x4a5]
push eax
call fcn.00426c90
jmp 0x427250
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
inc dword [ebp - 0x467]
dec eax
or eax, eax
jne 0x42703d
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0x4a5]
push eax
call fcn.0042e300
pop esi
pop edi
leave
ret 4
Function at 0x42744b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x34]
sub ecx, eax
push ecx
push dword [esi + 0x30]
push dword [ebp + 8]
call fcn.004274e1
cmp eax, 1
jne 0x4274dc
push eax
lea eax, [esi + 0x34]
push eax
push 0x4004667f
push dword [esi + 0xc]
call sub.WSOCK32.dll_ioctlsocket
pop eax
cmp dword [esi + 0x34], 0
je 0x4274cb
push 0x42
push dword [esi + 0x34]
push dword [esi + 0x20]
call sub.KERNEL32.dll_GlobalReAlloc
mov dword [esi + 0x20], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [esi + 0x24], eax
push 0
push dword [esi + 0x34]
push dword [esi + 0x24]
push dword [esi + 0xc]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x4274bc
mov eax, 0
jmp 0x4274cb
mov dword [esi + 0x34], eax
push eax
push dword [esi + 0x24]
push dword [ebp + 8]
call fcn.004274e1
cmp eax, 1
jne 0x4274dc
cmp byte [esi + 0x43], 1
jne 0x4274dc
push esi
call fcn.00426c90
pop esi
leave
ret 4

Function at 0x4274e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
je 0x427537
cmp dword [esi + 0x8d], 3
jne 0x427523
cmp dword [esi + 0x95], 0
jne 0x427523
push 4
push 0x1000
push dword [esi + 0x2c]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x95], eax
push dword [esi + 0x2c]
pop dword [esi + 0x99]
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jbe 0x427537
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x38]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jne 0x427549
mov dword [esi + 0x75], 1
cmp dword [esi + 0x8d], 2
jne 0x42756c
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6d]
call sub.KERNEL32.dll_WriteFile
push eax
jmp 0x42761f
cmp dword [esi + 0x8d], 3
jne 0x42761f
mov eax, dword [esi + 0x9d]
add eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x99]
ja 0x427593
cmp dword [esi + 0x95], 0
jne 0x4275ed
shl eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
cmp dword [esi + 0x95], 0
je 0x4275db
push dword [esi + 0x9d]
push dword [ebp - 4]
push dword [esi + 0x95]
call fcn.0042e300
push 0x8000
push 0
push dword [esi + 0x95]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp - 4]
pop dword [esi + 0x95]
push dword [ebp - 8]
pop dword [esi + 0x99]
cmp dword [esi + 0x95], 0
je 0x42761f
mov eax, dword [esi + 0x95]
add eax, dword [esi + 0x9d]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0042e300
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
add dword [esi + 0x9d], eax
mov eax, 1
cmp eax, 1
jne 0x42763b
mov eax, dword [ebp - 0xc]
add dword [esi + 0x38], eax
add dword [esi + 0x4c], eax
cmp dword [esi + 0x71], 0
je 0x42763b
push dword [ebp + 8]
call fcn.00426243
pop eax
pop esi
leave
ret 0xc
Function at 0x427794
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x43b350
call fcn.00428520
mov edi, 0x94
mov eax, edi
call fcn.00428680
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 [0x45393c], ecx
mov eax, dword [esi + 4]
mov dword [0x453948], eax
mov edx, dword [esi + 8]
mov dword [0x45394c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x453940], esi
cmp ecx, 2
je 0x4277f4
or esi, 0x8000
mov dword [0x453940], esi
shl eax, 8
add eax, edx
mov dword [0x453944], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42782f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42782f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x427847
cmp eax, 0x20b
je 0x427834
mov dword [ebp - 0x1c], esi
jmp 0x42785b
cmp dword [ecx + 0x84], 0xe
jbe 0x42782f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x427855
cmp dword [ecx + 0x74], 0xe
jbe 0x42782f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004284ce
pop ecx
test eax, eax
jne 0x427887
cmp dword [0x45392c], 1
jne 0x427874
call fcn.00427c83
push 0x1c
call fcn.00427b0b
push 0xff
call fcn.00427970
pop ecx
pop ecx
call fcn.0042842c
mov dword [ebp - 4], esi
call fcn.00428281
test eax, eax
jge 0x4278a0
push 0x1b
call fcn.0042776f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4557b4], eax
call fcn.0042815f
mov dword [0x453924], eax
call fcn.004280bd
test eax, eax
jge 0x4278c6
push 8
call fcn.0042776f
pop ecx
call fcn.00427e8a
test eax, eax
jge 0x4278d7
push 9
call fcn.0042776f
pop ecx
push 1
call fcn.004279a0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4278ed
push eax
call fcn.0042776f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00427e2d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42790e
movzx eax, word [ebp - 0x40]
jmp 0x427911
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040621b
Function at 0x427a0a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x45397c], esi
push edi
jne 0x427a2a
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 [0x453978], esi
mov byte [0x453974], al
jne 0x427a90
mov ecx, dword [0x4557a8]
test ecx, ecx
je 0x427a71
mov eax, dword [0x4557a4]
sub eax, 4
cmp eax, ecx
jmp 0x427a6a
mov eax, dword [eax]
test eax, eax
je 0x427a5c
call eax
mov eax, dword [0x4557a4]
sub eax, 4
cmp eax, dword [0x4557a8]
mov dword [0x4557a4], eax
jae 0x427a54
mov eax, 0x441024
mov esi, 0x44102c
cmp eax, esi
mov edi, eax
jae 0x427a90
mov eax, dword [edi]
test eax, eax
je 0x427a89
call eax
add edi, 4
cmp edi, esi
jb 0x427a81
mov eax, 0x441030
mov esi, 0x441038
cmp eax, esi
mov edi, eax
jae 0x427aaf
mov eax, dword [edi]
test eax, eax
je 0x427aa8
call eax
add edi, 4
cmp edi, esi
jb 0x427aa0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x427ac9
push dword [ebp + 8]
mov dword [0x45397c], 1
call fcn.00427970
pop ebp
ret

Function at 0x427b0b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x44fb90]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44fa60]
je 0x427b42
inc eax
cmp eax, 0x13
jb 0x427b33
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44fa60]
jne 0x427c65
mov eax, dword [0x45392c]
cmp eax, 1
je 0x427c40
cmp eax, edx
jne 0x427b72
cmp dword [0x44fa58], 1
je 0x427c40
cmp ecx, 0xfc
je 0x427c65
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427ba8
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00428880
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00428ab0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x427bdc
mov eax, edi
push eax
call fcn.00428ab0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b768
push edi
call fcn.00428980
add esp, 0x10
push edi
call fcn.00428ab0
push dword [esi + 0x44fa64]
mov ebx, eax
call fcn.00428ab0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00428680
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00428880
push edi
push ebx
call fcn.00428890
push 0x43b748
push ebx
call fcn.00428890
push dword [esi + 0x44fa64]
push ebx
call fcn.00428890
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00428779
add esp, 0x2c
jmp 0x427c65
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x44fa64]
push dword [esi]
call fcn.00428ab0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00428b6c
add ebp, 0x90
leave
ret