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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.000bcde0
xor edx, edx
push ebp
push 0x116ade
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x116ae8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1237058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.012371a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x123707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x123706a
add dl, dl
jne 0x1237089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12370dc
xor eax, eax
add dl, dl
jne 0x1237096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x123717d
add dl, dl
jne 0x12370a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12370b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12370bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12370c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12370d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1237075
mov eax, 1
add dl, dl
jne 0x12370ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12370f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12370e1
sub eax, ebx
mov ebx, 1
jne 0x1237128
mov ecx, 1
add dl, dl
jne 0x123710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1237119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1237105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1237075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x123713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x123714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1237136
cmp eax, 0x7d00
jae 0x123716d
cmp eax, 0x500
jb 0x1237168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1237075
cmp eax, 0x7f
ja 0x1237170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1237075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x123719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1237075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x8974a0
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
pushal
mov esi, 0x71e015
lea edi, [esi - 0x31d015]
push edi
mov ebp, esp
lea ebx, [esp - 0x3e80]
xor eax, eax
push eax
cmp esp, ebx
jne 0x8974b8
inc esi
inc esi
push ebx
push 0x495f84
push edi
add ebx, 4
push ebx
push 0x179489
push esi
add ebx, 4
push ebx
push eax
mov dword [ebx], 0x20003
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edx, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov ebp, dword [esp + 0x9c]
lea eax, [edx + 4]
mov dword [esp + 0x78], eax
mov eax, 1
movzx ecx, byte [edx + 2]
mov ebx, eax
shl ebx, cl
mov ecx, ebx
dec ecx
mov dword [esp + 0x6c], ecx
movzx ecx, byte [edx + 1]
shl eax, cl
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa8]
movzx esi, byte [edx]
mov dword [ebp], 0
mov dword [esp + 0x60], 0
mov dword [eax], 0
Function at 0x1267e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x126ec
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov dword [ebp - 4], eax
mov ebx, esi
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 8], ecx
cmp dword [eax + 0x14], esi
jbe 0x126eb
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x11510
push eax
call dword [0x16010]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x126d9
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x126b4
jmp 0x126eb
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.000136e3
sub eax, dword [0x16040]
xor ecx, ecx
cmp eax, 0x7fff
pop edi
cmova esi, ecx
mov eax, esi
pop esi
leave
ret
Function at 0x133bb
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x11180
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x16008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x13406
add esi, 0x2a
push 0x20
push esi
call dword [0x16004]
pop ecx
pop ecx
test eax, eax
jne 0x1340d
push 0xffffffffffffffff
push 0x111ac
mov ecx, 0x16044
call fcn.00012568
xor al, al
pop edi
pop esi
pop ebx
leave
ret
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x13432
push 0xffffffffffffffff
mov esi, 0x16044
push 0x111c0
mov ecx, esi
call fcn.00012568
push 0xffffffffffffffff
call edi
push eax
mov ecx, esi
jmp 0x13401
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x1345a
push 0xffffffffffffffff
push 0x111d4
jmp 0x133fc
push edi
push esi
push ebx
call dword [0x1601c]
add esp, 0xc
xor eax, eax
mov word [edi + ebx], ax
push ebx
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x134a7
push 0xffffffffffffffff
push 0x111e8
mov esi, 0x16044
mov ecx, esi
call fcn.00012568
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.000124ea
jmp 0x13406
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x134c4
push 0xffffffffffffffff
push 0x111fc
jmp 0x13486
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x1601c]
add esp, 0xc
call fcn.00013616
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x13406
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
add eax, 0x18
mov dword [ebp - 4], ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.000135c0
test al, al
je 0x13406
lea edx, [ebp - 4]
mov ecx, edi
call fcn.000135c0
test al, al
je 0x13406
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x1353a
push 0xffffffffffffffff
push 0x11210
jmp 0x13486
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
add eax, 0xa
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x1356b
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.000135c0
test al, al
je 0x13406
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x1354d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x13584
push 0xffffffffffffffff
push 0x11224
jmp 0x13486
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x13408
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x2edf5285
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2daa5e91
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4046b0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x4371b4
push esi
push str.......Removing:_HKEY_LOCAL_MACHINE_
push str._s_s_s
push 0x43a170
xor edi, edi
call fcn.0041ddb1
mov eax, dword [0x43a170]
add esp, 0x14
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, 0x43a178
call fcn.004231aa
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404732
push str.__Not_Found_r_n
push esi
push str..........Registry_Entry__
push str._s_s_s
push 0x43a170
call fcn.0041ddb1
mov eax, dword [0x43a170]
add esp, 0x14
mov ecx, 0x43a178
mov edx, dword [eax - 8]
push edx
push eax
call fcn.004231aa
pop edi
mov eax, 1
pop esi
ret
push str.__Removed_r_n
push esi
push str..........Registry_Entry__
push str._s_s_s
push 0x43a170
call fcn.0041ddb1
mov eax, dword [0x43a170]
add esp, 0x14
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, 0x43a178
call fcn.004231aa
mov eax, edi
pop edi
pop esi
ret

Function at 0x404950
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x42a3a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x438118]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
call fcn.00426f2a
mov ebp, dword [eax + 8]
call fcn.00426f2a
mov eax, dword [eax + 0xc]
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, eax
call fcn.00426f2a
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
and ecx, 0xffff
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, eax
call fcn.00426f2a
mov eax, dword [eax + 0x10]
test ebx, ebx
jne 0x4049e1
test esi, esi
jne 0x4049e1
push 0xb
push ebp
lea esi, [edi + 0xc4]
push eax
push str._s:_x:_x
push esi
call fcn.0041ddb1
add esp, 0x14
jmp 0x4049fc
push 0
push ebx
push 0xb
push ebp
lea esi, [edi + 0xc4]
push eax
push str._s:_x:_x:_x:_x
push esi
call fcn.0041ddb1
add esp, 0x1c
mov esi, dword [esi]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc0], eax
call esi
cmp eax, 0xb7
je 0x404a3d
call esi
cmp eax, 5
je 0x404a3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00421b51
mov eax, 1
jmp 0x404a84
push str.Motorola_USB_Driver_Removal_Utility
push 0
mov dword [edi + 0xc0], 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x404a71
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00421b51
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x411305
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x439048
cmp edx, dword [eax]
je 0x411327
add eax, 8
inc ecx
cmp eax, 0x4390d8
jl 0x411318
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x439048]
jne 0x411455
mov eax, dword [0x43c1b4]
cmp eax, 1
je 0x41142f
test eax, eax
jne 0x411358
cmp dword [0x438b64], 1
je 0x41142f
cmp edx, 0xfc
je 0x411455
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41138f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004122b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004123a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4113d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004123a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f0f8
push edi
call fcn.0040c8b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004122b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004122c0
lea eax, [ebp - 0xa0]
push 0x42f0d8
push eax
call fcn.004122c0
push dword [esi + 0x43904c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004122c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004141ce
add esp, 0x2c
pop edi
jmp 0x411455
lea eax, [ebp + 8]
lea esi, [esi + 0x43904c]
push 0
push eax
push dword [esi]
call fcn.004123a0
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 0x41c4e0
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.0040d140
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41c5ab
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 0x41c5ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41c55e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41c569
or bh, 8
and edi, 0x8000000
je 0x41c584
mov eax, dword [0x43dddc]
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 0x41c5ab
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 0x41c980
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 0x41c9ab
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 0x41c9cf
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 0x41c9ea
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 0x41f476
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41f4ae
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.00421e6b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00421e43
jmp 0x41f4ba
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4209c8
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 0x420a0a
call fcn.00426f2a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x420a0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x420a01
xor eax, eax
jmp 0x420a12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420a18
pop edi
pop esi
pop ebx
ret 4

Function at 0x423f11
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x423f41
push edi
call ebx
push eax
call fcn.00423662
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x423f6b
test byte [ebp - 4], 1
je 0x423f6b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x423f6b
push edi
call ebx
push eax
call fcn.00423662
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x424011
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00423e5e
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x423f9d
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00423e5e
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x423fb3
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00423e5e
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x423fdd
push 0
call ebx
push eax
call fcn.00423662
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x423ffb
push eax
call ebx
push eax
call fcn.00423662
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42400f
push eax
call ebx
push eax
call fcn.00423662
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x424038
test byte [ebp - 4], 1
jne 0x424038
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x424038
push edi
call ebx
push eax
call fcn.00423662
pop edi
pop ebx
leave
ret 8
Function at 0x427558
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 0x427586
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4275a4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004274be
jmp 0x4275a4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4275a4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004274be
test edi, edi
mov eax, edi
jne 0x42758e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xecc370
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 0xecc38e
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 0xef5074
push ecx
mov edi, eax
call fcn.00ee0198
mov esi, eax
add esp, 8
test esi, esi
jne 0xecc3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ee002e
push esi
call fcn.00edffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xecf850
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 0xecf8ae
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 0xefa720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xecf8ba
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.00ee01e1
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 0xecf8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xefa720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xecf92a
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.00ee1082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xecf957
mov word [eax], si
add eax, 2
push eax
call fcn.00ee1030
add esp, 4
jmp 0xecf959
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 0xecf8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xecf8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xecfff0
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