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

Disassembly:
or edx, dword [eax - 8]
pop esi
div byte [ebp + 0x5e3b65b]
movsb byte es:[edi], byte [esi]
jb 0x42f48a
or esp, esi
out 0xd7, al
out 0xe6, al
xlatb
xchg al, ah
push esi
dec edi
lds edi, [ebx]
pop ds
cmp eax, 0x98e6c31c
sti
insd dword es:[edi], dx
movsb byte es:[edi], byte [esi]
xor dl, byte [edx + 0x69]
xor eax, 0x6b348591
xchg ecx, eax
test dword [ebx + ebp*2], esi
shl byte [eax + 0x57], 0xe4
test eax, 0xaee5fe0d
loopne 0x42f48e
rcr byte [ebp + esi - 0x154b1ff8], cl
popal
dec edi
out 0xc3, al
outsd dx, dword [esi]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor byte [edi], dl
push esi
push edi
cmp dword [ebx + 0x2a12a41f], ecx
test eax, 0xe62e36a1
aad 0xd2
pop ss
adc eax, 0x64049490
nop
xchg esp, eax
add al, 0x64
outsd dx, dword [esi]
adc al, 0x19
out dx, eax
fcomp qword [ebp - 0x6d]
xlatb
fisub word [edx - 0x19904beb]
mov byte [ecx + 0x4a5a0ebe], bl
push cs
pop edx
dec edx
jb 0x42f4dc
jb 0x42f4dc
test dword [ebx], ebp
les ebx, [edi + 0x56463e93]
cld
cmp dword [ebp + 0x56], ebp
in al, 0xe9
or ah, byte [edi + 7]
mov eax, dword [0x97dd1424]
rol dword [ebx + 0x2c60b86b], 0xa7
insb byte es:[edi], dx
inc esi
or cl, byte [0xd3455128]
sahf
pop ds
jge 0x42f4a4
xor al, 0x58
jns 0x42f536
aad 0x8b
lahf
out 0x37, eax
scasb al, byte es:[edi]
pop ebp
loope 0x42f4d4
jge 0x42f4ed
xor al, 0x18
and bl, byte [ebx]
nop
adc al, 0x6d
mov al, 0x7a
push esi
sbb byte [edi + 0x6b09d991], ah
cli
or dword [ebx - 6], ebp
jge 0x42f4e9
lea ebx, [edx]
hlt

Function at 0x4bc999
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c53d8
cmp edx, dword [eax]
je 0x4bc9bb
add eax, 8
inc ecx
cmp eax, 0x4c5468
jl 0x4bc9ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c53d8]
jne 0x4bcae9
mov eax, dword [0x4cad60]
cmp eax, 1
je 0x4bcac3
test eax, eax
jne 0x4bc9ec
cmp dword [0x4c5300], 1
je 0x4bcac3
cmp edx, 0xfc
je 0x4bcae9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bca23
lea eax, [ebp - 0x1a4]
push 0x4c1bb8
push eax
call fcn.004bd380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd810
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bca66
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd810
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1bb4
push edi
call fcn.004bf6e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1b98
push eax
call fcn.004bd380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd390
lea eax, [ebp - 0xa0]
push 0x4c1b94
push eax
call fcn.004bd390
push dword [esi + 0x4c53dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd390
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1b6c
push eax
call fcn.004bf654
add esp, 0x2c
pop edi
jmp 0x4bcae9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c53dc]
push 0
push eax
push dword [esi]
call fcn.004bd810
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]
pop esi
leave
ret
Function at 0x994084
Capabilities:
Encode data using xor

Disassembly:
jmp 0x99408e
pushal
call 0x994094
pop ebp
sub ebp, 0x10
sub ebp, 0x594084
jmp 0x9940aa
mov eax, 0x594084
add eax, ebp
add eax, 0x4c
mov ecx, 0x607
mov edx, 0x301c1d4
xor byte [eax], dl
inc eax
dec ecx
jne 0x9940c1
jmp 0x9940d4
pop edi
sbb dword [edi + 0x5d], ebx
call 0x566e15b1
adc eax, 0xd4d4d42c
xlatb
sbb dword [eax + edx*8 - 0x2c], ebp
aam 0xd4
outsb dx, byte [esi]
cld
aam 0xd4
aam 0x23
xlatb
sbb al, 0x5f
push ebp
fcom st(4)
aam 0xd4
xlatb
adc dword [esp + eax*4 - 0x25853744], eax
aam 0xbc
mov dl, 0x46
sahf
aam 0xd5
clc
invalid
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x626c33f8
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x32177b84
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4087d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.00408570
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x408868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 2
je 0x408864
push 0
mov ecx, dword [ebp - 0x218]
push ecx
push str.Could_not_open_file_mapping_object
push str.ReleaseSharedMemory__
call fcn.004082b0
add esp, 0x10
xor eax, eax
jmp 0x40887a
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret

Function at 0x408a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov byte [0x4127a4], 1
mov dword [0x41279c], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x40e190
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408afa
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.iLogLevel
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x408b10
cmp dword [ebp - 0xc], 1
jne 0x408b10
mov dword [0x41279c], 2
mov esp, ebp
pop ebp
ret

Function at 0x408b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4c0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa5c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, byte [0x4127a4]
test eax, eax
jne 0x408b62
call fcn.00408a80
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41279c]
jle 0x408b74
xor eax, eax
jmp 0x4091bf
mov dword [ebp - 0x18], 0x40e1e8
mov dword [ebp - 0x22c], str.error_writing_to_file:
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x1c], eax
cmp dword [0x4127a0], 0
jne 0x408e6c
xor ecx, ecx
mov word [ebp - 0x648], cx
invalid
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x401a40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x96c]
sub esp, 0x20
test eax, eax
je 0x401b1b
mov eax, dword [eax + 0x2c]
push ebx
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [ebp - 4], 0
jmp 0x401a80
mov ecx, dword [edi + 0x988]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
je 0x401ad2
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
call ebx
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
jne 0x401ab0
cmp dword [ebp - 4], 0x32
jg 0x401ae1
cmp byte [edi + 0x970], 0
jne 0x401a80
cmp byte [edi + 0x970], 0
pop esi
pop ebx
je 0x401afe
mov eax, dword [edi + 0x96c]
mov eax, dword [eax + 0x2c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0x96c]
test ecx, ecx
je 0x401b1b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [edi + 0x96c], 0
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x402030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40204b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402082
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40207e
jmp 0x402070
cmp esi, eax
jae 0x402082
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402070
cmp esi, eax
jb 0x402089
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402d90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a511b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x610044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CCamOperate.0
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x402e03
push 0x1770
push eax
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402dfa
mov eax, dword [esi + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x402e10
push eax
call edi
mov dword [esi + 0x28], ebx
mov byte [ebp - 4], 1
lea edx, [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], bl
lea edi, [esi + 0x30]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [edi]
mov dword [ecx + 4], ecx
mov dword [edi + 4], ebx
cmp eax, dword [edi]
je 0x402e53
lea ecx, [ecx]
mov ebx, dword [eax]
push eax
call fcn.00440697
add esp, 4
mov eax, ebx
cmp ebx, dword [edi]
jne 0x402e40
xor ebx, ebx
mov byte [ebp - 4], 0
mov edi, dword [edi]
push edi
call fcn.00440697
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], 0x10
jb 0x402e7b
mov eax, dword [esi + 4]
push eax
call fcn.00440697
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
je 0x402eb2
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
push edi
push ebx
push 0x1869f
push ebx
push ebx
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push ebx
push esi
push 0x403160
push ebx
mov edi, 1
push ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], edi
call fcn.0057ae6e
mov dword [esi + 0x24], eax
mov dword [esi + 0x7c], 0xffffffff
add esp, 0x18
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x98], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0x94], edi
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4053d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x610044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x218], eax
mov ecx, 0x41
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x114]
mov dword [ebp - 0x21c], 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x22c]
push ecx
push 0
mov dword [ebp - 0x220], edx
push 0
lea edx, [ebp - 0x114]
push edx
inc eax
push eax
mov dword [ebp - 0x228], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4054c0
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x4054aa
mov ebx, dword [ebx + 4]
cmp dword [ebp + eax*4 - 0x110], ebx
je 0x405485
inc eax
cmp eax, ecx
jb 0x405461
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
dec ecx
cmp eax, ecx
jae 0x4054aa
lea ebx, [ebx]
mov ecx, dword [ebp + eax*4 - 0x10c]
mov dword [ebp + eax*4 - 0x110], ecx
mov edx, dword [ebp - 0x114]
inc eax
dec edx
cmp eax, edx
jb 0x405490
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x40557a
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40557a
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x224]
push edx
push esi
push eax
mov ecx, ebx
call fcn.004608dd
cmp eax, 0xffffffff
jne 0x405570
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x40555a
mov ebx, dword [ebx + 4]
jmp 0x405510
cmp dword [ebp + eax*4 - 0x110], ebx
je 0x405534
inc eax
cmp eax, ecx
jb 0x405510
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
dec ecx
cmp eax, ecx
jae 0x40555a
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x10c]
mov dword [ebp + eax*4 - 0x110], ecx
mov edx, dword [ebp - 0x114]
inc eax
dec edx
cmp eax, edx
jb 0x405540
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
mov edx, esi
test eax, eax
je 0x405580
sub edx, eax
jmp 0x405580
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x4055ca
mov ebx, dword [ebx + 4]
nop
cmp dword [ebp + eax*4 - 0x110], ebx
je 0x4055a0
inc eax
cmp eax, ecx
jb 0x405590
jmp 0x4055ca
dec ecx
cmp eax, ecx
jae 0x4055ca
jmp 0x4055b0
mov ecx, dword [ebp + eax*4 - 0x10c]
mov dword [ebp + eax*4 - 0x110], ecx
mov ecx, dword [ebp - 0x114]
inc eax
dec ecx
cmp eax, ecx
jb 0x4055b0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
sub eax, edx
pop ebx
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov dword [edi + 0x2a40], ecx
mov ecx, eax
push esi
mov ebx, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408232
sub ecx, esi
mov esi, ecx
lea ecx, [edi + 0x29e0]
call fcn.00404700
mov eax, ebx
mov dword [edi + 0x29fc], 0x8ca0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408257
sub eax, ecx
mov esi, eax
lea ecx, [edi + 0x2a00]
mov eax, ebx
call fcn.00404700
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408277
sub eax, edx
mov esi, eax
lea ecx, [edi + 0x2a1c]
mov eax, ebx
call fcn.00404700
push 0
push 0
push edi
push 0x4082c0
push 0
push 0
call fcn.0057ae6e
add esp, 0x18
pop esi
mov dword [edi + 0x2a3c], eax
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x40acb0
Capabilities:
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x610044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 6
push 1
xor ebx, ebx
push 2
mov edi, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40adfc
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x1005
push 0xffff
push esi
mov dword [ebp - 0x2c], 0x3e8
call ebx
push 4
lea edx, [ebp - 0x2c]
push edx
push 0x1006
push 0xffff
push esi
call ebx
mov eax, 2
push edi
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x22], ax
call fcn.004402e0
test eax, eax
je 0x40addd
mov ebx, dword [sym.imp.WS2_32.dll_send]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
mov byte [ebp - 0x14], 0x85
xor edi, edi
push 0
mov edx, 5
sub edx, edi
push edx
lea eax, [ebp + edi - 0x14]
push eax
push esi
call ebx
test eax, eax
jle 0x40ad82
add edi, eax
cmp edi, 5
jl 0x40ad63
jmp 0x40ad87
cmp edi, 5
jl 0x40addd
mov ebx, dword [ebp + 0x10]
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
jle 0x40adb5
mov edx, dword [ebp - 0x28]
mov ecx, ebx
push 0
sub ecx, edi
dec ecx
push ecx
add edx, edi
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40adb5
add edi, eax
lea eax, [ebx - 1]
cmp edi, eax
jl 0x40ad93
mov eax, dword [ebp - 0x28]
mov byte [eax + edi], 0
push esi
mov edi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 0x30]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0057a982
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d360
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x41d3a6
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d38f
mov eax, dword [esi + 0x1a8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1a8], 0
mov ecx, esi
pop esi
jmp fcn.0044cdd0
Function at 0x41e6f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x610044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0057da80
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0057da80
push esi
lea edx, [ebp - 0x20c]
push 0x5dbc88
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
mov ecx, 0x5dbc87
lea eax, [ebp - 0x20c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41e770
test dl, dl
je 0x41e76c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41e770
add eax, 2
add ecx, 2
test dl, dl
jne 0x41e750
xor eax, eax
jmp 0x41e775
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41e78a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x41e83e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x41e7c6
cmp eax, 3
je 0x41e7c6
cmp eax, 0xb7
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.0057be30
add esp, 8
test eax, eax
jne 0x41e7da
or eax, 0xffffffff
jmp 0x41e7dd
sub eax, esi
inc eax
dec eax
push eax
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0057bff1
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e800
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041e6f0
add esp, 8
test al, al
je 0x41e82c
push 0
lea edx, [ebp - 0x20c]
push edx
call edi
test eax, eax
jne 0x41e83e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a982
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0057a982
mov esp, ebp
pop ebp
ret
Function at 0x424d30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x968]
sub esp, 0x20
test eax, eax
je 0x424e0b
mov eax, dword [eax + 0x2c]
push ebx
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [ebp - 4], 0
jmp 0x424d70
mov ecx, dword [edi + 0x984]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
je 0x424dc2
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
call ebx
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
jne 0x424da0
cmp dword [ebp - 4], 0x32
jg 0x424dd1
cmp byte [edi + 0x96c], 0
jne 0x424d70
cmp byte [edi + 0x96c], 0
pop esi
pop ebx
je 0x424dee
mov eax, dword [edi + 0x968]
mov eax, dword [eax + 0x2c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0x968]
test ecx, ecx
je 0x424e0b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [edi + 0x968], 0
mov al, 1
mov esp, ebp
pop ebp
ret