joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4718b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4718ee
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.0046f96d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046f945
jmp 0x4718fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x472fa4
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 0x472fe6
call fcn.00478b3f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x472fe6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472fdd
xor eax, eax
jmp 0x472fee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472ff4
pop edi
pop esi
pop ebx
ret 4

Function at 0x47906f
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]
cmp dword [esp + 0x10], 0
jne 0x47909d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4790bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478fd5
jmp 0x4790bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4790bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478fd5
test edi, edi
mov eax, edi
jne 0x4790a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401d61
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x401d66
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
ja 0x401eb9
lea eax, [ebp - 0x464]
mov edi, 0x80000000
push eax
push str..htm
push edi
call fcn.00401d08
add esp, 0xc
test eax, eax
jne 0x401eb9
lea eax, [ebp - 0x464]
push str._shellopencommand
push eax
call fcn.0040a921
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x464]
push eax
push edi
call fcn.00401d08
add esp, 0x14
test eax, eax
jne 0x401eb9
lea eax, [ebp - 0x464]
push str.__1_
push eax
call fcn.0040a8e0
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
jne 0x401e2d
lea eax, [ebp - 0x464]
push 0x414504
push eax
call fcn.0040a8e0
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
jne 0x401e2d
lea eax, [ebp - 0x464]
push eax
call fcn.0040a8c3
pop ecx
lea edi, [ebp + eax*2 - 0x466]
jmp 0x401e30
mov word [edi], si
push 0x414500
push edi
call fcn.0040a921
push dword [ebp + 8]
push edi
call fcn.0040a921
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.0040a180
add esp, 0x1c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
mov word [ebp - 0x24], 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401eb9
push 0xc8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
je 0x401e85
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp dword [0x423588], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x423b20
je 0x401f2c
push dword [ebp + 8]
call fcn.00401ae4
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00401ae4
pop ecx
push eax
push str._r_nExtracting__s_r_nTO_r_n_s_r_n
push esi
call fcn.0040a73b
add esp, 0x10
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push 1
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push 0x400
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.0040a180
push dword [ebp + 8]
call fcn.00401ae4
add esp, 0x10
push eax
push dword [ebp + 0xc]
call fcn.00401ae4
pop ecx
push eax
push 0x438900
call fcn.00401ae4
pop ecx
push eax
lea eax, [ebp - 0x458]
push str._C__qq__o___s____s___d___s_
push eax
call fcn.0040a73b
push 0x44
lea eax, [ebp - 0x58]
pop edi
push edi
push ebx
push eax
call fcn.0040a180
add esp, 0x20
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x14]
mov word [ebp - 0x28], bx
push 1
pop edi
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
lea eax, [ebp - 0x458]
push ebx
push eax
push 0x424780
mov dword [ebp - 0x2c], edi
call fcn.00401ae4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401fe5
push 0xc8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
je 0x401fc1
cmp dword [0x423588], ebx
je 0x402042
cmp dword [ebp - 4], ebx
jne 0x40200c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push str.Error_while_extracting__s__r_nError:__d_r_n
push esi
call fcn.0040a73b
add esp, 0x10
jmp 0x40201f
push 0x414560
push str._s_r_n
push esi
call fcn.0040a73b
add esp, 0xc
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push edi
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402057
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp dword [0x423588], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x423b20
je 0x4020c3
push dword [ebp + 8]
call fcn.00401ae4
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00401ae4
pop ecx
push eax
push str._r_nExtracting__s_r_nTO_r_n_s_r_n
push esi
call fcn.0040a73b
add esp, 0x10
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push 1
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push 0x400
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.0040a180
push dword [ebp + 8]
call fcn.00401ae4
add esp, 0x10
push eax
push dword [ebp + 0xc]
call fcn.00401ae4
pop ecx
push eax
lea eax, [ebp - 0x458]
push str._C__qq__o___s___d___s_
push eax
call fcn.0040a73b
push 0x44
lea eax, [ebp - 0x58]
pop edi
push edi
push ebx
push eax
call fcn.0040a180
add esp, 0x1c
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x14]
mov word [ebp - 0x28], bx
push 1
pop edi
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
lea eax, [ebp - 0x458]
push ebx
push eax
push 0x424780
mov dword [ebp - 0x2c], edi
call fcn.00401ae4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402170
push 0xc8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
je 0x40214c
cmp dword [0x423588], ebx
je 0x4021cd
cmp dword [ebp - 4], ebx
jne 0x402197
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push str.Error_while_extracting__s__r_nError:__d_r_n
push esi
call fcn.0040a73b
add esp, 0x10
jmp 0x4021aa
push 0x414560
push str._s_r_n
push esi
call fcn.0040a73b
add esp, 0xc
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push edi
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
cmp dword [0x423588], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x423b20
je 0x407a54
push dword [ebp + 0xc]
call fcn.00401ae4
pop ecx
push eax
push dword [ebp + 8]
call fcn.00401ae4
pop ecx
push eax
push dword [ebp + 0x10]
call fcn.00401ae4
pop ecx
push eax
push str._r_nExtracting__s_r_nFROM_r_n_s_r_nTO_r_n_s_r_n
push esi
call fcn.0040a73b
add esp, 0x14
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push 1
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push 0x400
lea eax, [ebp - 0x454]
push ebx
push eax
call fcn.0040a180
push dword [ebp + 0xc]
call fcn.00401ae4
add esp, 0x10
push eax
push dword [ebp + 0x10]
call fcn.00401ae4
pop ecx
push eax
push dword [ebp + 8]
call fcn.00401ae4
pop ecx
push eax
lea eax, [ebp - 0x454]
push str._C__qq__o___s____s___d___s_
push eax
call fcn.0040a73b
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push ebx
push eax
call fcn.0040a180
add esp, 0x20
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], bx
push 1
pop edi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
lea eax, [ebp - 0x454]
push ebx
push eax
push 0x424780
mov dword [ebp - 0x28], edi
call fcn.00401ae4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x407b0b
push 0xc8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0xc], 0x103
je 0x407ae7
cmp dword [0x423588], ebx
je 0x407b6f
cmp dword [ebp + 8], ebx
jne 0x407b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x10]
call fcn.00401ae4
pop ecx
push eax
push str.Error_while_extracting__s__r_nError:__d_r_n
push esi
call fcn.0040a73b
add esp, 0x10
jmp 0x407b4c
push 0x414560
push str._s_r_n
push esi
call fcn.0040a73b
add esp, 0xc
push dword [0x4239e4]
push esi
call fcn.0040a6c0
pop ecx
push eax
push edi
push esi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e47d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e858
cmp edx, dword [eax]
je 0x40e49f
add eax, 8
inc ecx
cmp eax, 0x41e8e8
jl 0x40e490
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e858]
jne 0x40e5cd
mov eax, dword [0x422f3c]
cmp eax, 1
je 0x40e5a7
test eax, eax
jne 0x40e4d0
cmp dword [0x41e1a4], 1
je 0x40e5a7
cmp edx, 0xfc
je 0x40e5cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e507
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a6c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e54a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a6c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412654
push edi
call fcn.0040fe80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f740
lea eax, [ebp - 0xa0]
push 0x412634
push eax
call fcn.0040f740
push dword [esi + 0x41e85c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f740
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410309
add esp, 0x2c
pop edi
jmp 0x40e5cd
lea eax, [ebp + 8]
lea esi, [esi + 0x41e85c]
push 0
push eax
push dword [esi]
call fcn.0040a6c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x410640
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.004165c8
call fcn.004107f0
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 0x410678
jmp 0x410714
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x410677
cmp cl, 0x22
je 0x4106d0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4106f0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4106f0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4106b0
jmp 0x4106f0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4106d0
cmp cl, 0x22
je 0x410750
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x41070e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x410700
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x410732
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00410950
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4106f0
Function at 0x415a68
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4230f0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x415aa8
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.mingwm10.dll___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], 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 + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x415e58
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 [0x4230f0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x415f34
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x415f49
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x415f08
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x415ea0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x415eb0
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x415efb
test edx, edx
jne 0x415eee
test ecx, ecx
je 0x415e98
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 0x415f58
cmp eax, 8
je 0x415e98
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 + 0x30]
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 0x415e8a
call fcn.004157f8
mov eax, dword [0x4230f0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x415e7c
call fcn.00415ac8
mov eax, dword [0x4230f0]
jmp 0x415e7c
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 fcn.00415dc8
cmp eax, 7
jne 0x415ef3
mov eax, dword [0x4230f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415fab
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x415fd6
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x415fb7
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 fcn.004157f8
mov eax, dword [0x4230f0]
jmp 0x415f89
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415f9a
call fcn.00415ac8
mov eax, dword [0x4230f0]
jmp 0x415f90
Function at 0x416238
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 [0x4230f0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4162cc
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x4162e8
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x416308
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x4162c0
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00415dc8
cmp eax, 7
jne 0x416387
mov eax, dword [0x4230f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x41635e
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x416378
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x416338
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 fcn.00415fe8
jmp 0x41627d
call fcn.004157f8
mov eax, dword [0x4230f0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x416258
lea esi, [esi]
call fcn.00415ac8
mov eax, dword [0x4230f0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x416263
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
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 0x416266
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4162af
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4162af
call fcn.004157f8
mov eax, dword [0x4230f0]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x4162a1
nop
lea esi, [esi]
call fcn.00415ac8
mov eax, dword [0x4230f0]
jmp 0x4162a1
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x416398
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 0x41642a
mov eax, dword [0x4230f0]
test eax, eax
je 0x41641e
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x416499
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x41643f
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00415fe8
cmp eax, 7
jne 0x4164b7
mov eax, dword [0x4230f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x41648a
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4164a8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x41646b
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 fcn.004157f8
mov eax, dword [0x4230f0]
jmp 0x4163ba
mov dword [esp], edi
call fcn.00415e58
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 + 0x30]
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 0x4163cf
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x41640d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41640d
call fcn.004157f8
mov eax, dword [0x4230f0]
jmp 0x4163f8
call fcn.00415ac8
mov eax, dword [0x4230f0]
jmp 0x4163c5
call fcn.00415ac8
mov eax, dword [0x4230f0]
jmp 0x416403
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x416698
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 0x4166c8
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.mingwm10.dll___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret