joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10d56058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10d561a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10d5607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d5606a
add dl, dl
jne 0x10d56089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d560dc
xor eax, eax
add dl, dl
jne 0x10d56096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d5617d
add dl, dl
jne 0x10d560a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d560b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d560bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d560c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10d560d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10d56075
mov eax, 1
add dl, dl
jne 0x10d560ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d560f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d560e1
sub eax, ebx
mov ebx, 1
jne 0x10d56128
mov ecx, 1
add dl, dl
jne 0x10d5610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10d56119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d56105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d56075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10d5613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10d5614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d56136
cmp eax, 0x7d00
jae 0x10d5616d
cmp eax, 0x500
jb 0x10d56168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d56075
cmp eax, 0x7f
ja 0x10d56170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d56075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10d5619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10d56075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4028d5
Capabilities:
Terminate process

Disassembly:
call 0x532000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x402ed8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x40736c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4073ce
call fcn.0040731c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004035c0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004035c0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40744c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40cffc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x407526
cmp dword [0x40cff8], 0
jne 0x407526
cmp dword [0x40d138], 0
je 0x4074e0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040721c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4074c6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040721c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4074c6
lea ebx, [ebp - 0x84]
jmp 0x4074c7
inc ebx
call fcn.00407408
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x407561
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40d000
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004035c0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40d003
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x407561
cmp dword [0x40cff8], 0
je 0x407540
cmp dword [0x40cff8], 0xffffffff
je 0x407561
push esi
call dword [0x40cff8]
pop ecx
mov eax, dword [0x40cffc]
test eax, eax
je 0x407561
cmp dword [0x40cffc], 0xffffffff
je 0x407561
cmp byte [eax], 0
je 0x407561
push esi
push eax
call fcn.0040736c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40805c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x4080e2
mov eax, dword [0x40e408]
inc dword [0x40e408]
test eax, eax
jne 0x4080e2
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40e3d4], eax
mov edx, dword [ebp + 0x10]
mov dword [0x40b137], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00404a64
pop ecx
cmp dword [0x40d080], 0
je 0x4080cd
call fcn.00407ee0
mov ebx, eax
test eax, eax
je 0x4080cd
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x4080cd
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x4080e2
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x40d080], eax
call fcn.00407ee8
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.004081f0
mov ebx, eax
test edi, edi
jne 0x408151
test edi, edi
jne 0x408122
dec dword [0x40e408]
jne 0x408122
cmp dword [0x40e3d4], 0
je 0x408122
mov eax, dword [0x40e3d4]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x40e3d4], edx
cmp dword [0x40e408], 0
jne 0x408151
cmp dword [0x40d080], 0
jne 0x408151
cmp dword [0x40d070], 0
je 0x408143
call dword [0x40d070]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00407ee8
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4022c0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov al, byte [ebp + 0xc]
mov byte [ebp - 0xc], al
mov dword [ebp - 8], 1
jmp 0x4022e5
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x40231f
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0xd]
shl eax, 1
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0xc], al
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0xd]
and eax, 0x80
je 0x40231d
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xc]
xor edx, 0x1b
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
jmp 0x4022dc
mov dword [ebp - 8], 0
jmp 0x402331
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x402358
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x402356
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x402328
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x403520
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x403547
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x4035b3
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x10]
cmp ecx, 2
jl 0x40357e
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0x2f72
jne 0x40357e
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
cmp edx, 0x2f6e
jne 0x40357e
jmp 0x40353e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
cmp ecx, 0x2f6e
jne 0x403591
jmp 0x40353e
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0x3d
jne 0x4035a8
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x40353e
cmp dword [ebp - 0xc], 0
jne 0x4035c0
xor eax, eax
jmp 0x4036eb
mov edx, dword [ebp - 0xc]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0xc]
jae 0x4035eb
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, 0xfffffff0
jmp 0x4036eb
mov dword [ebp - 0x14], 3
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x403619
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x10], 0
jle 0x4036de
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 0x2f72
je 0x40363e
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
cmp edx, 0x2f6e
jne 0x403640
jmp 0x403607
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x442478]
xor eax, eax
cmp edx, 0x40
sete al
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
shl edx, 6
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx eax, byte [ecx + 0x442478]
and eax, 0x3f
or edx, eax
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 4
jne 0x4036d9
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 0
jle 0x4036a8
mov edx, dword [ebp - 8]
shr edx, 0x10
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x14], 1
jle 0x4036c2
mov edx, dword [ebp - 8]
shr edx, 8
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x14], 2
jle 0x4036d9
mov edx, dword [ebp - 4]
mov al, byte [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x403607
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408210
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
push ecx
push str._______________________m_szHead__n__s
call fcn.00426411
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
push eax
push str._____________n_baotou__n__s
call fcn.00426411
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [ebp - 0x11], dl
add dword [ebp - 0xc], 1
cmp byte [ebp - 0x11], 0
jne 0x408253
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x21], cl
add dword [ebp - 0x1c], 1
cmp byte [ebp - 0x21], 0
jne 0x40829d
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
push str._____________n_chanff__n__d
call fcn.00426411
add esp, 8
cmp dword [ebp - 4], 0
jge 0x4082e8
push str._____________n______________AHttpSocket::sendMsg_failed_________
call fcn.00426411
add esp, 4
mov ecx, dword [ebp - 8]
call fcn.00408300
xor al, al
jmp 0x4082ef
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x408330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
cmp dword [eax + 0x58], 0
jne 0x408386
push 1
mov ecx, dword [ebp - 8]
call fcn.00408c90
push 1
mov ecx, dword [ebp - 8]
call fcn.00408c40
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
add ecx, 0x5c
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x406bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], eax
jmp 0x40838a
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40a0c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x40b950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x446654]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x40b990
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b99c
mov al, 1
jmp 0x40bb3f
mov dword [ebp - 0x10], 8
call fcn.004093e0
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004093e0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004093c0
add esp, 8
movzx eax, al
test eax, eax
je 0x40b9df
xor al, al
jmp 0x40bb3f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040b610
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040b690
mov ecx, eax
call fcn.004197d0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00405620
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b690
mov ecx, eax
call fcn.004197d0
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040bd00
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40ba5a
cmp dword [ebp - 0x5c], 1
je 0x40ba61
cmp dword [ebp - 0x5c], 3
je 0x40bafb
jmp 0x40bb13
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040b690
mov ecx, eax
call fcn.004197d0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40bac4
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b690
mov ecx, eax
call fcn.004197d0
push eax
call fcn.00426a6b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40bac4
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004055e0
mov al, byte [ebp - 0x51]
jmp 0x40bb3f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40bae7
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004055e0
mov al, byte [ebp - 0x52]
jmp 0x40bb3f
cmp dword [ebp - 0x38], 0
jne 0x40baf9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040b410
jmp 0x40bb2b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004055e0
mov al, byte [ebp - 0x53]
jmp 0x40bb3f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004055e0
mov al, byte [ebp - 0x54]
jmp 0x40bb3f
jmp 0x40b9f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret
Function at 0x40c970
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
je 0x40c9f3
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
je 0x40c9f3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x43e5ff
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx]
mov byte [ebp - 0x19], dl
mov eax, dword [ebp - 0x14]
cmp dl, byte [eax]
jne 0x40c9df
cmp byte [ebp - 0x19], 0
je 0x40c9d6
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x1a], dl
mov eax, dword [ebp - 0x14]
cmp dl, byte [eax + 1]
jne 0x40c9df
add dword [ebp - 0x18], 2
add dword [ebp - 0x14], 2
cmp byte [ebp - 0x1a], 0
jne 0x40c9a2
mov dword [ebp - 0x20], 0
jmp 0x40c9e7
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x40c9fc
mov dword [ebp - 4], 0
jmp 0x40ca26
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x2c], 0
jne 0x40ca26
cmp dword [ebp - 0x28], 0
jne 0x40ca26
xor eax, eax
jmp 0x40ca97
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0x43e60a
jne 0x40ca36
xor eax, eax
jmp 0x40ca97
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
push eax
push 0x40c850
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
test eax, eax
setne dl
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x40ca7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3b02
je 0x40ca79
cmp dword [ebp - 0xc], 0
jne 0x40ca7d
mov byte [ebp - 5], 1
cmp dword [ebp - 4], 0
jne 0x40ca89
cmp dword [ebp - 4], 0
je 0x40ca93
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40cf80
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x446654]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
mov eax, 0x101
mov word [ebp - 0x19c], ax
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x19c]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x40cfcd
xor al, al
jmp 0x40d037
movzx eax, word [ebp - 0x198]
and eax, 0xff
movzx ecx, al
cmp ecx, 1
jne 0x40cff9
movzx edx, word [ebp - 0x198]
shr edx, 8
and edx, 0xff
movzx eax, dl
cmp eax, 1
je 0x40d003
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x40d037
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1a4]
cmp dword [edx + 4], 0
jae 0x40d035
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 4], 0xffffffff
xor al, al
jmp 0x40d037
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x446654]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x81c], ecx
mov eax, dword [ebp - 0x81c]
cmp dword [eax + 4], 0xffffffff
jne 0x40d0bc
xor al, al
jmp 0x40d1aa
mov ecx, dword [ebp - 0x81c]
cmp dword [ecx + 0xc], 1
je 0x40d0cf
xor al, al
jmp 0x40d1aa
cmp dword [ebp + 8], 0xffffffff
jne 0x40d0e1
mov edx, dword [ebp - 0x81c]
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x400
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.0042a860
add esp, 0xc
push 0
push 0x400
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x40d128
jmp 0x40d18e
mov byte [ebp - 0x818], 0
push 0x400
push 0
lea ecx, [ebp - 0x817]
push ecx
call fcn.0042a860
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x818]
push ecx
call fcn.00427ec0
add esp, 0xc
push 0x400
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x81c]
call fcn.0040d280
cmp dword [ebp - 8], 0x400
jge 0x40d181
jmp 0x40d18e
mov eax, 1
test eax, eax
jne 0x40d0ef
mov ecx, dword [ebp - 0x81c]
mov edx, dword [ecx + 0x14]
push edx
push 0x43fb8c
mov ecx, dword [ebp - 0x81c]
call fcn.0040d350
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret 4