joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45375c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x453782
mov eax, esp
push eax
push 0x453724
call sub.user32.dll_EnumWindows
jmp 0x453795
mov eax, esp
push eax
push 0x453704
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x453820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453874]
test si, 4
je 0x453835
or bl, 1
test si, 8
je 0x45383f
or bl, 4
test si, 1
je 0x453849
or bl, 8
test si, 2
je 0x453853
or bl, 0x10
test si, 0x10
je 0x45385d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45386c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453878
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4538b4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453892
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4538a1
or bl, 4
test esi, 0x20000000
je 0x4538ac
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b920
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b932
add esp, 0xfffffff0
call fcn.00403d80
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bde0
mov eax, dword [0x47aa48]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bcc4
mov eax, dword [0x47aa58]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bcd0
mov eax, ebx
call fcn.0045bcdc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
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, 0x457184
push eax
push 0
push 0
mov eax, dword [0x47ac5c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41faa0]
call fcn.004212f4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41faa0]
call fcn.004212f4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41faa0]
call fcn.004212f4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045c154
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c024
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c024
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c024
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ba6f
call fcn.00403dd8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45be08
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 0x45bfb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bf94
mov dl, 1
mov eax, dword [0x41351c]
call fcn.00403a2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040495c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bf83
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.0044d578
test al, al
je 0x45bf76
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, 0x45bfc4
lea eax, [ebp - 0x254]
call fcn.00409ef0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bf76
xor eax, eax
push ebp
push 0x45bf6f
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 0x45bffc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bf58
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
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 0x45bf58
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf76
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45be79
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041765c
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 0x45bfba
lea eax, [ebp - 0x260]
call fcn.0040495c
ret

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

Disassembly:
push ecx
mov eax, dword [0x47fcd0]
cmp byte [eax + 0xad], 0
jne 0x45c99d
cmp dword [0x47fcec], 0
jne 0x45c95e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c8e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fcec], eax
cmp dword [0x47fce8], 0
jne 0x45c979
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fce8], eax
cmp dword [0x47fcf0], 0
jne 0x45c99d
push esp
push 0
push 0
push 0x45c88c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47fcf0], eax
pop edx
ret
Function at 0x45cba0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45cbb7
add esp, 0xfffffff0
call fcn.00403d80
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bde0
mov eax, dword [0x47ac3c]
cmp word [eax + 2], 0
jne 0x45cbdf
mov eax, dword [0x47ac3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e890
mov eax, dword [0x47ad48]
cmp word [eax + 2], 0
jne 0x45cbf9
mov eax, dword [0x47ad48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ea9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x413040]
call fcn.00403a2c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4205b0]
call fcn.00427c58
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45cdb0
mov eax, dword [0x47aaec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042802c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45f160
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47aaec]
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.0040da9c
test eax, eax
je 0x45cd00
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040950c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dad0
test eax, eax
je 0x45cd14
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
mov byte [ebx + 0xd4], 0
push ebx
push 0x45e31c
call fcn.0041cf5c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x47a924]
cmp byte [eax], 0
jne 0x45cd65
mov eax, ebx
call fcn.0045cef4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045f374
mov eax, ebx
call fcn.0045fed8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cda5
call fcn.00403dd8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d174
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45d213
cmp dword [ebx + 0x94], 0
jne 0x45d20d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45d0fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45d20d
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 0x45d1d3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45d20d
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.004154f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45d1e2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d42c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47fcd0]
cmp dword [eax + 0x30], 0
je 0x45d589
test bl, bl
jne 0x45d4da
cmp dword [esi + 0x9c], 0
jne 0x45d4cf
mov eax, esi
call fcn.0045fd54
push eax
push 0x45d358
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45d4a0
mov eax, dword [0x47fcd0]
call fcn.00460434
test al, al
je 0x45d4a0
mov eax, dword [0x47fcf4]
call fcn.00405aa0
mov edi, eax
cmp edi, 0
jl 0x45d4a0
push 0
mov eax, dword [0x47fcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d48a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d4cf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004154f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d4af
inc dword [esi + 0x9c]
jmp 0x45d589
cmp dword [esi + 0x9c], 0
jle 0x45d589
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45d589
cmp dword [esi + 0x44], 0
je 0x45d535
mov eax, dword [0x47fcd0]
call fcn.00460434
test al, al
je 0x45d535
mov eax, dword [0x47fcf4]
call fcn.00405aa0
mov edi, eax
cmp edi, 0
jl 0x45d535
push 5
mov eax, dword [0x47fcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d51f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d564
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004154f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d544
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x47fcf4
mov ecx, 1
mov edx, dword [0x45d338]
call fcn.00405c54
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45e070
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45e0da
mov eax, ebx
call fcn.00460434
test al, al
jne 0x45e0da
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.00404a4c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45e0c7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45e0e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b0
jmp 0x45e0e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45f558
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f5c6
mov eax, esi
call fcn.004481a8
test al, al
je 0x45f5c6
mov eax, dword [ebx + 0x84]
call fcn.00447e08
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f5c6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45f5ba
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447e08
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043fc78
jmp 0x45f5c6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045f394
pop esi
pop ebx
ret
Function at 0x401c45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e028]
jne 0x401c4f
repz ret
jmp fcn.00402098
Function at 0x4062ca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x40e028]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 8]
push ecx
push ecx
fstp qword [esp]
lea eax, [ebp - 0x48]
push str._.15f
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
push esi
push 0x40
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push 0x40a684
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVCR80.dll__wtof]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401c45
leave
ret 8
Function at 0x407864
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 8]
test eax, eax
je 0x40788e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push dword [ebp + 8]
push 0x40e094
push ecx
push 3
push 1
push 3
push eax
call sub.MFC80U.DLL_Ordinal_3902
add esp, 0x20
jmp 0x4078ce
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x40789a
xor eax, eax
jmp 0x4078d1
lea ecx, [esi + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4078ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4078ce
push 0x3e8
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
inc eax
pop ebp
ret 8

Function at 0x4011e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x40
push 0x3000
mov esi, ecx
push 0x64
push 0
mov dword [esi + 8], 0x64
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x401242
lea ecx, [ebp - 8]
call fcn.004011d0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi]
sub eax, 0x10
add ecx, 8
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.00401490
push 0
push dword [esi + 4]
call fcn.004014b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0xc]
call fcn.004010f0
push 0x403774
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4012a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov edx, dword [edi + 8]
mov eax, dword [edi]
dec edx
add eax, edx
push eax
push dword [edi + 4]
call fcn.00401400
test eax, eax
jne 0x401357
mov ecx, dword [edi]
push ecx
call fcn.00401570
test eax, eax
je 0x4012e3
push ecx
call fcn.00401570
lea esi, [eax + 8]
mov eax, dword [edi + 8]
add eax, esi
jmp 0x401339
push 0x40
push 0x3000
push dword [edi + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x401355
lea ecx, [ebp - 8]
call fcn.004011d0
push dword [edi]
call fcn.00401560
mov dword [ebx + 4], eax
lea esi, [ebx + 8]
mov dword [ebx], 0
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
push esi
call fcn.00401490
push 0
push esi
call fcn.004014b0
push dword [edi]
call fcn.00401560
mov dword [eax], ebx
mov eax, dword [edi + 8]
add eax, ebx
push dword [ebp + 8]
dec eax
push eax
push esi
call fcn.00401400
test eax, eax
je 0x4012c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10093c5
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100a6a8
call fcn.01009974
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100c988
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10091da
cmp eax, esi
jne 0x10091cd
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10091dd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10091b4
xor esi, esi
inc esi
mov eax, dword [0x100c984]
cmp eax, esi
jne 0x10091f0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100922b
mov eax, dword [0x100c984]
test eax, eax
jne 0x1009225
mov dword [0x100c984], esi
push 0x100123c
push 0x1001230
call fcn.01009131
pop ecx
pop ecx
test eax, eax
je 0x100922b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10092f5
mov dword [0x100c650], esi
mov eax, dword [0x100c984]
cmp eax, esi
jne 0x100924f
push 0x100122c
push 0x1001224
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100c984], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100925c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100c994], ebx
je 0x100927d
push 0x100c994
call fcn.010098e9
pop ecx
test eax, eax
je 0x100927d
push ebx
push 2
push ebx
call dword [0x100c994]
push dword [0x100c638]
push dword [0x100c63c]
push dword [0x100c634]
call fcn.01001e98
add esp, 0xc
mov dword [0x100c64c], eax
cmp dword [0x100c640], ebx
jne 0x10092db
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100c650], ebx
jne 0x10092e9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c64c]
call fcn.010099b9
ret
call fcn.01009ac1
jmp 0x1009192
Function at 0x1009ec9
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
cmp byte [edx + 2], 0
mov ecx, 0xdeadbeef
jne 0x1009f07
test eax, eax
je 0x1009f10
mov edx, dword [eax + 0x60]
sub edx, dword [eax + 0x64]
cmp edx, 0x2000
jae 0x1009f10
and dword [0x100c998], 0
jmp 0x1009f24
mov edx, dword [ebp + 8]
cmp edx, ecx
jne 0x1009f1e
test eax, eax
je 0x1009f07
mov edx, dword [eax + 0x64]
mov dword [0x100c998], edx
cmp dword [ebp + 0xc], ecx
jne 0x1009f37
test eax, eax
jne 0x1009f32
or eax, 0xffffffff
jmp 0x1009f3a
mov eax, dword [eax + 0x64]
jmp 0x1009f3a
mov eax, dword [ebp + 0xc]
mov dword [0x100c99c], eax
add eax, 8
cmp eax, 8
jae 0x1009f51
mov dword [0x100c99c], 0xfffffff7
mov eax, dword [ebp + 0x10]
mov dword [0x100c9a0], 0x1009e25
test eax, eax
je 0x1009f67
mov dword [0x100c9a0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100c9a4], 0x1009e00
test eax, eax
je 0x1009f7d
mov dword [0x100c9a4], eax
pop ebp
ret 0x10
Function at 0x4046e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x4df268], 0
jne 0x404827
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEFL_]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x4046fc
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4df264], eax
cmp dword [0x4df264], 0
jne 0x4047ca
mov eax, dword [sym.imp.rtl160.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x404785
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4df264], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x4df264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x4df24c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x4df24c], fcn.004030f0
mov dword [0x4df250], 0x4033d4
mov dword [0x4df254], 0x403554
mov dword [0x4df258], 0x4037e4
mov dword [0x4df25c], 0x4039bc
mov dword [0x4df260], 0x403a08
mov byte [0x4df269], 1
jmp 0x40480c
push 0
push 0
push 0
push 4
mov eax, dword [0x4df264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x4df24c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4df264]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x4df264], eax
mov byte [0x4df269], 0
mov eax, 0x4df234
call sub.rtl160.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x4df24c
call sub.rtl160.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x4df268], 1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a000
Capabilities:
Inspect section memory permissions

Disassembly:
xor eax, eax
test edx, 0x20000000
je 0x40a038
test edx, 0x40000000
je 0x40a024
test edx, 0x80000000
je 0x40a01f
or eax, 0x40
jmp 0x40a062
or eax, 0x20
jmp 0x40a062
test edx, 0x80000000
je 0x40a033
or eax, 0x80
jmp 0x40a062
or eax, 0x10
jmp 0x40a062
test edx, 0x40000000
je 0x40a052
test edx, 0x80000000
je 0x40a04d
or eax, 4
jmp 0x40a062
or eax, 2
jmp 0x40a062
test edx, 0x80000000
je 0x40a05f
or eax, 8
jmp 0x40a062
or eax, 1
test edx, 0x4000000
je 0x40a06f
or eax, 0x200
ret
Function at 0x40a17c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
lea eax, [ebx + 0x44]
mov edx, 0xf8
call fcn.004025dc
lea edx, [ebx + 4]
mov ecx, 0x40
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebx + 0x44]
mov ecx, 4
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0x48]
mov ecx, 0x14
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx ecx, word [ebx + 0x58]
lea edx, [ebx + 0x5c]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebx + 4], 0x5a4d
jne 0x40a204
cmp dword [ebx + 0x44], 0x4550
jne 0x40a204
cmp word [ebx + 0x48], 0x14c
je 0x40a21a
mov ecx, 0x40a22c
mov dl, 1
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_Exception_]
call sub.rtl160.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl160.bpl__System__RaiseExcept_qqrv
pop esi
pop ebx
pop ebp
ret

Function at 0x45011c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x450186
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa]
mov edx, 0xa
call fcn.004025dc
push 4
lea eax, [ebp - 0xa]
push eax
push 3
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xa]
mov ecx, 5
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x10]
mov edx, esi
call sub.rtl160.bpl__System_Sysutils_LowerCase_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45018d
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret