joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b40
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [esp + 0x10], ecx
call ebp
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x10]
push 0
push esi
push edi
mov ecx, dword [eax + 0x1004]
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x406b95
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x406ba7
call ebp
sub eax, ebx
cmp eax, 0xfa0
ja 0x406ba7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406ba1
test eax, eax
jle 0x406ba7
add edi, eax
sub esi, eax
call ebp
mov ebx, eax
test esi, esi
jle 0x406bb1
jmp 0x406b5b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x406e70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00409be0
mov edi, dword [esp + 0x11c]
mov byte [eax + 1], 0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4070c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4070e5
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4070e3
mov eax, dword [eax + 0xc]
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
xor eax, eax
pop esi
ret

Function at 0x4070f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x404
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x407134
add esp, 0x404
ret
lea edx, [esp + 4]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x407149
add esp, 0x404
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
add esp, 0x404
ret
Function at 0x407160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cce7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x424a70]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 8], eax
mov ebx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], ebx
or eax, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push esi
push eax
mov byte [esp + 0x38], 2
mov dword [esp + 0x20], 6
call sub.iphlpapi.dll_SendARP
cmp eax, esi
jne 0x407293
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x407293
lea ecx, [eax + eax*2]
push edi
push ecx
call fcn.0041610f
mov edx, dword [esp + 0x18]
add esp, 4
dec edx
mov edi, eax
test edx, edx
jbe 0x407220
xor eax, eax
lea ecx, [esp + 0xc]
mov al, byte [esp + esi + 0x1c]
push eax
push str._02X
push ecx
call fcn.0041531b
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.00415ffe
mov eax, dword [esp + 0x14]
inc esi
dec eax
cmp esi, eax
jb 0x4071ef
xor ecx, ecx
lea edx, [esp + 0xc]
mov cl, byte [esp + esi + 0x1c]
push ecx
push str._02X
push edx
call fcn.0041531b
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00415ffe
push edi
call fcn.00416138
mov esi, dword [esp + 0x38]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00415a81
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x2c], bl
call fcn.00415d0c
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00415d0c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov esi, dword [esp + 0x30]
push 0x4281bc
mov ecx, esi
call fcn.00415d7a
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00415d0c
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00415d0c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4072e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41cd13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push 0
push 2
mov dword [esp + 0x140], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4073c5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x424a70]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x148], 1
call fcn.00415e49
lea ecx, [esp + 0x10]
call fcn.004160ad
lea ecx, [esp + 0x14c]
call fcn.004160ad
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004094ae
add esp, 8
test eax, eax
jne 0x40739c
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x1f0fff
call edi
push 0
push eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x144], 0
call fcn.00415d0c
test esi, esi
jne 0x40733c
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.00415d0c
mov ecx, dword [esp + 0x130]
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x407400
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40746c
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x4078f0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40799c
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40798a
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407977
mov eax, dword [esp + 0x14]
mov esi, 3
cmp eax, 1
jne 0x40795d
push edi
mov esi, 2
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 4
jne 0x40797a
push edi
mov esi, 1
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
or esi, 0xffffffff
push edi
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
mov esi, 0xfffffffe
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 0xfffffffd
pop ebx
add esp, 0x1c
ret

Function at 0x4079b0
Capabilities:
Start service

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004078f0
add esp, 4
cmp eax, 1
je 0x407a02
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407a02
push ebx
push 0x34
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4079fe
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
ret

Function at 0x407a10
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.004078f0
add esp, 4
cmp eax, 2
je 0x407a5f
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x407a5f
push 0x34
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x407a58
lea ecx, [esp + 8]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x407a70
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41cdb0
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x407ae7
mov eax, dword [esp + 0x24]
push edi
mov ecx, dword [esp + 0x24]
push edi
mov edx, dword [esp + 0x24]
push 0x4281bc
push edi
push edi
push eax
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x407ae4
push eax
mov edi, 1
call ebx
push esi
call ebx
lea ecx, [esp + 0x1c]
call fcn.00415d0c
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.00415d0c
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.00415d0c
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x407b30
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x407bd0
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x407bc8
lea ecx, [esp + 0xc]
push edi
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407bad
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
je 0x407bad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 3
jne 0x407bac
push 0x64
call ebx
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
jne 0x407b95
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop edi
je 0x407bc1
mov dword [esp + 8], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea ecx, [esp + 0x28]
call fcn.00415d0c
mov eax, dword [esp + 4]
pop ebp
add esp, 0x20
ret

Function at 0x407bf0
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407c45
mov eax, dword [esp + 8]
push ebx
push esi
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x407c40
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x408040
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x2001f
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40806d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4080a3
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call edi
push ebp
call edi
test esi, esi
je 0x4081ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0
push 0
mov eax, dword [esp + 0x20]
push 0
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x50], 0
call ebx
test eax, eax
jne 0x40815d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x4081a7
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0041610f
mov edx, dword [esp + 0x14]
add esp, 4
inc edx
mov esi, eax
mov eax, dword [esp + 0x18]
push edx
push esi
push 0
push eax
call edi
test eax, eax
jne 0x408170
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.00408040
add esp, 0xc
test eax, eax
push esi
je 0x40818c
call fcn.00416138
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jbe 0x4081a7
push 0
push 0
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push 0
push 0
push 0
push ecx
call ebx
test eax, eax
je 0x4080e2
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
call fcn.00416138
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call fcn.00416138
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4081ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x408240
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], 0x10
call fcn.004070c0
add esp, 4
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
push 0x26d3
call sub.WSOCK32.dll_htons
lea ebx, [esi + 4]
mov word [esp + 0x16], ax
mov ebp, dword [esp + 0x2c]
mov ecx, 0xfa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
push ebp
stosb byte es:[edi], al
push ecx
mov edi, 0x4246c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
push ecx
push 0x4246c4
call fcn.004036a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x3f4]
add esp, 0x14
lea edx, [esp + 0x14]
push 0x10
push edx
push 0
push eax
push ebp
push ecx
call sub.WSOCK32.dll_sendto
mov ecx, dword [esi + 0x3f4]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x3e8
push ebx
push ecx
call sub.WSOCK32.dll_recvfrom
push ebx
mov dword [esi + 0x3f0], eax
push eax
mov edi, 0x4246c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
push 0x4246c4
call fcn.004036a0
mov eax, dword [esi + 0x3f0]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc

Function at 0x408320
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0
push 2
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
push 0
mov dword [esi + 0x3f4], eax
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x3f4]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
mov eax, dword [esi + 0x3f4]
lea edx, [esp + 4]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x18], 0x3e8
call sub.WSOCK32.dll_setsockopt
pop esi
add esp, 0x14
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c91
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
sub esi, esi
and esi, esi
inc esi
call fcn.00438ccf
sub edx, 0x30fbbe52
sub esp, 4
mov dword [esp], edx
pop esi
add esi, edx
xor dword [ecx], eax
add edx, edx
or esi, edx
inc ecx
sub esi, edx
add esi, 0xec35f92e
cmp ecx, ebx
jne fcn.00438c91
and edx, esi
ret
Function at 0x40106c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push edi
push esi
push edx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edi, 0x403cbc
mov dword [ebp - 4], 0x10
mov ebx, edi
xor eax, dword [ebx]
mov edx, eax
push eax
call fcn.00401000
mov ecx, dword [ebp - 4]
xor eax, esi
add ebx, 4
dec ecx
mov esi, edx
mov dword [ebp - 4], ecx
jne 0x40108f
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
xor ecx, eax
xor edx, esi
mov dword [0x404d4c], edx
mov dword [0x404d48], ecx
pop ecx
pop edx
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x4010c8
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push edi
push esi
push edx
push ecx
mov esi, 0x403cbc
mov eax, 0x4052c2
lea ecx, [esi + 0x48]
mov edx, 0x100
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x4010e5
cmp eax, 0x4062c2
jl 0x4010e0
mov edx, dword [ebp + 8]
mov edi, 0x40527a
xor eax, eax
sub edi, esi
mov dword [ebp - 4], 0x12
xor ecx, ecx
mov dword [ebp - 8], 4
xor ebx, ebx
mov bl, byte [edx + eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x401127
xor eax, eax
mov ebx, dword [ebp - 8]
dec ebx
mov dword [ebp - 8], ebx
jne 0x401115
mov ebx, dword [esi + edi]
add esi, 4
xor ebx, ecx
mov ecx, dword [ebp - 4]
mov dword [esi - 4], ebx
dec ecx
mov dword [ebp - 4], ecx
jne 0x40110c
mov ebx, 0x403cbc
xor eax, eax
mov dword [0x404d48], eax
mov dword [0x404d4c], eax
mov esi, ebx
mov edi, 9
lea eax, [0x404d48]
lea ecx, [0x404d4c]
push eax
push ecx
call fcn.0040106c
mov eax, dword [0x404d4c]
mov ecx, dword [0x404d48]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 8
dec edi
jne 0x40115c
lea esi, [ebx + 0x4c]
mov dword [ebp - 0xc], 4
mov edi, 0x80
lea ecx, [0x404d48]
lea edx, [0x404d4c]
push ecx
push edx
call fcn.0040106c
mov ecx, dword [0x404d4c]
mov edx, dword [0x404d48]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esi, 8
dec edi
jne 0x401194
dec dword [ebp - 0xc]
jne 0x40118f
pop ecx
pop edx
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x427900
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba7fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004abcb9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x427982
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a90fc
mov eax, dword [eax]
push 0x5be1e0
push eax
call fcn.0049aaf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004abf44
test bl, bl
je 0x427982
push 0x5be1e0
lea ecx, [esp + 0xc]
call fcn.004ac2d4
push 0x5c1d5c
lea ecx, [esp + 0xc]
call fcn.004ac2d4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4279be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004abf44
jmp 0x427a89
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x427a42
lea edx, [esp + 0x7c]
push 0x5c1d58
push edx
call fcn.0049aaf4
add esp, 8
test eax, eax
je 0x427a42
lea eax, [esp + 0x7c]
push 0x5c1d54
push eax
call fcn.0049aaf4
add esp, 8
test eax, eax
je 0x427a42
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4279d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004abf44
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x428280
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4282e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc