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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466af0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466ad1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466ae0
or bl, 4
test esi, 0x20000000
je 0x466aeb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46d198
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46d1aa
add esp, 0xfffffff0
call fcn.00403740
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042347c
mov eax, dword [0x4e83f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d53c
mov eax, dword [0x4e8404]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d548
mov eax, ebx
call fcn.0046d554
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x469970
push eax
push 0
push 0
mov eax, dword [0x4e85fc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424f38]
call fcn.0042674c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424f38]
call fcn.0042674c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424f38]
call fcn.0042674c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d974
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d850
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d850
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d850
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d2e7
call fcn.00403798
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d634
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d7df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d7c0
mov dl, 1
mov eax, dword [0x41b2f4]
call fcn.004033ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040424c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d7af
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045b0bc
test al, al
je 0x46d7a2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46d7f0
lea eax, [ebp - 0x254]
call fcn.004099ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d7a2
xor eax, eax
push ebp
push 0x46d79b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46d828
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d784
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d784
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d7a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d6a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041f5d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d7e6
lea eax, [ebp - 0x260]
call fcn.0040424c
ret

Function at 0x46e114
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e9be8]
cmp byte [eax + 0xa5], 0
jne 0x46e185
cmp dword [0x4e9c00], 0
jne 0x46e146
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46e0d0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e9c00], eax
cmp dword [0x4e9bfc], 0
jne 0x46e161
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e9bfc], eax
cmp dword [0x4e9c04], 0
jne 0x46e185
push esp
push 0
push 0
push 0x46e074
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4e9c04], eax
pop edx
ret
Function at 0x46e27c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46e293
add esp, 0xfffffff0
call fcn.00403740
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042347c
mov eax, dword [0x4e85e0]
cmp word [eax + 2], 0
jne 0x46e2bb
mov eax, dword [0x4e85e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f96c
mov eax, dword [0x4e8700]
cmp word [eax + 2], 0
jne 0x46e2d5
mov eax, dword [0x4e8700]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046fb64
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ac90]
call fcn.004033ec
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425ab8]
call fcn.0042dbc8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e45c
mov eax, dword [0x4e848c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042df98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x470104
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e848c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d7cc
test eax, eax
je 0x46e3ca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040938c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d7f4
test eax, eax
je 0x46e3de
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
mov eax, dword [0x4e82c0]
cmp byte [eax], 0
jne 0x46e412
mov eax, ebx
call fcn.0046e584
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004702e0
mov eax, ebx
call fcn.00470ca4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e452
call fcn.00403798
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e804
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e9be8]
cmp dword [eax + 0x30], 0
je 0x46e8ae
cmp dword [ebx + 0x94], 0
jne 0x46e8a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e794
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e8a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46e86e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e8a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d240
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e87d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f410
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46f445
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040433c
jmp 0x46f452
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4704bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4704fd
mov eax, esi
call fcn.00456660
test al, al
je 0x4704fd
mov eax, dword [ebx + 0x84]
call fcn.0045635c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4704fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045635c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x477878
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a200]
call fcn.00404d58
xor eax, eax
push ebp
push 0x4779bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e72f0], 0
jne 0x4778cb
mov ecx, dword [0x4e82dc]
mov dl, 1
mov eax, dword [0x4079e8]
call fcn.0040ca70
call fcn.00403c6c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402dc4
mov eax, ebx
call fcn.00404b10
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4779cc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406004
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b20
test eax, eax
jle 0x477963
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47795c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404500
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004044cc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004088b8
test eax, eax
jne 0x47795c
mov ebx, 0x15
jmp 0x477968
mov ebx, 0x10
jmp 0x477968
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e72f0]
call fcn.00477774
mov eax, dword [ebp - 8]
call fcn.00477774
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040601c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4779c3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404270
lea eax, [ebp - 0x10]
mov edx, dword [0x41a200]
call fcn.00404e28
ret

Function at 0x48d7d0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x48d7f5
cmp dword [esp + 4], 5
jb 0x48d7f5
mov al, 1
jmp 0x48d7f7
xor eax, eax
add esp, 0x94
ret
Function at 0x4a9b78
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a9ba6
mov eax, ebx
call fcn.004aa62c
cmp dword [ebx + 0x40], 0
je 0x4a9b9f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a9c17
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a9c09
cmp dword [ebx + 8], 0
je 0x4a9bc8
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 0x4a9bda
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a9c09
cmp dword [ebx + 8], 0
je 0x4a9bbb
cmp eax, 3
je 0x4a9bed
dec eax
jne 0x4a9bbb
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 0x4a9bbb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a9bbb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a9c35
cmp dword [ebx + 0x14], 0xcc
je 0x4a9c35
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.004a9c40
pop ebx
ret

Function at 0x4bb2f8
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [0x4e9cc0], 0
je 0x4bb36c
lea eax, [ebp - 4]
push eax
push 0x1000
push edx
mov eax, dword [0x4e9cc8]
push eax
mov eax, dword [0x4e9cc0]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
mov eax, dword [0x4e9ccc]
push eax
mov eax, dword [0x4e9cc0]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x4e9ccc]
push eax
mov eax, dword [0x4e9cc8]
push eax
push 0
push 0
mov eax, dword [0x4e9cc0]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
push ebx
call sub.kernel32.dll_ResumeThread
push ebx
call sub.kernel32.dll_CloseHandle
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x425070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42509d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42509d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1002efe8
Capabilities:
Authenticate hmac

Disassembly:
jmp 0x1002363d
lea esp, [esp + 8]
jae 0x100256df
jmp 0x10020434
Function at 0x40feb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x40fed2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fec8
mov eax, 1
add ebx, ebx
jne 0x40feeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fee0
jne 0x40fefc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fee0
xor ecx, ecx
sub eax, 3
jb 0x40ff10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ff82
mov ebp, eax
add ebx, ebx
jne 0x40ff1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ff28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ff4c
inc ecx
add ebx, ebx
jne 0x40ff38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ff2d
jne 0x40ff49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ff2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ff6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ff5d
jmp 0x40fece
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ff6c
add edi, ecx
jmp 0x40fece
pop esi
mov edi, esi
mov ecx, 0x269
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ff8a
cmp byte [edi], 0
jne 0x40ff8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40ff8f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40fffe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10e8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ffbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10e90]
or eax, eax
je 0x40fff8
mov dword [ebx], eax
add ebx, 4
jmp 0x40ffd9
call dword [esi + 0x10e94]
popal
jmp 0x4053a4
Function at 0x10002010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100640f1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [str.D__na_l_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x38]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10013880
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.10006c00
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 1
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.1000f3e0
mov dword [edi + 0x48], eax
mov eax, edi
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov dword [eax + 0x50], 0
call fcn.10013990
lea ecx, [edi + 0x40]
call fcn.10013990
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x48]
push dword [eax + 4]
call fcn.1000f410
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x48]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 8], eax
mov dword [edi + 0x4c], 0
call fcn.10014480
mov ecx, edi
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10010560
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064773
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [str.D__na_l_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000b250
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0x100672d8
lea ecx, [esi + 0x4c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x10066594
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.10007a50
xor eax, eax
mov dword [esi + 0x78], 7
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
mov dword [ecx + 0x10], 0
push eax
push 0x10066594
mov word [ecx], ax
call fcn.10007a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010670
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064798
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [str.D__na_l_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000b250
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0x10067518
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x10066594
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.10007a50
push 0
push 0
lea ecx, [esi + 0x4c]
call fcn.100139e0
push 0
push 0
lea ecx, [esi + 0x54]
call fcn.100139e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10010740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064798
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [str.D__na_l_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000b250
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0x10067464
lea ecx, [esi + 0x40]
mov dword [esi + 0x2c], 0xffffff
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 1
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x10066594
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.10007a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010810
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100647de
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [str.D__na_l_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000b250
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0x100673b0
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x10066594
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.10007a50
xor eax, eax
mov dword [esi + 0x60], 7
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x10], 0
push eax
push 0x10066594
mov word [ecx], ax
call fcn.10007a50
xor eax, eax
mov dword [esi + 0x78], 7
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
mov dword [ecx + 0x10], 0
push eax
push 0x10066594
mov word [ecx], ax
call fcn.10007a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x10069060]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10069060]
mov dword [edx + 8], eax
pop ebp
ret