joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ad00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x55d158
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51ae46
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x1a8
jle 0x51ae3c
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], esi
je 0x51ae3c
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push 0x1a8
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x51ae33
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x1a8
push esi
call fcn.0051aa60
test eax, eax
je 0x51ae33
lea ecx, [ebp - 0x10c]
test ecx, ecx
jne 0x51ade0
xor edi, edi
jmp 0x51ae1c
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051e250
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
dec ecx
push 0x53d4a4
push ecx
push edx
call fcn.0042e020
add esp, 0x10
push esi
call fcn.0051e1fa
add esp, 4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51ae60
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
push 0x570b04
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x1c]
push eax
push str._s_s
push 0x104
push ecx
mov dword [esp + 0x24], esi
call fcn.0042dfb0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51afa7
lea eax, [esp + 0x18]
push eax
call fcn.004ae5c0
add esp, 4
test eax, eax
je 0x51afa7
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x51afa7
push ebp
push 0x570afc
push 0x570ae4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, esi
je 0x51af8f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push ebp
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov ebp, eax
je 0x51af8f
test ebp, ebp
je 0x51af8f
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x51af8b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1f21bc
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call fcn.0041e5d0
mov edx, dword [ebx]
lea esi, [ebx + 4]
push edx
push esi
call fcn.00496180
mov eax, dword [esi]
add esp, 0x14
test eax, eax
je 0x51af8b
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x51afc0
Capabilities:
Get file size

Disassembly:
sub esp, 0x624
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
test ecx, ecx
je 0x51b152
mov ebp, dword [esp + 0x63c]
mov ecx, 0x82
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x638]
push ebp
push eax
push str._s_s
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0042dfb0
add esp, 0x14
lea edx, [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x51b150
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x51b150
cmp edi, 0xffffffff
je 0x51b150
mov eax, dword [ebx + 4]
push 0
push 0x53cb44
push ebp
push eax
call fcn.00497160
add esp, 0x10
cmp edi, eax
jne 0x51b150
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], 0
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], ax
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x644]
test eax, eax
je 0x51b0ec
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x220]
push ecx
push 0x570b24
push ebp
push edx
call fcn.00496f70
add esp, 0x14
lea eax, [esp + 0x428]
lea ecx, [esp + 0x10]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.0051ad00
jmp 0x51b11f
mov eax, dword [ebx + 4]
lea edx, [esp + 0x220]
push edx
push 0x570b1c
push ebp
push eax
call fcn.00496f70
add esp, 0x14
lea ecx, [esp + 0x428]
lea edx, [esp + 0x10]
push 0x104
push ecx
push edx
mov ecx, ebx
call fcn.0051aba0
lea eax, [esp + 0x21c]
push 0x104
lea ecx, [esp + 0x42c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x51b150
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret 0xc
Function at 0x51d278
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf70
push 0x51e2be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x51d2fe
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x51d2d6
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x51d304
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x51d2ce
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x51d2ce
mov al, 1
jmp 0x51d2d0
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51d363
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x59ff00]
test esi, esi
je 0x51d387
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x51d36b
pop esi
pop ecx
ret

Function at 0x51d38a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59ff0c], eax
je 0x51d3a0
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x59ff1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x51d3ed
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x51d3de
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x51d3de
push eax
call fcn.0051d454
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0051e1fa
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51d3af
mov dword [0x59ff1c], ebx
call fcn.0051d42d
mov esi, dword [0x59ff18]
cmp esi, ebx
je 0x51d41a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0051e1fa
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51d402
pop edi
mov dword [0x59ff18], ebx
mov dword [0x59ff0c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x51d6d7
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x59ff10]
push esi
test eax, eax
push edi
jne 0x51d741
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x51d73f
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51d703
push 8
pop edi
jmp 0x51d71e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x51d72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0051e1fa
pop ecx
and dword [0x59ff14], 0
mov dword [0x59ff10], edi
mov eax, edi
jmp 0x51d741
mov dword [esi + 4], edi
mov eax, dword [0x59ff18]
mov dword [esi], eax
mov dword [0x59ff18], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x51d9fe
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x51da22
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x51da25
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x51da38
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x51da3f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x59ff04]
mov ecx, dword [0x59ff00]
test eax, eax
jne 0x51da59
test ecx, ecx
je 0x51da6e
mov eax, ecx
mov dword [0x59ff04], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x51da6e
cmp edx, dword [ebp + 8]
jb 0x51da6e
cmp edx, dword [ebp - 4]
jbe 0x51dbc7
mov eax, ecx
test ecx, ecx
mov dword [0x59ff04], eax
je 0x51da9e
test eax, eax
je 0x51da92
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51da92
cmp ecx, dword [ebp + 8]
jb 0x51da92
cmp ecx, dword [ebp - 4]
jbe 0x51dbc7
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x59ff04], eax
jne 0x51da7d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x51db06
cmp edi, 0x70000000
jb 0x51dac3
cmp edi, 0x80000000
ja 0x51dac3
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51db06
cmp dword [ebp - 0x10], ebx
jne 0x51dade
cmp dword [ebp - 0x14], ebx
jae 0x51daee
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x51daae
jmp 0x51db06
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59ff04], eax
jne 0x51db7d
cmp esi, dword [ebp - 4]
jae 0x51dbee
cmp esi, 0x70000000
jb 0x51db24
cmp esi, 0x80000000
ja 0x51db24
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51dbee
cmp dword [ebp - 0x10], ebx
jne 0x51db72
cmp dword [ebp - 0x14], ebx
jb 0x51db72
mov ecx, esi
and ecx, 0xffff
je 0x51db5a
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59ff04], eax
jne 0x51db7d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x51db06
mov dword [eax], 0x52727464
mov eax, dword [0x59ff04]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x59ff04]
mov edx, dword [0x59ff00]
mov dword [eax + 4], edx
mov eax, dword [0x59ff04]
mov dword [0x59ff00], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x51dbaf
mov eax, dword [0x59ff04]
mov dword [eax + 8], ecx
mov eax, dword [0x59ff04]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x51dbee
cmp esi, dword [ebp - 4]
ja 0x51dbee
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x51dbf0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51dbf5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf80
push 0x51e2be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51dc6a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x51dc66
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x51dc66
cmp word [eax + 0x14], 0
jne 0x51dc5b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x51dc6c
mov eax, ecx
jmp 0x51dc55
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51dc7b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59ff0c], eax
je 0x51dc9a
mov eax, 0x10dd
jmp 0x51dd70
mov eax, dword [0x59ff10]
test eax, eax
jne 0x51dd70
mov edi, dword [ebp + 8]
test edi, edi
jne 0x51dcb6
push 6
pop eax
jmp 0x51dd70
cmp dword [edi], 0
jne 0x51dcc8
push 6
pop eax
mov dword [0x59ff10], eax
jmp 0x51dd6a
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51dcdb
push 8
pop edi
jmp 0x51dd54
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0051d210
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x51dd49
cmp ecx, 0x17
ja 0x51dd49
cmp dword [edi + 0x1c], eax
jne 0x51dd49
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x51dd1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x51dd54
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x59ff1c]
mov dword [esi], eax
mov dword [0x59ff1c], esi
xor eax, eax
jmp 0x51dd70
cmp dword [0x59ff08], edx
push 9
pop edi
jne 0x51dd5a
mov dword [0x59ff10], edi
test esi, esi
je 0x51dd65
push esi
call fcn.0051e1fa
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x59ff14], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43c760
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d779b
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.004c9852
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43c7e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c6d7d
mov eax, dword [eax]
push 0x85b274
push eax
call fcn.004b7e84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c9add
test bl, bl
je 0x43c7e2
push 0x85b274
lea ecx, [esp + 0xc]
call fcn.004c9eb9
push 0x85ee10
lea ecx, [esp + 0xc]
call fcn.004c9eb9
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 0x43c81e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c9add
jmp 0x43c8e9
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 0x43c8a2
lea edx, [esp + 0x7c]
push 0x85ee0c
push edx
call fcn.004b7e84
add esp, 8
test eax, eax
je 0x43c8a2
lea eax, [esp + 0x7c]
push 0x85ee08
push eax
call fcn.004b7e84
add esp, 8
test eax, eax
je 0x43c8a2
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 0x43c832
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.004c9add
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 0x43d0e0
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 0x43d142
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 0x43d150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d781b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x86fdc4]
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 0x43d288
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43d1b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c9add
xor eax, eax
jmp 0x43d2ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c9c66
push esi
lea ecx, [esp + 0xc]
call fcn.004c9ef5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x85ee48
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43d2dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0043d0e0
test eax, eax
jne 0x43d2dd
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 bind
mov ecx, edi
call fcn.0043d0e0
test eax, eax
jne 0x43d2dd
lea eax, [esp + 0x14]
push 0x85ee24
push eax
call fcn.004b8f90
mov esi, eax
add esp, 8
test esi, esi
jne 0x43d2bc
lea ecx, [esp + 0x14]
push 0x85ee20
push ecx
call fcn.004b8f10
mov esi, eax
add esp, 8
test esi, esi
jne 0x43d2bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43d2bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c9c16
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43d1ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c9add
xor eax, eax
jmp 0x43d2ff
mov byte [esi], 0
push 0x85ee1c
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.004c9add
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 0x453fc0
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 0x45402e
cmp si, 0x69
ja 0x45402e
add esi, 0xffd0
cmp si, 0x11
je 0x453ffe
push 0x11
call edi
test ax, ax
jge 0x453ffe
or esi, 0x2000
cmp si, 0x10
je 0x454013
push 0x10
call edi
test ax, ax
jge 0x454013
or esi, 0x4000
cmp si, 0x12
je 0x454028
push 0x12
call edi
test ax, ax
jge 0x454028
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x45403b
mov esi, 0xbd
jmp 0x453fef
cmp si, 0x6e
jne 0x454048
mov esi, 0xbe
jmp 0x453fef
cmp si, 0x6f
jne 0x453fe9
mov esi, 0xbf
jmp 0x453fef

Function at 0x455ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x880db8]
xor edx, edx
cmp eax, edx
jne 0x455b06
xor eax, eax
mov byte [eax + 0x880cb8], al
inc eax
cmp eax, 0x100
jl 0x455aee
mov dword [0x880db8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x880cb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x455b97
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 0x455b6a
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 0x455b38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x455c10
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 0x455c63
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 0x455c4a
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