joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f839
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x98], esi
mov dword [esi + 0x10], eax
mov dword [eax + 0x5a4], ebx
cmp dword [esi + 4], ebx
jne 0x45f8ce
lea eax, [ebp - 0xa8]
push eax
call fcn.0045f947
mov ecx, dword [esi + 0x10]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
push 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004353bf
mov esi, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.00439639
mov ecx, dword [esi + 0x10]
call fcn.0045abef
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00437db7
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.0043a677
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0043a552
mov edi, 0x594
test bl, bl
je 0x45f906
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.00464f19
mov esp, ebp
pop ebp
ret 4
Function at 0x467c48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x492175
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491ff4

Function at 0x495e97
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00495b57

Function at 0x4016c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4016e6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40177a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401735
cmp eax, 0x40
je 0x401735
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016d9
cmp eax, 0x40
je 0x4016d9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4016d9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401fd0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push 0x43c6d0
lea ecx, [esi + 0xc]
call fcn.0041e8b5
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x402590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bfd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call fcn.00407ff4
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004080b7
lea ecx, [esp + 4]
mov esi, eax
call fcn.0040806d
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.00408031
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e72c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4061c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x43a67c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], eax
mov ecx, dword [0x43a67c]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x10], ecx
mov edx, dword [0x43a67c]
lea ecx, [esi + 0x18]
mov dword [ecx], edx
mov eax, dword [0x43a67c]
lea edi, [esi + 0x1c]
mov dword [edi], eax
mov edx, dword [0x43a67c]
lea ebx, [esi + 0x20]
mov dword [ebx], edx
mov eax, dword [0x43a67c]
lea ebp, [esi + 0x28]
mov dword [ebp], eax
mov edx, dword [0x43a67c]
mov dword [esi + 0x2c], edx
mov eax, dword [0x43a67c]
mov dword [esi + 0x30], eax
mov edx, dword [0x43a67c]
mov dword [esi + 0x34], edx
push 0x43c6d0
mov byte [esp + 0x20], 8
mov dword [esi], 0x42ed18
mov dword [esi + 4], 0x19
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 2
call fcn.0041e8b5
push 0x43c6d0
mov ecx, edi
call fcn.0041e8b5
push 0x43c6d0
mov ecx, ebx
call fcn.0041e8b5
push 0x43c6d0
mov ecx, ebp
mov dword [esi + 0x24], 0
call fcn.0041e8b5
push 0x43c6d0
lea ecx, [esi + 0x2c]
call fcn.0041e8b5
push 0x43c6d0
lea ecx, [esi + 0x30]
call fcn.0041e8b5
push 0x43c6d0
lea ecx, [esi + 0x34]
call fcn.0041e8b5
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4062f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42c9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42ed18
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 7
call fcn.0041e72c
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 6
call fcn.0041e72c
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 5
call fcn.0041e72c
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call fcn.0041e72c
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call fcn.0041e72c
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call fcn.0041e72c
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.0041e72c
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call fcn.0041e72c
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041e72c
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa00
lea eax, [esp]
lea edx, [esp + 8]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0xa0c]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4071c4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0xa0c]
call fcn.0041e8b5
mov eax, 1
add esp, 0xa00
ret 8
xor eax, eax
add esp, 0xa00
ret 8

Function at 0x407600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40763f
pop edi
pop esi
pop ebx
ret
push ebp
push ebx
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, dword [esp + 0x20]
jae 0x407666
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov edx, ecx
mov ebp, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x407990
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 8
push ebx
mov eax, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [ecx + 0xd]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 9]
mov dword [esp + 0x10], esi
mov esi, dword [ecx + 0x11]
mov dword [esp + 0xc], esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 5]
cmp esi, 0x20
jne 0x4079c2
mov ecx, 0xc6ef3720
jmp 0x4079d6
cmp esi, 0x10
jne 0x4079ce
mov ecx, 0xe3779b90
jmp 0x4079d6
mov ecx, esi
imul ecx, ecx, 0x9e3779b9
mov ebp, esi
dec esi
test ebp, ebp
je 0x407a27
inc esi
mov dword [esp + 0x1c], esi
mov ebp, dword [esp + 0x10]
mov esi, edx
shr esi, 5
add esi, ebp
mov ebp, edx
shl ebp, 4
add ebp, dword [esp + 0x14]
xor esi, ebp
lea ebp, [ecx + edx]
xor esi, ebp
sub eax, esi
mov esi, eax
mov ebp, eax
shr esi, 5
shl ebp, 4
add esi, ebx
add ebp, edi
xor esi, ebp
lea ebp, [ecx + eax]
xor esi, ebp
add ecx, 0x61c88647
sub edx, esi
mov esi, dword [esp + 0x1c]
dec esi
mov dword [esp + 0x1c], esi
jne 0x4079e2
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
add esp, 8
ret 8
Function at 0x407a40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ccae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x164], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407a89
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [ebp + 4]
call fcn.0041e865
push str.C:info.db
lea ecx, [esp + 0x14]
call fcn.0041e79a
lea edx, [esp + 0x58]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov byte [esp + 0x170], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x407ae0
mov al, 0x5c
cmp byte [esp + ecx + 0x58], al
je 0x407adb
dec ecx
jns 0x407ad0
jmp 0x407ae0
mov byte [esp + ecx + 0x59], 0
mov esi, dword [esp + 0x170]
test esi, esi
je 0x407b03
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
push eax
push 0x43a140
push ecx
call fcn.0041d7fc
add esp, 0xc
jmp 0x407b1e
mov edx, dword [ebp + 4]
lea eax, [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x43a0f0
push ecx
call fcn.0041d7fc
add esp, 0x10
push 0x43c6d0
lea ecx, [esp + 0x10]
call fcn.0041e79a
test esi, esi
mov byte [esp + 0x164], 2
je 0x407b50
mov edx, dword [ebp + 4]
lea eax, [esp + 0xc]
push edx
push str._s.tmp
push eax
call fcn.0041d7fc
add esp, 0xc
jmp 0x407b6b
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0x14]
push str._s_s.tmp
push eax
call fcn.0041d7fc
add esp, 0x10
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, str.wgqfILeEnPt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00407480
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
test eax, eax
je 0x407bdc
push 0x1f4
call esi
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0041e4a1
mov ecx, ebp
call fcn.00407c50
push 0x1f4
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.0041e72c
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.0041e72c
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call fcn.0041e72c
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x15c
ret 8
Function at 0x41437d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43ba30
cmp edx, dword [eax]
je 0x41439f
add eax, 8
inc ecx
cmp eax, 0x43bac0
jl 0x414390
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43ba30]
jne 0x4144cd
mov eax, dword [0x63e89c]
cmp eax, 1
je 0x4144a7
test eax, eax
jne 0x4143d0
cmp dword [0x43b544], 1
je 0x4144a7
cmp edx, 0xfc
je 0x4144cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414407
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004144d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41444a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004144d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4322ac
push edi
call fcn.00417310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416310
lea eax, [ebp - 0xa0]
push 0x43228c
push eax
call fcn.00416310
push dword [esi + 0x43ba34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041727d
add esp, 0x2c
pop edi
jmp 0x4144cd
lea eax, [ebp + 8]
lea esi, [esi + 0x43ba34]
push 0
push eax
push dword [esi]
call fcn.004144d0
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 0x41cc20
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.00411eb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cceb
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 0x41cceb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cc9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cca9
or bh, 8
and edi, 0x8000000
je 0x41ccc4
mov eax, dword [0x64003c]
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 0x41cceb
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 0x41d0c0
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 0x41d0eb
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 0x41d10f
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 0x41d12a
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 0x420d77
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420daf
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.0041eb5f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041eb37
jmp 0x420dbb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4225b2
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 0x4225f4
call fcn.00428963
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4225f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4225eb
xor eax, eax
jmp 0x4225fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422602
pop edi
pop esi
pop ebx
ret 4

Function at 0x423285
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00428963
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4232b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004232c9
pop edi
pop esi
pop ebx
ret 8

Function at 0x429492
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4294c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4294de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004293f8
jmp 0x4294de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4294de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004293f8
test edi, edi
mov eax, edi
jne 0x4294c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret