joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x471b9c], 0
je 0x4445b7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4709a8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4445b7
mov eax, dword [0x471ba0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x471b9c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x444586
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x471b9c]
call fcn.00416f68
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44457e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x44457e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44457e
mov eax, dword [ebp - 0x14]
call fcn.0044cfcc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44457e
push ebp
call fcn.00444424
pop ecx
test al, al
jne 0x44457e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x44453a
mov eax, dword [ebp - 0x14]
call fcn.0044bafc
dec eax
jle 0x44457e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040331c
cmp byte [ebp - 1], 0
je 0x44457e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44457e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x471ba0]
call fcn.00443bf0
inc edi
dec ebx
jne 0x4444cd
mov eax, dword [0x471ba0]
cmp dword [eax + 8], 0
jle 0x44459e
mov eax, dword [0x471ba0]
call fcn.00443c80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4445b7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044428c
pop ecx
test al, al
jne 0x4445b7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447b50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x447b9c
mov eax, esi
call fcn.0042fbd4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x447b9c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x447b9c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x447cdb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x447bdc
cmp eax, 0x108
ja 0x447bdc
mov eax, esi
call fcn.0042fbd4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x447cd2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x447cdb
jmp 0x447cd2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x447cbb
cmp eax, 0x20a
ja 0x447cbb
test byte [esi + 0x50], 0x80
jne 0x447c0e
sub eax, 0x203
je 0x447c0b
sub eax, 3
je 0x447c0b
sub eax, 3
jne 0x447c0e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x447c22
dec eax
je 0x447c37
dec eax
je 0x447c54
dec eax
je 0x447c37
jmp 0x447c5b
mov ecx, ebx
mov eax, dword [0x4709a8]
mov eax, dword [eax]
mov edx, esi
call fcn.004391fc
jmp 0x447cd2
cmp byte [esi + 0x5d], 1
jne 0x447c4d
mov eax, esi
mov si, 0xffed
call fcn.0040331c
jmp 0x447cdb
or word [esi + 0x54], 1
jmp 0x447cd2
and word [esi + 0x54], 0xfffe
jmp 0x447cd2
mov eax, dword [0x471b58]
cmp byte [eax + 0x20], 0
je 0x447cd2
mov eax, dword [0x471b58]
cmp dword [eax + 0x1c], 0
je 0x447cd2
mov eax, dword [ebx]
mov edx, dword [0x471b58]
cmp eax, dword [edx + 0x1c]
jne 0x447cd2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042fb18
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040331c
jmp 0x447cdb
cmp eax, 0xb00b
jne 0x447cd2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004464b8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b15c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x44b178
cmp dword [esi + 4], 0
je 0x44b1a5
test byte [ebx + 0x55], 1
jne 0x44b197
mov eax, ebx
call fcn.00449d68
test eax, eax
jne 0x44b197
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44b2b5
mov edx, esi
mov eax, ebx
call fcn.0044ac80
jmp 0x44b2b5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44b2ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044cfcc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00447a84
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044b15c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044cfcc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b2b5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4516c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x470b28]
cmp byte [eax + 0xc], 0
je 0x451831
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45182a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x471bac], 0
jne 0x451718
push 0x451838
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x451840
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bac], eax
cmp dword [0x46fd4c], 0
jne 0x451813
push 0x451850
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46fd4c], eax
cmp dword [0x46fd4c], 0
je 0x451813
push 0x45185c
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb0], eax
push 0x45186c
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb4], eax
push 0x451880
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb8], eax
push 0x451898
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bbc], eax
push 0x4518b0
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc0], eax
push 0x4518c4
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc4], eax
push 0x4518dc
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc8], eax
push 0x4518f4
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bcc], eax
push 0x451910
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bd0], eax
push 0x45191c
mov eax, dword [0x46fd4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bd4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451831
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x454bd4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x454c02
mov eax, ebx
call fcn.00455688
cmp dword [ebx + 0x40], 0
je 0x454bfb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x454c73
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x454c65
cmp dword [ebx + 8], 0
je 0x454c24
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x454c36
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x454c65
cmp dword [ebx + 8], 0
je 0x454c17
cmp eax, 3
je 0x454c49
dec eax
jne 0x454c17
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 0x454c17
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x454c17
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x454c91
cmp dword [ebx + 0x14], 0xcc
je 0x454c91
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00454c9c
pop ebx
ret

Function at 0x4680a8
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402b34
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4683dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
lea edi, [esp + 8]
push ecx
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
pop ecx
mov edi, ecx
mov dword [esp], eax
mov eax, dword [edi]
push eax
call fcn.00468384
mov dword [esp + 4], eax
mov eax, dword [edi]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jl 0x4684d3
inc esi
mov eax, dword [esp + 4]
cmp dword [eax + 0x10], 0
jne 0x46846a
mov ebp, dword [esp + 0x40]
test ebp, ebp
jle 0x46845b
push 0x40
push 0x1000
push ebp
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 4]
call fcn.00468334
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [esp + 4]
mov dword [eax + 8], ebx
mov edx, ebp
mov eax, ebx
call fcn.00406bbc
push 0
push 0x28
lea eax, [esp + 0xc]
call fcn.00468304
jmp 0x4684cc
push 0x40
push 0x1000
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 4]
call fcn.00468334
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
call fcn.00468334
mov edx, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x10]
mov eax, ebx
call fcn.00406bb4
mov eax, dword [esp + 4]
mov dword [eax + 8], ebx
push 0
push 0x28
lea eax, [esp + 0xc]
call fcn.00468304
dec esi
jne 0x468416
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4688a4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4688b9
or edx, 0x200
test eax, 0x20000000
je 0x4688ec
test eax, 0x40000000
je 0x4688d8
test eax, 0x80000000
je 0x4688d3
or edx, 0x40
jmp 0x468913
or edx, 0x20
jmp 0x468913
test eax, 0x80000000
je 0x4688e7
or edx, 0x80
jmp 0x468913
or edx, 0x10
jmp 0x468913
test eax, 0x40000000
je 0x468904
test eax, 0x80000000
je 0x4688ff
or edx, 4
jmp 0x468913
or edx, 2
jmp 0x468913
test eax, 0x80000000
je 0x468910
or edx, 8
jmp 0x468913
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x468da4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043a8
xor eax, eax
push ebp
push 0x468e5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x468e2e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x468e74
mov edx, dword [ebp - 4]
call fcn.00404204
mov eax, dword [ebp - 0x24]
call fcn.004043b8
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov edx, dword [ebp - 8]
mov eax, 8
call fcn.00408250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468e65
lea eax, [ebp - 0x24]
call fcn.00403ef8
lea eax, [ebp - 4]
call fcn.00403ef8
ret

Function at 0x46a8a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x46a94a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00468e78
test al, al
jne 0x46a92f
push 0
lea ecx, [ebp - 4]
mov edx, 0x46a960
mov eax, 0x1eae
call fcn.004695b8
mov eax, dword [ebp - 4]
call fcn.004043b8
push eax
call sub.kernel32.dll_WinExec
push 0
lea ecx, [ebp - 8]
mov edx, 0x46a9a0
mov eax, 0x226e
call fcn.004695b8
mov eax, dword [ebp - 8]
call fcn.004043b8
push eax
call sub.kernel32.dll_WinExec
push 0
lea ecx, [ebp - 0xc]
mov edx, 0x46a9e0
mov eax, 0x180c
call fcn.004695b8
mov eax, dword [ebp - 0xc]
call fcn.004043b8
push eax
call sub.kernel32.dll_WinExec
call fcn.00403e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a951
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f1c
ret

Function at 0x46ab88
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x46aba1
jne 0x46aba8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x46abb7
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x46abbf
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x46b480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
xor eax, eax
push ebp
push 0x46b66c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x46b618
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 1
push 0
lea ecx, [ebp - 0x114]
mov edx, 0x46b688
mov eax, 0x568
call fcn.004695b8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
mov edx, 0x46b6bc
mov eax, 0x167a
call fcn.004695b8
mov edx, dword [ebp - 0x118]
pop eax
call fcn.004041c0
mov eax, dword [ebp - 0x114]
call fcn.004043b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b605
mov dword [ebp - 0xc], 0x101
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10d]
push eax
push 0
push 0
lea ecx, [ebp - 0x11c]
mov edx, 0x46b6f4
mov eax, 0xce8
call fcn.004695b8
mov eax, dword [ebp - 0x11c]
call fcn.004043b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea ecx, [ebp - 0x120]
mov edx, 0x46b714
mov eax, 0x1b87
call fcn.004695b8
mov eax, dword [ebp - 0x120]
call fcn.004043b8
lea edx, [ebp - 0x10d]
cmp eax, edx
jne 0x46b5a9
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x124]
mov edx, 0x46b750
mov eax, 0x2081
call fcn.004695b8
mov eax, dword [ebp - 0x124]
call fcn.004043b8
lea edx, [ebp - 0x10d]
cmp eax, edx
jne 0x46b5d7
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x128]
mov edx, 0x46b78c
mov eax, 0x1bad
call fcn.004695b8
mov eax, dword [ebp - 0x128]
call fcn.004043b8
lea edx, [ebp - 0x10d]
cmp eax, edx
jne 0x46b605
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b64e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b673
lea eax, [ebp - 0x12c]
mov edx, 7
call fcn.00403f1c
ret

Function at 0x46d63c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, 0x46d694
call fcn.00469140
mov eax, esp
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402b34
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 2
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404168
add esp, 0x100
pop ebx
ret
Function at 0x4032d8
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.00404b9c
test esi, esi
jne 0x40330e
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.00404c8c
jmp 0x40332c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031dc
mov edi, eax
test esi, esi
je 0x40332c
cmp dword [ebx], 0
je 0x40332c
dec esi
jmp 0x403315
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403338
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403a94
Capabilities:
Query or enumerate registry value

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

Function at 0x404948
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c104c], 0
je 0x4049a9
cmp word [0x4c1220], 0xd7b2
jne 0x404971
cmp dword [0x4c1228], 0
jbe 0x404971
mov eax, 0x4c121c
call dword [0x4c1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4049d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd034], 0
jne 0x4049c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4bd038], 0
je 0x404b46
mov edx, esi
mov eax, ebx
call dword [0x4bd038]
jmp 0x404b55
mov eax, 8
call fcn.00402eec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ae8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4091b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409202
test eax, edx
je 0x409205
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4091c5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4091eb
add ecx, 4
js 0x4091db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4091e8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409211
test edx, edx
jne 0x4091b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409ddc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409dfa
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409e1b
cmp ebx, 3
je 0x409e1b
cmp ebx, 0x7b
je 0x409e1b
mov eax, esi
call fcn.00409d9c
test al, al
jne 0x409e1f
xor eax, eax
jmp 0x409e21
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d330
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 0x40d369
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c8c
jmp 0x40d372
mov eax, ebx
mov edx, esi
call fcn.00404bf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d37c
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 0x40d39e
movzx eax, byte [esp]
jmp 0x40d3a0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40da30
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d8a8
mov eax, dword [0x4c02d0]
cmp byte [eax], 0
je 0x40daac
mov eax, dword [0x4bff00]
call fcn.0040340c
call fcn.00403048
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.0040a1b8
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 0x40daf4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dae2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bfe6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c37f8]
call fcn.00406100
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