joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401a6c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43714c]
jne 0x401a76
repz ret
jmp fcn.0040251b

Function at 0x40b0ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43714c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404134
and dword [ebp - 0x14], 0
cmp dword [0x4397d8], 0
mov dword [ebp - 0x18], eax
jne 0x40b161
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b209
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b209
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4397d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4397dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4397e0], eax
call edi
push eax
call esi
mov dword [0x4397e8], eax
test eax, eax
je 0x40b161
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4397e4], eax
mov eax, dword [0x4397e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b1ba
cmp dword [0x4397e8], ecx
je 0x40b1ba
push eax
call esi
push dword [0x4397e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b1ba
test ebx, ebx
je 0x40b1ba
call edi
test eax, eax
je 0x40b1b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b1b1
test byte [ebp - 8], 1
jne 0x40b1ba
or dword [ebp + 0x10], 0x200000
jmp 0x40b1ed
mov eax, dword [0x4397dc]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b1ed
mov eax, dword [0x4397e0]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4397d8]
call esi
test eax, eax
je 0x40b209
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b20b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a6c
leave
ret
Function at 0x42fd80
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x42fe0e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x42fdcc
push 0
push str.vepamanal_tulesizoxe_yabadodopa_zokorubonoxesiticohub_foyidufumobowebacaxosububonobo
call edi
push str.wuviyakox
push str.yekukefocudovizene
push str.kaluravujokiziduyux
push str.vixuboxituja
call ebx
push 0
call ebp
call fcn.0042fcd0
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x42fe04
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.tigegisipawupesavumefozoj
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x42fda2
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x42fe2a
mov dword [0x43a8d0], 0xa62e7790
mov dword [0x43a8d4], 0xffffffff
ret
Function at 0x4301d0
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x43a8c4]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x43a52c], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x43021a
push 0
push 0x434f90
call esi
push str.rusokuj
push 0
push 0
call edi
mov eax, dword [0x43a8c4]
dec ebp
jne 0x4301f0
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x430242
push 0
push 0
call edi
mov eax, dword [0x43a8c4]
cmp esi, 0x846373
jne 0x430259
mov eax, dword [0x438ad0]
add eax, 0xa231
mov dword [0x43a8c4], eax
cmp eax, 0x141
jne 0x430270
mov dword [0x439d18], ebp
mov dword [0x439d1c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x430230
call fcn.0042fe70
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x79c118
Capabilities:
Encode data using xor

Disassembly:
jmp 0x79c122
pushal
call 0x79c128
pop ebp
sub ebp, 0x10
sub ebp, 0x39c118
jmp 0x79c13e
mov eax, 0x39c118
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ff
mov edx, 0xcf742017
xor byte [eax], dl
inc eax
dec ecx
jne 0x79c155
jmp 0x79c168
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
adc edx, dword [edi]
pop ss
pop ss
lodsd eax, dword [esi]
aas
pop ss
pop ss
pop ss
loopne 0x79c179
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
adc al, 0xd2
lcall 0x3313, 0x9eeb3373
lcall 0x3313, 0x9eeb3373
jg 0x79c145
mov ecx, 0x717f1719
add eax, 0x3b16173c
xor edi, dword [edi + 0x7f]
fcomp dword [edx + esi*2]
call dword [edx]
pop ss
pop ss
pop ss
invalid

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x40aef0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00415ca0
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00415ca0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40af50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x46b068]
test esi, esi
jle 0x40b070
mov eax, dword [0x46b06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40af84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b007
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40af70
mov dword [esp], ebx
call fcn.0040b940
mov edi, eax
test eax, eax
je 0x40b097
mov eax, dword [0x46b06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040ba80
mov edx, dword [0x46b06c]
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 0x40b077
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b000
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40b010
add dword [0x46b068], 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 [0x46b06c]
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 0x40b000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040aef0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40af8e
mov eax, dword [0x46b06c]
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 fcn.0040aef0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040aef0
lea esi, [esi]
nop
Function at 0x40b5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x46b084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x46b07c]
sub esp, 4
test ebx, ebx
je 0x40b605
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40b5fe
test esi, esi
je 0x40b5fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b5e0
mov dword [esp], 0x46b084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b965
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b970
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b965
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 0x40b9b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b9ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b9ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b9a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x418380
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x41845b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41842d
cmp eax, 0x6a
je 0x41844a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x418428
cmp eax, 0x6a
je 0x41844a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x418440

Function at 0x4187e0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46bad4], 1
je 0x418898
push edi
mov eax, 0x46bad4
push esi
push ebx
sub esp, 0x10
call fcn.00418160
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004179e0
mov edi, dword [0x46bad4]
test edi, edi
jne 0x418850
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x446168], eax
cmp eax, 0xffffffff
je 0x444b3d
mov dword [0x46bad4], 1
mov dword [esp], esi
call fcn.00417d20
test ebx, ebx
je 0x41888a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00418470
cmp edi, 1
je 0x418832
mov dword [esp], 2
call dword [0x446150]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x46bad4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.00417d20
test ebx, ebx
jne 0x41883e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x4188a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00418560
mov edx, dword [entry3]
test edx, edx
je 0x4189d0
mov ebx, eax
test eax, eax
je 0x4189d0
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00418060
cmp eax, 1
je 0x4189dc
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.00444b42
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x446168]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4189e1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00418380
jmp fcn.00444b42

Function at 0x4189f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x418a18
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004188a0
Function at 0x418ce0
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 [esp + 0x34]
test eax, eax
jne 0x418d10
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x418de0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x418e10
cmp eax, 3
jne 0x418cfb
mov eax, dword [0x446168]
cmp eax, 0xffffffff
je 0x418cfb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x418cfb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x418e40
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x418d59
call fcn.00418a20
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x418d8b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x418d7d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.00417ea0
mov dword [esp], edi
call fcn.00418060
cmp eax, 1
je 0x418f06
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x418efa
mov eax, dword [0x446168]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x418cfb
mov eax, dword [0x46bab0]
test eax, eax
je 0x418cfb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x46bab0], 0
sub esp, 4
jmp 0x418cfb
mov dword [esp + 4], 0x4180d0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x46bab0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x418eb0
test eax, eax
je 0x418e5a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x418e77
call fcn.00418a20
test byte [ebx + 0x24], 4
je 0x418ef0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x418d8b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.00417ea0
jmp 0x418d93
test eax, eax
je 0x418ef0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.00417ea0
mov dword [esp], edi
call fcn.00418060
cmp eax, 1
je 0x418f06
mov dword [ebx + 0x38], 0xffffffff
jmp 0x418cfb
mov dword [esp], esi
call fcn.00417ea0
jmp 0x418ecf
mov eax, ebx
call fcn.00418620
jmp 0x418db9
call fcn.00418380
lea esi, [esi]
nop
Function at 0x4191a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x4192c0
cmp eax, 1
je 0x4191f4
mov eax, ebx
call fcn.00418160
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.004179e0
mov ebp, dword [ebx]
test ebp, ebp
je 0x419200
cmp ebp, 1
jne 0x419290
mov dword [esp], edi
call fcn.00417d20
test esi, esi
je 0x4191f4
mov eax, esi
call fcn.00418470
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x418530
mov dword [esp + 0x18], esi
call fcn.004187e0
mov eax, dword [0x446168]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4192f8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4192e0
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4192d0
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x4191e1
mov dword [esp], 2
call dword [0x446150]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4191e1
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004188a0
test eax, eax
jne 0x419278
jmp 0x444b55
call fcn.004188a0
test eax, eax
jne 0x419252
jmp 0x444b67
call fcn.004188a0
test eax, eax
jne 0x41922c
jmp 0x444b60
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x419550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4195c8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.00418070
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x4195a4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x4195a4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.004180c0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004188a0
mov ebx, eax
jmp 0x41957b
Function at 0x4195e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x419700
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.00418070
cmp esi, dword [ebx + 0x28]
jae 0x419660
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.004180c0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x41970c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41970c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x419628
call fcn.004188a0
mov ebx, eax
jmp 0x419615
mov dword [esp], edi
call fcn.004180c0
mov eax, 0xc
jmp 0x419650

Function at 0x419790
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4197b8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.004188a0
test eax, eax
jne 0x4197ad
add esp, 0x1c
ret

Function at 0x419820
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004187e0
mov eax, dword [0x446168]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x419848
add eax, 0xc
add esp, 0x1c
ret
call fcn.004188a0
test eax, eax
jne 0x41983d
jmp 0x419840