joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 8], bl
jne 0x40380f
cmp byte [esi + 0xc8], bl
je 0x4037fb
call fcn.004029ed
cmp eax, 0x3000
jae 0x4037fb
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x40380f
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
xor al, al
jmp 0x403885
movzx eax, byte [esi + 0xc8]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push 0xb
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
lea ecx, [ebp + 0x14]
call fcn.00401052
test eax, eax
jle 0x403844
lea ecx, [ebp + 0x14]
call fcn.00401062
jmp 0x403846
xor eax, eax
cmp byte [esi + 0xc8], bl
mov esi, str.runas
jne 0x403858
mov esi, str.open
push 1
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00401062
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
mov al, 1
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405105
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00404bc9
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.00404bba
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x405141
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x40518b
push 0x20
call fcn.00404ae4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40515e
mov ecx, edi
call fcn.00407304
mov ecx, edi
jmp 0x405160
xor ecx, ecx
mov dword [esi], ecx
call fcn.00404fbb
test al, al
jne 0x40518b
mov esi, dword [esi]
cmp esi, ebx
je 0x40517f
mov ecx, esi
call fcn.0040730a
push esi
call fcn.00404af8
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
mov al, bl
jmp 0x40513a
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [esi + 0x10]
call fcn.00401479
push ebx
push ebx
push esi
push 0x404cfa
push ebx
push ebx
mov dword [esi + 4], 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne bl
jmp 0x40517f

Function at 0x405c6c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x405cb1
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x405d13
push edi
call fcn.00404ae4
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x405cfc
test edi, edi
jbe 0x405cf8
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cf8
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x405cd1
cmp esi, edi
je 0x405d05
push ebx
call fcn.00404af8
pop ecx
jmp 0x405d13
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x405ca3
Function at 0x405d22
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 1
push ecx
push ecx
mov edi, ecx
mov ecx, esp
push str.AllowProtectedRenames
call fcn.0040140d
push ecx
push ecx
mov ecx, esp
push str.SYSTEMCurrentControlSetControlSession_Manager
call fcn.0040140d
push ecx
mov eax, esp
mov dword [eax], 0x80000002
lea eax, [ebp - 4]
push eax
call fcn.00407329
mov eax, dword [eax]
xor ebx, ebx
add esp, 0x1c
mov esi, 0x40d0c4
cmp eax, ebx
je 0x405dbf
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040140d
push 0x40d0c8
lea ecx, [ebp - 8]
call fcn.0040140d
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [edi]
push 0x40b
push 1
push ebx
call fcn.004028c5
lea ecx, [ebp - 8]
call fcn.00401471
push 4
push ebx
lea ecx, [ebp + 0x10]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405e31
call ebx
push ecx
push ecx
mov ecx, esp
push 0
push 0xa
push eax
call fcn.00401427
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040140d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [edi]
push 0x415
push 1
push 0
call fcn.004028c5
lea ecx, [ebp - 8]
call fcn.00401471
push 4
lea ecx, [ebp + 0x10]
call fcn.00401062
push eax
lea ecx, [ebp + 8]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405ea5
call ebx
push ecx
push ecx
mov ecx, esp
push 0
push 0xa
push eax
call fcn.00401427
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040140d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [edi]
push 0x415
push 1
push 0
call fcn.004028c5
lea ecx, [ebp - 8]
call fcn.00401471
lea ecx, [ebp + 8]
call fcn.00401471
lea ecx, [ebp + 0x10]
call fcn.00401471
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405ebc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x405eca
xor al, al
leave
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x405efe
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405efe
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x405ed5
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x405f20
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x208
push edi
call fcn.00404ae4
push edi
mov esi, eax
call fcn.00404ae4
pop ecx
pop ecx
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0xc]
push edi
call fcn.0040140d
push edi
call fcn.00404af8
push esi
call fcn.00404af8
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop edi
pop esi
ret 4
Function at 0x406921
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
push ecx
mov esi, ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, dword [esi]
push 0x14
xor edi, edi
push edi
push edi
call fcn.004028c5
test dword [ebp + 8], 0x200
je 0x406981
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, esi
call fcn.004061a6
test al, al
je 0x406981
push edi
push 3
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
call fcn.0040657e
add esp, 0x10
cmp eax, edi
je 0x40698a
push eax
call fcn.00405f09
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
push 4
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
call fcn.0040657e
add esp, 0x10
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x406981
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4069c2
xor esi, esi
inc esi
push dword [ebp + 0xc]
call fcn.00405f09
pop ecx
mov eax, esi
jmp 0x406983
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, dword [esi]
push 0x416
push 1
push edi
call fcn.004028c5
push 2
pop esi
jmp 0x4069b5

Function at 0x407329
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], esi
call fcn.00401062
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x407381
push 4
lea eax, [ebp + 0x20]
push eax
push 4
push esi
lea ecx, [ebp + 0x18]
call fcn.00401062
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov dword [esi], edi
call fcn.00401471
lea ecx, [ebp + 0x18]
call fcn.00401471
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4075fc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404b69]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40e114]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x407639
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x4076cd
and dword [ebp - 0x80], 0
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x407672
push ebx
push str.IsWow64Process
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x407671
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x4076a8
push str.GetSystemWow64DirectoryW
push edi
call esi
test eax, eax
je 0x4076a8
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.00404ae4
pop ecx
test eax, eax
je 0x4076b9
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x4076bb
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x40768f
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40e114], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00404b69
add ebp, 0x194
leave
ret

Function at 0x4077bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [fcn.00404b69]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4077e2
call fcn.0040730a
push ebx
push 0x40d1e8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 8]
call fcn.004017f3
lea ecx, [ebp - 0x21c]
call fcn.00401052
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00401052
cmp edi, eax
jne 0x407899
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x407850
lea ecx, [ebp - 0x21c]
call fcn.00401471
lea ecx, [ebp + 8]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404b69
leave
ret 8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040140d
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x214]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp + 8]
call fcn.00401479
lea ecx, [ebp - 0x214]
call fcn.00401471
lea ecx, [ebp + 8]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi], eax
setne bl
jmp 0x40782a
Function at 0x4081f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
push dword [esi + 0x50]
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebp + 8]
push 0x40d2fc
push dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4082c4
push ebx
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ebx, eax
je 0x4082c3
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.0040802e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.00407bbf
add esp, 0x24
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4082c3
imul esi, dword [ebp + 8]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.00408059
add esp, 0x10
test al, al
je 0x4082c3
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 1], 1
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x408430
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004085e0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40852e
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4084d1
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x408514
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4084e8
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x408503
test al, 0x40
je 0x4084fa
mov ecx, dword [edi + 0x20]
jmp 0x408501
test al, 0x80
je 0x408514
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x408514
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4084a0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4380e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x71f37b
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.00713c6a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x438162
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00711a59
mov eax, dword [eax]
push 0xdddce8
push eax
call fcn.00703164
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00713ef5
test bl, bl
je 0x438162
push 0xdddce8
lea ecx, [esp + 0xc]
call fcn.00714285
push 0xdddcf4
lea ecx, [esp + 0xc]
call fcn.00714285
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 0x43819e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00713ef5
jmp 0x438269
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x438222
lea edx, [esp + 0x7c]
push 0xdddcf0
push edx
call fcn.00703164
add esp, 8
test eax, eax
je 0x438222
lea eax, [esp + 0x7c]
push 0xdddcec
push eax
call fcn.00703164
add esp, 8
test eax, eax
je 0x438222
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 0x4381b2
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.00713ef5
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 0x438a60
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 0x438ac2
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
Function at 0x438ad0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x71f3fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xe3a650]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x438c08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x438b36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00713ef5
xor eax, eax
jmp 0x438c7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00714032
push esi
lea ecx, [esp + 0xc]
call fcn.007142c1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xdddd28
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA_1]
mov esi, eax
cmp esi, 0x20
ja 0x438c5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00438a60
test eax, eax
jne 0x438c5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00438a60
test eax, eax
jne 0x438c5d
lea eax, [esp + 0x14]
push 0xdddd04
push eax
call fcn.007042b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x438c3c
lea ecx, [esp + 0x14]
push 0xdddd00
push ecx
call fcn.00704230
mov esi, eax
add esp, 8
test esi, esi
jne 0x438c3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x438c3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00713fe2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x438b4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00713ef5
xor eax, eax
jmp 0x438c7f
mov byte [esi], 0
push 0xdddcfc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00713ef5
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4499e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x449a4e
cmp si, 0x69
ja 0x449a4e
add esi, 0xffd0
cmp si, 0x11
je 0x449a1e
push 0x11
call edi
test ax, ax
jge 0x449a1e
or esi, 0x2000
cmp si, 0x10
je 0x449a33
push 0x10
call edi
test ax, ax
jge 0x449a33
or esi, 0x4000
cmp si, 0x12
je 0x449a48
push 0x12
call edi
test ax, ax
jge 0x449a48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x449a5b
mov esi, 0xbd
jmp 0x449a0f
cmp si, 0x6e
jne 0x449a68
mov esi, 0xbe
jmp 0x449a0f
cmp si, 0x6f
jne 0x449a09
mov esi, 0xbf
jmp 0x449a0f

Function at 0x44b630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xe4aec0]
xor edx, edx
cmp eax, edx
jne 0x44b656
xor eax, eax
mov byte [eax + 0xe4adc0], al
inc eax
cmp eax, 0x100
jl 0x44b63e
mov dword [0xe4aec0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe4adc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44b6e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44b6ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44b688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44b760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44b7b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44b79a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret