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

Disassembly:
push 0xffffffffffffffff
push 0x47db03
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.004713ff
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.00476a98
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477fb4
test eax, eax
je 0x450f3c
mov ecx, dword [esp + 0x3c]
call fcn.00476ac5
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 0x450f00
push edi
mov ecx, esi
call fcn.00474131
mov ecx, esi
call fcn.004510a0
cmp dword [esp + 0x38], 1
jne 0x450f35
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.0047426c
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 0x453950
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453983
push esi
call fcn.00456a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45397c
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 0x453a09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4539f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4539a7
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 0x4539ee
cmp eax, 2
je 0x4539f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45399a
cmp eax, 3
je 0x4539cd
cmp eax, 1
jne 0x45399a
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 0x45399a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45399a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00453a30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453a18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00453a30
add esp, 4
pop esi
ret

Function at 0x4721f5
Capabilities:
Get graphical window text

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

Function at 0x4738e6
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 0x473928
call fcn.004793a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473928
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47391f
xor eax, eax
jmp 0x473930
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473936
pop edi
pop esi
pop ebx
ret 4

Function at 0x4798d4
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 0x479902
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479920
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047983a
jmp 0x479920
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479920
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047983a
test edi, edi
mov eax, edi
jne 0x47990a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403118
test esi, esi
jne 0x4026f6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004031dc
jmp 0x402714
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d4
mov edi, eax
test esi, esi
je 0x402714
cmp dword [ebx], 0
je 0x402714
dec esi
jmp 0x4026fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402954
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402934
xor eax, eax
push ebp
push 0x40292d
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 0x402970
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 0x402934
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x402ffd
cmp word [0x409208], 0xd7b2
jne 0x402fc5
cmp dword [0x409210], 0
jbe 0x402fc5
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408054
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 0x403024
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x403019
push 0
push 0x40804c
push 0x408054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40376c
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 0x4037d2
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.0040323c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4037bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037d9
lea eax, [ebp - 0x10]
call fcn.00403118
ret
Function at 0x403e60
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [0x4082c8]
mov eax, dword [edi]
xor edx, edx
push edx
push eax
push 0
push 0x8000
call fcn.00403de8
add eax, 2
adc edx, 0
call fcn.00402458
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403f62
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jbe 0x403f47
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi]
xor edx, edx
push edx
push eax
push 0
push 0x8000
call fcn.00403de8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov eax, dword [0x4082c4]
mov ax, word [eax + 6]
and ax, 1
cmp ax, 1
jne 0x403f15
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jb 0x403f15
inc esi
xor ebx, ebx
call fcn.004071f4
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx]
xor al, dl
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
call fcn.00407120
inc ebx
dec esi
jne 0x403ef3
lea eax, [ebp - 4]
push eax
push 0
mov edx, dword [ebp - 8]
mov eax, dword [0x4082ac]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
call fcn.00404480
mov ecx, dword [0x40827c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00403dc4
cmp dword [edi], 0
ja 0x403ea6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f69
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00402478
ret

Function at 0x404480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push edx
push eax
call sub.kernel32.dll_WriteFile_1
mov esi, eax
mov eax, ebx
xor edx, edx
mov ecx, dword [0x408274]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [0x4082bc]
cmp dword [eax + 4], 0
jne 0x4044ba
cmp dword [eax], 0
jbe 0x4044c1
jmp 0x4044bc
jle 0x4044c1
call fcn.004043e0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x404518
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
movzx eax, word [0x409800]
cmp eax, dword [0x409804]
jb 0x4045a4
push 0
push 0x409804
mov eax, dword [0x4082c8]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
push 0
push 0x8000
call fcn.00403de8
push eax
mov eax, dword [0x4097f8]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x4082c4]
mov ax, word [eax + 6]
and ax, 1
cmp ax, 1
jne 0x40459b
mov esi, dword [0x409804]
dec esi
test esi, esi
jl 0x40459b
inc esi
xor ebx, ebx
call fcn.004071f4
mov edx, dword [0x4097f8]
xor byte [edx + ebx], al
mov eax, dword [0x4097f8]
mov al, byte [eax + ebx]
call fcn.00407120
inc ebx
dec esi
jne 0x40457c
mov word [0x409800], 0
cmp dword [0x409804], 0
jne 0x4045c5
mov eax, dword [0x4082c8]
xor edx, edx
mov dword [eax], edx
mov word [0x409800], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x409800]
mov edx, dword [0x4097f8]
movzx eax, byte [edx + eax]
inc word [0x409800]
pop esi
pop ebx
ret
Function at 0x405b2c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor edx, edx
push ebp
push 0x405ba7
push dword fs:[edx]
mov dword fs:[edx], esp
dec eax
jne 0x405b8c
cmp byte [0x4081f4], 0
je 0x405b8c
lea edx, [ebp - 4]
mov eax, 1
call fcn.00405780
lea edx, [ebp - 8]
mov eax, 2
call fcn.00405780
push 5
push 0x405bb4
mov eax, dword [ebp - 8]
call fcn.00403454
push eax
mov eax, dword [ebp - 4]
call fcn.00403454
push eax
push 0x405bb8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bae
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040313c
ret

Function at 0x405d68
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, 0x409838
xor ebx, ebx
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], 0x409858
mov eax, 0x405dd8
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 1
mov eax, 0x405d04
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x18], eax
mov byte [0x409968], 0
push edi
call sub.shell32.dll_SHBrowseForFolderA
mov dword [0x409960], eax
cmp dword [0x409960], 0
je 0x405dd1
push esi
mov eax, dword [0x409960]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
mov bl, byte [0x409968]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x405e00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 1], 0
push 0
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
mov eax, dword [0x408288]
mov eax, dword [eax]
sub ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x10016
jbe 0x405e3a
mov dword [ebp - 8], 0x10016
cmp dword [ebp - 8], 0x16
jbe 0x405fa8
mov eax, dword [ebp - 8]
call fcn.00402458
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x405fa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
neg eax
adc edx, 0
neg edx
push edx
push eax
mov eax, 2
call fcn.00403f84
mov esi, dword [0x408254]
mov esi, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x405f88
mov ebx, dword [ebp - 8]
sub ebx, 0x16
test ebx, ebx
jb 0x405f88
inc ebx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx], 0x50
jne 0x405f7e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx + 1], 0x4b
jne 0x405f7e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx + 2], 5
jne 0x405f7e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx + 3], 6
jne 0x405f7e
push 0
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx + 0x15]
shl edx, 8
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
movzx ecx, byte [ecx + edi + 0x14]
add edx, ecx
add edx, esi
add edx, dword [ebp - 0xc]
add edx, 0x16
cmp eax, edx
jne 0x405f7e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add eax, edx
mov edx, dword [0x408244]
mov dword [edx], eax
mov eax, dword [0x408244]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
xor edx, edx
push edx
push eax
xor eax, eax
call fcn.00403f84
push 0
lea eax, [ebp - 0x10]
push eax
push 0x2e
mov eax, dword [0x408240]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
call fcn.00406028
mov byte [ebp - 1], 1
jmp 0x405f88
inc dword [ebp - 0xc]
dec ebx
jne 0x405eba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00402478
ret
cmp byte [ebp - 1], 0
jne 0x405fd3
push 0x10
push 0x405fe0
push 0x405fe8
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00403028
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406028
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov edi, dword [0x408240]
xor eax, eax
push ebp
push 0x40620e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [edi + 0x2a]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x408244]
mov eax, dword [eax]
movzx esi, word [eax + 0xa]
dec esi
test esi, esi
jb 0x4060f2
inc esi
cmp dword [edi], 0x2014b50
jne 0x4061f8
mov eax, dword [edi + 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [0x4082bc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, dword [0x4082bc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [edi + 0x2a]
mov eax, ecx
xor edx, edx
cmp edx, dword [ebp - 0xc]
jne 0x4060b1
cmp eax, dword [ebp - 0x10]
jae 0x4060bd
jmp 0x4060b3
jge 0x4060bd
mov eax, ecx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
movzx eax, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, 1
call fcn.00403f84
push 0
lea eax, [ebp - 8]
push eax
push 0x2e
push edi
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
dec esi
jne 0x40606c
cmp dword [ebp - 0xc], 0
jne 0x406104
cmp dword [ebp - 0x10], 0
jbe 0x4061f8
jmp 0x40610a
jle 0x4061f8
mov eax, dword [0x408288]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, 2
sbb edx, 0
push edx
push eax
xor eax, eax
call fcn.00403f84
push 0
lea eax, [ebp - 8]
push eax
push 2
mov eax, dword [0x408294]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
push 0
push 0
mov eax, 1
call fcn.00403f84
push edx
push eax
mov eax, dword [0x408294]
movzx eax, word [eax]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x406179
cmp eax, 0
jbe 0x4061f6
jmp 0x40617b
jle 0x4061f6
mov eax, dword [0x408254]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [0x408294]
movzx eax, word [eax]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor eax, eax
call fcn.00403f84
push 0
lea eax, [ebp - 8]
push eax
push 3
lea eax, [ebp - 3]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 8], 3
jne 0x4061f6
lea eax, [ebp - 0x14]
lea edx, [ebp - 3]
mov ecx, 3
call fcn.0040323c
mov eax, dword [ebp - 0x14]
mov edx, 0x406228
call fcn.004033a0
jne 0x4061f6
mov eax, dword [0x408288]
mov edx, dword [0x408254]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406215
lea eax, [ebp - 0x14]
call fcn.00403118
ret
Function at 0x4066a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x406737
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [0x4099bc], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x1e
push 0x4099bc
mov eax, dword [0x4099b4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x4099bc]
cmp eax, dword [0x409980]
je 0x4066ec
cmp eax, 0x50000000
je 0x4066ec
xor ebx, ebx
jmp 0x4066ee
mov bl, 1
test bl, bl
je 0x4066fe
mov eax, dword [0x4099ce]
mov dword [0x4099b0], eax
jmp 0x40672d
xor edx, edx
mov dword [0x4099b0], edx
cmp eax, 0x8074b50
jne 0x40672d
mov eax, dword [0x408254]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x10
adc edx, 0
push edx
push eax
xor eax, eax
call fcn.00403f84
call fcn.004066a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406743
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x407120
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x409974
mov edx, dword [esi]
mov eax, ebx
call fcn.004070e8
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00403c14
call fcn.00403c18
mov edx, dword [esi + 8]
call fcn.004070e8
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x407218
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00403444
xor eax, eax
push ebp
push 0x4072e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp + 8], 0
je 0x4072cb
mov eax, dword [ebp + 8]
call fcn.00407168
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x40728e
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.004071f4
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.00407120
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x407260
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x4072b8
mov eax, dword [ebp + 0x10]
call fcn.00403c14
call fcn.00403c18
cmp bl, al
jne 0x4072cb
mov byte [ebp - 2], 1
jmp 0x4072cb
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x4072cb
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072e8
lea eax, [ebp + 8]
call fcn.00403118
ret
Function at 0x416980
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b193b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a62d5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x416a02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a3f4b
mov eax, dword [eax]
push 0x57ad24
push eax
call fcn.00494d04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a6560
test bl, bl
je 0x416a02
push 0x57ad24
lea ecx, [esp + 0xc]
call fcn.004a68f0
push 0x57ad30
lea ecx, [esp + 0xc]
call fcn.004a68f0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x416a3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a6560
jmp 0x416b09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x416ac2
lea edx, [esp + 0x7c]
push 0x57ad2c
push edx
call fcn.00494d04
add esp, 8
test eax, eax
je 0x416ac2
lea eax, [esp + 0x7c]
push 0x57ad28
push eax
call fcn.00494d04
add esp, 8
test eax, eax
je 0x416ac2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x416a52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a6560
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x417310
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417372
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc