joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00402d8f
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x4029b8
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x402a08
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.00402a27
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x4029ff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x402a20
cmp dword [ebp - 0xc], 0
je 0x402a20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14
Function at 0x406d82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
test byte [0x4ab695], 1
jne 0x406dba
or byte [0x4ab695], 1
mov eax, 0x19000
push eax
mov dword [0x4ab69c], eax
call sub.MSVCRT.dll_malloc
mov dword [0x4ab698], eax
mov dword [esp], 0x40702b
call fcn.0043db12
pop ecx
mov eax, dword [0x4ab69c]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push 0x442760
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [0x4ab69c]
xor esi, esi
push esi
push dword [0x4ab698]
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
mov ebx, reloc.OLEAUT32.dll_SysReAllocStringLen
push eax
lea eax, [ebp - 0x44]
push dword [0x4ab698]
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
call esi
mov edi, 0xea
cmp eax, edi
jne 0x406e49
add dword [ebp - 4], 0x2800
mov eax, dword [ebp - 4]
push eax
mov dword [0x4ab69c], eax
push dword [0x4ab698]
call sub.MSVCRT.dll_realloc
pop ecx
mov dword [0x4ab698], eax
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
lea eax, [ebp - 0x44]
push 0
push eax
push ebx
call esi
jmp 0x406e11
mov eax, dword [ebp + 8]
mov ecx, dword [0x4ab698]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 0xc

Function at 0x407229
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x264]
lea edi, [esi + 0x264]
test eax, eax
mov dword [esi], 0x43ebb0
je 0x407252
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [edi], 0
push 0
push 2
mov ecx, esi
call fcn.00407299
lea ecx, [esi + 8]
call fcn.004067a4
pop edi
pop esi
ret

Function at 0x407365
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x2c], eax
lea ebp, [esi + 0x30]
mov eax, dword [0x47ec38]
push 0
push 0xc
mov dword [esp + 0x1c], eax
call ebx
push eax
push 0xb
call ebx
push eax
lea eax, [edi + 0xfa]
movzx eax, ax
push 1
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp], eax
inc edi
add ebp, 4
cmp edi, 0xd
jl 0x40737d
mov eax, dword [esi + 0x264]
xor edi, edi
cmp eax, edi
je 0x4073cc
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi + 0x260]
push eax
push edi
push esi
push 0x40733b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0x30]
mov ecx, esi
mov dword [esi + 0x264], eax
push edi
call fcn.00407299
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x408c2c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x408c67
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x408c4e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x408c5f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x408c69
inc edi
add eax, 0x28
cmp edi, esi
jb 0x408c44
xor eax, eax
pop edi
pop esi
ret
Function at 0x40917c
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00408b5d
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
or al, 0x66
cmp eax, dword [edi + 6]
jb 0x409129
call fcn.00408bec
adc al, ah
cdq
mov ch, 0x8b
jle 0x4091a4
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x4093db
add byte [eax], al
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x409191
cmp dword [eax + 0xc], ebx
je 0x409234
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00408bec
jno 0x4091b8
push dword [ecx + 0x11]
jb 0x409155
cmp dword [ebp + 0xc], ebx
jne 0x4091c0
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4093db
inc ebp
or al, 0xf
test byte [ebx], bl
add al, byte [eax]
add byte [ebx + 0x488bbc45], cl
adc byte [ebx - 0x723cc500], cl
cmp al, 0x31
invalid
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
invalid
xor dword [ebp + 5], esi
jne 0x4091d4
mov dword [ebp + 0x10], edi
jmp 0x4091d9
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00408bec
rcl dword [ebx + 0x70]
push ss
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x409222
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x4091fd
and eax, 0xffff
push eax
jmp 0x409201
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408bb1
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x4093db
add dword [eax], eax
invalid
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4091e2
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x409183
call fcn.00408bec
salc
inc ebp
push ebp
mov byte [0xa0878b], al
add byte [eax], al
cmp eax, ebx
je 0x4092a0
add eax, esi

Function at 0x409296
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4092a0
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40929b
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x409285
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
cmp edx, ebx
jne 0x4093db
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40925c
add eax, dword [eax + 4]
jmp 0x409249
mov dword [ebp + 0xc], ebx
jmp fcn.004092ab
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4092ab
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4092c3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4092e1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
invalid
Function at 0x40aba8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00408bb1
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x40abcf
jmp 0x40a58e
cmp dword [ebp - 0x37c], 0
je 0x40abdd
jmp 0x40ac92
Function at 0x40d490
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x40d4a7
push 8
mov eax, esi
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x40d4a1
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40d4d9
lea eax, [esi + 4]
push eax
push ebx
push ebx
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40d4dd
push esi
call fcn.0040d4e2
pop ecx
xor al, al
jmp 0x40d4df
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d7be
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION_
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
call fcn.0040181a
lea eax, [ebp - 0xc]
mov ebx, 0xf003f
push eax
push ebx
push esi
mov edi, SysReAllocString
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40d808
lea ecx, [ebp - 4]
call fcn.0040d8da
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], esi
je 0x40d8a4
cmp eax, esi
je 0x40d852
lea eax, [ebp - 0xc]
mov dword [ebp + 0xc], esi
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x40d841
lea ecx, [ebp - 4]
call fcn.0040d8da
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x40d852
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push ebx
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d877
lea ecx, [ebp - 4]
call fcn.0040d8da
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d75a
mov eax, dword [eax]
pop ecx
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
push esi
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x2af9
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0xc]
jmp 0x40d8be
lea eax, [ebp + 0xc]
push eax
call fcn.0040d75a
pop ecx
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp + 0xc]
call fcn.004017ee
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.0040d8da
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d9ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
lea eax, [ebp - 0x24c]
push 0x104
push eax
push dword [0x47ec38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 8], esi
jne 0x40da52
lea eax, [ebp - 0x24c]
test eax, eax
je 0x40da42
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.004018df
push 0x3c
lea eax, [ebp - 0x44]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
push eax
call fcn.004017a8
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x40], esi
call fcn.00401b61
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 1
call fcn.004017a8
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x30], eax
je 0x40daae
mov dword [ebp - 0x38], 0x4438bc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
lea ecx, [ebp + 8]
call fcn.004017ee
lea ecx, [ebp + 0xc]
call fcn.004017ee
mov eax, esi
pop esi
leave
ret
Function at 0x40db94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x10]
call fcn.00407038
mov eax, dword [0x47ec20]
mov ebx, 0x81
mov dword [ebp - 0x844], eax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x840]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [ebp - 0x844]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x844]
mov ecx, esp
push eax
call fcn.00407038
lea eax, [ebp - 0x18]
push eax
call fcn.0040dadf
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push str._selfdestruct.bat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a81
mov edx, dword [0x47ec20]
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x42c]
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x228], edx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x224]
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x634]
mov dword [ebp - 0x638], edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x228]
push eax
push esi
call edi
lea eax, [ebp - 0x638]
push eax
push esi
call edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x430]
pop ecx
push esi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 8]
push eax
call fcn.00407038
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40dd66
push dword [ebp - 0xc]
mov eax, dword [0x4421a0]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 0x10]
push eax
call fcn.00408deb
add esp, 0x14
lea ecx, [ebp - 4]
push 0x4438d0
push 0x4438c8
call fcn.00401c27
mov eax, dword [ebp - 4]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x40dcf7
xor edi, edi
jmp 0x40dd27
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0043daa0
mov edi, esp
push esi
push esi
push ebx
and byte [edi], 0
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push esi
push ecx
push dword [eax - 8]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x638]
push esi
push eax
lea eax, [ebp - 0x228]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004017ee
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 0x18]
call fcn.004017ee
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea esp, [ebp - 0x850]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e4ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e4ea
cmp dword [ebp + 0x10], esi
je 0x40e50c
push esi
push str.Create_Error_
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e50c
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [eax + 0x14]
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
lea ecx, [ebp + 8]
call fcn.004017ee
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40e51a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40e555
push ebx
push str.Error1_
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e596
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 8], ebx
lea eax, [edi + 1]
lea ecx, [esi + 4]
push eax
call fcn.00401b61
lea ecx, [ebp - 8]
push ebx
push ecx
push edi
push eax
mov dword [esi], eax
push dword [ebp - 4]
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
lea ecx, [ebp + 8]
call fcn.004017ee
mov eax, ebx
pop ebx
leave
ret
Function at 0x410926
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x47f1c0]
push edi
cmp ecx, ebx
je 0x410952
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x47f1c4], 4
cmp dword [eax], ebx
jmp 0x41097e
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x41097c
push str.Read_Error
mov ecx, esi
call fcn.00410449
cmp dword [edi], ebx
je 0x410aba
mov ecx, esi
call fcn.00410691
mov ecx, esi
call fcn.004104b8
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x410aba
mov edi, 0xfff
mov ecx, esi
call fcn.004106b7
mov ebx, eax
cmp bx, 0x100
jge 0x410a20
mov eax, dword [0x47f1d0]
test eax, eax
je 0x4109f4
mov ecx, dword [0x47f1d4]
lea edx, [ecx + 1]
cmp edx, dword [0x47f1cc]
jge 0x410a05
mov byte [ecx + eax], bl
inc dword [0x47f1d4]
jmp 0x410a05
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x410aab
mov ecx, esi
call fcn.004107f7
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x410aab
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x47f1d0]
test eax, eax
je 0x410a7f
mov ecx, dword [0x47f1d4]
lea edx, [ecx + 1]
cmp edx, dword [0x47f1cc]
jge 0x410a90
mov byte [ecx + eax], bl
inc dword [0x47f1d4]
jmp 0x410a90
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x410a4c
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x4109bf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411307
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x4a6a4c], 0
jne 0x41131c
push 0
mov ecx, 0x4a6a40
call fcn.00409520
cmp dword [esp + 0xc], 0
je 0x411348
mov eax, dword [esp + 8]
push 0x40
push 4
add eax, 0xfffffffe
push 4
push eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
push eax
push 0xffffffffffffffff
push dword [0x4a6a4c]
call dword [sym.imp.USER32.dll_SetWindowPos]
ret
push 0
push dword [0x4a6a4c]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x411357
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
xor esi, esi
push 0x3c
lea eax, [ebp - 0x3c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
push esi
mov dword [ebp - 0x2c], 0x444098
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], 1
call fcn.00401b61
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004017ee
mov eax, esi
pop esi
leave
ret

Function at 0x411b47
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push esi
mov esi, ecx
push edi
mov dword [esi], 0x43ecb4
mov dword [esi + 0x1c], 0x43ecb0
mov dword [esi + 0x20], 0x43ecac
cmp dword [0x4a713c], 0
je 0x411b99
push ebx
push 1
call fcn.004203b9
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push 5
push 0
push str.Shell_TrayWnd
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 5
push 0
push str.Shell_SecondaryTrayWnd
call edi
push eax
call ebx
pop ebx
lea ecx, [esi + 0xae8]
call fcn.004239fa
lea ecx, [esi + 0xadc]
call fcn.0042393d
lea ecx, [esi + 0xa40]
call fcn.00433544
lea ecx, [esi + 0x7b0]
call fcn.00424410
lea ecx, [esi + 0x548]
call fcn.00407229
mov eax, dword [esi + 0x538]
lea edi, [esi + 0x538]
test eax, eax
je 0x411bee
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
je 0x411bee
and dword [edi], 0
lea ecx, [esi + 0x68]
call fcn.004358bd
lea ecx, [esi + 0x44]
call fcn.0043618d
lea ecx, [esi + 0x24]
call fcn.0040aa27
pop edi
pop esi
ret

Function at 0x412298
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x1a85
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x47ec2c]
pop esi
ret 0x10

Function at 0x4123ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 4]
push dword [ebp + 0x10]
call fcn.004017a8
mov ecx, dword [ebp + 0x10]
push 0x47eaf4
call fcn.0040199b
cmp dword [0x443dc8], 0
jne 0x41244c
push dword [0x4a704c]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x10000
push eax
push eax
call fcn.00401b61
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
mov esi, eax
call fcn.00401bc9
jmp 0x412471
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push ecx
mov ecx, esp
push eax
call fcn.004017a8
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004017a8
call fcn.00432768
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 4]
call fcn.004017ee
lea ecx, [ebp + 8]
call fcn.004017ee
lea ecx, [ebp + 0xc]
call fcn.004017ee
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret