joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c4b03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c4aea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cb4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50b84e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004cbde0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xaa3eac
call fcn.004fc114
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4cb553
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004fc114
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4cb54c
push 0
mov ecx, eax
call fcn.004c2630
mov dword [esi + 0xc], eax
jmp 0x4cb555
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4cb555
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4f27f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50c840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004e7749
mov eax, dword [0xaa77f0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004e767b
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004f3330
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4f2897
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4f288e
cmp al, 0xff
je 0x4f288e
dec al
mov byte [ecx], al
jmp 0x4f2897
push ecx
call fcn.004fc13d
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4f28c8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4f28bf
cmp al, 0xff
je 0x4f28bf
dec al
mov byte [ecx], al
jmp 0x4f28c8
push ecx
call fcn.004fc13d
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4fe7a4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fe7dc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004fc82e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004fc806
jmp 0x4fe7e8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ffe92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ffed4
call fcn.0050598e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ffed4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ffecb
xor eax, eax
jmp 0x4ffedc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ffee2
pop edi
pop esi
pop ebx
ret 4

Function at 0x505ebe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x505eec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x505f0a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00505e24
jmp 0x505f0a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x505f0a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00505e24
test edi, edi
mov eax, edi
jne 0x505ef4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40859f
Capabilities:
Encode data using xor

Disassembly:
xor edi, dword [ebx + 0x6f721347]
call 0x40845d
xor ecx, ecx
sub ecx, 0xffffffaf
call 0x40859f
rcr byte [esi - 0x7f], 0x76
push cs
mov ecx, dword [ecx]
pop ecx
jecxz 0x40852d
xor dword [esi + 0xe], 0xe359098b
sub esi, 0xfffffffc
out dx, al
cld
loop 0x4085a2
ja fcn.00408591
fninit
mov ecx, dword [ecx]
cmp dword [edx + 0x6e], ebp
cmp byte [ecx + 0x69590087], bl
push 0xb1d205d9
lahf
sub byte [ebx], 0xcb
test byte [esi - 0x9453aed], bh
cmc
fucompi st(2)
jne 0x40862c
iretd
stosb byte es:[edi], al
xchg ebx, eax
ljmp 0xe2d2
or byte [ebx + ebp*2], bl
push esi
push es
mov ecx, 0x6eb21b00
outsb dx, byte [esi]
salc
popal
push 0xffffffffffffffd1
mov ecx, dword [ecx]
xor dword [eax + edi*8 - 0x1c48f9c5], edx
inc ebp
lds ecx, cs:[esi + esi*8 + 0x81b5b8c]
pop ecx
jecxz 0x4085f1
int 0xd
mov bl, 0xe3
and cl, bl
mov byte [ebx - 0x244c730a], cl
pop ecx
or dword [ebx - 0x74f6b625], esp
popal
push es
xchg byte [ebx], al
je 0x408644
into
mov dword [esi + 0x7066e061], ecx
jns 0x4086a2
loope 0x4085fe
adc ah, byte [eax + 0x6a]
insd dword es:[edi], dx
arpl word [ecx - 0x4b], cx
fsub qword [ecx - 0x40]
inc esi
jmp [eax - 0x5a]
cmpsb byte [esi], byte es:[edi]
imul esi, esp, 0x2dcf243f
loop 0x408635
test byte [0x59cf9bc7], bl
cmpsd dword [esi], dword es:[edi]
fistp word [ecx + 0xf]
mov ch, 0xdd
dec edi
shrd ebp, ebx, cl
pop edi
or dh, byte [ebp - 0x236a8f1d]
jo 0x408656
fmul qword [0x6b6a8cf6]
inc edi
shld dword [ecx + edi + 0x31], esi, cl
jmp 0x4086db
mov ah, 0xc4
sbb al, 0x5e
xor eax, 0x89819f5f
pop edi
lahf
or dword [ecx + 0xcfe03a2], 0x7b98a4e2
invalid
add byte [0xaa430], bh
jge 0x408744
mov esp, dword [eax]
adc byte [ebx + 0x7b680c45], cl
stc
inc eax
add byte [edx + 0x43e850], dl
add byte [eax], al
xor ecx, 0xc
pop ebp
ret 0x2b0c
cmp eax, 0xa3280
jge 0x408764
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0x40f993
push ecx
push edx
call fcn.00408780
add esp, 0xc
pop ebp
ret 0xc
mov edi, dword [esi + 0x3d80050c]
cmc
jmp dword [eax]
Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
sar ecx, cl
inc eax
push esi
jg 0x409003
setge byte [edi]
lodsd eax, dword [esi]
add byte [edi + edi*4 + 0xf0ff983], bh
xchg dword [eax], eax
add eax, dword [eax]
add byte [ebx], dh
ror byte [edi], cl
fst qword [eax]
xchg ecx, eax
inc eax
cdq
push edx
xchg ebp, eax
clc
nop
adc byte [0x330875c2], bh
ror byte [ebx - 0x1e7cc7b2], cl
add ch, byte [eax]
stc
dec esp
sete dl
cmp eax, edx
je 0x408e31
mov ecx, dword [esi + 0x40]
lea edi, [edi]
cld
push 0xffffffffffffffa4
into
push 8
pushfd
invalid
xor eax, eax
pop esi
mov esp, ebp
pop ebp
push 0x6e24002c
mov dword [esi + 0x38], eax
xor ebx, ecx
and byte [ebx + 0xc595daa], cl
add byte [ebx - 0x36ccf78b], cl
mov edx, dword [esi + 0x38]
xor dword [ebx], 4
jmp 0x408e4f
cmp byte [ebx - 0x514fbcd], al
add al, 0xf
xchg esp, eax
jno 0x408e95
sal dword [esi + eax*8 + 0x54], 0x67
add al, 0x65
push ebp
in al, 0x6a
pop esi
push edx
push 1
inc edi
call dword [ebx - 0xaf06b3]
and dword [edx - 0x7cffbf3f], edi
invalid
and al, 0xfb
mov dword [ebx + 0x5ec03138], edx
mov esp, ebp
pop ebp
ret 0xc
push ebx
stc
add byte [ebx], ch
add byte [eax], al
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x771378bd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xb814ff9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4028c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 8]
mov word [eax + 8], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xa]
mov word [eax + 0xa], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xc]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xe]
mov word [eax + 0xe], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x10]
mov word [eax + 0x10], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x12]
mov word [eax + 0x12], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x20]
mov word [eax + 0x20], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x22]
mov word [eax + 0x22], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x24]
mov word [eax + 0x24], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x26]
mov word [eax + 0x26], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x28]
mov word [eax + 0x28], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x38
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00401185
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x44
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x41f704
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x407e40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a0]
mov dword [edx + 0x2c], eax
mov dword [ebp - 0x198], 0
jmp 0x407ea6
mov ecx, dword [ebp - 0x198]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
cmp edx, dword [ebp + 8]
jge 0x407ec9
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x198]
mov dword [ecx + edx*4], 0
jmp 0x407e97
mov eax, dword [ebp + 8]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1a4]
mov dword [ecx + 0x30], edx
mov dword [ebp - 0x198], 0
jmp 0x407f08
mov eax, dword [ebp - 0x198]
add eax, 1
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
cmp ecx, dword [ebp + 8]
jge 0x407f2b
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x198]
mov dword [eax + ecx*4], 0
jmp 0x407ef9
mov edx, dword [ebp + 0xc]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a8]
mov dword [eax + 0x34], ecx
mov dword [ebp - 0x198], 0
jmp 0x407f6a
mov edx, dword [ebp - 0x198]
add edx, 1
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
cmp eax, dword [ebp + 0xc]
jge 0x407f8d
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x198]
mov dword [edx + eax*4], 0
jmp 0x407f5b
mov dword [ebp - 0x198], 0
jmp 0x407fa8
mov ecx, dword [ebp - 0x198]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
cmp edx, dword [ebp + 8]
jge 0x407fca
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x20
call fcn.004089f0
jmp 0x407f99
push 0x425540
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1ac]
call fcn.00408493
mov ecx, dword [ebp - 0x1ac]
call fcn.00408574
mov word [ebp - 0x19c], 0x202
lea edx, [ebp - 0x194]
push edx
mov ax, word [ebp - 0x19c]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408458
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
push 0x407360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret

Function at 0x408493
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5dec
call fcn.0041d390
mov dword [ebp - 0x5dec], ecx
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x5de4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 8], 0
jne 0x4084db
mov ecx, dword [ebp - 0x5dd0]
shl ecx, 1
mov edx, dword [ebp - 0x5dec]
mov dword [edx + 0x38], ecx
jmp 0x4084e7
mov eax, dword [ebp - 0x5dec]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x5dec]
mov eax, dword [ebp - 0x5dd0]
mov dword [edx + 0x3c], eax
push 0xa
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x5dec]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x5de8], 0
jmp 0x408528
mov edx, dword [ebp - 0x5de8]
add edx, 1
mov dword [ebp - 0x5de8], edx
mov eax, dword [ebp - 0x5dec]
mov ecx, dword [ebp - 0x5de8]
cmp ecx, dword [eax + 0x38]
jge 0x40856e
mov edx, dword [ebp - 0x5de8]
lea eax, [ebp + edx*4 - 0x2ee0]
push eax
push 0
mov ecx, dword [ebp - 0x5dec]
push ecx
push 0x4076b2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x5de8]
mov dword [ebp + edx*4 - 0x5dc0], eax
jmp 0x408519
mov esp, ebp
pop ebp
ret 4

Function at 0x408574
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5dc8
call fcn.0041d390
mov dword [ebp - 0x5dc8], ecx
push 0xa
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x5dc8]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x5dc4], 0
jmp 0x4085b9
mov edx, dword [ebp - 0x5dc4]
add edx, 1
mov dword [ebp - 0x5dc4], edx
mov eax, dword [ebp - 0x5dc8]
mov ecx, dword [ebp - 0x5dc4]
cmp ecx, dword [eax + 0x3c]
jge 0x4085ff
mov edx, dword [ebp - 0x5dc4]
lea eax, [ebp + edx*4 - 0x2ee0]
push eax
push 0
mov ecx, dword [ebp - 0x5dc8]
push ecx
push 0x407941
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x5dc4]
mov dword [ebp + edx*4 - 0x5dc0], eax
jmp 0x4085aa
mov esp, ebp
pop ebp
ret
Function at 0x409e19
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00409dd2
add esp, 8
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, 0x4258c0
call fcn.0040a3c0
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov byte [ebp - 0xc], 1
push 0
call fcn.0040a350
add esp, 4
fstp dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x4258c0
call fcn.00404890
push eax
lea ecx, [ebp - 8]
call fcn.0040db10
and eax, 0xff
test eax, eax
je 0x409eb6
lea ecx, [ebp - 8]
call fcn.0040a3f0
fld dword [ebp - 0x10]
fsub dword [eax + 4]
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1388
jge 0x409eb6
lea ecx, [ebp - 8]
call fcn.0040a3f0
cmp dword [eax + 8], 3
jl 0x409eb6
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14], 0xffffffff
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
and eax, 0xff
test eax, eax
je 0x409eda
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 0xffffffff
jne 0x409f23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
mov eax, 1
test eax, eax
je 0x409efe
mov dword [ebp - 0x2c], 0
jmp 0x409f12
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Socket_Accepting_Fail____d_n
call fcn.004045e0
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x409f51
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e2e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
jmp 0x40e315
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jge 0x40e398
mov ecx, dword [ebp - 0xc]
add ecx, 1
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
xor ebx, ebx
mov bl, byte [edx + ecx]
xor eax, ebx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
jmp 0x40e30c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ceb
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0x160
lea ecx, [ebp - 0x160]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
mov esp, ebp
pop ebp
ret 8

Function at 0x41268f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x168], ecx
push 0x4001
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x424ca4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x4126e9
mov ecx, dword [ebp - 0x164]
push ecx
push 0
push 0x1109
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret
Function at 0x419157
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e8e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x140], ecx
mov eax, dword [ebp - 0x140]
movsx ecx, byte [eax + 0xc8]
cmp ecx, 0xffffffff
je 0x4191c3
mov edx, 1
test edx, edx
je 0x4191a9
mov dword [ebp - 0x144], 0
jmp 0x4191bc
push str.No_file_opened._n
call fcn.004045e0
add esp, 4
mov dword [ebp - 0x144], eax
xor al, al
jmp 0x419351
mov eax, dword [ebp - 0x140]
cmp dword [eax + 0x48], 0
jne 0x4191f5
mov ecx, dword [ebp - 0x140]
call fcn.00418ccc
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x50]
cmp edx, dword [eax + 0x14]
je 0x4191f5
push 0xffffffffffffff9a
mov ecx, dword [ebp - 0x140]
call fcn.0041857b
mov ecx, dword [ebp - 0x140]
call fcn.00418ccc
xor ecx, ecx
mov cx, word [eax + 0xe]
cmp ecx, 8
jne 0x41921d
mov edx, dword [ebp - 0x140]
add edx, 0x10
push edx
call sub.zlib1.dll_inflateEnd
add esp, 4
mov byte [ebp - 0x14], 1
cmp dword [ebp + 8], 0
je 0x419322
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0041b480
lea eax, [ebp - 0x134]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x124]
call fcn.0041b830
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x12c]
call fcn.0041b830
mov byte [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x140]
call fcn.00418ccc
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x150]
call fcn.004068d8
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x128]
call fcn.0041b830
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CFile::SetStatus
mov ecx, dword [ebp - 0x140]
call fcn.00418ccc
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x14], al
jmp 0x41931b
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x140]
add ecx, 0xcc
call fcn.00401c6f
mov ecx, dword [ebp - 0x140]
mov byte [ecx + 0xc8], 0
mov ecx, dword [ebp - 0x140]
add ecx, 0x54
call fcn.004010ae
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4