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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5acfc7
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.005ab91a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5acfea
test byte [esp + 8], 2
je 0x5acfea
call fcn.005ab98d
mov dword [eax], 0xd
call fcn.005ab996
mov dword [eax], 5
jmp 0x5acfc3
xor eax, eax
ret

Function at 0x5c0446
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c047e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005be4d0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005be4a8
jmp 0x5c048a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c1b34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c1b76
call fcn.005c75ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c1b76
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c1b6d
xor eax, eax
jmp 0x5c1b7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c1b84
pop edi
pop esi
pop ebx
ret 4

Function at 0x5c7b1d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x5c7b4b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x5c7b69
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005c7a83
jmp 0x5c7b69
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5c7b69
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005c7a83
test edi, edi
mov eax, edi
jne 0x5c7b53
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8

Function at 0x5d8e52
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d8b64
sub esi, 0x9304e41b
or esi, esi
add ecx, ecx
call fcn.005d8e94
add ecx, ecx
or ecx, ecx
xor dword [edi], edx
and ecx, ecx
sub ecx, 0x1389ed62
add edi, 2
sub esi, ecx
cmp edi, eax
jl fcn.005d8e52
or esi, ecx
add ecx, ecx
ret
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073c7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f1c
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016ad
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x18
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x17
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc8
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x98
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x10
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb8
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x7b
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xbd
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x96
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x73
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x62
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x3e
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x7f
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x6d
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb1
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x16
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x55
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xcd
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x13
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xca
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x3b
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x96
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa9
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xeb
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xa5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xbd
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4013f8
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.0040d170
call sym.___main
lea eax, [ebp - 4]
mov dword [esp + 4], eax
mov dword [esp], 0x443470
call method.std::istream.operator___int_
lea eax, [ebp - 4]
dec dword [eax]
cmp dword [ebp - 4], 0xffffffff
je 0x4014c4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x443010
mov dword [esp], str._d_d
call sym._scanf
lea eax, [ebp - 8]
dec dword [eax]
cmp dword [ebp - 8], 0xffffffff
je 0x4014ac
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str._d_d
call sym._scanf
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.mod_exp_int__int_
add eax, dword [ebp - 0xc]
cdq
idiv dword [0x443010]
mov dword [ebp - 0xc], edx
jmp 0x401466
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x440005
call sym._printf
jmp 0x401435
mov dword [esp], str.pause
call sym._system
mov eax, 0
leave
ret

Function at 0x4098e0
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 0x409916
mov dword [0x447580], 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 [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
Function at 0x409a00
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], 0x43e3cc
mov dword [ebp - 0x1c], 0x409ac0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447590
je 0x409aa0
jl 0x409ae0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447580]
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 0x409b83
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 [0x447b60]
mov eax, 0xffffffff
test edx, edx
je 0x409afa
mov eax, dword [0x43f044]
test eax, eax
je 0x409b3a
xor eax, eax
test eax, eax
jne 0x409b30
mov edi, dword [0x43f040]
test edi, edi
js 0x409b30
mov dword [ebp - 0x44], 0x447590
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409aa0
jmp 0x409a4e
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409b08
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409bc1
mov eax, dword [0x43f044]
test eax, eax
jne 0x409af8
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 [0x43f044]
test eax, eax
je 0x409b5d
jmp 0x409af8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409bb5
mov dword [esp + 4], eax
mov eax, dword [0x447580]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x409bea
test edx, edx
je 0x409bd5
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409af8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409bb1
Function at 0x40b180
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.0040b160
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b1cc
call sym.__errno
cmp dword [eax], 4
je 0x40b1a0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d1a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447bb0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d1e0
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 0x40d590
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 [0x447bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d66c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d681
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d640
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d5d8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d5e8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d633
test edx, edx
jne 0x40d626
test ecx, ecx
je 0x40d5d0
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 0x40d690
cmp eax, 8
je 0x40d5d0
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 0x40d5c2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bb0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d5b4
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40d5b4
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 0x40d62b
mov eax, dword [0x447bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d6e3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d70e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d6ef
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 [0x447bb0]
jmp 0x40d6c1
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 0x40d6d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d6d2
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40d6c8
Function at 0x40d810
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 [0x447bb0]
test eax, eax
je 0x40d870
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d890
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d8b0
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 0x40d900
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 [0x447bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d832
jmp 0x40d890
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d839
jmp 0x40d8b0
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 0x40d861
lea esi, [esi]
mov eax, dword [0x447bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d94d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d959
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d92e
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 0x40d91d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d91d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bb0]
jmp 0x40d90c
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40d913
Function at 0x40d970
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 [0x447bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40da04
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40da20
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40da40
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d9f8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40dabf
mov eax, dword [0x447bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40da96
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dab0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40da70
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 0x40d9b5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d990
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d99b
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 0x40d99e
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 0x40d9e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9e7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bb0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d9d9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40d9d9
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40dad0
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 0x40db62
mov eax, dword [0x447bb0]
test eax, eax
je 0x40db56
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dbd1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40db77
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 0x40dbef
mov eax, dword [0x447bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dbc2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dbe0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dba3
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 [0x447bb0]
jmp 0x40daf2
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 0x40db07
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 0x40db45
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40db45
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bb0]
jmp 0x40db30
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40dafd
call sym._fc_key_init_once
mov eax, dword [0x447bb0]
jmp 0x40db3b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40dda0
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 0x40ddd0
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 0x410ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x411450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x4114a0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x847524
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8472a2
mov esi, ebx
or ebx, ebx
or esi, ebx
call fcn.0084756a
sub esi, 0x13542e44
push 0x9d223bf2
mov ebx, dword [esp]
add esp, 4
add esi, 0x6525f213
xor dword [edx], eax
add ebx, 0xb137855f
add esi, 1
and ebx, ebx
inc edx
inc esi
cmp edx, ecx
jne fcn.00847524
dec ebx
add esi, esi
ret
Function at 0x1000ebb0
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
xor bl, bl
mov dword [ebp - 0x18], eax
push esi
mov byte [eax], 0
cmp dword [ecx + 0x14], 8
push edi
mov byte [ebp - 0x11], bl
jb 0x1000ebd8
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000eca9
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000eca2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add ecx, 0xffffffc0
adc eax, 0xffffffff
test eax, eax
ja 0x1000eca2
jb 0x1000ec2e
cmp ecx, 0x13fffc0
ja 0x1000eca2
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x1000eca2
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x1000ec9b
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x1000ec94
mov ebx, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x10]
add ebx, edx
add ecx, edx
lea eax, [ebx + 0xf8]
cmp eax, ecx
jae 0x1000ec91
cmp dword [ebx], 0x4550
jne 0x1000ec91
cmp word [ebx + 0x5c], 1
mov ecx, dword [ebp - 0x18]
sete al
mov byte [ebp - 0x11], 1
mov byte [ecx], al
mov bl, byte [ebp - 0x11]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018b6f4
mov esp, ebp
pop ebp
ret
Function at 0x1001a290
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a8841
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10221008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10004a00
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10004a00
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004a00
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10004a00
push 0x84
push ebx
call fcn.1018b735
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4