joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43efec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45720c]
cmp byte [eax + 0xc], 0
je 0x43f159
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f152
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458b6c], 0
jne 0x43f040
push 0x43f160
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f168
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b6c], eax
cmp dword [0x456be0], 0
jne 0x43f13b
push 0x43f178
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456be0], eax
cmp dword [0x456be0], 0
je 0x43f13b
push 0x43f184
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b70], eax
push 0x43f194
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b74], eax
push 0x43f1a8
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b78], eax
push 0x43f1c0
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b7c], eax
push 0x43f1d8
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b80], eax
push 0x43f1ec
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b84], eax
push 0x43f204
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b88], eax
push 0x43f21c
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b8c], eax
push 0x43f238
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b90], eax
push 0x43f244
mov eax, dword [0x456be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f159
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442fe4
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.00404340
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443033
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.004045b0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a7c0]
test si, 4
je 0x44a784
or bl, 1
test si, 8
je 0x44a78e
or bl, 4
test si, 1
je 0x44a798
or bl, 8
test si, 2
je 0x44a7a2
or bl, 0x10
test si, 0x10
je 0x44a7ac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a7bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a7c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a7fc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a7dd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a7ec
or bl, 4
test esi, 0x20000000
je 0x44a7f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450ea4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450eb6
add esp, 0xfffffff0
call fcn.00403914
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419fdc
mov eax, dword [0x456ed8]
mov dword [eax + 4], ebx
mov dword [eax], 0x451248
mov eax, dword [0x456ee4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451254
mov eax, ebx
call fcn.00451260
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44d67c
push eax
push 0
push 0
mov eax, dword [0x457034]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ba18]
call fcn.0041ce5c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ba18]
call fcn.0041ce5c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ba18]
call fcn.0041ce5c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451680
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45155c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45155c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45155c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450ff3
call fcn.0040396c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451340
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4514eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4514cc
mov dl, 1
mov eax, dword [0x411f48]
call fcn.004035d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404340
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4514bb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f34c
test al, al
je 0x4514ae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4514fc
lea eax, [ebp - 0x254]
call fcn.00408e10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4514ae
xor eax, eax
push ebp
push 0x4514a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451534
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451490
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451490
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4514ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4513b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004161cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4514f2
lea eax, [ebp - 0x260]
call fcn.00404340
ret

Function at 0x451e20
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458bb8]
cmp byte [eax + 0xa5], 0
jne 0x451e91
cmp dword [0x458bd0], 0
jne 0x451e52
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451ddc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bd0], eax
cmp dword [0x458bcc], 0
jne 0x451e6d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bcc], eax
cmp dword [0x458bd4], 0
jne 0x451e91
push esp
push 0
push 0
push 0x451d80
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bd4], eax
pop edx
ret
Function at 0x451f88
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451f9f
add esp, 0xfffffff0
call fcn.00403914
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419fdc
mov eax, dword [0x457020]
cmp word [eax + 2], 0
jne 0x451fc7
mov eax, dword [0x457020]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453678
mov eax, dword [0x4570cc]
cmp word [eax + 2], 0
jne 0x451fe1
mov eax, dword [0x4570cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453870
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4119a0]
call fcn.004035d8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c1c8]
call fcn.00421e10
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452168
mov eax, dword [0x456f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004221e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453e10
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456f38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c4e8
test eax, eax
je 0x4520d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c510
test eax, eax
je 0x4520ea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
mov eax, dword [0x456e38]
cmp byte [eax], 0
jne 0x45211e
mov eax, ebx
call fcn.00452290
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453fec
mov eax, ebx
call fcn.004549b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45215e
call fcn.0040396c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452510
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb8]
cmp dword [eax + 0x30], 0
je 0x4525ba
cmp dword [ebx + 0x94], 0
jne 0x4525b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4524a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4525b4
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 0x45257a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4525b4
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.00413e94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452589
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45311c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453151
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.00404430
jmp 0x45315e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404394
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4541c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454209
mov eax, esi
call fcn.0043a978
test al, al
je 0x454209
mov eax, dword [ebx + 0x84]
call fcn.0043a674
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454209
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a674
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x54c3c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push word [esp + 3]
jmp 0x54b46a

Function at 0x6a9e07
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov word [esp], di
lea esp, [esp + 4]
lea esp, [esp + 4]
mov byte [esp + 1], cl
lea esp, [esp + 3]
jmp 0x6aa3c3
mov eax, dword [eax + 8]
jmp 0x6a9e7a
mov eax, dword [edi]
pop edi
jmp 0x6a9e45
mov eax, dword [edx]
pop edx
push edi
mov edi, eax
jmp 0x6a9e5b
push eax
jmp 0x6a90ba
push edx
mov edx, eax
lea edx, [edx + 0x1c]
jmp 0x6a9e72
mov dword [esp + 0x7c], edi
lea esp, [esp + 0x7c]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x6a9ea3

Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x405e70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x406023
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
add byte [edi + ebp], 0x43
push 0
call esi
add byte [edi + ebp], 0x69
push 0
call esi
xor byte [edi + ebp], 0x82
push 0
call esi
add byte [edi + ebp], 0x60
push 0
call esi
add byte [edi + ebp], 0xdd
push 0
call esi
add byte [edi + ebp], 0xdb
push 0
call esi
add byte [edi + ebp], 0xe5
push 0
call esi
xor byte [edi + ebp], 0xb1
push 0
call esi
add byte [edi + ebp], 0x88
push 0
call esi
add byte [edi + ebp], 0x77
push 0
call esi
xor byte [edi + ebp], 0x97
push 0
call esi
add byte [edi + ebp], 0xc5
push 0
call esi
add byte [edi + ebp], 0x24
push 0
call esi
add byte [edi + ebp], 0xae
push 0
call esi
add byte [edi + ebp], 0x39
push 0
call esi
add byte [edi + ebp], 0x90
push 0
call esi
xor byte [edi + ebp], 0x7c
push 0
call esi
add byte [edi + ebp], 0x91
push 0
call esi
add byte [edi + ebp], 0x40
push 0
call esi
add byte [edi + ebp], 0x77
push 0
call esi
add byte [edi + ebp], 0x6f
push 0
call esi
add byte [edi + ebp], 0x8a
push 0
call esi
add byte [edi + ebp], 0x18
push 0
call esi
add byte [edi + ebp], 0xb0
push 0
call esi
add byte [edi + ebp], 0x8d
push 0
call esi
xor byte [edi + ebp], 0xdf
push 0
call esi
add byte [edi + ebp], 0x71
push 0
call esi
add byte [edi + ebp], 0xd4
push 0
call esi
add byte [edi + ebp], 0xf0
push 0
call esi
add byte [edi + ebp], 0xc3
push 0
call esi
add byte [edi + ebp], 0x3a
push 0
call esi
xor byte [edi + ebp], 0x32
push 0
call esi
xor byte [edi + ebp], 0x75
push 0
call esi
xor byte [edi + ebp], 0xf8
push 0
call esi
add byte [edi + ebp], 0x25
push 0
call esi
add byte [edi + ebp], 0x44
push 0
call esi
xor byte [edi + ebp], 0x7b
push 0
call esi
add byte [edi + ebp], 0xb5
push 0
call esi
add byte [edi + ebp], 0x46
push 0
call esi
xor byte [edi + ebp], 0x5b
push 0
call esi
add byte [edi + ebp], 0x43
push 0
call esi
xor byte [edi + ebp], 0x8b
push 0
call esi
add byte [edi + ebp], 0x72
push 0
call esi
xor byte [edi + ebp], 0x39
push 0
call esi
add byte [edi + ebp], 0x46
push 0
call esi
xor byte [edi + ebp], 0xd
push 0
call esi
add byte [edi + ebp], 0xf0
push 0
call esi
sub byte [edi + ebp], 0x80
push 0
call esi
add byte [edi + ebp], 0x10
inc edi
cmp edi, ebx
jb 0x405e90
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x41b150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b17d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b17d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4012a5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 0
push 0x63
push 0x2a
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x40131c
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xcfb
jge 0x401330
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401313
push 0x40
mov ebx, 0x1000
push ebx
mov eax, 0x1400
push eax
push 0
push str.w353hjsfds
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x2c]
call dword [ebp - 0x2c]
mov dword [0x40f3a8], eax
mov dword [ebp + 8], 0x27
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40228d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eff8
cmp edx, dword [eax]
je 0x4022af
add eax, 8
inc ecx
cmp eax, 0x40f088
jl 0x4022a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eff8]
jne 0x4023dd
mov eax, dword [0x40f3bc]
cmp eax, 1
je 0x4023b7
test eax, eax
jne 0x4022e0
cmp dword [0x40ef4c], 1
je 0x4023b7
cmp edx, 0xfc
je 0x4023dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402317
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004036d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004037c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40235a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004037c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405b88
push edi
call fcn.004038d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004036d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004036e0
lea eax, [ebp - 0xa0]
push 0x405b68
push eax
call fcn.004036e0
push dword [esi + 0x40effc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004036e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040383b
add esp, 0x2c
pop edi
jmp 0x4023dd
lea eax, [ebp + 8]
lea esi, [esi + 0x40effc]
push 0
push eax
push dword [esi]
call fcn.004037c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405615
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b6b0
cmp edx, dword [eax]
je 0x405637
add eax, 8
inc ecx
cmp eax, 0x40b740
jl 0x405628
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b6b0]
jne 0x405765
mov eax, dword [0x40ba6c]
cmp eax, 1
je 0x40573f
test eax, eax
jne 0x405668
cmp dword [0x4095d4], 1
je 0x40573f
cmp edx, 0xfc
je 0x405765
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40569f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4056e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.00406330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4075e8
push eax
call fcn.004032d0
push dword [esi + 0x40b6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004062a7
add esp, 0x2c
pop edi
jmp 0x405765
lea eax, [ebp + 8]
lea esi, [esi + 0x40b6b4]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4f0b4ff2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x56547a25
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219