joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4268f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46dfd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [esp + 0xc], ebx
je 0x4269cd
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00421380
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.0042411f
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x50], 1
call fcn.00426af0
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00429d30
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.00421380
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00421380
mov cl, byte [esi + 0x10]
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x50]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esi], cl
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00424850
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov dl, byte [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x54]
mov edi, 0x4a53ec
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x5c], esi
call fcn.004213f0
test al, al
je 0x426a26
mov edi, dword [ebp + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x4a53ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x44]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x427d7d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
je 0x427dd4
push ebx
call fcn.0044522e
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 8], esi
je 0x427dd4
push esi
push ebx
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x427dcd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x48b568
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x427de2
push esi
call fcn.004451e6
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00427d2b
mov eax, dword [ebp + 8]
jmp 0x427e23
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x18]
push dword [ebp - 8]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
movzx esi, word [eax + 0x10]
movzx ebx, word [eax + 0x12]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x18], bx
mov word [ebp - 0x16], si
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], cx
call fcn.004451e6
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429550
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46e517
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x4a53ec
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00461b03
xor esi, esi
mov dword [esp + 0x64], 1
mov si, word [0x4a569c]
call fcn.00467d94
mov eax, dword [eax + 0xc]
push str.BINHELP
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.00467d94
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.00467d94
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea esi, [edi + 0x50]
push ebp
push eax
mov ecx, esi
call fcn.0042e480
mov al, byte [esp + 0x70]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov cl, byte [esp + 0x70]
push ebx
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00421380
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
mov dword [esp + 0x4c], edx
call fcn.0042411f
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.00429b10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00429d30
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
call fcn.00421380
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00421380
lea eax, [esi + 0x10]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00424850
mov esi, dword [esp + 0x6c]
mov dl, byte [esp + 0x28]
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push ebx
push eax
mov ecx, esi
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00424850
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4296c9
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x4296c0
cmp cl, 0xff
je 0x4296c0
dec cl
mov byte [eax], cl
jmp 0x4296c9
push eax
call fcn.004617ff
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x64], bl
call fcn.00461a95
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x42ab80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46e6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x42ac34
mov eax, dword [0x4a1da0]
push esi
mov dword [esp + 8], eax
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00461ec5
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00461f14
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00461e71
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42ac1b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x42ac1b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
mov dword [edi + 0xc4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00461a95
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42aec0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x42aee5
mov eax, dword [esp + 0x828]
push eax
call fcn.0042afe0
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push str..htm
push SysReAllocStringLen
call fcn.0042ac50
add esp, 0xc
test eax, eax
jne 0x42afaa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push SysReAllocStringLen
call fcn.0042ac50
add esp, 0xc
test eax, eax
jne 0x42afd3
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00447091
mov esi, eax
add esp, 8
test esi, esi
jne 0x42af78
lea eax, [esp + 0xc]
push 0x49acf4
push eax
call fcn.004455b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42af78
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x42af7b
mov byte [esi], 0
push 0x49acf0
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret
Function at 0x42afe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00461b03
push str.mailto:
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00461b03
mov byte [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.00461f5c
cmp eax, 0xffffffff
je 0x42b0a6
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0045b89b
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.00445a32
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461a95
test bl, bl
pop ebx
je 0x42b0a6
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00461cc4
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.00461bce
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.00461a95
mov edx, dword [esp + 0x20]
push 5
push 0x4a53ec
push 0
push edx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.00461a95
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00461a95
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x430eb6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x430f2a
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x430f4e
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00446074
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00447570
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0044e360
add esp, 0x24
test eax, eax
jne 0x430f4e
cmp dword [ebp + 0xc], ebx
jne 0x430f2e
mov al, 1
jmp 0x430f92
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x430f4e
push edi
call fcn.0044522e
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x430f52
xor al, al
jmp 0x430f92
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x430f89
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48b568
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x430f89
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.004451e6
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431007
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x431040
cmp eax, 2
je 0x431040
cmp eax, 3
je 0x431035
cmp eax, 4
je 0x43102e
cmp eax, 5
je 0x431027
xor al, al
ret
call fcn.00435e39
jmp 0x43103a
call fcn.00435dd8
jmp 0x43103a
call fcn.00435e0f
test eax, eax
setne al
ret
mov al, 1
ret

Function at 0x4355cf
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x43562b
cmp edi, 2
jae 0x4355e1
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x4355f2
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x43560d
push 0
call fcn.00447267
push eax
call fcn.00447650
pop ecx
pop ecx
call fcn.0044765d
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.00447650
test edi, edi
pop ecx
je 0x43562a
call fcn.0044765d
xor byte [esi], al
inc esi
dec edi
jne 0x43561f
pop esi
mov al, 1
pop edi
ret
Function at 0x44e1a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a3740
cmp edx, dword [eax]
je 0x44e1c7
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x44e1b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a3740]
jne 0x44e2f5
mov eax, dword [0x4a7dfc]
cmp eax, 1
je 0x44e2cf
test eax, eax
jne 0x44e1f8
cmp dword [0x4a2c14], 1
je 0x44e2cf
cmp edx, 0xfc
je 0x44e2f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44e22f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00447560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00446250
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44e272
lea eax, [ebp - 0x1a4]
push eax
call fcn.00446250
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x478168
push edi
call fcn.004454b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00447560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00447570
lea eax, [ebp - 0xa0]
push 0x49a98c
push eax
call fcn.00447570
push dword [esi + 0x4a3744]
lea eax, [ebp - 0xa0]
push eax
call fcn.00447570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00452e2b
add esp, 0x2c
pop edi
jmp 0x44e2f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4a3744]
push 0
push eax
push dword [esi]
call fcn.00446250
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 0x45a3d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004453d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45a49b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45a49b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45a44e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45a459
or bh, 8
and edi, 0x8000000
je 0x45a474
mov eax, dword [0x4a9abc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45a49b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45a89b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45a8bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45a8da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x45f252
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f28a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461f3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461f14
jmp 0x45f296
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x46088c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4608ce
call fcn.00467d94
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4608ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4608c5
xor eax, eax
jmp 0x4608d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004608dc
pop edi
pop esi
pop ebx
ret 4

Function at 0x469379
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x469429
mov ecx, 0x4a7d68
call fcn.00468f4d
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x469407
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4693e5
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4693e5
push ebx
push edi
push eax
call fcn.00462f3f
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00461c1e
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x430b36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x430b45
pop dword [ebp - 0x14]
mov eax, 0x430b45
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xb2149b64
add dword [ebp - 0x24], 0x9c3da9e7
mov dword [ebp - 0x20], 0xfe775abc
sub dword [ebp - 0x20], 0xcc440e77
mov dword [ebp - 0x1c], 0xb8e0088e
add dword [ebp - 0x1c], 0x936c3ba0
mov dword [ebp - 0x18], 0x9cf0ca76
add dword [ebp - 0x18], 0x630f358a
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xc4228c6f
add dword [ebp - 0x24], 0xb04fdce7
mov dword [ebp - 0x20], 0x7600cb11
add dword [ebp - 0x20], 0xcb6b9664
mov dword [ebp - 0x1c], 0xcd774098
add dword [ebp - 0x1c], 0x95f82bd4
mov dword [ebp - 0x18], 0x69c4ca85
add dword [ebp - 0x18], 0x963b357b
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x9172761a
add eax, 0x6ed14cd6
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x46cc0
push 0
call eax
mov ecx, 0x4988f515
sub ecx, 0x4988aaf0
xor edx, edx
add edx, eax
mov edi, 0xe2476d81
add edi, 0x1dffe87f
add edi, dword [ebp - 0x14]
mov esi, 0x711a6a53
sub esi, 0x801c8381
mov dword [ebp - 0x10], 0xbd74acd3
mov ebx, dword [edi]
sub dword [ebp - 0x10], ebx
sub ebx, esi
xor dword [ebp - 0x10], 0xe9e7ed35
mov dword [edx], ebx
sub dword [ebp - 0xc], ecx
add edx, 0x4314134
add edx, 0xfbcebed0
add edi, 0x767c0cb2
sub edi, 0x767c0cae
loop 0x430c5f
add eax, 0x11b67
xor ebx, ebx
add ebx, eax
add eax, 0x6d16147f
sub eax, 0x6d16147a
mov ecx, 0xcf2da571
add ecx, 0x31125a8f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret