joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c9d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x18], 8
jb 0x100c9d44
mov eax, dword [esi + 4]
jmp 0x100c9d47
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100c9d70
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.100c8740
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100c9d87
mov dword [edi], 0
call fcn.100c0fe0
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x100c9db1
push esi
call fcn.100c71b0
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x100c9dc8
mov dword [esp + 0x10], 9
jmp 0x100c9dc8
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x100c9dc8
mov dword [esp + 0x10], 2
call fcn.100c7610
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 8
pop esi
mov dword [eax + 4], ecx
mov dword [eax], edx
pop ebx
add esp, 8
ret

Function at 0x100cb360
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10114698
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
cmp dword [esi + 0x18], 8
jb 0x100cb39e
mov eax, dword [esi + 4]
jmp 0x100cb3a1
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100cb3ce
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100cb3c7
mov dword [esi], 0
call fcn.100c0fe0
mov dword [esi + 4], eax
mov al, 1
jmp 0x100cb461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.100c0fe0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.100c9b80
add esp, 0xc
cmp dword [esp + 0x10], 3
jne 0x100cb410
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100cb45f
mov dword [esi], 0
call fcn.100c0fe0
mov dword [esi + 4], eax
jmp 0x100cb45f
mov edi, dword [esp + 0xa4]
test edi, edi
jne 0x100cb455
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.10006340
mov dword [esp + 0x98], edi
call fcn.100c0fe0
push eax
push ebx
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.100b1ed0
push 0x10145548
lea eax, [esp + 0x40]
push eax
call fcn.100d784c
call fcn.100c0fe0
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x8c
ret
Function at 0x100ccfe0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x100cd006
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x100cd015
jl 0x100ccff1
cmp dword [esp], 0
jbe 0x100ccff1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
call edi
test eax, eax
jne 0x100cd041
lea ebx, [ebx]
inc esi
cmp esi, 3
ja 0x100cd067
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
je 0x100cd030
fild qword [esp + 0x10]
fmul qword [0x101299c0]
fild qword [esp + 8]
fdivp st(1)
call fcn.100dd8c6
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ecx
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], 0
mov dword [eax + 4], 0
pop esi
add esp, 0x10
ret
Function at 0x100d1af0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10159834]
sub esp, 8
push esi
push edi
cmp eax, 0xffffffff
je 0x100d1b5e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100d1b5e
lea esi, [eax + 0x14]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100d19a0
mov edi, dword [esp + 0xc]
mov ebx, dword [esi + 0x18]
mov esi, dword [esi]
test edi, edi
je 0x100d1b30
cmp edi, esi
je 0x100d1b35
call fcn.100d4f3d
mov esi, dword [esp + 0x10]
cmp esi, ebx
pop ebx
je 0x100d1b5e
test edi, edi
jne 0x100d1b5a
call fcn.100d4f3d
cmp esi, dword [edi + 0x18]
jne 0x100d1b51
call fcn.100d4f3d
pop edi
lea eax, [esi + 0x10]
pop esi
add esp, 8
ret
mov edi, dword [edi]
jmp 0x100d1b47
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x100d23d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101151f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d240b
xor ebx, ebx
jmp 0x100d2414
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x100d2455
cmp dword [ebx + 0x30], 0
jne 0x100d249c
cmp dword [ebx + 0xc], 0
jne 0x100d24a2
push 0x100cd100
push 0x1015ec08
call fcn.100ce960
mov eax, dword [0x10159834]
add esp, 8
cmp eax, 0xffffffff
je 0x100d2455
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x100d2488
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100d2488
mov edx, dword [ebx]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x100d24ea
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100d24d4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x100d24a2
cmp dword [ebx + 0x30], 0
je 0x100d242a
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x100d2593
call fcn.100d4f3d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2517
call fcn.100d4f3d
cmp dword [edi + 0x10], 0
je 0x100d2573
test esi, esi
jne 0x100d259a
call fcn.100d4f3d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2532
call fcn.100d4f3d
cmp dword [edi + 0x18], 0
je 0x100d2573
test esi, esi
jne 0x100d259e
call fcn.100d4f3d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d254d
call fcn.100d4f3d
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x100d25a2
call fcn.100d4f3d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2565
call fcn.100d4f3d
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.100d1b90
cmp dword [ebx + 0x30], 0
jne 0x100d24f7
jmp 0x100d2424
mov eax, dword [esi]
jmp 0x100d250d
mov eax, dword [esi]
jmp 0x100d2528
mov eax, dword [esi]
jmp 0x100d2543
mov eax, dword [esi]
jmp 0x100d255b
Function at 0x100d4010
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10115490
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.100d3f60
mov esi, eax
push 0x100cd100
push 0x1015ec08
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.100ce960
mov eax, dword [0x10159834]
add esp, 8
cmp eax, 0xffffffff
je 0x100d4070
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100d40d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10159834]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x100d40e8
push eax
call esi
test eax, eax
jne 0x100d4111
call fcn.100d4010
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d410e
xor eax, eax
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.100d23a0
add esp, 8
mov dword [esi], eax
pop esi
ret
push eax
call esi
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.100d23a0
add esp, 8
mov dword [esi], eax
pop esi
ret
Function at 0x100d4541
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10159df0]
jne 0x100d454b
repz ret
jmp fcn.100ddaec

Function at 0x100f297e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100dcaf6
and dword [ebp - 4], 0
cmp dword [0x1015f750], 0
mov ebx, eax
jne 0x100f2a2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100f2ae0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100f2ae0
push eax
call fcn.100dca84
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1015f750], eax
call esi
push eax
call fcn.100dca84
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1015f754], eax
call esi
push eax
call fcn.100dca84
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1015f758], eax
call esi
push eax
call fcn.100dca84
pop ecx
mov dword [0x1015f760], eax
test eax, eax
je 0x100f2a2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100dca84
pop ecx
mov dword [0x1015f75c], eax
mov eax, dword [0x1015f75c]
cmp eax, ebx
je 0x100f2a87
cmp dword [0x1015f760], ebx
je 0x100f2a87
push eax
call fcn.100dcaff
push dword [0x1015f760]
mov esi, eax
call fcn.100dcaff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100f2a87
test edi, edi
je 0x100f2a87
call esi
test eax, eax
je 0x100f2a7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f2a7e
test byte [ebp - 0xc], 1
jne 0x100f2a87
or dword [ebp + 0x10], 0x200000
jmp 0x100f2ac0
mov eax, dword [0x1015f754]
cmp eax, ebx
je 0x100f2ac0
push eax
call fcn.100dcaff
pop ecx
test eax, eax
je 0x100f2ac0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100f2ac0
mov eax, dword [0x1015f758]
cmp eax, ebx
je 0x100f2ac0
push eax
call fcn.100dcaff
pop ecx
test eax, eax
je 0x100f2ac0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1015f750]
call fcn.100dcaff
pop ecx
test eax, eax
je 0x100f2ae0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f2ae2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aa5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x4074dc
push 0x4074f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa95
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409cb0
push esi
lea ecx, [esp + 0x24]
call fcn.0040921b
lea ecx, [esp + 0x20]
call fcn.004095c7
mov esi, eax
test esi, esi
jns 0x40aae9
lea ecx, [esp + 8]
call fcn.0040a9d0
test al, al
je 0x40ab33
cmp esi, 0x80040b00
jne 0x40ab33
lea ecx, [esp + 0x20]
call fcn.00409683
mov esi, eax
test esi, esi
js 0x40ab33
mov esi, 0x80040b02
jmp 0x40ab33
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40aaf8
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40ab24
jle 0x40ab33
movzx esi, si
or esi, 0x80070000
jmp 0x40ab33
mov esi, 0x80004005
jmp 0x40ab33
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004092b7
lea ecx, [esp + 8]
call fcn.00409da9
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b187
mov esp, ebp
pop ebp
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x405ff8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x542268], 0
jne 0x40613d
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 0x406014
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x542264], eax
cmp dword [0x542264], 0
jne 0x4060e2
mov eax, dword [sym.imp.rtl250.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x40609d
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x542264], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x542264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x54224c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x54224c], fcn.00404a04
mov dword [0x542250], 0x404ce8
mov dword [0x542254], 0x404e68
mov dword [0x542258], 0x4050f8
mov dword [0x54225c], 0x4052cc
mov dword [0x542260], 0x405318
mov byte [0x542269], 1
jmp 0x406122
push 0
push 0
push 0
push 4
mov eax, dword [0x542264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, dword [eax]
mov edi, 0x54224c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x542264]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x542264], eax
mov byte [0x542269], 0
mov eax, 0x542234
call sub.rtl250.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x54224c
call sub.rtl250.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x542268], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4080ac
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 0x40814c
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 0x4080d6
cmp byte [esp], 0
je 0x40811b
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 0x408158
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 0x408158
mov eax, edi
mov edx, 0x40816c
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 0x408170
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 0x408213
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 0x408198
cmp byte [esp], 0
je 0x4081e1
mov eax, edi
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40821f
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 0x40821f
mov eax, edi
mov edx, 0x408234
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409204
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x53ba70], 0
jne 0x40923c
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 0x409233
movzx eax, word [esp]
mov word [0x53ba70], ax
jmp 0x40923c
mov word [0x53ba70], 0x2c
movzx eax, word [0x53ba70]
pop edx
ret
Function at 0x409a48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call sub.rtl250.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, ebx
call sub.rtl250.bpl__System_UniqueString_qqrr27System__AnsiStringT_us_i0__
mov eax, dword [ebx]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
test eax, eax
jle 0x409a79
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x409a6e
pop esi
pop ebx
ret

Function at 0x40aa88
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ab93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40a294]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
cmp dword [ebp - 4], 0
jne 0x40ab13
test esi, esi
jle 0x40ab13
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x40ab25
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40ab7d
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40ab58
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x40ab7d
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab9a
lea eax, [ebp - 8]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret
Function at 0x40d858
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
lea eax, [ebp - 8]
push eax
push 0x20
push 0x11
push 0
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40e44c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0040f420
test al, al
jne 0x40e442
cmp word [edi], 0x5a4d
jne 0x40e442
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40e442
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e458
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e5f4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x53bb10], 0
jne 0x40e6d5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40e647
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x40e678
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x40e6d5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40e6a3
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40e6b5
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40e6cf