joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x632ba8
push 0x58e680
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x649fe8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x435dd1
sub edx, ecx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
call fcn.00594b37
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x435f60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435e02
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
test edx, edx
je 0x435e2a
cmp edx, 0x7fffffff
ja 0x435e2a
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004352f0
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x435e95
cmp word [edi + 2], 0x5c
jne 0x435e95
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
movzx eax, word [esi]
test ax, ax
je 0x435e67
cmp eax, 0x5c
je 0x435e67
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x435e50
cmp word [esi], 0
je 0x435e73
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x435e87
cmp eax, 0x5c
je 0x435e87
push esi
call ebx
mov esi, eax
jmp 0x435e70
cmp word [esi], 0
je 0x435ec1
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x435ec1
cmp word [edi + 2], 0x3a
jne 0x435ebb
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x435ebb
cmp eax, 0x5c
jne 0x435ebb
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx eax, word [esi]
test ax, ax
je 0x435f12
cmp eax, 0x5c
jne 0x435f08
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x435efc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x435f00
push edi
jmp 0x435f58
test al, 0x10
je 0x435ef9
mov eax, 0x5c
mov word [esi], ax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x435ec1
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00590ab7
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00590ab7
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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 0x435f80
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 0x435fb4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.0043b805
mov edi, eax
add esp, 4
test edi, edi
je 0x435fe2
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x435fea
push edi
call fcn.0043b800
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 0x43600c
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x43601e
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x435ff4
push edi
call fcn.0043b800
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.0043b800
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x649fe8]
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.0058db90
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0058db90
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0058db90
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x65adac
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.005966df
push 0x61b09c
push 0x104
push esi
call fcn.005961f3
add esp, 0x20
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4361f5
push esi
push dword [ebp - 0x620]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x61ff8c
push 0x104
push esi
call fcn.00594e56
lea eax, [ebp - 0x414]
push eax
push 0x104
push esi
call fcn.00594e56
push 0x61fff4
push 0x104
push esi
call fcn.00594e56
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00571951
mov esp, ebp
pop ebp
ret
Function at 0x436240
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649fe8]
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 0x60cbe8
push 1
push 0
push 0x60cf08
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x436312
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 0x60ceb8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x436306
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005961f3
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.00571951
mov esp, ebp
pop ebp
ret
Function at 0x437620
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x649fe8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ecx
mov edx, 0x62001c
lea ecx, [esp + 8]
call fcn.00425490
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 0x437673
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00406b10
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00571951
mov esp, ebp
pop ebp
ret
Function at 0x437f90
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 0x61e6dc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x437ffb
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 0x437fc7
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 0x438002
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 0x438370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0b10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x649fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push fcn.00438370
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x65b484]
mov edx, dword [ecx]
mov dword [ecx], eax
cmp edx, dword [0x65b484]
jb 0x43849d
push 2
push 0x620030
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43849d
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43849d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43849d
push ebx
call fcn.0043b805
add esp, 4
mov ebx, eax
push dword [ebp + 0xc]
push esi
push ebx
call fcn.0058e0c0
mov ecx, dword [0x65b484]
lea edx, [ebx + 0x8bfe]
add esp, 0xc
xor esi, esi
test ecx, 0xfffffffc
jbe 0x438480
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
lea edx, [ebx + 0x8bfe]
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x65ae74]
sub dword [edx + esi*4], eax
inc esi
mov ecx, dword [0x65b484]
mov eax, ecx
shr eax, 2
cmp esi, eax
jl 0x438447
push ecx
push edx
push dword [ebp + 8]
call fcn.0058e0c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call fcn.0043b800
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4384c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push fcn.004384c0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 2
push 0x6200b8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4384f3
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x438517
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43852c
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00594b37
push dword [ebp - 8]
mov esi, eax
push edi
push esi
call fcn.0058e0c0
add esi, 0x8bfe
mov ecx, 0x28b
mov edi, 0x65aa68
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x65aa68]
sub dword [esi*4 + 0x65ac68], eax
inc esi
cmp esi, 0x20b
jl 0x438557
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438890
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 [0x649fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0058db90
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x61e6dc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4389dd
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x61e6cc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43892c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00571951
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 0x43898c
push 0x64
call edi
inc esi
cmp esi, 0x1e
jl 0x438950
jmp 0x4389a2
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 0x61e6dc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4389da
push 0x61e6cc
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.00571951
mov esp, ebp
pop ebp
ret
Function at 0x4390e0
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 0x4390fc
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.00439fd0
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
sub eax, dword [esi]
cmp eax, ecx
jbe 0x43915c
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 0x439142
cmp edi, ebx
je 0x439173
lea ecx, [ebp - 0xc]
xor bl, bl
call fcn.00412a40
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x4391a7
mov ecx, esi
call fcn.00412a40
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.00412a40
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43abe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x649fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x61fea0
push 0x61feb0
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 0x43ac1d
lea ecx, [ebp - 0x118]
push ecx
call eax
push 0x3c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.0058db90
add esp, 0xc
mov dword [ebp - 0x154], 0x3c
cmp dword [ebp - 0x114], 5
mov ecx, 0x620174
mov eax, 0x620168
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.00571951
mov esp, ebp
pop ebp
ret

Function at 0x43aca0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x649fe8]
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 0x43ad12
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43ad12
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0058d907
add esp, 8
test eax, eax
jne 0x43ad2c
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x43acf0
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.00571951
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.00571951
mov esp, ebp
pop ebp
ret

Function at 0x43ad50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x649fe8]
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 0x43addc
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43addc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0058d907
add esp, 8
test eax, eax
je 0x43adcd
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 0x43ada0
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.00571951
mov esp, ebp
pop ebp
ret
Function at 0x43ae00
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x632fe0
push 0x58e680
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x649fe8]
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 SysReAllocStringLen
call fcn.00409db0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
je 0x43aeae
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 0x43aeb1
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 0x43aeb4
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x43aeb4
mov eax, dword [ecx + 0x3c]
mov edi, dword [eax + ecx + 0x58]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call 0x43aece
jmp 0x43aece
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call 0x43aece
jmp 0x43aece
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 0x43af70
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push esi
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43afc7
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]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b310
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0dbb
mov eax, dword fs:[0]
push eax
mov eax, 0x14a8
call fcn.005720c0
mov eax, dword [0x649fe8]
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.0058db90
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 0x61f668
call fcn.004065d0
mov dword [ebp - 4], 0
call fcn.00572e07
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x43b3b8
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.00406b10
sub esp, 8
call fcn.00572e07
push eax
lea ecx, [ebp - 0x14b0]
call fcn.0043b4e0
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.0043b5c0
add eax, 0x80000000
add eax, 0x80000000
mov byte [ebp + esi - 0x110], al
inc esi
cmp esi, 0x100
jb 0x43b3f0
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.0043b5c0
add eax, 0x80000010
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 0x43b4b4
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 0x43b4b6
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.00571951
mov esp, ebp
pop ebp
ret

Function at 0x43b4e0
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 0x43b500
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x43b6b0
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 0x43b6c0
pop esi
ret