joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e90f420
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
test byte [0x6e928bf8], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
jne 0x6e90f580
test esi, esi
je 0x6e90f5d4
lea ecx, [ebp - 0x1c]
mov eax, ebx
call fcn.6e90c480
test eax, eax
mov ebx, eax
jne 0x6e90f480
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x1c]
call fcn.6e90bcf0
mov edx, esi
mov edi, eax
call fcn.6e90bda0
test eax, eax
mov ebx, eax
je 0x6e90f610
test edi, edi
je 0x6e90f5f0
mov eax, edi
call fcn.6e90be30
cmp word [esi], 0
lea ecx, [edi + eax*2]
je 0x6e90f628
mov edx, esi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6e90f4c0
sub edx, esi
lea edx, [ebx + edx + 4]
cmp ecx, edx
jbe 0x6e90f600
mov edx, esi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6e90f4e0
sub edx, esi
add edx, 2
mov dword [esp], ebx
add edx, ebx
mov dword [esp + 4], edx
mov ecx, edx
sub ecx, edi
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
test edi, edi
mov ebx, dword [ebp - 0x1c]
je 0x6e90f640
mov eax, edi
call fcn.6e90be30
add eax, eax
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, 7
mov dword [esp + 0x10], edi
mov ecx, 0x6e931260
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
test eax, eax
je 0x6e90f558
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
xor ebx, ebx
test eax, eax
sete bl
mov dword [esp], edi
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90f469
mov dword [ebp - 0x2c], edx
mov eax, esi
call fcn.6e90c150
mov edx, dword [ebp - 0x2c]
mov edi, eax
mov eax, edx
call fcn.6e90bf80
mov dword [esp + 0x18], edi
mov edi, str.__x___s___s__n
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str.CryptUnregisterDefaultOIDFunction
mov dword [esp + 8], eax
mov eax, 0x6e928bf8
mov dword [esp + 4], eax
call fcn.6e90be90
test esi, esi
mov edx, dword [ebp - 0x2c]
jne 0x6e90f459
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
xor ebx, ebx
jmp 0x6e90f469
xor ecx, ecx
xor eax, eax
cmp word [esi], 0
jne 0x6e90f4b7
nop
mov dword [ebx], 0
jmp 0x6e90f50b
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
xor ebx, ebx
jmp 0x6e90f55f
lea edx, [ebx + 4]
cmp ecx, edx
jbe 0x6e90f600
mov edx, 2
jmp 0x6e90f4ee
xor eax, eax
jmp 0x6e90f51f
Function at 0x6e916280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xcc
mov ebx, dword [ebp + 0x10]
jmp 0x6e9162a0
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [ebx + 0xc]
sub esp, 8
test eax, eax
mov edi, eax
je 0x6e916358
mov dword [esp], edi
mov eax, 0x14
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x7e]
mov dword [esp + 8], eax
mov eax, 3
mov dword [esp + 4], eax
call dword [ebx + 0x14]
sub esp, 0x10
test eax, eax
jne 0x6e916308
lea ecx, [edi - 0x1c]
mov dword [esp], ecx
call fcn.6e8d8900
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x88]
xor ecx, ecx
mov dword [esp + 0xc], eax
xor esi, esi
xor eax, eax
mov dword [esp + 8], esi
mov dword [ebp - 0x88], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ebx + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x88]
sub esp, 0x10
test eax, eax
jne 0x6e916368
mov dword [esp], 0
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test esi, esi
jne 0x6e9162a0
jmp 0x6e9162ec
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
sub esp, 4
test eax, eax
mov ecx, eax
je 0x6e91633b
mov dword [esp + 8], ecx
lea eax, [ebp - 0x88]
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0x9c], ecx
call dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x9c]
sub esp, 0x10
test eax, eax
jne 0x6e9163c0
mov dword [esp], ecx
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e9162ec
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x88]
lea esi, [ebp - 0x6a]
mov edx, esi
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x7e]
call fcn.6e9152d0
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x84]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0xf003f
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.advapi32.dll_RegCreateKeyExW
mov ecx, dword [ebp - 0x9c]
sub esp, 0x24
test eax, eax
mov edx, eax
je 0x6e916448
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
mov dword [esp], ecx
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e9162ec
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0xa0]
xor edx, edx
mov dword [ebp - 0xa0], ecx
mov ecx, str.Blob
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x84]
sub esp, 0x18
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
sub esp, 4
test edx, edx
jne 0x6e91642f
mov dword [esp], ecx
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e9162a0
Function at 0x6e919f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
sub esp, 0x358
mov dword [ebp - 0x32c], edx
mov edx, 0x208
mov dword [ebp - 8], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edi, [ebp - 0x328]
mov dword [ebp - 0x328], edx
xor edx, edx
mov dword [esp + 0xc], ecx
mov ecx, 0x6e937500
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0xc], ebx
mov ebx, eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
jne 0x6e91a060
mov eax, 0x104
xor edx, edx
mov dword [ebp - 0x328], eax
xor ecx, ecx
mov eax, 0x6e937508
mov dword [esp + 0x14], edi
lea edi, [ebp - 0x324]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x6e91a060
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6e91a060
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x330], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [ebp - 0x330]
sub esp, 8
test eax, eax
mov esi, eax
je 0x6e91a078
mov eax, dword [ebp - 0x32c]
mov dword [eax], edx
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ebx, dword [ebp - 0xc]
mov eax, esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x6e91a062

Function at 0x6e91aa20
Capabilities:
Delete registry key

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x218]
sub esp, 0x21c
lea esi, [esi]
lea edi, [edi]
movzx ebx, word [ecx + str.SoftwareMicrosoftCryptographyOIDEncodingType_0CryptSIPDll]
mov word [esi + ecx], bx
add ecx, 2
test ebx, ebx
jne 0x6e91aa40
cmp word [ebp - 0x218], 0
mov ebx, esi
je 0x6e91aa69
nop
add ebx, 2
cmp word [ebx], 0
jne 0x6e91aa60
xor ecx, ecx
nop
lea esi, [esi]
movzx edi, word [edx + ecx]
mov word [ebx + ecx], di
add ecx, 2
test edi, edi
jne 0x6e91aa70
cmp word [ebp - 0x218], 0
mov edx, esi
je 0x6e91aa99
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6e91aa90
call fcn.6e91a970
mov dword [esp + 4], esi
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegDeleteKeyW
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cbc7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a2f8
call fcn.00413724
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b69c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b754
push 4
mov ebx, 0x41b68c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00403291
mov dword [esi + 0x3c], 0x41b804
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00403291
mov dword [edi], 0x41b80c
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c1be
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c1be
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c1be
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c1be
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c1be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412ff0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.0041468e
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413018
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413027
mov eax, 1
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401881
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018c0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018c0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018c0
cmp dword [ecx + 0x74], 0xe
jbe 0x4018c0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401613
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x12828], 0
push edi
jne 0x40163d
push dword [esi + 4]
lea eax, [esi + 0xc]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x401667
mov eax, dword [esi + 0x12840]
add eax, dword [esi + 0x12848]
push 4
push eax
lea edi, [esi + 0xc]
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
add dword [esi + 0x12848], 4
mov dword [esi + 0x1283c], eax
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x401789
mov ecx, esi
call fcn.004013b5
mov ecx, esi
call fcn.00401227
lea edi, [esi + 0x18]
mov ecx, 0x3f1
mov eax, 0x20202020
rep stosd dword es:[edi], eax
cmp dword [esi + 0xc], ebx
mov edi, 0xfc4
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
jbe 0x401789
mov ebx, 0xfff
jmp 0x4016ad
mov edi, dword [ebp - 0x10]
mov ecx, esi
call fcn.004013d8
cmp eax, 0x100
mov dword [ebp - 0xc], eax
jge 0x4016f9
cmp byte [esi + 0x12828], 0
jne 0x4016d5
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_putc]
pop ecx
pop ecx
jmp 0x4016e7
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
lea ecx, [esi + 0x1282c]
call fcn.00402edb
mov al, byte [ebp - 0xc]
mov byte [esi + edi + 0x18], al
inc edi
and edi, ebx
inc dword [ebp - 8]
mov dword [ebp - 0x10], edi
jmp 0x40176e
mov ecx, esi
call fcn.004014fd
and dword [ebp - 0x14], 0
sub edi, eax
mov eax, dword [ebp - 0xc]
dec edi
add eax, 0xffffff03
and edi, ebx
test eax, eax
mov dword [ebp - 0x18], eax
jle 0x40176e
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, edi
and eax, ebx
cmp byte [esi + 0x12828], 0
movzx eax, byte [eax + esi + 0x18]
mov dword [ebp - 0xc], eax
jne 0x401741
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_putc]
pop ecx
pop ecx
jmp 0x401753
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
lea ecx, [esi + 0x1282c]
call fcn.00402edb
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0xc]
mov byte [esi + eax + 0x18], cl
inc eax
and eax, ebx
inc dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x40171b
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, eax
jbe 0x401780
add eax, 0x400
mov dword [esi + 0x14], eax
cmp ecx, dword [esi + 0xc]
jb 0x4016aa
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019c5
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push eax
add eax, 0x6e
pop eax
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x401aec
test esi, esi
mov ecx, dword [ebp + 8]
mov dword [0x405208], ecx
mov dword [0x40520c], eax
jne 0x4019fe
xor ecx, ecx
jmp 0x401a01
mov ecx, dword [esi + 0x20]
push ecx
push 0x401915
push 0xe
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
test eax, eax
je 0x401aec
push dword [0x42dadc]
mov ecx, esi
push dword [0x40520c]
call fcn.0040193b
mov esi, eax
test esi, esi
je 0x401aec
and dword [0x42dad4], 0xfffffffe
push dword [0x42dad4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x42dad8]
test eax, eax
je 0x401a69
push 0x8a8
lea eax, [eax + 0x40d220]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp ecx, 0xea
nop
push 0x405118
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x401aec
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 2
push edi
call esi
push edi
push 0x8000
push 1
mov ebx, 0x40521c
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push 0
push 0
push edi
call esi
push edi
push dword [0x405214]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push 1
push 0x40d220
call edi
push 2
push 0
push dword [ebp - 4]
call esi
add esp, 0x44
push dword [ebp - 4]
push 0x8000
push 1
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor al, al
pop ebx
leave
ret 4
Function at 0x402bc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xe
push 0x80
push 0
call esi
mov ecx, eax
test ecx, ecx
je 0x402c31
push eax
add eax, 0x159
pop eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push ecx
push 0
call ebx
test eax, eax
je 0x402c31
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call edi
test eax, eax
je 0x402c31
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
movzx eax, ax
push 3
push eax
push 0
call esi
mov esi, eax
test esi, esi
je 0x402c31
push esi
push 0
call ebx
test eax, eax
je 0x402c31
push eax
call edi
mov edi, eax
test edi, edi
jne 0x402c35
xor al, al
jmp 0x402c57
push ecx
nop
mov ecx, 0xb6
pop ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push 0x42d228
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4030a6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
and dword [esi + 4], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esp + 4]
push eax
push 0x202
mov dword [esi], 0x40451c
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4030de
mov dword [esi + 0x10], 1
jmp 0x4030e2
and dword [esi + 0x10], 0
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x40312a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
je 0x40313f
call fcn.004031af
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40319d
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
pop edi
push edi
push 2
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 4], eax
jbe 0x40319d
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4031a1
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
and dword [esi + 4], 0
xor eax, eax
jmp 0x4031a9
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x403263
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
lea eax, [edi + 8]
xor esi, esi
cmp dword [eax], esi
je 0x4032dc
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x4032dc
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x4031e3
push esi
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x4032dc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_recv]
push 1
pop edi
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp - 4], esi
jne 0x4032d7
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4032c9
mov eax, ebx
pop ebx
jmp 0x4032df
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0xc

Function at 0x40331e
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push 0x104
xor edi, edi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x10c]
mov esi, dword [ebp + 8]
add esp, 0xc
xor edx, edx
cmp ecx, edi
jbe 0x403390
lea eax, [ebp - 0x108]
cmp dword [eax], esi
je 0x403363
inc edx
add eax, 4
cmp edx, ecx
jb 0x403355
jmp 0x403390
lea eax, [ecx - 1]
cmp edx, eax
jae 0x403389
push ebx
lea eax, [ebp + edx*4 - 0x108]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10c]
inc edx
lea ebx, [ecx - 1]
add eax, 4
cmp edx, ebx
jb 0x403372
pop ebx
dec ecx
mov dword [ebp - 0x10c], ecx
xor eax, eax
cmp ecx, edi
jbe 0x4033a8
lea edx, [ebp - 0x108]
cmp dword [edx], esi
je 0x4033a8
inc eax
add edx, 4
cmp eax, ecx
jb 0x40339c
cmp eax, ecx
jne 0x4033be
cmp ecx, 0x40
jae 0x4033be
mov dword [ebp + eax*4 - 0x108], esi
inc dword [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WSOCK32.dll_select]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret 4
Function at 0x4014d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401528
cmp byte [esi + ebx - 1], 0xa
je 0x4014fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x407084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401f70
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3877718e
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5d440a0e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219