joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438e20
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 8]
push 0
push 5
push 2
push 1
push eax
push 0
mov word [ebp - 2], cx
mov dword [ebp - 8], 0
call esi
cmp eax, 0x7a
je 0x438e54
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.0043dbf5
mov edi, eax
add esp, 4
test edi, edi
je 0x438e82
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x438e8a
push edi
call fcn.0043dbf0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
push ebx
cmp dword [edi], esi
jbe 0x438eac
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x438ebe
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x438e94
push edi
call fcn.0043dbf0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x18]
push edi
call fcn.0043dbf0
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.00588950
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00588950
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00588950
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x651e7c
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005914ad
push 0x6138f8
push 0x104
push esi
call fcn.00590fc1
add esp, 0x20
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x439095
push esi
push dword [ebp - 0x620]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x618b80
push 0x104
push esi
call fcn.0058fd93
lea eax, [ebp - 0x414]
push eax
push 0x104
push esi
call fcn.0058fd93
push 0x618c08
push 0x104
push esi
call fcn.0058fd93
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x4390e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x605974
push 1
push 0
push 0x605cd4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4391b2
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x605c64
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4391a6
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00590fc1
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x43a3b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x642ff4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ecx
mov edx, 0x618c40
lea ecx, [esp + 8]
call fcn.00427bf0
add esp, 4
lea eax, [esp + 4]
cmp dword [esp + 0x18], 0x10
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x43a403
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00406c20
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x43ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0x20019
push 0
push 0x616fe4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ad68
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x43ad6f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ad80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x616fe4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43adeb
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43adb7
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
push dword [ebp - 4]
test eax, eax
je 0x43adf2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ae50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
shr edi, 2
mov ebx, edx
mov dword [ebp - 4], ecx
test edi, edi
je 0x43ae92
nop dword [eax + eax]
mov eax, 0xfc0fc0fd
mov ecx, esi
mul esi
shr edx, 8
imul eax, edx, 0x104
sub ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
xor dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x43ae70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43aea0
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9298
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [ebx], ax
jne 0x43aef8
xor ecx, ecx
jmp 0x43af0f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43af00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040cae0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x50]
mov edi, dword [0x652194]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov esi, dword [0x652088]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x43af56
cmp dword [ebp - 0x30], esi
jb 0x43af56
lea ecx, [ebp - 0x2c]
call fcn.0043d5c0
mov byte [ebp - 0x51], 1
cmp eax, edi
je 0x43af5a
mov byte [ebp - 0x51], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x43af6f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040cbe0
cmp byte [ebp - 0x51], 0
jne 0x43b074
lea eax, [ebp - 0x58]
push eax
push fcn.0043aea0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x43b081
push 2
push 0x618c6c
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43b081
push esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x43b081
push esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43b081
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x43b081
push edi
call fcn.0043dbf5
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
push edi
push dword [ebp - 0x60]
mov byte [ebp - 4], 1
push esi
call fcn.00588e80
mov edi, dword [0x6526ac]
mov ecx, 0x65229c
push dword [0x652088]
add edi, esi
mov edx, edi
call fcn.0043ae50
mov ecx, dword [edi + 0x3c]
mov eax, dword [0x652194]
mov dword [ecx + edi + 0x58], eax
mov ecx, ebx
push dword [0x652088]
push edi
call fcn.0043d730
mov ebx, dword [ebp + 0xc]
add esp, 0x18
mov edi, dword [ebp - 0x5c]
test bl, bl
jns 0x43b053
mov ecx, edi
call fcn.0043d790
push 0x618c78
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and ebx, 0x20
or ebx, 0x800
shr ebx, 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x43b074
push esi
call fcn.0043dbf0
add esp, 4
mov eax, 1
jmp 0x43b083
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x43b0a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push fcn.0043b0a0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x43b0c2
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0x618c54
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43b0e3
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x43b10d
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43b10d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x43b118
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [edi - 0x880]
mov ecx, 0x220
add esi, eax
mov edi, 0x651e30
rep movsd dword es:[edi], dword [esi]
xor esi, esi
nop
mov eax, 0xfc0fc0fd
mov ecx, esi
mul esi
shr edx, 8
imul eax, edx, 0x104
sub ecx, eax
mov eax, dword [ecx*4 + 0x65229c]
xor dword [esi*4 + 0x651e30], eax
inc esi
cmp esi, 0x11b
jb 0x43b130
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push fcn.0043b170
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0x618c64
push 0x1391
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43b1a4
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov edx, dword [ecx]
mov dword [ecx], edi
cmp edx, edi
jb 0x43b1d7
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43b1d7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x43b1df
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
push dword [ebp + 8]
call fcn.00588e80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b4d0
Capabilities:
Check if file exists
Delete file
Delete registry value
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00588950
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x616fe4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b61d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x616fd4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43b56c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push dword [ebp - 0x210]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b5cc
push 0x64
call edi
inc esi
cmp esi, 0x1e
jl 0x43b590
jmp 0x43b5e2
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x210]
push eax
push 2
push 0
push 0x616fe4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b61a
push 0x616fd4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x43b8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
cmp ecx, 4
ja 0x43b8ec
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
push ebx
movzx ebx, al
movsx eax, byte [edx + 3]
shl eax, 8
or ebx, eax
movsx eax, byte [edx + 1]
movzx eax, al
shl ebx, 8
or ebx, eax
movsx eax, byte [edx]
movzx eax, al
shl ebx, 8
push edi
or ebx, eax
xor edi, edi
lea eax, [ecx - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c7c0
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
sub eax, dword [esi]
cmp eax, ecx
jbe 0x43b94c
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
mov al, byte [eax + ecx]
xor al, 0xb8
mov byte [edx + ecx - 4], al
inc ecx
movzx eax, al
xor edi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x43b932
cmp edi, ebx
je 0x43b963
lea ecx, [ebp - 0xc]
xor bl, bl
call fcn.00414390
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x43b997
mov ecx, esi
call fcn.00414390
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc]
mov bl, 1
call fcn.00414390
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d3a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x618a40
push 0x618aa4
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43d3dd
lea ecx, [ebp - 0x118]
push ecx
call eax
push 0x3c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00588950
add esp, 0xc
mov dword [ebp - 0x154], 0x3c
cmp dword [ebp - 0x114], 5
mov ecx, 0x618d58
mov eax, 0x618d64
mov dword [ebp - 0x150], 0x40
cmovne eax, ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00582166
mov esp, ebp
pop ebp
ret

Function at 0x43d460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d4d2
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43d4d2
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005886c7
add esp, 8
test eax, eax
jne 0x43d4ec
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x43d4b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret

Function at 0x43d510
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d59c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43d59c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005886c7
add esp, 8
test eax, eax
je 0x43d58d
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x43d560
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x43d5c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x62c5d8
push 0x589440
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocString
call fcn.004122c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
je 0x43d66e
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x43d671
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x43d674
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x43d674
mov eax, dword [ecx + 0x3c]
mov edi, dword [eax + ecx + 0x58]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call 0x43d68e
jmp 0x43d68e
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call 0x43d68e
jmp 0x43d68e
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov esp, dword [ebp - 0x18]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d730
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d784
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d790
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c94fb
mov eax, dword fs:[0]
push eax
mov eax, 0x14a8
call fcn.00582980
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00588950
add esp, 0xc
mov dword [ebp - 0x114], 0xf
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
push 0
push 0x616a1d
call fcn.004066e0
mov dword [ebp - 4], 0
call fcn.005835da
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x43d838
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.00406c20
sub esp, 8
call fcn.005835da
push eax
lea ecx, [ebp - 0x14b0]
call fcn.0043d960
mov eax, ecx
mov dword [ebp - 0x118], 0x20
xor esi, esi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], 0xffffffff
nop word [eax + eax]
push 0x100
lea ecx, [ebp - 0x11c]
call fcn.0043d9b0
add eax, 0x80000000
add eax, 0x80000000
mov byte [ebp + esi - 0x110], al
inc esi
cmp esi, 0x100
jb 0x43d870
lea eax, [ebp - 0x14b0]
mov dword [ebp - 0x118], 0x20
push 0xf0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], 0xffffffff
call fcn.0043d9b0
add eax, reloc.OLEAUT32.dll_SafeArrayGetDim
push 0x80
push edi
lea ebx, [eax - 0x80000000]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d934
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14b4]
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x43d936
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret

Function at 0x43d960
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x43d980
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x43daa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x43dab0
pop esi
ret