joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a8d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x44a96f
cmp dword [ebx + 0x94], 0
jne 0x44a969
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a858
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a969
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a92f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a969
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c230
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a93e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ab88
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47bcdc]
cmp dword [eax + 0x30], 0
je 0x44ace5
test bl, bl
jne 0x44ac36
cmp dword [esi + 0x9c], 0
jne 0x44ac2b
mov eax, esi
call fcn.0044d258
push eax
push 0x44aab4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x44abfc
mov eax, dword [0x47bcdc]
call fcn.0044d938
test al, al
je 0x44abfc
mov eax, dword [0x47bd04]
call fcn.00405bd4
mov edi, eax
cmp edi, 0
jl 0x44abfc
push 0
mov eax, dword [0x47bd04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x44abe6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x44ac2b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c230
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x44ac0b
inc dword [esi + 0x9c]
jmp 0x44ace5
cmp dword [esi + 0x9c], 0
jle 0x44ace5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x44ace5
cmp dword [esi + 0x44], 0
je 0x44ac91
mov eax, dword [0x47bcdc]
call fcn.0044d938
test al, al
je 0x44ac91
mov eax, dword [0x47bd04]
call fcn.00405bd4
mov edi, eax
cmp edi, 0
jl 0x44ac91
push 5
mov eax, dword [0x47bd04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x44ac7b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x44acc0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c230
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x44aca0
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x47bd04
mov ecx, 1
mov edx, dword [0x44aa94]
call fcn.00405d88
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x44b7cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x44b836
mov eax, ebx
call fcn.0044d938
test al, al
jne 0x44b836
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a54
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x44b823
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x44b843
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b8
jmp 0x44b843
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b8
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x44ca5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44caca
mov eax, esi
call fcn.0045bb64
test al, al
je 0x44caca
mov eax, dword [ebx + 0x84]
call fcn.0045b7f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44caca
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x44cabe
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b7f0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0045366c
jmp 0x44caca
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0044c898
pop esi
pop ebx
ret
Function at 0x450f0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x47bd60], 0
je 0x451055
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x475c48]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x451055
mov eax, dword [0x47bd64]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47bd60]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x451024
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47bd60]
call fcn.0041c230
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45101c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x45101c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45101c
mov eax, dword [ebp - 0x14]
call fcn.0045b7f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45101c
push ebp
call fcn.00450ec8
pop ecx
test al, al
jne 0x45101c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403d14
test al, al
je 0x45101c
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403d14
cmp byte [ebp - 1], 0
je 0x45101c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x45101c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47bd64]
call fcn.00450638
inc edi
dec ebx
jne 0x450f71
mov eax, dword [0x47bd64]
cmp dword [eax + 8], 0
jle 0x45103c
mov eax, dword [0x47bd64]
call fcn.004506f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x451055
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00450d2c
pop ecx
test al, al
jne 0x451055
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4586c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406b38
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00453294
test ebx, ebx
jne 0x458717
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00458600
mov ebx, eax
test ebx, ebx
je 0x458802
cmp esi, ebx
je 0x458740
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x458755
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45878d
add eax, 0xffffff5f
sub eax, 2
jb 0x4587a5
dec eax
sub eax, 2
jb 0x4587b9
dec eax
sub eax, 2
jb 0x4587af
jmp 0x4587c3
add eax, 0xfffffdff
sub eax, 2
jb 0x4587a5
dec eax
sub eax, 2
jb 0x4587b9
dec eax
sub eax, 2
jb 0x4587af
jmp 0x4587c3
mov byte [esp + 0x120], 0
jmp 0x4587cb
mov byte [esp + 0x120], 2
jmp 0x4587cb
mov byte [esp + 0x120], 1
jmp 0x4587cb
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00440eac
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00454a30
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x458804
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x460b34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x475dcc]
cmp byte [eax + 0xc], 0
je 0x460ca1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460c9a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47bd70], 0
jne 0x460b88
push 0x460ca8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x460cb0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd70], eax
cmp dword [0x474c68], 0
jne 0x460c83
push 0x460cc0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x474c68], eax
cmp dword [0x474c68], 0
je 0x460c83
push 0x460ccc
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd74], eax
push 0x460cdc
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd78], eax
push 0x460cf0
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd7c], eax
push 0x460d08
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd80], eax
push 0x460d20
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd84], eax
push 0x460d34
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd88], eax
push 0x460d4c
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd8c], eax
push 0x460d64
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd90], eax
push 0x460d80
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd94], eax
push 0x460d8c
mov eax, dword [0x474c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47bd98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460ca1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4624f8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404964
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x462546
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404bd4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467628
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46775b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x42bd40]
call fcn.0042be10
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x467731
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042beb0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404bd4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x467770
call fcn.00404c7c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042bf14
lea ecx, [ebp - 4]
mov edx, 0x4677ac
mov eax, dword [ebp - 0xc]
call fcn.0042c15c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ee10
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x467714
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4677b8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x474d8c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46771b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x467808
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x46784f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x467832
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x467843
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x46784f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46c9ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov esi, eax
mov edi, edx
push ecx
shr ecx, 2
je 0x46ca2b
nop
nop
nop
nop
cld
mov eax, dword [edi]
xor dword [esi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x46ca1e
pop ecx
and ecx, 3
je 0x46ca3e
nop
nop
nop
nop
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
dec ecx
jne 0x46ca35
pop edi
pop esi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46cfe1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push 0x58
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.0046c190
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x58], edx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0x67452301
mov dword [ebp - 0x4c], 0xefcdab89
mov dword [ebp - 0x48], 0x98badcfe
mov dword [ebp - 0x44], 0x10325476
push 0x58
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.0046c190
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x46e2b8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 8], edx
jmp 0x46e2cc
mov eax, dword [ebp + 0xc]
imul edx, dword [ebp - 8], 0x8088405
inc edx
mov dword [ebp - 8], edx
mul edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x43e154
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffeb8
push ebx
push esi
push edi
push eax
pop esi
mov byte [ebp - 1], 0
sub ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, 0
jne 0x43e1a1
cmp eax, 0xffffffff
jne 0x43e1a1
mov byte [ebp - 1], 1
jmp 0x43e31e
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e1d0
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4e]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43e1d0
mov bl, 1
test bl, bl
jne 0x43e1dd
mov byte [ebp - 1], 1
jmp 0x43e31e
xor ebx, ebx
cmp word [ebp - 0x4e], 0x5a4d
je 0x43e1ed
cmp dword [ebp - 8], 0x40
jne 0x43e23f
push 0
push 0
mov eax, dword [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e23f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x146]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43e23f
mov eax, dword [ebp - 0x146]
cmp eax, 0x4550
je 0x43e23d
cmp eax, 0x454e
je 0x43e23d
cmp eax, 0x454c
jne 0x43e23f
mov bl, 1
test bl, bl
je 0x43e315
xor eax, eax
push ebp
push 0x43e30b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043e0ac
mov dword [ebp - 0x13e], eax
call fcn.00402ab0
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - reloc.kernel32.dll_CopyFileExA], ax
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0x100], ax
push 0
push 0
mov eax, dword [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e2c1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x146]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp word [ebp - 0x4e], reloc.kernel32.dll_CopyFileExA
je 0x43e301
mov word [ebp - 0xe], reloc.kernel32.dll_CopyFileExA
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e301
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e315
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f894
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], ebx
push ecx
pop esi
mov dword [ebp - 4], edx
push eax
pop ebx
mov edi, dword [ebp + 8]
sub eax, eax
push ebp
push 0x43fa20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dword [esi], 2
mov eax, edi
call fcn.00404024
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
pop eax
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43fa02
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43f9fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x43f9fc
cmp word [ebp - 0x50], reloc.kernel32.dll_CopyFileExA
jne 0x43f9fc
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43f9fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43f9fc
cmp dword [ebp - 0x148], 0x4550
jne 0x43f9fc
mov eax, dword [ebp - 0x140]
xor eax, 0x50485e00
xor eax, dword [ebp - 0x120]
movzx edx, word [ebp - reloc.kernel32.dll_CopyFileExA]
xor eax, edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x43f9af
call fcn.0043c774
add eax, 0x7c6
xor dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jle 0x43f9c9
cmp dword [ebp - 0x10], 0x7a120
jge 0x43f9c9
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov byte [ebp - 5], 1
jmp 0x43f9fc
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
call fcn.00407a8c
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x150]
mov eax, 0x43fa3c
call fcn.0043e5bc
mov edx, dword [ebp - 0x150]
mov eax, edi
pop ecx
call fcn.00404330
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa27
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00404048
ret
Function at 0x43fa6c
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x43fc2a
push dword fs:[eax]
mov dword fs:[eax], esp
sub ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43fc0e
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x43fc08
cmp word [ebp - 0x4c], reloc.kernel32.dll_CopyFileExA
jne 0x43fc08
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43fc08
cmp dword [ebp - 0x144], 0x4550
jne 0x43fc08
call sub.kernel32.dll_GetCurrentProcessId
add eax, 0x7c6
xor eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
call fcn.00402ab0
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0x100], ax
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0xfe], ax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fbac
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
je 0x43fc08
mov eax, 0x200
call fcn.00402ca8
mov edi, eax
shl edi, 4
or edi, edi
jle 0x43fc08
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push edi
lea eax, [ebp - 0xc]
nop
nop
push 1
pop ecx
mov edx, dword [0x43fa48]
call fcn.004053ac
add esp, 4
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00406574
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fc31
lea eax, [ebp - 0xc]
mov edx, dword [0x43fa48]
call fcn.004053b8
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000cd63
pop dword [ebp - 0x2c]
mov eax, 0xb286ad88
sub eax, 0xa285e025
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3b1e3
push 0
mov eax, 0xdf88ba88
add eax, 0x307885dc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x506f
mov esi, eax
mov edi, 0xfc9d45f5
add edi, 0x1364400b
add edi, dword [ebp - 0x2c]
mov edx, 0xf4bdb615
add edx, 0x3856615d
add dword [ebp - 0x10], edi
mov ebx, dword [edi]
xor dword [ebp - 0xc], ecx
xor ebx, edx
mov dword [ebp - 0x18], 0x5d628827
mov dword [esi], ebx
xor dword [ebp - 4], ebx
add esi, 0xe8068d9e
add esi, 0x17f97266
add edi, 4
loop 0x1000cdbc
add eax, 0x1348f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret