joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9b4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e07c
call fcn.0041c860
sub esp, 0x38
mov eax, dword [edx]
push ebx
xor ebx, ebx
push esi
mov dword [edx + 4], ebx
mov word [eax], bx
mov si, word [ecx]
push edi
xor edi, edi
cmp si, bx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
je 0x40b9e8
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x40b9e0
cmp edi, 1
jl 0x40bb1d
cmp si, 0x5c
je 0x40bb1d
cmp si, 0x2e
jne 0x40ba19
cmp edi, 1
je 0x40bb1d
cmp edi, 2
jne 0x40ba19
cmp word [ecx + 2], si
je 0x40bb1d
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401615
cmp edi, 3
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jle 0x40ba5d
cmp word [edi + 2], 0x3a
jne 0x40ba5d
cmp word [edi + 4], 0x5c
jne 0x40ba5d
cmp si, 0x61
jb 0x40ba51
cmp si, 0x7a
jbe 0x40bab8
cmp si, 0x41
jb 0x40ba5d
cmp si, 0x5a
jbe 0x40bab8
mov esi, 0x105
cmp dword [ebp - 0x18], esi
jg 0x40ba70
push esi
lea ecx, [ebp - 0x20]
call fcn.00401615
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x20]
xor ecx, ecx
cmp word [esi], bx
je 0x40ba8e
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40ba86
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x1c], ecx
je 0x40bb10
cmp eax, 0x104
ja 0x40bb10
mov eax, dword [ebp - 0x20]
cmp word [edx + eax - 2], 0x5c
je 0x40bab8
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004056a5
push str.__
lea ecx, [ebp - 0x44]
call fcn.00402b7f
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040b0ce
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040c0a3
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x2c]
call fcn.00407d58
push dword [ebp - 0x38]
call fcn.00407d58
push dword [ebp - 0x44]
call fcn.00407d58
add esp, 0xc
mov bl, 1
push dword [ebp - 0x20]
call fcn.00407d58
pop ecx
mov al, bl
jmp 0x40bb1f
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40bcab
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x40bccc
cmp byte [ecx + 5], 0
je 0x40bccc
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40bd0b
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bced
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bced
xor al, al
jmp 0x40bd0d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041c920
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x410279
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41e584
call fcn.0041c860
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040300d
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040300d
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040300d
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.0040300d
mov al, byte [edi + 0x30]
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], al
lea eax, [edi + 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.0040300d
add edi, 0x40
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
call fcn.0040300d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4155e3
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x415610
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x428800]
xor eax, edi
inc esi
cmp esi, edx
jb 0x4155ef
pop edi
pop ebx
not eax
pop esi
ret

Function at 0x41c6a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.0041c630
pop esi
ret 4

Function at 0x41cc0c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c30
push 0x41cc06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x42a804], 0xffffffff
or dword [0x42a808], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4287f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4287f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42a800], eax
call fcn.0041cd4f
cmp dword [0x428580], 0
jne 0x41cc8f
push 0x41cd4c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041cd3a
push 0x426034
push 0x426030
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4287ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4287e8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x42602c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00406087
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x52c044], 1
mov dword [0x52c040], 1
mov dword [0x52c03c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x52c014], eax
mov eax, dword [0x52c050]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x52c064]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x52c04c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x51d1e4], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x416480
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4164e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x52c058]
test esi, esi
jle 0x416600
mov eax, dword [0x52c05c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x416514
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x416597
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x416500
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x416627
mov eax, dword [0x52c05c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x52c05c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x416607
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x416590
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4165a0
add dword [0x52c058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x52c05c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x416590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x41651e
mov eax, dword [0x52c05c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x416c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x416d90
ja 0x416ca8
test eax, eax
je 0x416d28
mov eax, dword [0x52c070]
test eax, eax
je 0x416e10
mov dword [0x52c070], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x416c95
mov eax, dword [0x52c070]
test eax, eax
je 0x416c95
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x52c06c]
sub esp, 4
test ebx, ebx
je 0x416d0d
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov ebp, eax
sub esp, 4
call esi
test ebp, ebp
je 0x416e38
test eax, eax
jne 0x416e38
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416ce0
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x416c95
mov eax, dword [0x52c070]
test eax, eax
jne 0x416da8
mov eax, dword [0x52c070]
cmp eax, 1
jne 0x416c95
mov ebx, dword [0x52c06c]
test ebx, ebx
je 0x416d61
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sym._free
test ebx, ebx
jne 0x416d50
mov dword [0x52c06c], 0
mov dword [0x52c070], 0
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x416c95
call sym.__fpreset
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x52c06c]
sub esp, 4
test ebx, ebx
je 0x416df5
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x416e28
test ebp, ebp
je 0x416e28
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416dd0
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x416d31
mov dword [esp], 0x52c074
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x416c8b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416dd0
jmp 0x416df5
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416ce0
jmp 0x416d0d

Function at 0x416f60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x416f85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x416f90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x416f85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x416fd8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x416fce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x416fda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x416fc0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x417690
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4176c0
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp sym.___mingwthr_key_dtor
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x417700
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], 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
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x417740
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x417768
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x417860
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x51d18c]
test eax, eax
je 0x417880
mov eax, dword [0x51d190]
test eax, eax
je 0x417890
mov eax, dword [0x51d198]
test eax, eax
js 0x417880
ret
mov dword [0x51d198], 0
ret
push ebx
sub esp, 0x18
lock add dword [0x51d194], 1
jne 0x4178e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x417920
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x52c0a0], eax
call sym.___mingwthr_key_dtor
mov dword [0x51d190], 1
test eax, eax
sete al
movzx eax, al
mov dword [0x51d198], eax
add esp, 0x18
pop ebx
ret
mov eax, dword [0x51d190]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x417906
nop
mov dword [esp], 0
call ebx
mov ecx, dword [0x51d190]
sub esp, 4
test ecx, ecx
je 0x4178f0
mov edx, dword [0x51d198]
test edx, edx
jns 0x4178d5
mov dword [0x51d198], 0
jmp 0x4178d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4178be

Function at 0x417930
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x24
mov edx, dword [0x51d198]
test edx, edx
js 0x417950
mov eax, dword [0x52c0a4]
test edx, edx
jne 0x417964
add esp, 0x24
pop ebx
pop esi
ret
call sym._fc_key_init_once
mov edx, dword [0x51d198]
mov eax, dword [0x52c0a4]
test edx, edx
je 0x417948
mov esi, dword [0x52c0a0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x1c]
add esp, 0x24
pop ebx
pop esi
ret
Function at 0x417a00
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, ecx
push edi
mov edi, 1
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
jmp 0x417a3f
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [0x52c0a4], edx
mov dword [ebx], ecx
add edi, 1
mov eax, dword [esi]
mov edx, dword [esi + 4]
test ecx, ecx
je 0x417b28
mov ebp, dword [ecx + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call eax
test eax, eax
jne 0x417b61
test ebp, ebp
je 0x417ac0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], 0xa
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ebp
cmp eax, 7
je 0x417c38
cmp eax, 8
jne 0x417b61
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x51d198]
test eax, eax
js 0x417b00
test eax, eax
je 0x417a30
mov eax, dword [0x52c0a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x417b70
mov eax, dword [ebx]
mov ecx, dword [eax]
jmp 0x417a3a
mov eax, dword [0x51d18c]
mov ecx, edx
test eax, eax
je 0x417b15
mov ebp, dword [0x51d190]
test ebp, ebp
je 0x417b80
mov dword [0x51d198], 0
jmp 0x417a34
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
je 0x417be0
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417af2
lock add dword [0x51d194], 1
jne 0x417bf0
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x417c3e
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x52c0a0], eax
call sym.___mingwthr_key_dtor
mov edx, dword [esp + 0x2c]
mov dword [0x51d190], 1
test eax, eax
sete al
movzx eax, al
mov dword [0x51d198], eax
jmp 0x417acd
mov eax, 5
mov dword [ebp], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x51d190]
mov ebp, edx
test ecx, ecx
jne 0x417c1b
lea esi, [esi]
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x51d190]
sub esp, 4
test eax, eax
je 0x417c00
mov edx, ebp
mov eax, dword [0x51d198]
test eax, eax
jns 0x417acd
mov eax, dword [ebx]
mov ecx, dword [eax]
jmp 0x417b15
mov ebp, dword [esp + 0x28]
jmp 0x417be5
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2c]
jmp 0x417bba
Function at 0x417c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x51d198]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x417ce0
test eax, eax
jne 0x417c90
mov eax, dword [0x52c0a4]
mov dword [0x52c0a4], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x52c0a0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x52c0a0]
mov dword [ebx], esi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x417c85
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call sym._fc_key_init_once
mov eax, dword [0x51d198]
jmp 0x417c74

Function at 0x417cf0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x51d198]
test eax, eax
js 0x417d40
test eax, eax
jne 0x417d18
mov dword [0x52c0a4], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x52c0a0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x417d0d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call sym._fc_key_init_once
mov eax, dword [0x51d198]
jmp 0x417d03
Function at 0x417e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x51d198]
mov esi, dword [esp + 0x50]
test eax, eax
js 0x417eb8
mov edi, dword [0x52c0a4]
test eax, eax
jne 0x417ecc
mov dword [esp + 0x2c], edi
test edi, edi
je 0x417ea5
mov eax, edi
lea ebx, [esp + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x417e9b
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x417f00
cmp eax, 8
jne 0x417f80
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x417e5c
mov eax, 5
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._fc_key_init_once
mov eax, dword [0x51d198]
mov edi, dword [0x52c0a4]
test eax, eax
je 0x417e4e
mov edi, dword [0x52c0a0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x417e4e
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], 0
mov dword [esp + 0x2c], edi
mov dword [esi + 0x10], eax
jmp 0x417f1b
mov eax, dword [esi + 0x10]
cmp edi, eax
mov ecx, dword [edi + 0x18]
sete al
movzx eax, al
lea ebp, [eax*4]
test ecx, ecx
je 0x417f66
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, ebp
or eax, 2
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 7
je 0x417f8a
cmp eax, 8
jne 0x417f70
mov edi, dword [esp + 0x2c]
mov edi, dword [edi]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x417f18
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 3
jmp 0x417eaa
mov eax, ebx
call sym._uw_install_context.isra.0
lea esi, [esi]
lea esi, [esi]
nop

Function at 0x4180d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4180ec
mov dword [esp + 0x20], ebx
add esp, 0x18
pop ebx
jmp dbg._Unwind_SjLj_RaiseException
call sym.__Unwind_SjLj_GetContext
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 8], eax
mov eax, ebx
call dbg._Unwind_ForcedUnwind_Phase2
lea eax, [esp + 8]
call sym._uw_install_context.isra.0
lea esi, [esi]