joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a064
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a0bd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a064
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a073
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043fd16
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003a0c4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10020f3a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a163
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0a9
call 0x1003a110
loope 0x1003a106
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a160
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1003a171
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003a124
cmp eax, ecx
ja 0x1003a124
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1ae
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1a4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021419
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003a073
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a0bd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a064
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a073
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043fd16
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003a0c4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10020f3a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a163
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0a9
call 0x1003a110
loope 0x1003a106
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a160
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1003a171
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003a124
cmp eax, ecx
ja 0x1003a124
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1ae
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1a4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021419
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4800b8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push 0x47fce4
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], 0x4800ac
mov dword [ebp - 0xc8], 0x480094
mov dword [ebp - 0xc4], 0x48008c
mov dword [ebp - 0xc0], 0x480078
mov dword [ebp - 0xbc], 0x480070
mov dword [ebp - 0xb8], 0x48005c
mov dword [ebp - 0xb4], 0x480054
mov dword [ebp - 0xb0], 0x48003c
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], 0x480028
mov dword [ebp - 0xa4], 0x48001c
mov dword [ebp - 0xa0], 0x480004
mov dword [ebp - 0x9c], 0x47fff8
mov dword [ebp - 0x98], 0x47ffe0
mov dword [ebp - 0x94], 0x47ffd4
mov dword [ebp - 0x90], 0x47ffb8
mov dword [ebp - 0x8c], 0x47ffac
mov dword [ebp - 0x88], 0x47ff94
mov dword [ebp - 0x84], 0x47ff84
mov dword [ebp - 0x80], 0x47ff68
mov dword [ebp - 0x7c], 0x47ff54
mov dword [ebp - 0x78], 0x47ff3c
mov dword [ebp - 0x74], 0x47ff2c
mov dword [ebp - 0x70], 0x47ff10
mov dword [ebp - 0x6c], 0x47ff00
mov dword [ebp - 0x68], 0x47fee4
mov dword [ebp - 0x64], 0x47fed0
mov dword [ebp - 0x60], 0x47feb0
mov dword [ebp - 0x5c], 0x47fea4
mov dword [ebp - 0x58], 0x47fe8c
mov dword [ebp - 0x54], 0x47fe74
mov dword [ebp - 0x50], 0x47fe50
mov dword [ebp - 0x4c], 0x47fe40
mov dword [ebp - 0x44], 0x47fe2c
mov dword [ebp - 0x3c], 0x47fe20
mov dword [ebp - 0x38], 0x47fe08
mov dword [ebp - 0x34], 0x47fdf8
mov dword [ebp - 0x30], 0x47fddc
mov dword [ebp - 0x2c], 0x47fdcc
mov dword [ebp - 0x28], 0x47fdb0
mov dword [ebp - 0x24], 0x47fda4
mov dword [ebp - 0x20], 0x47fd8c
mov dword [ebp - 0x1c], 0x47fd80
mov dword [ebp - 0x18], 0x47fd68
mov dword [ebp - 0x14], 0x47fd5c
mov dword [ebp - 0x10], 0x47fd44
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402df9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push dword [0x41bd10]
call sub.USER32.dll_GetDC
mov dword [ebp - 0x14], eax
push dword [0x41bd18]
push dword [ebp - 0x14]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.GDI32.dll_GetTextExtentPoint32A
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push dword [ebp - 8]
pop dword [ebp - 0x24]
push dword [ebp - 4]
pop dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
push dword [ebp + 8]
push 0xffffffffffffffeb
push dword [0x41bd10]
call sub.USER32.dll_SetWindowLongA
add dword [ebp - 0x10], 8
add dword [ebp - 0xc], 8
add dword [ebp - 8], 2
add dword [ebp - 4], 2
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [0x41bd10]
call sub.USER32.dll_MoveWindow
push 4
push dword [0x41bd10]
call sub.USER32.dll_ShowWindow
push 0
push 0
push dword [0x41bd10]
call sub.USER32.dll_InvalidateRect
push dword [0x41bd10]
call sub.USER32.dll_UpdateWindow
push dword [ebp - 0x14]
push dword [0x41bd10]
call sub.USER32.dll_ReleaseDC
leave
ret 4

Function at 0x403882
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
cmp dword [0x41a172], 0
jne 0x403895
leave
ret 4
lea eax, [ebp - 0x18]
push eax
push dword [0x41a004]
call sub.USER32.dll_GetWindowRect
push 5
call sub.USER32.dll_GetSystemMetrics
cmp dword [ebp + 8], 1
jne 0x4038b4
add dword [ebp - 0x14], eax
shl eax, 1
mov dword [ebp - 4], eax
push 0xf
call sub.USER32.dll_GetSystemMetrics
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
sub dword [ebp - 8], 2
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00402b32
add dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
jne 0x4038e7
mov eax, dword [ebp - 0xc]
sub dword [ebp - 0x14], eax
push dword [ebp - 8]
pop dword [ebp - 0xc]
push 6
call sub.USER32.dll_GetSystemMetrics
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x10], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x18]
push dword [ebp - 8]
pop dword [ebp - 0x10]
cmp dword [ebp + 8], 0
jne 0x403972
mov eax, 0
or eax, 0x80000000
push 0
push dword [section..data]
push 0
push dword [0x41a004]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 0x41a185
push 0x41a17e
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x41bd08], eax
push 0x403dc1
push 0xfffffffffffffffc
push dword [0x41bd08]
call sub.USER32.dll_SetWindowLongA
mov dword [0x41bd0c], eax
push 4
push dword [0x41bd08]
call sub.USER32.dll_ShowWindow
jmp 0x40398b
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [0x41bd08]
call sub.USER32.dll_MoveWindow
leave
ret 4
Function at 0x408ebb
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push dword [0x41a3e4]
call fcn.004071c2
push dword [0x41a33f]
call fcn.004071c2
push dword [0x41a33b]
call fcn.004071c2
push dword [0x41a3c4]
call fcn.004071c2
cmp dword [0x41bd28], 1
jne 0x408f09
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov dword [0x41a3ac], 1
mov dword [0x41a3b0], 0
mov dword [0x41a56e], 0
push 0x4012b7
push 0xfffffffffffffffc
push dword [0x41a004]
call sub.USER32.dll_SetWindowLongA
push dword [0x41a401]
push dword [0x41a3e4]
call sub.GDI32.dll_SetStretchBltMode
push dword [0x41a333]
push dword [0x41a337]
call fcn.0040320d
push dword [0x41a415]
push dword [0x41a3e4]
call sub.GDI32.dll_SelectObject
push eax
call sub.GDI32.dll_DeleteObject
push dword [0x41a3e4]
call sub.GDI32.dll_DeleteDC
call sub.USER32.dll_GetForegroundWindow
or eax, eax
je 0x408fc8
cmp eax, dword [0x41a004]
je 0x408fc8
cmp eax, dword [0x41a251]
je 0x408fc8
mov dword [0x41a56a], 0
mov dword [0x41a566], 0
cmp dword [0x41a3b8], 5
jb 0x408fc8
cmp dword [0x41a3b8], 7
ja 0x408fc8
push 0
push 0x409420
call sub.USER32.dll_EnumWindows
push dword [0x41a004]
call fcn.00402edb
cmp dword [0x41a57a], 1
jne 0x408feb
call fcn.00403828
mov dword [0x41a57a], 0
cmp dword [0x41a582], 1
jne 0x409007
cmp dword [0x41a586], 0
jne 0x409007
mov dword [0x41a586], 1
cmp dword [0x41a2d9], 0
jne 0x409073
mov dword [0x41a2dd], 0
mov eax, dword [0x41a566]
cmp dword [0x41a56a], eax
jae 0x409055
mov ebx, dword [0x41a56a]
shl ebx, 4
push dword [ebx + 0x41c74b]
push dword [ebx + 0x41c747]
push dword [ebx + 0x41c743]
push dword [ebx + 0x41c73f]
call sub.USER32.dll_SendMessageA
inc dword [0x41a56a]
jmp 0x4090b1
cmp dword [0x41a56a], eax
jne 0x4090b1
mov dword [0x41a56a], 0
mov dword [0x41a566], 0
jmp 0x4090b1
push 1
push dword [0x41a249]
push dword [0x41a239]
push dword [0x41a333]
push dword [0x41a241]
call fcn.004094b2
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
push 5
push dword [0x41a004]
call sub.USER32.dll_SetTimer
mov dword [0x41bd2c], 1
pop ebx
leave
ret
Function at 0x40bcaa
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 + 0x1c], 0
je 0x40bcd3
push 0x4000
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.KERNEL32.DLL_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x40bd07
inc eax
mov dword [esi + 0x20], eax
push 4
push 0x1000
push dword [esi + 0x20]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [esi + 0x1c], eax
push dword [esi + 0x1c]
push dword [esi + 0x20]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi]
call sub.GDI32.dll_DeleteObject
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 1
push 0
push 0
push 0xce
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x24], eax
push 0
push 0xffffffffffffffff
push 0xbb
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], 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 + 0x28]
mov dword [esi + 0x28], 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 + 0x24]
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x40ccf4
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 + 0x1c], 0
je 0x40cd1d
push 0x4000
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.KERNEL32.DLL_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x40cd51
inc eax
mov dword [esi + 0x20], eax
push 4
push 0x1000
push dword [esi + 0x20]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [esi + 0x1c], eax
push dword [esi + 0x1c]
push dword [esi + 0x20]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi]
call sub.GDI32.dll_DeleteObject
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 1
push 0
push 0
push 0x147
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x24], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x40e784
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push esi
mov byte [ebp - 0x404], 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 0x41a162
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.004105d8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041068c
cmp dword [ebp - 4], 0
jbe 0x40e7df
cmp dword [ebp - 4], eax
jne 0x40e7d8
mov eax, 0x41a14f
jmp 0x40e7e4
mov eax, 0x41a156
jmp 0x40e7e4
mov eax, 0x41a162
push eax
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 1
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 0x40a3b7
push dword [0x41a004]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x40e829
mov eax, 0
jmp 0x40e84b
push dword [0x41bd78]
push 0xf
call fcn.0040554c
push 0
push 0
push eax
push dword [0x41a004]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop esi
leave
ret 8
Function at 0x40ee3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], 0
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 [ebp + 0xc]
inc dword [eax]
inc dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
je 0x40eeb7
leave
ret 8
cmp dword [ebp - 4], 0xa
jae 0x40eebf
jmp 0x40ee6e
leave
ret 8

Function at 0x40eec3
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 0x40ef05
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 [0x41aded]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ef40
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 0x40ef36

Function at 0x40f5a4
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, 0xffffff78
push 0x75
lea eax, [ebp - 0x85]
push eax
push dword [ebp + 8]
call fcn.00410720
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x40f66f
mov dword [ebp - 0x79], eax
cmp byte [ebp - 0x39], 0
jne 0x40f624
push dword [ebp - 0x85]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40f61b
push dword [ebp - 0x85]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x40f60f
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x85]
push eax
call fcn.00410720
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x40f61e
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0x81]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
push dword [ebp - 0x79]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x40f676
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x79]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x40f66d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40f66d
mov dword [ebp - 0x75], 0
jmp 0x40f676
mov dword [ebp - 0x75], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x85]
push eax
call fcn.00410720
leave
ret 4
Function at 0x40f68b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push 0x75
lea eax, [ebp - 0x75]
push eax
push dword [ebp + 8]
call fcn.00410720
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_lstrlenA
push 0
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x69]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x40f6fc
mov dword [ebp - 0x3b], 0
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov word [ebp - 0x3d], 0
push 0x200
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2e], 0
mov dword [ebp - 0x2d], 0
jmp 0x40f703
mov dword [ebp - 0x65], 0
mov dword [ebp - 0x14], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x75]
push eax
call fcn.00410720
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push 0x75
lea eax, [ebp - 0x75]
push eax
push dword [ebp + 8]
call fcn.00410720
lea eax, [ebp - 0x45]
push eax
push 0x4004667f
push dword [ebp - 0x69]
call sub.WSOCK32.dll_ioctlsocket
push dword [ebp - 0x45]
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x59], eax
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0x55], eax
push 0
push dword [ebp - 0x45]
push dword [ebp - 0x55]
push dword [ebp - 0x69]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x40f7c4
mov dword [ebp - 0x45], eax
cmp byte [ebp - 0x37], 0
jne 0x40f780
lea eax, [ebp - 0x75]
push eax
call fcn.0040fb24
jmp 0x40f7b2
cmp byte [ebp - 0x2e], 0
je 0x40f792
cmp byte [ebp - 0x2e], 1
jne 0x40f7a9
cmp byte [ebp - 0x30], 1
jne 0x40f7a9
cmp dword [ebp - 4], 2
jne 0x40f7b2
push dword [ebp - 0x45]
push dword [ebp - 0x55]
lea eax, [ebp - 0x75]
push eax
call fcn.0040fff0
jmp 0x40f7b2
lea eax, [ebp - 0x75]
push eax
call fcn.0040fa99
push dword [ebp - 0x55]
call sub.KERNEL32.DLL_GlobalUnlock
push dword [ebp - 0x59]
call sub.KERNEL32.DLL_GlobalFree
jmp 0x40f7cb
mov dword [ebp - 0x65], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x75]
push eax
call fcn.00410720
leave
ret 4
Function at 0x40fb24
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb88
push edi
push esi
push 0x75
lea eax, [ebp - 0x475]
push eax
push dword [ebp + 8]
call fcn.00410720
lea edi, [ebp - 0x400]
add edi, dword [ebp - 0x43b]
mov esi, dword [ebp - 0x455]
jmp 0x40fd50
cmp byte [esi], 0xa
jne 0x40fd43
cmp byte [esi - 2], 0xa
jne 0x40fd43
mov cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
mov byte [edi], 0
mov byte [ebp - 0x437], 1
mov dword [ebp - 0x449], esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x475]
push eax
call fcn.0040f975
lea eax, [ebp - 0x414]
push eax
call fcn.00410060
mov word [ebp - 0x43d], ax
cmp byte [ebp - 0x414], 0x33
jne 0x40fc68
mov byte [ebp - 0x435], 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
jne 0x40fbda
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 0x40fc1b
mov al, 0x20
mov ecx, 0x200
repe scasb al, byte es:[edi]
dec edi
jmp 0x40fc23
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
je 0x40fc32
cmp byte [edi], 0xd
je 0x40fc32
cmp byte [edi], 0xa
jne 0x40fc1d
lea eax, [ebp - 0x475]
push eax
call fcn.0040f7dd
lea eax, [ebp - 0x200]
push eax
pop dword [ebp - 0x418]
lea eax, [ebp - 0x475]
push eax
call fcn.0040f817
lea eax, [ebp - 0x475]
push eax
call fcn.0040f5a4
jmp 0x40fd3f
cmp word [ebp - 0x43d], 0xcc
je 0x40fc7c
cmp byte [ebp - 0x414], 0x34
jne 0x40fc8d
lea eax, [ebp - 0x475]
push eax
call fcn.0040f7dd
jmp 0x40fd3f
cmp byte [ebp - 0x414], 0x32
je 0x40fca3
cmp byte [ebp - 0x414], 0x35
jne 0x40fd33
push str.multipart_
lea eax, [ebp - 0x400]
push eax
call fcn.0040fd6f
cmp eax, 0
jbe 0x40fcd5
mov byte [ebp - 0x42f], 1
mov byte [ebp - 0x42e], 1
lea eax, [ebp - 0x475]
push eax
call fcn.0040fa99
jmp 0x40fd3f
push str.accept_ranges:
lea eax, [ebp - 0x400]
push eax
call fcn.0040fd6f
cmp eax, 0
ja 0x40fcf6
cmp word [ebp - 0x43d], 0xce
jne 0x40fcff
mov byte [ebp - 0x42f], 1
jmp 0x40fd1c
push str.Content_Range:
lea eax, [ebp - 0x400]
push eax
call fcn.0040fd6f
cmp eax, 0
jbe 0x40fd1c
mov byte [ebp - 0x42f], 1
cmp dword [ebp - 0x404], 2
jne 0x40fd31
lea eax, [ebp - 0x475]
push eax
call fcn.0040ff2b
jmp 0x40fd3f
lea eax, [ebp - 0x475]
push eax
call fcn.0040f7dd
jmp 0x40fd58
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
inc dword [ebp - 0x43b]
dec eax
or eax, eax
jne 0x40fb57
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x475]
push eax
call fcn.00410720
pop esi
pop edi
leave
ret 4