joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546a20
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57412b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00550e50
mov eax, dword [0x5fc970]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0056178c
push 0x5c
lea ecx, [esp + 8]
call fcn.00561a06
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.005619df
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x546ac6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00561603
xor eax, eax
jmp 0x546b43
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x546b21
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x546b13
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x546aed
jmp 0x546b21
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00561603
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x563afa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x563b32
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00561aaa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00561a82
jmp 0x563b3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5651eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56522d
call fcn.0056b22e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56522d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x565224
xor eax, eax
jmp 0x565235
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056523b
pop edi
pop esi
pop ebx
ret 4
Function at 0x56b75e
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 0x56b78c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x56b7aa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0056b6c4
jmp 0x56b7aa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x56b7aa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0056b6c4
test edi, edi
mov eax, edi
jne 0x56b794
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40895b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408977
add eax, esi
mov eax, esi
xor dword [ecx], edi
inc ecx
sub eax, eax
or eax, eax
cmp ecx, ebx
jne fcn.0040895b
ret
Function at 0x406bfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, edx
mov edi, ecx
call fcn.0042ed50
xor esi, esi
mov dword [ebp - 4], eax
pop ecx
test ebx, ebx
je 0x406c37
mov ecx, dword [ebp + 8]
sub edi, ecx
mov edx, dword [ebp + 0xc]
mov al, byte [edi + ecx]
xor al, byte [esi + edx]
inc esi
cmp esi, dword [ebp - 4]
mov byte [ecx], al
sbb eax, eax
and esi, eax
inc ecx
sub ebx, 1
jne 0x406c21
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408b62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], 4
cmp dword [ecx], esi
je 0x408ba1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408ba1
cmp dword [ebp - 8], 4
jne 0x408ba1
mov ecx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x409123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x488a30
push reloc.WS2_32.dll_bind
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4091a8
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x204
push eax
push esi
push str.ProgramPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091a8
cmp dword [ebp - 8], 1
jne 0x4091a8
cmp dword [ebp - 0xc], 6
jb 0x4091a8
push edi
call fcn.004394f4
pop ecx
movzx eax, word [edi + eax*2 - 2]
cmp eax, 0x5c
je 0x4091a5
cmp eax, 0x2f
je 0x4091a5
push 0x487c24
push edi
call fcn.0043a61d
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [ebp - 4], 0
je 0x4091b7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a6e1
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1280
call fcn.004268e0
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1220], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
push edi
mov dword [ebp - 0x1210], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x121c], eax
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x1214], edi
mov dword [ebp - 0x1218], edi
call fcn.0042ac90
push 0x1000
lea eax, [ebp - 0x120c]
push edi
push eax
call fcn.0042ac90
add esp, 0x18
mov dword [ebp - 0x122c], 0xc
lea eax, [ebp - 0x122c]
mov dword [ebp - 0x1228], edi
mov dword [ebp - 0x1224], 1
push edi
push eax
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0x1214]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a8ce
lea eax, [ebp - 0x1280]
mov dword [ebp - 0x1280], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x1218]
push esi
push dword [ebp - 0x1210]
mov dword [ebp - 0x1240], eax
mov dword [ebp - 0x1244], eax
xor eax, eax
mov word [ebp - 0x1250], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x1254], 0x101
call fcn.0043a478
add esp, 0x10
lea eax, [ebp - 0x123c]
push eax
lea eax, [ebp - 0x1280]
push eax
push dword [ebp - 0x121c]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a8ce
push dword [ebp - 0x1218]
call edi
push dword [ebp - 0x1238]
xor esi, esi
mov dword [ebp - 0x1218], esi
call edi
push 0x1000
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1210], esi
push esi
push eax
call fcn.0042ac90
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40a8ad
cmp dword [ebp - 0x1210], 0
jbe 0x40a883
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40a883
push dword [ebp - 0x1210]
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x120c]
push eax
call fcn.0046f171
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x1210], 0
lea eax, [ebp - 0x120c]
push 0x1000
push 0
push eax
call fcn.0042ac90
add esp, 0xc
push 0
lea eax, [ebp - 0x1210]
push eax
push 0xfff
lea eax, [ebp - 0x120c]
push eax
push dword [ebp - 0x1214]
call esi
test eax, eax
jne 0x40a85e
xor esi, esi
cmp dword [ebp - 0x1214], 0
je 0x40a8df
push dword [ebp - 0x1214]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004261a3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b403
Capabilities:
Read file on windows

Disassembly:
push 0x20
push 0x491ef8
call fcn.00427300
mov dword [ebp - 0x30], edx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 7
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
jne 0x40b45c
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x49a02c
call fcn.0042e830
add esp, 0xc
jmp 0x40b4df
push 0x25800
call fcn.0042eacc
pop ecx
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x40b4c8
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x25800
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x49d880]
test ecx, ecx
je 0x40b499
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40b4c8
cmp dword [ebp - 0x1c], 0
je 0x40b4c8
push dword [ebp - 0x1c]
push ebx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00452f9d
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [0x49d880]
test eax, eax
je 0x40b46c
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b46c
mov dword [ebp - 4], 0xfffffffe
call fcn.0040b4ef
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
call fcn.00427346
ret
Function at 0x40b511
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x30
mov eax, 0x46ff82
call fcn.0044f69d
mov edi, edx
mov dword [ebp - 0x34], ecx
xor esi, esi
mov dword [ebp - 0x38], esi
mov eax, esi
mov dword [ebp - 0x24], eax
mov ebx, esi
mov dword [ebp - 0x20], ebx
test ecx, ecx
je 0x40b6f7
test edi, edi
je 0x40b6f7
push esi
push edi
call fcn.0043a7bc
pop ecx
pop ecx
test eax, eax
jne 0x40b6f3
push esi
push 0x80
push 3
push esi
push 7
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or edi, 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40b6cc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40b6c9
mov ecx, dword [0x49d87c]
test ecx, ecx
je 0x40b59e
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042eacc
mov dword [ebp - 0x30], eax
pop ecx
test eax, eax
je 0x40b6c9
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x49d87c]
test eax, eax
je 0x40b5d5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x100000
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x40b5f4
push ebx
call fcn.0042eac7
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0x20], esi
push eax
mov dword [ebp - 0x18], eax
call fcn.0042eacc
pop ecx
push dword [ebp - 0x28]
mov ebx, eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x30]
mov dword [ebp - 0x20], ebx
push eax
push ebx
call fcn.00427b20
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x40b66f
push esi
push 0x80
push 2
push esi
push 7
push 0x40000000
push dword [ebp - 0x34]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40b6b0
push esi
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x18]
jne 0x40b6b0
mov eax, dword [0x49d87c]
test eax, eax
je 0x40b66a
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
jmp 0x40b6b0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x3200000
ja 0x40b6ad
cmp ecx, 0xfffffffb
jne 0x40b6ad
mov ecx, dword [0x49d87c]
test ecx, ecx
je 0x40b692
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
add eax, eax
jmp 0x40b5e0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40b6be
push eax
call fcn.0042eac7
pop ecx
test ebx, ebx
je 0x40b6c9
push ebx
call fcn.0042eac7
pop ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b6df
cmp eax, edi
je 0x40b6df
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
jmp 0x40b6e5
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40b6f3
cmp eax, edi
je 0x40b6f3
push eax
call ebx
mov eax, esi
jmp 0x40b6f9
xor eax, eax
call fcn.0044f60c
ret
Function at 0x40b77a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 8], 0
je 0x40b79b
push dword [esi + 8]
push edi
push 1
push dword [ebp + 8]
call fcn.0043abc0
add esp, 0x10
add dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x40b7aa
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40b7c0
push dword [esi + 8]
call fcn.00436370
and dword [esi + 8], 0
pop ecx
push dword [esi + 0xc]
and dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
pop esi
jmp fcn.0040b7d5
Function at 0x40bfdc
Capabilities:
Delete file
Move file

Disassembly:
push 0x30
mov eax, 0x47021c
call fcn.0044f666
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push 0x48a9dc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], eax
call fcn.0040651c
xor eax, eax
lea edi, [ebp - 0x1f]
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x48a9dc
push edi
call fcn.0040651c
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
push edi
mov byte [ebp - 4], al
call fcn.0040651c
push esi
mov byte [ebp - 4], 2
call fcn.004394f4
add eax, eax
lea ecx, [ebp - 0x20]
push eax
mov edx, esi
call fcn.0045393b
pop ecx
pop ecx
mov esi, ebx
movzx eax, byte [ebp + esi - 0x20]
push eax
lea eax, [ebp - 0x30]
push str._02x
push eax
call fcn.00406873
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004067c8
inc esi
cmp esi, 0x10
jl 0x40c052
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040c218
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004042c7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
push dword [eax - 0xc]
push eax
call fcn.004067c8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 8], ebx
je 0x40c129
push 0x49ccf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00406102
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40c105
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x2c]
push edx
push ecx
call dword [eax + 4]
test eax, eax
jne 0x40c105
inc eax
cmp dword [ebp - 0x2c], eax
cmove ebx, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
test ebx, ebx
jne 0x40c129
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0040c2eb
mov esi, eax
jmp 0x40c166
push dword [ebp - 0x24]
or dword [ebp - 0x38], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040b6ff
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], 0
jle 0x40c14a
lea ecx, [ebp - 0x20]
call fcn.0040b7aa
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
call fcn.0040c514
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0040b747
test esi, esi
je 0x40c17b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov eax, esi
call fcn.0044f621
ret 0xc
Function at 0x40eace
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa8
mov eax, 0x470769
call fcn.0044f666
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x94], 7
xor eax, eax
mov dword [ebp - 0x98], ebx
mov word [ebp - 0xa8], ax
mov esi, 0x48d9e0
mov dword [ebp - 4], 1
push esi
call fcn.004394f4
pop ecx
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040460a
mov esi, str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
push esi
call fcn.004394f4
pop ecx
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040ecff
mov esi, str.Implemented_Categories_
push esi
call fcn.004394f4
pop ecx
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040ecff
mov esi, str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
push esi
call fcn.004394f4
pop ecx
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040ecff
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0xac]
push ecx
push 1
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], ebx
cmovae eax, dword [ebp - 0xa8]
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, ebx
test eax, eax
jne 0x40ec26
mov ebx, 0x80
push ebx
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042ac90
add esp, 0xc
mov dword [ebp - 0xb0], ebx
lea eax, [ebp - 0xb0]
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push str.idex
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ec1a
cmp word [ebp - 0x90], bx
jne 0x40ebfb
mov eax, ebx
jmp 0x40ec08
lea eax, [ebp - 0x90]
push eax
call fcn.004394f4
pop ecx
push eax
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0040460a
xor esi, esi
inc esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.0040458c
mov eax, esi
call fcn.0044f621
ret

Function at 0x40eca3
Capabilities:
Create thread

Disassembly:
push esi
or esi, 0xffffffff
mov eax, str.kdump.dll
test ecx, ecx
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ecfb
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ecfb
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push eax
push 0x40ec3c
push ebx
push ebx
call fcn.0042ec2b
add esp, 0x18
mov edi, eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x40ecf9
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
ret

Function at 0x410800
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x410850
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x41084a
shr eax, 8
cmp al, 2
jne 0x41084a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261a3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004261a3
mov esp, ebp
pop ebp
ret
Function at 0x412420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
cmp ecx, 2
jne 0x412449
push dword [eax + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
push ebx
push 1
push dword [ebp + 0xc]
call eax
jmp 0x41247f
cmp dword [esi + 8], 0
jne 0x41246e
push 0x48756c
push dword [eax + 8]
call fcn.004362e3
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x41246e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push dword [esi + 8]
mov ebx, dword [ebp + 0x10]
push ebx
push 1
push dword [ebp + 0xc]
call fcn.00436df3
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41248c
cmp edi, ebx
jbe 0x4124aa
cmp dword [ebp + 8], 2
je 0x4124a4
push dword [esi + 8]
call fcn.00436370
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41a860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a8b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41a89a
pop edi
xor eax, eax
pop esi
pop ebp
ret
push eax
push edi
call fcn.0041deb0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041a4b0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x41a8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x140]
test eax, eax
je 0x41a8e9
push dword [esi + 0xe4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x41a91f
push dword [esi + 0xe0]
lea eax, [eax + eax*2]
push 1
add eax, 0x476598
push 2
push eax
call fcn.0043abc0
push dword [esi + 0xe0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043abc0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x458]
cmp ecx, 0xffffffff
je 0x41aad1
mov eax, dword [eax + 0x44c]
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x41aad1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aa99
mov dword [eax], ecx
mov eax, dword [ecx + 0xd4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp byte [ecx + 0xdc], 0
jne 0x41aac6
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ecx + 0xd4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41aacc
mov dword [esi], 0xffffffff
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret