joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4217ec
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x80000000
je 0x421807
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x42180e
xor eax, eax
jmp 0x421913
mov dword [ebp - 0x10], 0x31584449
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x42185f
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x42183a
mov eax, 0xe
jmp 0x421913
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + edx*8 - 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add ecx, dword [edx + eax*8 - 4]
mov dword [ebp - 8], ecx
jmp 0x42186b
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
add ecx, 0xc
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.00438dec
add esp, 0xc
lea edx, [ebp - 0x10]
push 0xc
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.00438dc0
add esp, 0xc
cmp eax, 0xc
je 0x4218a2
mov eax, 5
jmp 0x421913
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jle 0x4218fc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shl eax, 3
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.00438dec
add esp, 0xc
cmp eax, dword [ebp - 8]
je 0x4218d7
mov eax, 6
jmp 0x421913
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call fcn.00438dc0
add esp, 0xc
cmp eax, dword [ebp - 4]
je 0x4218fc
mov eax, 5
jmp 0x421913
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
push eax
call sub.KERNEL32.dll_SetEndOfFile
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x20], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x421b24
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x4551e8
call fcn.00403b30
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 8]
mov dword [edx], 0x4538a0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x28]
mov dword [ecx], 0x453d64
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0xc], edx
inc dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x45523c
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x455300
mov edx, dword [ebp + 8]
add edx, 0xd48
push edx
call sub.KERNEL32.dll_InitializeCriticalSection
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x1058
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], pe_nt_image_headers32
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0xd20], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0x50
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], 6
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 3
mov edx, dword [ebp + 8]
mov dword [edx + 0x34], 3
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x38], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x3c], 2
call fcn.00438c3c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], eax
push 0x458
push 0
mov eax, dword [ebp + 8]
add eax, 0x8c4
push eax
call fcn.00401198
add esp, 0xc
push 0x870
push 0
mov edx, dword [ebp + 8]
add edx, 0x54
push edx
call fcn.00401198
add esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0xd1c], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c], 2
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x42a5c8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426b2c
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x42a656
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x42a5fd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 8]
dec eax
jmp 0x42a600
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x1c]
jge 0x42a649
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
add eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 0x24]
push edx
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jl 0x42a60b
mov edx, dword [ebp + 8]
push edx
call fcn.00426b94
pop ecx
inc dword [ebp - 8]
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x42a677
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jl 0x42a5e8
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x42a690
mov eax, 0x16
jmp 0x42a692
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x42a698
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426b2c
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x42a726
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x42a6cd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 8]
dec eax
jmp 0x42a6d0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x18]
jge 0x42a719
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x24]
add edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0x20]
push ecx
mov eax, dword [ebp + 0x1c]
push eax
push 1
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jl 0x42a6db
mov edx, dword [ebp + 8]
push edx
call fcn.00426b94
pop ecx
inc dword [ebp - 8]
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x42a747
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jl 0x42a6b8
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x42a760
mov eax, 0x16
jmp 0x42a762
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x42f988
Capabilities:
Create process on windows
Get common file path
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff99c
lea eax, [ebp - 0x160]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x455d99
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x264]
push ecx
call fcn.00431208
add esp, 0xc
lea eax, [ebp - 0x264]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42fa19
push 0x455d6e
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040123c
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401348
pop ecx
add eax, dword [ebp + 0x10]
push eax
call fcn.0040123c
add esp, 8
mov eax, 1
jmp 0x42fb2a
lea edx, [ebp - 0x264]
push edx
lea edx, [ebp - 0x664]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push 0x455da3
push edx
call fcn.00405ce0
add esp, 0x14
push 0
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x664]
push eax
call fcn.00401348
pop ecx
push eax
lea edx, [ebp - 0x664]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_WriteFile
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x44
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00401198
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x264]
push ecx
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x42fafa
push 0xfffffffffffffff1
mov ecx, dword [ebp - 0x58]
push ecx
call sub.KERNEL32.dll_SetThreadPriority
push 0xf
call sub.KERNEL32.dll_GetCurrentThread
push eax
call sub.KERNEL32.dll_SetThreadPriority
push 0x80
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_SetPriorityClass
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 0x58]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x42fb2a
push 0x455d6e
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040123c
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401348
pop ecx
add eax, dword [ebp + 0x10]
push eax
call fcn.0040123c
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x430768
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 5
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43078a
xor eax, eax
jmp 0x4307ad
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4307a4
xor eax, eax
jmp 0x4307ad
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_LockResource
pop ecx
pop ecx
pop ebp
ret
Function at 0x431738
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.dll_lstrcpyA
push 0x5c
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x431772
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x431791
push 0x3a
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x431791
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4317b9
fld xword [0x431808]
jmp 0x431802
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], ecx
fild qword [ebp - 0x11c]
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
fild qword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], eax
fmulp st(1)
fild qword [ebp - 0x12c]
fmulp st(1)
mov esp, ebp
pop ebp
ret

Function at 0x431b94
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x456324
call fcn.00403b30
mov edx, dword [ebp + 8]
mov dword [edx], 0x4538a0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov dword [edx], 0x4563d0
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x45634f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x456359
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 8
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x64
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x54], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x30], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x34], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x38], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x60], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x68], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x432db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x432dea
mov eax, dword [ebp - 4]
jmp 0x432ded
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x432df4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 0x14]
push edx
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x432e27
mov eax, dword [ebp + 0x18]
jmp 0x432e50
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [ebp + 0x14]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x449e10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xca
jne 0x449e43
push ebx
call fcn.00445fca
pop ecx
cmp dword [ebx + 0x40], 0
je 0x449e3c
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
pop ebp
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x449eb8
mov edx, dword [ebx + 0x1b0]
cmp dword [edx + 0x10], 0
je 0x449eaa
cmp dword [ebx + 8], 0
je 0x449e65
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
push ebx
mov eax, dword [ebx + 0x1b0]
call dword [eax]
pop ecx
test eax, eax
jne 0x449e78
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
je 0x449eaa
cmp dword [ebx + 8], 0
je 0x449e58
cmp eax, 3
je 0x449e8b
dec eax
jne 0x449e58
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x449e58
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x13c]
add dword [edx + 8], ecx
jmp 0x449e58
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
jmp 0x449ed8
cmp dword [ebx + 0x14], 0xcc
je 0x449ed8
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x14
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x18], eax
push ebx
mov edx, dword [ebx]
call dword [edx]
pop ecx
push ebx
call fcn.00449ee2
pop ecx
pop ebx
pop ebp
ret
Function at 0x449ee2
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xcc
je 0x449f88
push ebx
mov eax, dword [ebx + 0x1a0]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x14], 0xcc
jmp 0x449f88
cmp dword [ebx + 8], 0
je 0x449f36
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x74]
mov dword [edx + 8], ecx
push ebx
mov eax, dword [ebx + 8]
call dword [eax]
pop ecx
mov esi, dword [ebx + 0x8c]
push 0
lea eax, [ebx + 0x8c]
push eax
push 0
push ebx
mov edx, dword [ebx + 0x1a4]
call dword [edx + 4]
add esp, 0x10
cmp esi, dword [ebx + 0x8c]
jne 0x449f60
xor eax, eax
jmp 0x449fa8
mov edx, dword [ebx + 0x8c]
cmp edx, dword [ebx + 0x74]
jb 0x449f14
push ebx
mov ecx, dword [ebx + 0x1a0]
call dword [ecx + 4]
pop ecx
push ebx
mov eax, dword [ebx + 0x1a0]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x8c], edx
mov ecx, dword [ebx + 0x1a0]
cmp dword [ecx + 8], 0
jne 0x449f60
mov eax, 0xce
cmp dword [ebx + 0x44], 0
jne 0x449fa0
dec eax
mov dword [ebx + 0x14], eax
mov eax, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x402f1c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x478008], 0x8088405
inc edx
mov dword [ebx + 0x478008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403374
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x478024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40340c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033ec
xor eax, eax
push ebp
push 0x4033e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403428
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x478024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x478024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40416c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x571048], 0
je 0x4041cd
cmp word [0x57121c], 0xd7b2
jne 0x404195
cmp dword [0x571224], 0
jbe 0x404195
mov eax, 0x571218
call dword [0x571234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x478070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x478034], 0
jne 0x4041e9
push 0
push 0x478068
push 0x478070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4061fa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404560
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061e4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406201
lea eax, [ebp - 0x10]
call fcn.004042f0
ret

Function at 0x40b4ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043e0
jmp 0x40b4ee
mov eax, ebx
mov edx, esi
call fcn.00404344
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b519
mov al, byte [esp]
jmp 0x40b51b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bbb0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba18
mov eax, dword [0x570640]
cmp byte [eax], 0
je 0x40bc2c
mov eax, dword [0x570424]
call fcn.00402d88
call fcn.00402bd4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c68
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc74
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc62
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5703cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x571664]
call fcn.00405600
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c4d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c5a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404388
lea eax, [ebp - 8]
call fcn.00404800
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c590
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c589
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c573
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c573
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c590
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5ad
lea eax, [ebp - 8]
call fcn.004042f0
ret

Function at 0x40cb14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cb78
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404560
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086ec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb7f
lea eax, [ebp - 0xc]
call fcn.004042f0
ret