joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439870
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d9e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00471444
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00476ad9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477ff5
test eax, eax
je 0x43998c
mov ecx, dword [esp + 0x3c]
call fcn.00476b06
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x439950
push edi
mov ecx, esi
call fcn.00474173
mov ecx, esi
call fcn.00439af0
cmp dword [esp + 0x38], 1
jne 0x439985
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004742ae
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c3a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c3d3
push esi
call fcn.0043f4b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c3cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c459
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c442
mov eax, dword [esi + 8]
test eax, eax
je 0x43c3f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c43e
cmp eax, 2
je 0x43c442
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c3ea
cmp eax, 3
je 0x43c41d
cmp eax, 1
jne 0x43c3ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c3ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c3ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c480
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c468
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c480
add esp, 4
pop esi
ret

Function at 0x44a530
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b18e8]
xor edx, edx
cmp eax, edx
jne 0x44a556
xor eax, eax
mov byte [eax + 0x4b17e8], al
inc eax
cmp eax, 0x100
jl 0x44a53e
mov dword [0x4b18e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b17e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44a5e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44a5ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44a588
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44a660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44a6b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44a69a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47de7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00451950
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x484b24
call fcn.0046fbd3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4510c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046fbd3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4510bc
push 0
mov ecx, eax
call fcn.00448160
mov dword [esi + 0xc], eax
jmp 0x4510c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4510c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x472239
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472271
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.004702ed
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004702c5
jmp 0x47227d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47392b
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 0x47396d
call fcn.004793e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47396d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473964
xor eax, eax
jmp 0x473975
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047397b
pop edi
pop esi
pop ebx
ret 4
Function at 0x479915
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 0x479943
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479961
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047987b
jmp 0x479961
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479961
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047987b
test edi, edi
mov eax, edi
jne 0x47994b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x59e204db
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7c587dc7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4069b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0xffffffff
je 0x4069e2
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
sub eax, 1
imul eax, eax, 0x32
add eax, 0x96
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jle 0x406a03
mov dword [ebp - 8], 0x3e8
mov eax, dword [ebp - 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll__sleep]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x406a46
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0xffffffff
je 0x406a7a
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x47c9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47c9dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47c9dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4054a0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x819c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4054e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x80f508]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80f50c]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405499
mov eax, dword [0x80f510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x80f514]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x819c48], 0xc
mov dword [ebp - 4], eax
jne 0x405576
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x819c48]
cmp eax, 0xfa9
jne 0x405592
mov dword [0x8191e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40559f
mov dword [0x818b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x8191e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x819c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x4055d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00405493
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40551c
cmp dword [0x819c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405642
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40564b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x819c48]
mov ecx, dword [0x818b98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056bb
mov edi, ecx
mov ebx, eax
cmp dword [0x819c48], 0x959
jne 0x4056af
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054a0
add edi, 8
dec ebx
jne 0x40566f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059af
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x819c48], 0x400
push edi
jne 0x405a16
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00406148
push esi
push esi
push esi
call fcn.00406569
add esp, 0x20
mov dword [esp], esi
call fcn.00405417
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053f4
fstp st(0)
push esi
call fcn.0040661f
pop ecx
push esi
push esi
call fcn.00405dd9
pop ecx
pop ecx
mov eax, dword [0x80fb94]
mov dword [0x819c48], eax
mov eax, dword [0x80fb6c]
mov dword [0x819c4c], eax
call fcn.004056da
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405a7d
cmp dword [esp + 0x18], 0x785074d5
jne 0x405a8b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a38
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405174
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405abc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405ac5
inc edi
cmp edi, 0x11915
jl 0x405a8d
mov eax, dword [0x818b98]
mov dword [0x8191dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e118]
jne 0x406f9a
repz ret
jmp fcn.0040b5d2
Function at 0x40b2f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040905d
and dword [ebp - 4], 0
cmp dword [0x810440], 0
mov ebx, eax
jne 0x40b3a6
push 0x4025c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b457
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025b4
push edi
call esi
test eax, eax
je 0x40b457
push eax
call fcn.00408feb
mov dword [esp], 0x4025a4
push edi
mov dword [0x810440], eax
call esi
push eax
call fcn.00408feb
mov dword [esp], 0x402590
push edi
mov dword [0x810444], eax
call esi
push eax
call fcn.00408feb
mov dword [esp], 0x402574
push edi
mov dword [0x810448], eax
call esi
push eax
call fcn.00408feb
pop ecx
mov dword [0x810450], eax
test eax, eax
je 0x40b3a6
push 0x40255c
push edi
call esi
push eax
call fcn.00408feb
pop ecx
mov dword [0x81044c], eax
mov eax, dword [0x81044c]
cmp eax, ebx
je 0x40b3fe
cmp dword [0x810450], ebx
je 0x40b3fe
push eax
call fcn.00409066
push dword [0x810450]
mov esi, eax
call fcn.00409066
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3fe
test edi, edi
je 0x40b3fe
call esi
test eax, eax
je 0x40b3f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3f5
test byte [ebp - 0xc], 1
jne 0x40b3fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b437
mov eax, dword [0x810444]
cmp eax, ebx
je 0x40b437
push eax
call fcn.00409066
pop ecx
test eax, eax
je 0x40b437
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b437
mov eax, dword [0x810448]
cmp eax, ebx
je 0x40b437
push eax
call fcn.00409066
pop ecx
test eax, eax
je 0x40b437
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810440]
call fcn.00409066
pop ecx
test eax, eax
je 0x40b457
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b459
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005646
Capabilities:
Encode data using xor

Disassembly:
pop es
push esi
call fcn.1000540f
pop ecx
mov eax, esi
rol dl, 4
add byte [esi - 0x75], dl
int1
push dword [esp + 8]
call fcn.1000555b
mov dword [esi], 0x89fffdac
mov eax, esi
rol dl, 4
add byte [eax + 0x1000c6f8], bh
mov eax, 0x1000c6f8
mov byte [eax], 0x10
call fcn.10006883
and al, 0xec
xor byte [edx + 0x6a56f345], cl
add byte [ebp + 0x4588e04d], cl
loopne 0x10005648
xchg ebx, eax
cmc
invalid
Function at 0x401930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0xc]
push eax
push esi
mov edi, ecx
mov edx, dword [edi + 0x104]
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x24], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4019a7
mov eax, dword [edi + 0x104]
push 0x3c
push esi
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jge 0x4019a7
pop edi
mov dword [esi + 0x10], 0x2bc
mov dword [esi], ecx
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x401db0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4085de
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push 0x104
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
je 0x401e00
push 0x4092ac
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push eax
push str._sVTTimer.ini
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
call fcn.00403763
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x114], 0
je 0x401e37
mov ecx, eax
call fcn.004011e0
jmp 0x401e39
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword [esi + 0x104], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x401e60
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
push esi
je 0x401ea5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401ea5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x401ea5
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push esi
push str.NoData
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push str.NoData
call fcn.00403c12
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x401eb0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
test eax, eax
push edi
mov edi, ecx
je 0x402001
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402001
mov eax, dword [str.DevicePriority]
mov edx, dword [0x4092c8]
mov ecx, dword [0x4092c4]
push 0x10
mov dword [esp + 0x10], eax
mov ax, word [0x4092cc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov cl, byte [0x4092ce]
push edx
mov word [esp + 0x20], ax
push str.Count
lea eax, [esp + 0x18]
mov byte [esp + 0x26], cl
push eax
mov ecx, edi
call fcn.00401e60
test eax, eax
je 0x402001
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403cad
add esp, 4
cmp eax, 1
mov dword [esp + 4], eax
jl 0x402001
cmp eax, 4
jl 0x401f4b
mov dword [esp + 4], 4
mov eax, dword [esp + 4]
mov ecx, dword [edi + 0x104]
test ecx, ecx
je 0x402001
push esi
xor esi, esi
test eax, eax
jle 0x401fee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Device
lea edx, [esp + 0x3c]
push edx
call ebx
push 0xa
lea eax, [esp + 0x18]
push eax
inc esi
push esi
call fcn.004084a6
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
push ecx
call ebp
push edi
push 0x10
lea edx, [esp + 0x30]
push edx
push str.NoData
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x28]
push edx
push str.NoData
call fcn.00403c12
add esp, 8
test eax, eax
je 0x401fe4
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x104]
call fcn.004012a0
add dword [esp + 0x4c], 4
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x401f72
pop ebp
pop ebx
mov edx, dword [esp + 0x48]
pop esi
mov dword [edx], eax
mov eax, 1
pop edi
add esp, 0x38
ret 8
xor eax, eax
pop edi
add esp, 0x38
ret 8

Function at 0x402220
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
je 0x402270
push ecx
push 0x10
lea ecx, [esp + 8]
push ecx
push str.NoData
push eax
push str.SettingFlag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp]
push edx
push str.NoData
call fcn.00403c12
add esp, 8
test eax, eax
je 0x402270
lea eax, [esp]
push eax
call fcn.00403cad
add esp, 4
cmp eax, 1
jne 0x402270
add esp, 0x10
ret 4
xor eax, eax
add esp, 0x10
ret 4

Function at 0x402280
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
mov edx, dword [esp + 0x54]
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00402180
push esi
push 0x10
lea eax, [esp + 0x10]
push eax
push str.NoData
push str.SaveCurrentMode
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 8]
push edx
push str.NoData
call fcn.00403c12
add esp, 8
test eax, eax
pop edi
pop esi
je 0x4022fe
lea eax, [esp]
push eax
call fcn.00403cad
add esp, 4
cmp eax, 1
jne 0x4022fe
add esp, 0x50
ret 8
xor eax, eax
add esp, 0x50
ret 8