joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.TData.getGameHandle__
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.USER32.dll_GetWindowThreadProcessId
sub esp, 8
call sub.KERNEL32.dll_GetCurrentProcess
mov edx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x28
mov dword [esp], edx
call sub.ADVAPI32.DLL_OpenProcessToken
sub esp, 0xc
test eax, eax
jne 0x405fda
mov dword [ebp - 0x3c], 0
jmp 0x40607a
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
sub esp, 0xc
test eax, eax
je 0x40604b
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x418
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
leave
ret

Function at 0x406080
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.TData.getGameHandle__
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.USER32.dll_GetWindowThreadProcessId
sub esp, 8
call sub.KERNEL32.dll_GetCurrentProcess
mov edx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x28
mov dword [esp], edx
call sub.ADVAPI32.DLL_OpenProcessToken
sub esp, 0xc
test eax, eax
jne 0x4060da
mov dword [ebp - 0x3c], 0
jmp 0x40617a
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
sub esp, 0xc
test eax, eax
je 0x40614b
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x418
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
leave
ret
Function at 0x406d34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp + 4], eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x6c], 0x50
mov eax, dword [str.SOFTWAREMicrosoftWindows]
mov dword [ebp - 0x188], eax
mov eax, dword [0x44d264]
mov dword [ebp - 0x184], eax
mov eax, dword [0x44d268]
mov dword [ebp - 0x180], eax
mov eax, dword [0x44d26c]
mov dword [ebp - 0x17c], eax
mov eax, dword [0x44d270]
mov dword [ebp - 0x178], eax
mov eax, dword [0x44d274]
mov dword [ebp - 0x174], eax
movzx eax, word [0x44d278]
mov word [ebp - 0x170], ax
movzx eax, byte [0x44d27a]
mov byte [ebp - 0x16e], al
lea edx, [ebp - 0x16d]
mov eax, 0xe4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
mov eax, dword [str.CurrentVersionRun]
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x44d363]
mov dword [ebp - 0x1a4], eax
mov eax, dword [0x44d367]
mov dword [ebp - 0x1a0], eax
mov eax, dword [0x44d36b]
mov dword [ebp - 0x19c], eax
mov eax, dword [0x44d36f]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x188]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
lea eax, [ebp - 0x188]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x406ee5
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x188]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x406ee5
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov dword [ebp - 0x7c], eax
leave
ret

Function at 0x406ee8
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [ebp - 4], eax
mov dword [esp + 8], 0x50
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x50
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp], eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp], eax
call sym._strcat
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
leave
ret
Function at 0x40ae80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44c1f0]
mov edx, dword [0x44c1f4]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x44c1f0], eax
or ecx, edx
mov dword [0x44c1f4], edx
je 0x40af25
mov eax, dword [0x44c1f8]
mov edx, dword [0x44c1fc]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x44c1f8], eax
or ecx, edx
mov dword [0x44c1fc], edx
je 0x40aed2
leave
ret
mov eax, 8
mov dword [0x44c2a4], eax
mov eax, pe_nt_image_headers32
mov dword [0x44c2a8], eax
mov eax, 8
mov dword [0x44c2ac], eax
mov eax, 0xff0
mov dword [0x44c2b0], eax
mov eax, 0x1000
mov dword [0x44c2b4], eax
mov eax, 0xa
mov dword [0x44c2b8], eax
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x44c2bc]
leave
ret
mov eax, 8
mov ecx, 0x1000
mov edx, 0xa
mov dword [0x44c260], eax
mov eax, pe_nt_image_headers32
mov dword [0x44c264], eax
mov eax, 8
mov dword [0x44c268], eax
mov eax, 0xff0
mov dword [0x44c26c], eax
mov dword [0x44c270], ecx
mov dword [0x44c274], edx
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x44c278]
jmp 0x40aeab

Function at 0x411220
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x411256
mov dword [0x455220], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x44c140], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x44c140], eax
leave
ret
Function at 0x411340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x44ace4
mov dword [ebp - 0x1c], 0x411400
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x44c140], 0
mov dword [ebp - 0x44], 0x455230
je 0x4113e0
jl 0x411420
mov dword [ebp - 0x3c], 1
mov eax, dword [0x455220]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4114c3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x455880]
mov eax, 0xffffffff
test edx, edx
je 0x41143a
mov eax, dword [0x44c144]
test eax, eax
je 0x41147a
xor eax, eax
test eax, eax
jne 0x411470
mov edi, dword [0x44c140]
test edi, edi
js 0x411470
mov dword [ebp - 0x44], 0x455230
mov ebx, dword [0x44c140]
test ebx, ebx
je 0x4113e0
jmp 0x41138e
xor esi, esi
mov dword [0x44c140], esi
jmp 0x411448
mov dword [esp], 0x44c148
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x411501
mov eax, dword [0x44c144]
test eax, eax
jne 0x411438
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x44c144]
test eax, eax
je 0x41149d
jmp 0x411438
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4114f5
mov dword [esp + 4], eax
mov eax, dword [0x455220]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x41152a
test edx, edx
je 0x411515
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x44c144], eax
jmp 0x411438
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4113d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4114f1
Function at 0x4133e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004133c0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x41342c
call sym.__errno
cmp dword [eax], 4
je 0x413400
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414ea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00416240
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x414ed8
jmp 0x414f76
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x414ed7
cmp cl, 0x22
je 0x414f30
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x414f50
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x414f50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x414f10
jmp 0x414f50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x414f30
cmp cl, 0x22
je 0x414fb2
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x414f70
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x414f60
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x414f94
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x414f50

Function at 0x415460
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4558e0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4154a0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x415850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4558e0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41592c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x415941
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x415900
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x415898
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4158a8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x4158f3
test edx, edx
jne 0x4158e6
test ecx, ecx
je 0x415890
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x415950
cmp eax, 8
je 0x415890
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x415882
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x415874
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415874
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x4158eb
mov eax, dword [0x4558e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4159a3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x4159ce
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4159af
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
jmp 0x415981
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415992
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415992
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415988
Function at 0x415ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x4558e0]
test eax, eax
je 0x415b30
mov esi, dword [eax + 0x30]
test esi, esi
js 0x415b50
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x415b70
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x415bc0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x415af2
jmp 0x415b50
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x415af9
jmp 0x415b70
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x415b21
lea esi, [esi]
mov eax, dword [0x4558e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415c0d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x415c19
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x415bee
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415bdd
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
jmp 0x415bcc
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415bd3
Function at 0x415c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4558e0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x415cc4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x415ce0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x415d00
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x415cb8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x415d7f
mov eax, dword [0x4558e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415d56
mov edx, dword [eax + 0x30]
test edx, edx
js 0x415d70
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x415d30
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x415c75
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x415c50
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x415c5b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x415c5e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415ca7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x415c99
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415c99
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x415d90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x415e22
mov eax, dword [0x4558e0]
test eax, eax
je 0x415e16
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x415e91
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x415e37
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x415eaf
mov eax, dword [0x4558e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415e82
mov edx, dword [eax + 0x30]
test edx, edx
js 0x415ea0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x415e63
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
jmp 0x415db2
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x415dc7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415e05
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4558e0]
jmp 0x415df0
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415dbd
call sym._fc_key_init_once
mov eax, dword [0x4558e0]
jmp 0x415dfb
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x416060
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x416090
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x418ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x41aec4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret

Function at 0x41af54
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret
Function at 0x41b844
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret

Function at 0x41b8d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret