joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4739b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55192d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, ecx
push ebx
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [eax + 0x4a0]
mov dword [ebp - 0x20], esi
push edi
mov dword [ebp - 0x10], esp
test eax, eax
jne 0x473b85
mov dword [ebp - 4], eax
mov edi, 1
cmp edi, 0x20
jge 0x473a54
imul ebx, edi, 0x2800
push ebx
call fcn.004c8e2b
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x473b98
push ebx
push 0
push esi
call fcn.004e43a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0x428
cmp dword [eax + 0x14], 0x10
jb 0x473a2e
mov eax, dword [eax]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edx, eax
mov dword [ebp - 0x18], edx
lea ecx, [edx + 2]
cmp ecx, ebx
jne 0x473a57
push 1
push esi
call fcn.004c824c
add esp, 8
inc edi
jmp 0x4739f1
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov edi, esi
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, edx
jae 0x473b40
cmp byte [eax + esi], 0
lea ecx, [eax + esi]
mov dword [ebp - 0x28], ecx
jne 0x473b24
mov ecx, edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473a97
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00406430
mov eax, dword [ebx + 0x480]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
cmp eax, dword [ebx + 0x484]
je 0x473ad0
mov ecx, eax
call fcn.00402c00
add dword [ebx + 0x480], 0x18
jmp 0x473adc
push eax
lea ecx, [ebx + 0x47c]
call fcn.00427a90
mov edi, dword [ebp - 0x28]
inc dword [ebx + 0x4a0]
inc edi
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x473b1e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x473b14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473bad
push edx
push ecx
call fcn.004c824c
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
inc eax
jmp 0x473a5e
test esi, esi
je 0x473b4f
push 1
push esi
call fcn.004c824c
add esp, 8
mov ebx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 0x480]
sub ecx, dword [ebx + 0x47c]
imul ecx
mov dword [ebx + 0x4a8], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x4ac], eax
mov eax, dword [ebx + 0x4a0]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x58a910
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffffffff
push eax
call fcn.004e4900
call fcn.004f1161
int3
Function at 0x473bc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55194d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0x400
push 0
mov byte [ebp - 0x11], 1
lea ebx, [edi + 0x10]
mov dword [ebp - 4], 0
push ebx
call fcn.004e43a0
lea eax, [edi + 0x428]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x473c0f
mov eax, dword [eax]
push eax
push 0x400
push ebx
push 0x56079c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x473c40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473c60
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.00406430
cmp dword [ebp - 0x1c], 0x10
lea esi, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmovae esi, dword [ebp - 0x30]
mov byte [ebp - 4], 1
test eax, eax
je 0x473cda
push eax
push 0x3b
push esi
call fcn.004e5b70
add esp, 0xc
test eax, eax
je 0x473cda
sub eax, esi
cmp eax, 0xffffffff
je 0x473cda
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmp esi, 0x10
push 0x3b
cmovae eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x18], eax
call fcn.004e5b70
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x473cc9
sub ecx, dword [ebp - 0x18]
jmp 0x473ccc
or ecx, 0xffffffff
cmp esi, 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473cf0
sub ecx, esi
lea esi, [edi + 0x410]
push ecx
push edx
mov ecx, esi
call fcn.00406430
push esi
mov ecx, edi
call fcn.004735a0
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
lea esi, [edi + 0x458]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x30]
mov ecx, esi
push 0
mov byte [eax], 0
call fcn.004742e0
mov dword [edi + 0x464], ebx
nop word [eax + eax]
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.004734b0
test al, al
je 0x473d72
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
cmp eax, dword [esi + 8]
je 0x473d68
mov ecx, eax
call fcn.00402c00
add dword [esi + 4], 0x18
jmp 0x473d40
push eax
mov ecx, esi
call fcn.00427a90
jmp 0x473d40
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov dword [edi + 0x46c], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x468], eax
cmp edx, 0x10
jb 0x473dc8
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x473dbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473de8
push edx
push ecx
call fcn.004c824c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004f1161
int3
Function at 0x49a0d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x168]
push eax
push 0
push esi
push 0x499a70
push 0
push 0
call fcn.0051c699
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x49a0fb
pop edi
xor al, al
pop esi
ret
push 2
push 0
push 0x1fffff
lea eax, [esi + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
pop edi
mov al, 1
pop esi
ret
Function at 0x4b48c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
cmp byte [esi + 0x13c], 0
mov edi, dword [esi + 0x158]
setne bl
xor edx, edx
test edi, edi
jle 0x4b4926
lea ecx, [esi + 0xdc0]
nop word [eax + eax]
cmp dword [ecx + 0x18], 1
jne 0x4b491e
mov eax, dword [ecx]
sub eax, dword [ecx - 8]
mov dword [esi + 0x150], eax
mov eax, dword [ecx + 4]
sub eax, dword [ecx - 4]
cmp dword [esi + 0x14c], edx
mov dword [esi + 0x154], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
inc edx
add ecx, 0x30
cmp edx, edi
jl 0x4b48f0
push 0x7f00
push 0
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [ebp + 8]
push 0xfffffffffffffffa
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp bl, 1
jne 0x4b49bd
push esi
push 0xfffffffffffffffa
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
push 0
push 0
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push SysReAllocString
push SysReAllocString
push 0x6000000
push edi
push edi
jmp 0x4b4a0d
mov ecx, dword [esi + 0x14c]
push dword [ebp - 4]
push 0xfffffffffffffffa
lea edx, [ecx + ecx*2]
add ecx, 0x4a
add edx, edx
push 0
mov eax, dword [esi + edx*8 + 0xdb8]
mov ebx, dword [esi + edx*8 + 0xdbc]
mov dword [ebp - 8], eax
lea eax, [ecx + ecx*2]
add eax, eax
mov edi, dword [esi + eax*8]
mov esi, dword [esi + edx*8 + 0xddc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push esi
push edi
push ebx
push dword [ebp - 8]
push 0x6000000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4b4a78
nop dword [eax]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4b4a50
push 0xfffffffffffffffa
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
push str.OpenGL_3D_Texture_Test
call dword [sym.imp.USER32.dll_UnregisterClassA]
test esi, esi
je 0x4b4a99
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b89d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5581fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 0xd], 0
call dword [sym.imp.USER32.dll_GetDC]
push esi
mov ebx, eax
mov dword [ebp - 0x4c], 0x28
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push eax
push esi
push esi
push esi
push dword [ebp + 0x20]
movlpd qword [ebp - 0x48], xmm0
push ebx
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4b8a64
mov eax, dword [ebp - 0x44]
cdq
mov ecx, eax
movzx eax, word [ebp - 0x3e]
xor ecx, edx
add eax, 7
sub ecx, edx
imul eax, ecx
imul eax, dword [ebp - 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x38], eax
push eax
call fcn.00511d0c
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b8a8c
push str.Unable_to_Allocate_Bitmap_Memory
push 0x4e20
push 8
call fcn.004204c0
add esp, 0xc
jmp 0x4b8b27
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], esi
push eax
push edi
push dword [ebp - 0x44]
push 0
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x561bb0
cmovae eax, dword [ebp + 8]
push eax
call fcn.00504bca
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b8ada
push str.Unable_to_Create_Bitmap_File
push 0x4e20
push 8
call fcn.004204c0
add esp, 0xc
jmp 0x4b8b27
xor eax, eax
mov dword [ebp - 0x16], 0x36
mov dword [ebp - 0x1a], eax
mov eax, dword [ebp - 0x38]
add eax, 0x36
mov dword [ebp - 0x1e], eax
mov eax, 0x4d42
push esi
push 1
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0xe
push eax
call fcn.00504f19
push esi
push 1
lea eax, [ebp - 0x4c]
push 0x28
push eax
call fcn.00504f19
push esi
push 1
push dword [ebp - 0x38]
push edi
call fcn.00504f19
add esp, 0x30
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4b8b34
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test edi, edi
je 0x4b8b41
push edi
call fcn.004f1251
add esp, 4
test esi, esi
je 0x4b8b4e
push esi
call fcn.00504888
add esp, 4
mov edx, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
cmp edx, 0x10
jb 0x4b8b81
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8b77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8b94
push edx
push ecx
call fcn.004c824c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004f1161
int3
Function at 0x530ce5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005308dd

