joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
push 0
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.004036ad
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4010ed
mov ecx, dword [0x42e0e0]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push eax
call fcn.00401000
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401101
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x42e574], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42e510
push 0x42e4ac
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401149
xor eax, eax
jmp 0x401172
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x40140e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.00401370
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x4013ca
mov byte [ebp - 0x114], 0
jmp 0x40140c
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4013ee
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40140c
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x40140c
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x401417
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402f3e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
mov ecx, 5
mov esi, 0x42dbdc
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xec], eax
push 0x94
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.004260f0
add esp, 0xc
mov word [ebp - 0x32], 0x66
lea ecx, [ebp - 0x38]
push ecx
call fcn.00401431
add esp, 4
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.004260f0
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x65
call fcn.0040146a
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x184], 0
jne 0x403066
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x403066
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x42
je 0x403066
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00426150
add esp, 0xc
push 0
push 0x402f19
push 0
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42dbc4]
mov dword [eax + 0x15c], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004014d0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x160], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x160], 0
je 0x4030de
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd4], 0
push 0x8000
push 0
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [0x42e0e0], ecx
mov eax, dword [ebp - 4]
jmp 0x4030fa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a864]
mov dword [ecx + 0xc8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbc0]
mov dword [eax + 0xc0], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe0], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1d0], 0xad907d99
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe0], 0
je 0x403185
mov edx, dword [ebp - 8]
add edx, 0x7c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c4], 0x42a86c
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x1d8], edx
jmp 0x403226
mov eax, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x42dbf4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x42dbf8]
mov dword [ebp - 0x18], edx
mov ax, word [0x42dbfc]
mov word [ebp - 0x14], ax
mov cl, byte [0x42dbfe]
mov byte [ebp - 0x12], cl
push 0
push 0
push 4
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403226
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403226
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x403226
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
add ecx, 0x790
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0x11c], 0xf30dc7d2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe0]
mov dword [ecx + 0xcc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a868]
mov dword [ecx + 0xc4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbbc]
mov dword [eax + 0xbc], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a8], 0x42a030
mov eax, dword [ebp - 4]
push eax
call fcn.004038a6
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4036ad
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.00403303
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4036f6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x403716
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x4038a2
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x42dc04]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x42dc08]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x42dc10]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x42dc14]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4037a8
xor eax, eax
jmp 0x4038a2
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4037e4
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4037e4
xor eax, eax
jmp 0x4038a2
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403879
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
mov eax, dword [ebp - 0x48c]
push eax
push 0
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x48c]
push ecx
push 0
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x48c], 0x448
je 0x4037a8
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x427105
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42dd40
cmp edx, dword [eax]
je 0x427127
add eax, 8
inc ecx
cmp eax, 0x42ddd0
jl 0x427118
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42dd40]
jne 0x427255
mov eax, dword [0x42e580]
cmp eax, 1
je 0x42722f
test eax, eax
jne 0x427158
cmp dword [0x42dc94], 1
je 0x42722f
cmp edx, 0xfc
je 0x427255
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42718f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427ed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00426070
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4271d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00426070
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4294a0
push edi
call fcn.004280c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427ed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427ee0
lea eax, [ebp - 0xa0]
push 0x429480
push eax
call fcn.00427ee0
push dword [esi + 0x42dd44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427ee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428034
add esp, 0x2c
pop edi
jmp 0x427255
lea eax, [ebp + 8]
lea esi, [esi + 0x42dd44]
push 0
push eax
push dword [esi]
call fcn.00426070
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 0x403850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403910
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0xc3659d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c3659d
ret

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

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x279227a8
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..pdata
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x50da3841
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40aaf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040abb0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x41c088
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41c0d3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041c227
test al, al
jne 0x41c0cd
sub edx, 2
cmp edx, edi
jne 0x41c0b3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41c0f5
lea eax, [edi + 2]
cmp edx, eax
je 0x41c0f5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041bfd4
add esp, 0x10
jmp 0x41c1ef
push esi
lea ecx, [ebp - 0x255]
call fcn.0041c227
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c138
push dword [ebp - 0x25c]
jmp 0x41c0e5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41c175
cmp word [ebp - 0x226], 0
je 0x41c196
cmp word [ebp - 0x226], ax
jne 0x41c175
cmp word [ebp - 0x224], 0
je 0x41c196
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041bfd4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41c1e2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41c14f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41c1ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c1ef
push 0x41be04
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421480
add esp, 0x10
jmp 0x41c1bf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret

Function at 0x4233a0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x412f50
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xe34370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe3438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xe5d074
push ecx
mov edi, eax
call fcn.00e48198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe343cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e4802e
push esi
call fcn.00e47fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe37850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe378ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xe62720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe378ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00e481e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe378ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe62720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe3792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00e49082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe37957
mov word [eax], si
add eax, 2
push eax
call fcn.00e49030
add esp, 4
jmp 0xe37959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe378ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe378b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe37ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret