joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4157e2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x423f20]
push edi
jae 0x4159a9
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x423f40]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4159a9
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x415888
test dl, 2
jne 0x415888
test dl, 0x48
je 0x415852
mov al, byte [eax + 5]
cmp al, 0xa
je 0x415852
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41589b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x415883
mov dword [0x4228b4], ecx
jmp 0x4159b0
cmp eax, 0x6d
jne 0x41588f
xor eax, eax
jmp 0x4159bd
push eax
call fcn.004161ab
pop ecx
jmp 0x4159ba
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4159a4
test edx, edx
je 0x4158be
cmp byte [edi], 0xa
jne 0x4158be
or al, 4
jmp 0x4158c0
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41599e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41598e
cmp al, 0xd
je 0x4158f4
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x415980
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41590e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x415909
add dword [ebp - 8], 2
jmp 0x415962
mov dword [ebp - 8], eax
jmp 0x41597c
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41597c
cmp dword [ebp - 0x10], 0
je 0x41597c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x415957
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415962
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x41597f
cmp edi, dword [ebp + 0xc]
jne 0x415967
cmp byte [ebp - 1], 0xa
jne 0x415967
mov byte [edi], 0xa
jmp 0x41597f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041523e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415980
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4158d8
jmp 0x41599e
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41599e
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x4159bd
and dword [0x4228b4], 0
mov dword [0x4228b0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4166e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41d6d0]
je 0x41670d
inc eax
cmp eax, 0x12
jb 0x4166fe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41d6d0]
jne 0x416841
mov eax, dword [0x4228a4]
cmp eax, 1
je 0x41681c
cmp eax, edx
jne 0x41673d
cmp dword [0x41d414], 1
je 0x41681c
cmp ecx, 0xfc
je 0x416841
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416776
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00415b70
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00416120
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4167b8
lea eax, [ebp - 0x10c]
push eax
call fcn.00416120
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41af38
push edi
call fcn.00413530
add esp, 0x10
push edi
call fcn.00416120
push dword [esi + 0x41d6d4]
mov ebx, eax
call fcn.00416120
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416f40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415b70
push edi
push ebx
call fcn.00415b80
push 0x41af18
push ebx
call fcn.00415b80
push dword [esi + 0x41d6d4]
push ebx
call fcn.00415b80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041845f
add esp, 0x2c
jmp 0x416841
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41d6d4]
push dword [esi]
call fcn.00416120
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415c99
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417b28
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416f40
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417bbd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4228bc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x417bbd
cmp eax, 1
je 0x417bd5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417bbd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x417b92
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x417bb9
xor eax, eax
inc eax
jmp 0x417bf1
cmp esi, ebx
jae 0x417bc1
xor eax, eax
jmp 0x417bf1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4228bc]
jmp 0x417bd7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41845f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422a88], ebx
push esi
push edi
jne 0x4184df
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41851a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b19c
push edi
call esi
test eax, eax
mov dword [0x422a88], eax
je 0x41851a
push 0x41b18c
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422a8c], eax
call esi
cmp dword [0x4228bc], 2
mov dword [0x422a90], eax
jne 0x4184df
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422a98], eax
je 0x4184df
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422a94], eax
mov eax, dword [0x422a94]
test eax, eax
je 0x418524
call eax
test eax, eax
je 0x41850b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422a98]
test eax, eax
je 0x41850b
test byte [ebp - 8], 1
jne 0x418524
cmp dword [0x4228c8], 4
jb 0x41851e
or byte [ebp + 0x12], 0x20
jmp 0x418543
xor eax, eax
jmp 0x418553
or byte [ebp + 0x12], 4
jmp 0x418543
mov eax, dword [0x422a8c]
test eax, eax
je 0x418543
call eax
mov ebx, eax
test ebx, ebx
je 0x418543
mov eax, dword [0x422a90]
test eax, eax
je 0x418543
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422a88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41874f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00416f40
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x423f20]
mov dword [ebp - 4], eax
jae 0x41888f
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x423f40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x41888f
push 1
push esi
push ebx
call fcn.0041523e
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x418899
push 2
push esi
push ebx
call fcn.0041523e
add esp, 0xc
cmp eax, 0xffffffff
je 0x418899
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41883c
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004178b0
push 0x8000
push ebx
call fcn.004192b2
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4187fb
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.004149d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x418819
sub edi, eax
test edi, edi
jg 0x4187f0
jmp 0x41882f
cmp dword [0x4228b4], 5
jne 0x41882c
mov dword [0x4228b0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004192b2
pop ecx
pop ecx
jmp 0x41887c
jge 0x41887c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041523e
push ebx
call fcn.004172c5
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x41887c
mov dword [0x4228b0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4228b4], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0041523e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41889c
mov dword [0x4228b0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00415c99
leave
ret
Function at 0x40f639
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x482eb8
cmp edx, dword [eax]
je 0x40f65b
add eax, 8
inc ecx
cmp eax, 0x482f48
jl 0x40f64c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x482eb8]
jne 0x40f789
mov eax, dword [0x4833b8]
cmp eax, 1
je 0x40f763
test eax, eax
jne 0x40f68c
cmp dword [0x482e04], 1
je 0x40f763
cmp edx, 0xfc
je 0x40f789
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f6c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040fda0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f706
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040fda0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416a30
push edi
call fcn.00411130
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410c90
lea eax, [ebp - 0xa0]
push 0x416a10
push eax
call fcn.00410c90
push dword [esi + 0x482ebc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004110a5
add esp, 0x2c
pop edi
jmp 0x40f789
lea eax, [ebp + 8]
lea esi, [esi + 0x482ebc]
push 0
push eax
push dword [esi]
call fcn.0040fda0
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 0x41df60
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.0041dea0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x41dfac
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x41df80
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x420870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x420896
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x42092a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4208e5
cmp eax, 0x40
je 0x4208e5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x420889
cmp eax, 0x40
je 0x420889
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x420889
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00420820
lea esi, [esi]
lea edi, [edi]
Function at 0x420bb0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00420b90
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x420c50
movzx edx, byte [ebx]
cmp dl, 9
je 0x420c94
cmp dl, 0x20
je 0x420c94
cmp dl, 0x22
je 0x420c34
cmp dl, 9
mov eax, edx
je 0x420c48
cmp dl, 0x20
je 0x420ca0
test dl, dl
lea esi, [esi]
jne 0x420c22
jmp 0x420c50
cmp al, 0x20
je 0x420ca0
test al, al
nop
je 0x420c50
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x420c14
jmp 0x420c48
cmp al, 0x22
je 0x420c3e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x420c30
cmp al, 0x22
jne 0x420c48
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x420ca0
cmp al, 9
je 0x420ca0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x420c5f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004149ea
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x420be1
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x420ca0
cmp al, 0x20
jne 0x420c50
nop
jmp 0x420ca0

Function at 0x420ff0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4775b0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x421030
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0042a8f0
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 0x4213e0
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 [0x4775b0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4214bc
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x4214d1
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x421490
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x421428
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x421438
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x421483
test edx, edx
jne 0x421476
test ecx, ecx
je 0x421420
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 0x4214e0
cmp eax, 8
je 0x421420
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 0x421412
call fcn.00420d80
mov eax, dword [0x4775b0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x421404
call fcn.00421050
mov eax, dword [0x4775b0]
jmp 0x421404
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.00421350
cmp eax, 7
jne 0x42147b
mov eax, dword [0x4775b0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x421533
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x42155e
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x42153f
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.00420d80
mov eax, dword [0x4775b0]
jmp 0x421511
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 0x421522
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421522
call fcn.00421050
mov eax, dword [0x4775b0]
jmp 0x421518
Function at 0x4217c0
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 [0x4775b0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x421854
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x421870
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x421890
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x421848
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00421350
cmp eax, 7
jne 0x42190f
mov eax, dword [0x4775b0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4218e6
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x421900
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x4218c0
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.00421570
jmp 0x421805
call fcn.00420d80
mov eax, dword [0x4775b0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x4217e0
lea esi, [esi]
call fcn.00421050
mov eax, dword [0x4775b0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x4217eb
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 0x4217ee
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 0x421837
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421837
call fcn.00420d80
mov eax, dword [0x4775b0]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x421829
nop
lea esi, [esi]
call fcn.00421050
mov eax, dword [0x4775b0]
jmp 0x421829
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x421920
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 0x4219b2
mov eax, dword [0x4775b0]
test eax, eax
je 0x4219a6
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x421a21
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x4219c7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00421570
cmp eax, 7
jne 0x421a3f
mov eax, dword [0x4775b0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x421a12
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x421a30
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x4219f3
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.00420d80
mov eax, dword [0x4775b0]
jmp 0x421942
mov dword [esp], edi
call fcn.004213e0
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 0x421957
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 0x421995
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421995
call fcn.00420d80
mov eax, dword [0x4775b0]
jmp 0x421980
call fcn.00421050
mov eax, dword [0x4775b0]
jmp 0x42194d
call fcn.00421050
mov eax, dword [0x4775b0]
jmp 0x42198b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x421c20
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 0x421c50
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0042a8f0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret