joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445f00
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [esp + 0x14], bl
je 0x445f67
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push esi
call edi
mov ebp, dword [sym.imp.USER32.dll_keybd_event]
push 0
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004397b8
push 0
push esi
call edi
push 0
mov byte [esp + 0x20], al
mov edx, dword [esp + 0x20]
push 2
push edx
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
call fcn.004397cf
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
ret 0xc

Function at 0x446894
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4468b0
mov eax, dword [esp + 0x10]
cmp byte [eax + 5], 1
jne 0x446908
push 0
push 0
push 0xe
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x4468c8
mov edi, 0x7fff
push ebp
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412288
add esp, 4
mov esi, eax
push esi
push ebp
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov word [esi + edi*2], cx
pop ebp
test eax, eax
jg 0x446913
push esi
call fcn.00412949
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xc], 0
jne 0x44692e
push esi
call fcn.004143ca
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.004148ec
add esp, 8
push esi
test eax, eax
je 0x446900
mov byte [edi + 0xb8], 1
call fcn.00412949
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x42f050
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4677a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00429950
test eax, eax
je 0x42f158
lea ecx, [esp + 0xc]
call fcn.00404ac0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00429950
mov ecx, eax
call fcn.00427110
test eax, eax
je 0x42f13f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42f13f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42f13f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00404cc0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42f121
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42f13f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0xcbdc68]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0xc939e0
call fcn.00404cc0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x431ec0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467a38
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431ef9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43200c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x431f0d
mov eax, 0xffffffc7
jmp 0x43200e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x431f1e
cmp dword [esi + 8], eax
jne 0x431f0d
cmp dword [esi + 8], eax
jne 0x431f37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431f37
mov eax, 0xffffffc7
jmp 0x43200e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x431f4b
push eax
mov ecx, ebx
call fcn.004316f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404ac0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x431f7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404ae0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430e60
test eax, eax
mov dword [esp + 0x38], eax
je 0x431faf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cc0
mov eax, dword [esp + 0x38]
jmp 0x43200e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431d20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431ff3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431d40
mov esi, eax
test esi, esi
jne 0x432023
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431d20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431fc5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cc0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cc0
mov eax, esi
jmp 0x43200e

Function at 0x4350f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435150
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435150
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435150
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435150
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x403194
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047c4
test esi, esi
jne 0x4031ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048b4
jmp 0x4031e8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403098
mov edi, eax
test esi, esi
je 0x4031e8
cmp dword [ebx], 0
je 0x4031e8
dec esi
jmp 0x4031d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x426020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403858
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403838
xor eax, eax
push ebp
push 0x403831
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403874
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403838
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x426020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x426020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404644
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428044], 0
je 0x4046a5
cmp word [0x428218], 0xd7b2
jne 0x40466d
cmp dword [0x428220], 0
jbe 0x40466d
mov eax, 0x428214
call dword [0x428230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42602c], 0
jne 0x4046c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cc0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ef0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ef0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405dcc
xor eax, eax
push ebp
push 0x405dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405afc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405daa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f2c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405daa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dcc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405ee6
cmp byte [ebp - 0xd], 0
jne 0x405e13
cmp byte [ebp - 0x12], 0
je 0x405ee6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e2c
dec ebx
cmp byte [ebx], 0x2e
je 0x405e3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e2b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ee6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e78
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee6
cmp byte [ebp - 0xd], 0
je 0x405ee6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405dcc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ef0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ef0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405dcc
xor eax, eax
push ebp
push 0x405dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405afc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405daa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f2c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405daa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dcc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405ee6
cmp byte [ebp - 0xd], 0
jne 0x405e13
cmp byte [ebp - 0x12], 0
je 0x405ee6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e2c
dec ebx
cmp byte [ebx], 0x2e
je 0x405e3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e2b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ee6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e78
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee6
cmp byte [ebp - 0xd], 0
je 0x405ee6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407880
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40791e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404e68
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404c90
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x4078a8
cmp byte [esp], 0
je 0x4078ef
mov eax, edi
call fcn.00404c90
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40792a
mov eax, edi
call fcn.00404c90
push eax
mov eax, edi
call fcn.00404c90
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402f98
mov edx, ebx
mov eax, edi
call fcn.00404e68
jmp 0x40792a
mov eax, edi
mov edx, 0x407938
call fcn.00404818
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40793c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x4079d0
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00405324
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
add bp, 0x30
mov eax, dword [edi]
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x407964
cmp byte [esp], 0
je 0x4079a3
mov eax, dword [edi]
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x4079dc
mov eax, dword [edi]
call fcn.00405090
mov edx, eax
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
mov eax, dword [edi]
lea eax, [eax + esi*2]
call fcn.00402f98
mov edx, ebx
mov eax, edi
call fcn.00405324
jmp 0x4079dc
mov eax, edi
mov edx, 0x4079e8
call fcn.00404f38
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x407f58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00404818
mov eax, ebx
call fcn.00404c88
mov eax, dword [ebx]
call fcn.00404a60
test eax, eax
jle 0x407f89
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x407f7e
pop esi
pop ebx
ret

Function at 0x4088e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40892c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x408922
cmp word [edi], 0x5a4d
jne 0x408922
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x408922
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x408938
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408ac8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x426a54], 0
jne 0x408ba9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x408b1b
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x408b4c
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x408ba9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x408b77
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x408b89
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x408ba3
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40be80
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x40befc
cmp dword [esp + 0x10], 0x1000
jne 0x40befc
cmp dword [esp + 4], 0
je 0x40befc
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x40befc
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40befc
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40befc
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41005c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41011c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x427528]
call fcn.00407f58
push dword [ebp - 0xc]
push 0x410134
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
movzx ecx, byte [ebp - 5]
mov eax, dword [0x42752c]
call fcn.0040ff4c
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
call fcn.0040ff38
mov esi, eax
test esi, esi
je 0x4100f9
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4100f3
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410123
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004047e8
lea eax, [ebp - 4]
call fcn.004047c4
ret

Function at 0x41036c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov ebp, eax
xor esi, esi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4103ce
mov ebx, 0x71af0000
jmp 0x4103bc
cmp dword [esp + 0x10], 0x10000
jne 0x4103aa
push 0x40
push 0x2000
push ebp
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x4103ce
mov edi, dword [esp + 4]
cmp ebx, edi
jne 0x4103ba
sub ebx, 0x10000
jmp 0x4103bc
mov ebx, edi
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x41038a
push 0x40
push 0x1000
push ebp
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4106a4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x427614]
cmp eax, 0x1c
jne 0x41071f
cmp dword [ebp - 0xc], 0x1000
jne 0x41071a
cmp dword [ebp - 0x18], 0
je 0x41071a
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x41071a
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x4106f9
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x41071f
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4275e8]
cmp eax, 0
je 0x41071a
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x427640]
add ebx, dword [ebp - 0x10]
jmp 0x4106bb
popfd
popal
add esp, 0x20
pop ebp
ret 0xc