joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4128f4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, eax
lea ebx, [ebp - 0x1011]
add eax, 0xed5
xor edi, 0x88
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor eax, 0x901
mov dword [esp + 0x2c], edi
sub eax, 0xe9
cmp edi, eax
jge 0x412a63
mov edx, dword [esp + 0x28]
lea ecx, [ebx + 0x11cf]
lea eax, [edx - 0x1065]
cmp eax, ecx
jg 0x412a63
lea ecx, [edx - 0x223b]
lea eax, [ebp - 0xe97]
cmp ecx, eax
jg 0x412a63
xor edi, edi
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x80]
xor eax, 1
add dword [esi + 0x10c], eax
mov eax, dword [esi + 0xb4]
push 0x1d
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [esi + 0xe0]
sub dword [esi + 0xa0], eax
mov eax, dword [esi + 0xb8]
imul ebx, ecx
mov ecx, dword [esi + 0x84]
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x84]
pop eax
sub eax, dword [0xaa1384]
add dword [esi + 0x78], eax
mov eax, dword [0xaa12e8]
mov ecx, dword [0xa662e4]
add eax, 0xffe736c1
add eax, dword [esi + 0x7c]
mov dword [0xaa12e8], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x11
shr edx, 8
imul eax, dword [ecx + 0x114]
mov dword [ecx + 0x114], eax
mov eax, dword [esi + 0x68]
add eax, dword [0xaa1278]
xor eax, 0xfff09a93
or dword [esi + 0x48], eax
mov eax, dword [0xa662e4]
mov eax, dword [eax + 8]
sub eax, dword [esi + 0xc]
xor eax, 0xfff0490e
add eax, dword [esi + 0x108]
xor eax, dword [esi + 0x34]
xor eax, 1
mov dword [esi + 0x108], eax
mov eax, dword [0xa662e4]
mov ecx, dword [eax + 0x84]
mov eax, dword [esi + 0xb8]
mov byte [ecx + eax], dl
mov eax, dword [0xa662e4]
inc dword [eax + 0x84]
mov ecx, dword [esi + 0xb8]
mov eax, dword [0xaa12f4]
mov byte [eax + ecx], bl
inc dword [0xaa12f4]
cmp edi, 0xecd0
jl 0x412964
mov edi, dword [esp + 0x2c]
lea ebx, [ebp - 0x1011]
lea eax, [ebp - 0xed5]
cmp ebx, eax
mov eax, dword [0xa662e4]
je 0x412a95
mov eax, dword [eax + 0x110]
cmp eax, dword [esi + 0xfc]
je 0x412ae1
mov eax, dword [esi + 0x20]
add eax, dword [0xaa1394]
xor eax, 0x4f614aea
mov dword [0xaa12f0], eax
jmp 0x412ae1
mov eax, dword [eax + 0x98]
mov ebx, dword [esi + 0x110]
or eax, 0x206d
imul eax, edi
cmp ebx, eax
ja 0x412ae1
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x104]
or eax, ebp
xor eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xa662e4]
add ebx, 3
mov ecx, dword [eax + 0x98]
or ecx, 0x206d
imul ecx, edi
cmp ebx, ecx
jbe 0x412ab1
mov ebp, dword [esp + 0x20]
pop edi
pop esi
lea eax, [ebp - 0x206d]
pop ebp
xor eax, 0x144e
pop ebx
pop ecx
ret
Function at 0x405300
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 0x405336
mov dword [0x448050], 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 [0x440050], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x440050], eax
leave
ret

Function at 0x405420
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], 0x43f2e4
mov dword [ebp - 0x1c], 0x4054e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x440050], 0
mov dword [ebp - 0x44], 0x448060
je 0x4054c0
jl 0x405500
mov dword [ebp - 0x3c], 1
mov eax, dword [0x448050]
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 0x4055a3
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 [0x448b50]
mov eax, 0xffffffff
test edx, edx
je 0x40551a
mov eax, dword [0x440054]
test eax, eax
je 0x40555a
xor eax, eax
test eax, eax
jne 0x405550
mov edi, dword [0x440050]
test edi, edi
js 0x405550
mov dword [ebp - 0x44], 0x448060
mov ebx, dword [0x440050]
test ebx, ebx
je 0x4054c0
jmp 0x40546e
xor esi, esi
mov dword [0x440050], esi
jmp 0x405528
mov dword [esp], 0x440058
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4055e1
mov eax, dword [0x440054]
test eax, eax
jne 0x405518
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 [0x440054]
test eax, eax
je 0x40557d
jmp 0x405518
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4055d5
mov dword [esp + 4], eax
mov eax, dword [0x448050]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40560a
test edx, edx
je 0x4055f5
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x440054], eax
jmp 0x405518
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4054b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4055d1
Function at 0x40b3a0
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 method.std::__basic_file_char_.fd__
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b3ec
call sym.__errno
cmp dword [eax], 4
je 0x40b3c0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dd00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040ee20
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 0x40dd38
jmp 0x40ddd6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40dd37
cmp cl, 0x22
je 0x40dd90
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ddb0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ddb0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40dd70
jmp 0x40ddb0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40dd90
cmp cl, 0x22
je 0x40de12
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ddd0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ddc0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ddf4
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 0x40ddb0

Function at 0x40e2c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x448bb0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40e300
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 0x40e6b0
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 [0x448bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40e78c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40e7a1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40e760
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40e6f8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40e708
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40e753
test edx, edx
jne 0x40e746
test ecx, ecx
je 0x40e6f0
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 0x40e7b0
cmp eax, 8
je 0x40e6f0
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 0x40e6e2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x448bb0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40e6d4
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40e6d4
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 0x40e74b
mov eax, dword [0x448bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40e803
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40e82e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40e80f
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 [0x448bb0]
jmp 0x40e7e1
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 0x40e7f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e7f2
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40e7e8
Function at 0x40e930
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 [0x448bb0]
test eax, eax
je 0x40e990
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40e9b0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40e9d0
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 0x40ea20
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 [0x448bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40e952
jmp 0x40e9b0
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40e959
jmp 0x40e9d0
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 0x40e981
lea esi, [esi]
mov eax, dword [0x448bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ea6d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40ea79
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40ea4e
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 0x40ea3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ea3d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x448bb0]
jmp 0x40ea2c
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40ea33
Function at 0x40ea90
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 [0x448bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40eb24
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40eb40
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40eb60
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40eb18
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40ebdf
mov eax, dword [0x448bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ebb6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40ebd0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40eb90
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 0x40ead5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x448bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40eab0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40eabb
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 0x40eabe
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 0x40eb07
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40eb07
call sym.___w32_sharedptr_initialize
mov eax, dword [0x448bb0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40eaf9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40eaf9
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40ebf0
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 0x40ec82
mov eax, dword [0x448bb0]
test eax, eax
je 0x40ec76
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40ecf1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40ec97
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 0x40ed0f
mov eax, dword [0x448bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ece2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40ed00
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40ecc3
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 [0x448bb0]
jmp 0x40ec12
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 0x40ec27
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 0x40ec65
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ec65
call sym.___w32_sharedptr_initialize
mov eax, dword [0x448bb0]
jmp 0x40ec50
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40ec1d
call sym._fc_key_init_once
mov eax, dword [0x448bb0]
jmp 0x40ec5b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40eef0
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 0x40ef20
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 0x411cf0
Capabilities:
Contain obfuscated stackstrings

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

Function at 0x412660
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 0x4126b0
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 0x405b64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004081b0
test esi, esi
jne 0x405b9a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00408348
jmp 0x405bb8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00405aa8
mov edi, eax
test esi, esi
je 0x405bb8
cmp dword [ebx], 0
je 0x405bb8
dec esi
jmp 0x405ba1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406de8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004072a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x406f71
test edi, edi
je 0x406f71
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406eb1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406e8c
cmp edi, 0xffffffff
je 0x406e4d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406e4d
mov byte [esp], 0
jmp 0x406f71
cmp dword [esi], 1
jg 0x406e8c
cmp dword [esi], 0
jne 0x406e7e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406e7e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406f71
lea eax, [esp + 0xc]
call fcn.00406aa4
dec ebp
test ebp, ebp
jg 0x406e32
cmp edi, 0xffffffff
je 0x406eb1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406eaf
mov byte [esp], 0
jmp 0x406f71
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406df6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406eb1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406fec
mov edx, eax
mov ebx, dword [0x5a6900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406f15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406f13
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406f15
xor edi, edi
cmp byte [esp], 0
je 0x406f3b
mov ebx, dword [esi]
test bl, 1
jne 0x406f51
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406f1b
mov byte [esp + 1], 1
jmp 0x406f51
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406f3b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406ec8
cmp byte [esp], 0
je 0x406f71
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407e48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a605c], 0
je 0x407eaf
cmp word [0x5a634c], 0xd7b2
jne 0x407e71
cmp dword [0x5a6354], 0
jbe 0x407e71
mov eax, 0x5a6348
call dword [0x5a6364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407edc
call fcn.004089c4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a0036], 0
jne 0x407ecb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5a0038], 0
je 0x40809b
mov edx, edi
mov eax, esi
call dword [0x5a0038]
mov ebx, eax
jmp 0x4080ac
mov eax, 8
call fcn.0040545c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408038
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4080dc
mov eax, ebx
call fcn.00405478
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc