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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov eax, dword [edx]
push esi
mov esi, ecx
cmp eax, dword [esi + 0xb4]
jne 0x431e32
cmp dword [edx + 8], 0xffffff65
jne 0x431e32
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x431e78
sub eax, 0x14
je 0x431e3b
sub eax, 2
je 0x431e78
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x431e32
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 2
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
mov dword [ebp - 0x1c], 2
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x431e32
mov ecx, esi
call fcn.00430f50
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x434100
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x894474]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x898098], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x434180
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040c750
push 0x4010
push 0x160
lea ecx, [ebp - 0x164]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.00446f0c
mov ecx, dword [ebp - 0x160]
add esp, 4
mov eax, esi
mov dword [edi], ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446cc5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x898090]
test eax, eax
je 0x4341a7
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00446cc5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4341c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x894474]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4576a4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446cc5
mov esp, ebp
pop ebp
ret 4
Function at 0x434d30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456b45
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x894474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x434f11
nop dword [eax]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00434c50
cmp dword [ebp - 0x1c], 0
jne 0x434f02
cmp dword [ebx + 8], 0x15555555
je 0x434f25
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.00446ec5
mov ecx, dword [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x459390]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x459390]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x434ea5
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.0044b0b0
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00447730
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x434e7e
cmp eax, 0x200
jae 0x434e7c
shl eax, 3
cmp eax, ecx
jae 0x434e7e
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00439b60
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00434c50
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x434ea8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov edi, dword [ebp - 0x28]
mov dword [ebx + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jne 0x434ee4
mov dword [ecx + eax*8], esi
jmp 0x434ef7
cmp dword [ecx + eax*8], edx
jne 0x434eee
mov dword [ecx + eax*8], esi
jmp 0x434efb
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x434efb
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add edi, 4
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0xc]
jne 0x434d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00447e79
int3
Function at 0x439b60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x439cb3
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00439a60
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x439c86
movzx eax, byte [ecx + 8]
mov edx, dword [edx]
xor eax, 0x811c9dc5
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 4], eax
cmp ebx, esi
jne 0x439bfe
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x439c79
mov eax, dword [eax + 4]
movzx edi, word [ecx + 8]
cmp di, word [eax + 8]
jne 0x439c3a
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x439c32
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
jmp 0x439c79
mov edi, eax
cmp ebx, eax
je 0x439c56
mov eax, dword [eax + 4]
mov edi, eax
movzx esi, word [ecx + 8]
cmp si, word [eax + 8]
mov esi, dword [ebp + 8]
je 0x439c8f
cmp ebx, eax
jne 0x439c40
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x439bc2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x439c79
push str.invalid_hash_bucket_count
call fcn.00447e79
int3
Function at 0x44daa3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45b5ec
push 0x45b5e4
push str.FlsAlloc
push 0x1e
call fcn.0044d981
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44dad7
push dword [ebp + 8]
mov ecx, esi
call dword [0x457308]
call esi
jmp 0x44dadd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44db21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45b5fc
push 0x45b5f4
push str.FlsGetValue
push 0x20
call fcn.0044d981
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44db58
push dword [ebp + 8]
mov ecx, esi
call dword [0x457308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44f3eb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44f488
push ebx
push esi
call fcn.0044f3b4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044d754
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44f435
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44f487
push edi
push eax
call fcn.0044d441
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44f455
call fcn.0044d407
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44f486
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044d754
add esp, 0x20
test eax, eax
jne 0x44f474
push edi
call fcn.0044d407
jmp 0x44f47c
push ebx
call fcn.0044d407
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401142
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push 0
push 0
mov ebx, str.PATH
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x4011d2
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004024ac
pop ecx
push esi
mov edi, eax
push edi
push ebx
call ebp
dec esi
cmp esi, eax
jne 0x4011ca
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push edi
call esi
mov ebp, eax
test ebp, ebp
je 0x4011ca
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004024ac
pop ecx
push ebp
push eax
push edi
mov dword [esp + 0x1c], eax
call esi
test eax, eax
je 0x4011c0
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [esp + 0x10]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401731
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x314], eax
push edi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040130c
mov esi, eax
shr eax, 0x1f
pop ecx
pop ecx
test al, 1
je 0x401778
push str.Couldnt_find_the_application_directory._n
call fcn.004011f7
pop ecx
mov eax, esi
jmp 0x4017f2
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4017ed
lea ecx, [ebp - 0x108]
sub eax, ecx
cmp eax, 0xfb
ja 0x4017ed
lea eax, [esi + 1]
push str.xul.dll
push eax
call sub.MSVCR100.dll_strcpy
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401800
push str.Could_not_find_the_Mozilla_runtime._n
call fcn.004011f7
pop ecx
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004024b7
leave
ret
call fcn.00401c78
lea eax, [ebp - 0x108]
push eax
call fcn.00401d1d
mov edi, eax
shr eax, 0x1f
pop ecx
test al, 1
je 0x40182a
push str.Couldnt_load_XPCOM._n
call fcn.004011f7
pop ecx
mov eax, edi
jmp 0x4017f2
push 0x403328
call fcn.00401c01
mov edi, eax
shr eax, 0x1f
pop ecx
test al, 1
je 0x401845
push str.Couldnt_load_XRE_functions._n
jmp 0x401820
call fcn.00401d05
push dword [ebp - 0x314]
lea eax, [ebp - 0x108]
push 0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x320]
mov byte [esi], 0
call fcn.004012cd
push eax
call fcn.00401c80
mov esi, eax
lea eax, [ebp - 0x320]
push eax
call fcn.00401cb3
add esp, 0x10
jmp 0x401774
Function at 0x401d1d
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
mov dword [0x404050], 1
mov dword [0x404054], 0xec
test eax, eax
jne 0x401d5b
mov eax, str.xul.dll
mov cl, byte [eax]
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
test cl, cl
je 0x401dc1
mov ebx, 0x4035b0
mov dl, 0x2f
cmp dl, cl
jne 0x401d75
mov esi, edi
inc ebx
mov dl, byte [ebx]
test dl, dl
jne 0x401d6f
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x401d68
test esi, esi
je 0x401dc1
sub esi, eax
cmp esi, 0xf0
ja 0x401eda
push esi
push eax
lea eax, [ebp + 0x88]
push eax
call sub.MSVCR100.dll_memcpy
lea eax, [ebp + esi + 0x88]
push str.dependentlibs.list
push eax
call sub.MSVCR100.dll_strcpy
add esp, 0x14
lea ebx, [ebp + esi + 0x89]
jmp 0x401dda
lea eax, [ebp + 0x88]
push 0x403588
push eax
call sub.MSVCR100.dll_strcpy
pop ecx
pop ecx
lea ebx, [ebp + 0x88]
push str.MOZ_RUN_GTEST
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x401dfd
lea eax, [ebp + 0x88]
push str..gtest
push eax
call sub.MSVCR100.dll_strcat
pop ecx
pop ecx
lea eax, [ebp + 0x88]
push 0x403568
push eax
call fcn.00401b85
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x401eda
mov edi, dword [sym.imp.MSVCR100.dll_fgets]
mov byte [ebx], 0
push eax
mov esi, 0x104
jmp 0x401e82
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCR100.dll_strlen
pop ecx
test eax, eax
je 0x401e7f
cmp byte [ebp - 0x7c], 0x23
je 0x401e7f
lea ecx, [ebp + eax - 0x7d]
cmp byte [ecx], 0xa
jne 0x401e4c
mov byte [ecx], 0
lea ecx, [ebp + 0x88]
sub eax, ecx
add eax, ebx
cmp eax, esi
ja 0x401ed0
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.MSVCR100.dll_strcpy
movzx eax, byte [0x404140]
push eax
lea eax, [ebp + 0x88]
push eax
call fcn.00401af2
add esp, 0x10
test al, al
je 0x401ee1
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x401e2c
mov eax, dword [0x40413c]
mov eax, dword [eax]
push str.NS_GetFrozenFunctions
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401ee1
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
push 0
push 0x404050
call esi
mov esi, eax
shr eax, 0x1f
pop ecx
pop ecx
test al, 1
je 0x401ee8
call fcn.00401bd8
mov eax, esi
jmp 0x401eea
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
mov eax, 0x80040111
jmp 0x401eea
call fcn.00401bd8
jmp 0x401ed0
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024b7
add ebp, 0x190
leave
ret
Function at 0x4020a5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff94]
mov eax, 0x10014
call fcn.004024d0
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp + 0xff90], eax
push ebx
mov ebx, dword [ebp + 0xff9c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
push 1
lea edx, [ebp - 0x80]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push ebx
xor edi, edi
call esi
test eax, eax
je 0x402148
cmp dword [ebp + 0xffa0], edi
je 0x402102
push edi
push edi
xor eax, eax
push eax
push dword [ebp + 0xffa0]
push ebx
call esi
test eax, eax
je 0x402148
mov dword [ebp - 0x74], edi
cmp dword [ebp + 0xffa4], edi
jbe 0x40213d
mov edi, 0x10000
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40213b
cmp dword [ebp - 0x78], edi
jne 0x40213b
add dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp + 0xffa4]
jb 0x402112
xor edi, edi
push edi
push edi
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push ebx
call esi
mov ecx, dword [ebp + 0xff90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024b7
add ebp, 0xff94
leave
ret

Function at 0x4024b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4024c1
repz ret
jmp fcn.00402964
Function at 0x40663c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x606268], 0
jne 0x406781
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.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x406658
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x606264], eax
cmp dword [0x606264], 0
jne 0x406726
mov eax, dword [sym.imp.rtl250.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x4066e1
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x606264], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x606264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x60624c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x60624c], fcn.00405048
mov dword [0x606250], 0x40532c
mov dword [0x606254], 0x4054ac
mov dword [0x606258], 0x40573c
mov dword [0x60625c], 0x405910
mov dword [0x606260], 0x40595c
mov byte [0x606269], 1
jmp 0x406766
push 0
push 0
push 0
push 4
mov eax, dword [0x606264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, dword [eax]
mov edi, 0x60624c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x606264]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x606264], eax
mov byte [0x606269], 0
mov eax, 0x606234
call sub.rtl250.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x60624c
call sub.rtl250.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x606268], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4086f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x408790
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call sub.rtl250.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40871a
cmp byte [esp], 0
je 0x40875f
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40879c
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
push eax
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
xor ecx, ecx
call sub.rtl250.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
jmp 0x40879c
mov eax, edi
mov edx, 0x4087b0
call sub.rtl250.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4087b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x408857
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call sub.rtl250.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x4087dc
cmp byte [esp], 0
je 0x408825
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x408863
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
push eax
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
call sub.rtl250.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x408863
mov eax, edi
mov edx, 0x408878
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409848
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x5f8a70], 0
jne 0x409880
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x409877
movzx eax, word [esp]
mov word [0x5f8a70], ax
jmp 0x409880
mov word [0x5f8a70], 0x2c
movzx eax, word [0x5f8a70]
pop edx
ret