Function at 0x530cf0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00530a67

Function at 0x534a6f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053444d

Function at 0x5355b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00535484
Function at 0x547840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
cmp byte [0x59cb43], 0
movq xmm0, qword [str.CPQDIAG.INI]
mov eax, dword [0x57db2c]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [str.DFW_UTIL]
mov dword [ebp - 0x34], eax
mov al, byte [0x57db38]
movq qword [ebp - 0x18], xmm0
movq xmm0, qword [str.UserLevel]
mov byte [ebp - 0x10], al
movzx eax, word [0x57db44]
movq qword [ebp - 0x24], xmm0
movq xmm0, qword [str.Developer]
mov word [ebp - 0x1c], ax
movzx eax, word [0x57db50]
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0x69647541
mov dword [ebp - 8], 0x726f74
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x28], ax
je 0x547934
push 0x100
lea eax, [ebp - 0x13c]
mov byte [0x59cb43], 0
push 0
push eax
call fcn.004e43a0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0x100
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004e5900
add esp, 8
test eax, eax
jne 0x54792b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004e5900
add esp, 8
test eax, eax
je 0x547934
mov byte [0x5d421c], 1
jmp 0x54793d
cmp byte [0x5d421c], 0
je 0x547975
push esi
push 0x59cb40
push str.PCIIRT.LOG
call fcn.00504bca
mov esi, eax
add esp, 8
test esi, esi
je 0x547974
push dword [ebp + 8]
mov byte [0x59cb40], 0x61
push 0x562140
push esi
call fcn.00417e20
push esi
call fcn.00504888
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x294
mov eax, dword [0x44eea4]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
mov ebx, dword [esp + 0x29c]
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp word [esp + 4], 0x101
je 0x402bc0
push 0
push str.Error
push str.WSAStartup__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004450b2
add esp, 0x294
ret
push pe_nt_image_headers32
lea ecx, [esp + 0x198]
push ecx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x402c03
push 0
push str.Error
push str.gethostname__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004450b2
add esp, 0x294
ret
lea edx, [esp + 0x194]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
mov dword [0x44f2d4], eax
jne 0x402c43
push eax
push str.Error
push str.gethostbyname__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004450b2
add esp, 0x294
ret
mov eax, dword [eax + 0xc]
push esi
push eax
call fcn.00402ad0
mov ecx, dword [0x44f2d4]
mov word [0x44f260], 2
mov edx, dword [ecx + 0xc]
mov esi, eax
mov eax, dword [edx + esi*4]
mov ecx, dword [eax]
add esp, 4
push 0x1388
mov dword [0x44f264], ecx
call sub.WSOCK32.dll_htons
push 6
push 1
push 2
mov word [0x44f262], ax
mov dword [0x44f1b4], 0
mov dword [0x44f1b0], 0
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x44f1b4], eax
jne 0x402cd5
push 0
push str.Error
push str.socket__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004450b2
add esp, 0x294
ret
push 0x38
push 0x401
push ebx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
je 0x402d14
push 0
push str.Error
push str.WSAAsyncSelect__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004450b2
add esp, 0x294
ret
mov edx, dword [0x44f2d4]
mov word [0x44f58c], 2
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
push 0x3039
mov dword [0x44f590], edx
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x298]
pop esi
pop ebx
mov word [0x44f58e], ax
xor ecx, esp
mov byte [0x44f1ae], 0
mov eax, 1
call fcn.004450b2
add esp, 0x294
ret
Function at 0x402d70
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x44eea4]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [0x44f1b4]
test esi, esi
je 0x402e82
cmp dword [0x44f1b0], 0
je 0x402e82
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [str.Client_want_to_EXIT.]
mov eax, dword [0x44786c]
mov edx, dword [0x447868]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x447870]
mov dword [esp + 0x18], eax
movzx eax, byte [0x447878]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [0x44f208]
mov byte [esp + 0x24], al
movzx eax, byte [0x44f20a]
mov dword [esp + 0x14], edx
mov edx, dword [0x447874]
mov dword [esp + 0x20], edx
mov dl, byte [0x44f209]
mov byte [esp + 0x24], cl
movzx ecx, byte [0x44f20b]
mov byte [esp + 0x26], al
lea eax, [esp + 0x10]
mov byte [esp + 0x25], dl
add esp, 0xc
mov byte [esp + 0x1b], cl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e22
push 0x10
push 0x44f58c
push 0
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x402e7c
push 0
push str.Error
push str.sendto__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x44f1b4]
push eax
call sub.WSOCK32.dll_closesocket
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004450b2
add esp, 0x104
ret
mov esi, dword [0x44f1b4]
push esi
call sub.WSOCK32.dll_closesocket
mov dword [0x44f1b4], 0
mov dword [0x44f1b0], 0
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.004450b2
add esp, 0x104
ret
Function at 0x43c0c0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x44eea4]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x41c]
push ebx
mov ebx, dword [esp + 0x41c]
push esi
mov esi, dword [esp + 0x41c]
push edi
push 0
push 0
push 0
push 1
push str.Sample
mov dword [esp + 0x20], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x43c217
test esi, esi
je 0x43c217
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
push 0
push 0
push 0
push esi
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x43c14e
test ebx, ebx
je 0x43c213
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
je 0x43c213
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x10], eax
je 0x43c1ea
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
push 0x400
lea eax, [esp + 0x24]
push eax
push esi
call ebx
cmp eax, 1
jne 0x43c1e3
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43c1e3
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
je 0x43c1cc
mov dword [esp + 0x10], 1
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
cmp eax, 1
je 0x43c1a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
cmp dword [esp + 0x10], eax
setne al
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004450b2
add esp, 0x410
ret
xor eax, eax
jmp 0x43c1fa
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004450b2
add esp, 0x410
ret

Function at 0x43c450
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x4554a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x458424]
push 0x4554a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
pop esi
jne 0x43c494
lea eax, [esp]
push eax
push 0
push 0
push 0x43c240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43c494
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
ret

Function at 0x43d230
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x1c
mov ebx, esp
xor eax, eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x43d26b
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x43d25d
call dword [sym.imp.MSVCR80.dll_exit]
push ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageA]
add esp, 0x1c
pop ebx
ret
Function at 0x4450b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44eea4]
jne 0x4450bc
repz ret
jmp fcn.0044556a
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x462720
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x462748
jl 0x401115
mov dword [0x461b20], 0x63
mov dword [0x464cec], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x461b20], eax
mov dword [eax*4 + 0x464b60], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x461b20]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x464760], eax
ror eax, 8
mov dword [ecx + 0x464360], eax
ror eax, 8
mov dword [ecx + 0x463f60], eax
ror eax, 8
mov dword [ecx + 0x463b60], eax
mov al, byte [ecx + 0x464b60]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x463760], eax
ror eax, 8
mov dword [ecx + 0x463360], eax
ror eax, 8
mov dword [ecx + 0x462320], eax
ror eax, 8
mov dword [ecx + 0x461f20], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041152b
mov esp, ebp
pop ebp
ret