joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040b8f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10040ba6
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x10040bc8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x1044a7c4
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x1044ab50
jl 0x10040bd6
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x1044adf4
jl 0x10040c16
mov ecx, dword [0x1044bb40]
xor ecx, dword [0x1044a7c4]
and ecx, edi
xor ecx, dword [0x1044bb40]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x1044a7c0], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x1044adf4]
mov dword [0x1044b180], eax
pop esi
ret
Function at 0x40895e
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
or ecx, ecx
add ecx, edi
call fcn.00408985
xor dword [eax], edx
inc ecx
sub edi, 0x4735af17
add eax, 1
cmp eax, ebx
jne fcn.0040895e
ret
Function at 0x4b97f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
or ebp, 0xffffffff
jmp 0x4b9812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b9819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9808
mov eax, 1
add ebx, ebx
jne 0x4b982b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b983c
jne 0x4b985b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b985b
dec eax
add ebx, ebx
jne 0x4b9848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b9820
add ebx, ebx
jne 0x4b9857
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b98ad
xor ecx, ecx
sub eax, 3
jb 0x4b9873
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b98e2
sar eax, 1
mov ebp, eax
jmp 0x4b987e
add ebx, ebx
jne 0x4b987e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b984c
inc ecx
add ebx, ebx
jne 0x4b988c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b984c
add ebx, ebx
jne 0x4b9899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b988e
jne 0x4b98aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b988e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b98cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b98be
jmp 0x4b980e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b98cc
add edi, ecx
jmp 0x4b980e
pop esi
mov edi, esi
mov ecx, 0x590e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b98ea
cmp byte [edi], 0xa
jne 0x4b98ea
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 al, bl
loop 0x4b98ef
lea edi, [esi + 0xb6000]
mov eax, dword [edi]
or eax, eax
je 0x4b9967
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xba48c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xba570]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b991c
mov ecx, edi
jns 0x4b994b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xba578]
or eax, eax
je 0x4b9961
mov dword [ebx], eax
add ebx, 4
jmp 0x4b9939
call dword [esi + 0xba574]
mov ebp, dword [esi + 0xba57c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b999b
sub esp, 0xffffff80
jmp 0x466da4
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x401996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c010]
test eax, eax
je 0x4019d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40180f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184e
cmp dword [ecx + 0x74], 0xe
jbe 0x40184e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10001047
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10004387
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100043c6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100043c6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100043c6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100043c6
cmp dword [ecx + 0x74], 0xe
jbe 0x100043c6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000704f
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 0x100070ec
push ebx
push esi
call fcn.10007018
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.10006fac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007099
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100070eb
push edi
push eax
call fcn.1000800a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100070b9
call fcn.10005af4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100070ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10006fac
add esp, 0x20
test eax, eax
jne 0x100070d8
push edi
call fcn.10005af4
jmp 0x100070e0
push ebx
call fcn.10005af4
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 0x10007359
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e4f8
push 0x1000e4f0
push str.FlsAlloc
push 0x1f
call fcn.10007275
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000738d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d118]
call esi
jmp 0x10007393
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100073d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e508
push 0x1000e500
push str.FlsGetValue
push 0x21
call fcn.10007275
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000740e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007416
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e510
push 0x1000e508
push str.FlsSetValue
push 0x22
call fcn.10007275
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007450
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000d118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cafd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cafd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100013a8
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x310
mov eax, dword [0x10025090]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebp
push esi
call fcn.10001e07
mov ebp, 0x104
lea eax, [esp + 0x210]
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.10006e70
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x14]
add esp, 0xc
push str.flplusplus.ini
push eax
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000143a
lea eax, [esp + 8]
push eax
push str.opening_flplusplus.ini_at__s
call fcn.10002f67
lea eax, [esp + 0x10]
push eax
call fcn.10001e5f
add esp, 0xc
lea eax, [esp + 0x210]
push eax
push ebp
mov ebp, 0x10025c18
push ebp
call fcn.10006e70
add esp, 0xc
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.DATA_
push ebp
call esi
push ebp
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.10006e70
add esp, 0xc
lea eax, [esp + 0x10c]
push str.FONTS_fonts.ini
push eax
call esi
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
pop ebp
test eax, eax
je 0x100014bb
lea eax, [esp + 0x104]
push eax
push str.opening_fonts.ini_at__s
call fcn.10002f67
lea eax, [esp + 0x10c]
push eax
call fcn.10002091
add esp, 0xc
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.10003df8
add esp, 0x310
ret

Function at 0x10001585
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x14
mov eax, dword [0x10025090]
xor eax, esp
mov dword [esp + 0x10], eax
and dword [esp], 0
lea eax, [esp]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
push eax
push 0x40
push 5
push ebp
mov byte [esp + 0x24], 0xe9
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
lea eax, [esp + 0x14]
sub esi, ebp
push eax
lea eax, [esp + 0x1d]
sub esi, 5
push eax
mov dword [esp + 0x1c], esi
call fcn.10004810
push 5
push ebp
push edi
call fcn.10004810
push 5
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.10004810
add esp, 0x24
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 5
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10003df8
add esp, 0x14
ret

Function at 0x10001651
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004810
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x10002d25
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push esi
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10002d80
push str.My_Games
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push esi
call fcn.10007a47
pop ecx
pop ecx
test eax, eax
je 0x10002d64
push esi
call fcn.10007ad1
pop ecx
test eax, eax
jne 0x10002d80
call fcn.10001e01
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10002d74
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, 1
jmp 0x10002d82
xor al, al
pop esi
pop ebx
ret

Function at 0x1000306e
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
mov eax, dword [0x10025090]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
push edi
call fcn.10001e01
mov edi, dword [eax + 0x34]
mov esi, dword [eax + 0x30]
cmp esi, edi
je 0x1000313b
push ebp
push 0x10
pop ebp
push ebx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.10006e70
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], ebp
jb 0x100030bf
mov eax, dword [esi]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100030f8
mov eax, esi
cmp dword [esi + 0x14], ebp
jb 0x100030e3
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
push str.path_to_font__s_does_not_exist___s_
call fcn.10002f67
add esp, 0xc
jmp 0x1000312f
push 0
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExA]
test eax, eax
mov eax, esi
je 0x1000311b
cmp dword [esi + 0x14], ebp
jb 0x10003113
mov eax, dword [esi]
push eax
push str.successfully_added_font__s
jmp 0x10003128
cmp dword [esi + 0x14], ebp
jb 0x10003122
mov eax, dword [esi]
push eax
push str.error_adding_font__s
call fcn.10002f67
pop ecx
pop ecx
add esi, 0x18
cmp esi, edi
jne 0x100030a3
pop ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003df8
add esp, 0x108
ret
Function at 0x10003433
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x200
mov eax, dword [0x10025090]
xor eax, esp
mov dword [esp + 0x1fc], eax
push ebx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
and dword [esp + 4], 0
mov ebx, eax
lea eax, [esp + 4]
push eax
push dword [esp + 0xc]
push ebx
call fcn.1000329b
add esp, 0xc
test al, al
je 0x10003615
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x100034ae
push 0x1f4
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.1000aa91
push esi
call fcn.100078e8
lea eax, [esp + 0x28]
push eax
call fcn.1000a796
add esp, 0x14
mov dword [0x10025d8c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.freelancer.exe
call edi
mov esi, eax
push 0x14
push 0x1001c6b8
lea ecx, [esi + 0x174634]
push ecx
call fcn.10001611
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 2
pop ebp
push ebp
push eax
lea eax, [esi + 0x1746ca]
push eax
call fcn.10001611
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push ebp
push eax
lea eax, [esi + 0x174707]
push eax
call fcn.10001611
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push ebp
push eax
lea eax, [esi + 0x174744]
push eax
call fcn.10001611
and dword [esp + 0x40], 0
lea eax, [esp + 0x40]
push ebp
push eax
lea eax, [esi + 0x174781]
push eax
call fcn.10001611
and dword [esp + 0x4c], 0
lea eax, [esp + 0x4c]
push ebp
push eax
lea eax, [esi + 0x1747be]
push eax
call fcn.10001611
add esp, 0x48
lea eax, [esi + 0x1e23dc]
push 5
push str.null
push eax
call fcn.10001611
push 4
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
lea eax, [esi + 0x16ddec]
inc ebp
push eax
mov dword [esp + 0x28], ebp
call fcn.10001611
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
push eax
lea eax, [esi + 0x174890]
push eax
call fcn.10001611
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push 4
push eax
lea eax, [esi + 0x1e266c]
push eax
call fcn.10001611
push 4
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x7ffffffe
push eax
lea eax, [esi + 0x691ca]
push eax
call fcn.10001611
add esp, 0x3c
push str.common
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str._UpdateGlobalTime_Timing__YAXN_Z
push edi
call esi
push 0x10025d90
push 0x100033bb
push eax
mov dword [0x10025d98], eax
call fcn.10001585
add esp, 0xc
push str._ThornScriptLoad__YAPAUIScriptEngine__PBD_Z
push edi
call esi
push 0x10025d9c
push 0x10003153
push eax
mov dword [0x10025da4], eax
call fcn.10001585
add esp, 0xc
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x200]
pop ebx
xor ecx, esp
call fcn.10003df8
add esp, 0x200
ret

Function at 0x1000bb36
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000bb75
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000bb75
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000bb75
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000bb75
cmp dword [ecx + 0x74], 0xe
jbe 0x1000bb75
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000fc9e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e3f8
push 0x1001e3f0
push str.FlsAlloc
push 0x1f
call fcn.1000fb5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fcd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1cc]
call esi
jmp 0x1000fcd8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000fd1c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e408
push 0x1001e400
push str.FlsGetValue
push 0x21
call fcn.1000fb5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fd53
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000fd5b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e410
push 0x1001e408
push str.FlsSetValue
push 0x22
call fcn.1000fb5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fd95
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c1cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012cbd
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 0x10012d5a
push ebx
push esi
call fcn.10012c86
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.1000e671
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012d07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012d59
push edi
push eax
call fcn.1000e4d1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012d27
call fcn.1000e497
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012d58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e671
add esp, 0x20
test eax, eax
jne 0x10012d46
push edi
call fcn.1000e497
jmp 0x10012d4e
push ebx
call fcn.1000e497
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 0x10012d5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10012d6e
pop esi
ret
push ebx
push edi
push esi
call fcn.10012c86
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000e4d1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10012d96
push ebx
push esi
push edi
call fcn.10004810
add esp, 0xc
push 0
call fcn.1000e497
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10013166
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10012dab
Function at 0x1001ace0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ad0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ad0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4078c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489540
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4af054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x49cc04
call fcn.00459f7e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00449bc0
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret