joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001cd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push esi
mov esi, dword [0x1003eae4]
push edi
push eax
push 0x40
push 6
push esi
mov dword [ebp - 8], 0
call ebx
mov eax, dword [esi]
mov ecx, 0x10004f30
mov dword [0x1003eac0], eax
sub ecx, esi
mov ax, word [esi + 4]
sub ecx, 5
mov word [0x1003eac4], ax
mov eax, ecx
mov byte [esi], 0xe9
mov byte [esi + 1], cl
shr eax, 8
mov byte [esi + 2], al
mov eax, ecx
push 0x40
push 0x3000
shr eax, 0x10
push 6
shr ecx, 0x18
mov byte [esi + 3], al
push 0
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10001d60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001acf1
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x10], 0xe9
xor cl, cl
movzx eax, cl
inc cl
mov byte [eax + esi + 5], 0x90
cmp cl, 1
jb 0x10001d66
mov ax, word [0x1003eac3]
mov word [edi], ax
mov al, byte [0x1003eac5]
mov byte [edi + 2], al
mov eax, esi
sub eax, edi
sub eax, 2
mov dword [ebp - 0xf], eax
mov ecx, dword [ebp - 0x10]
mov dword [edi + 3], ecx
mov cl, byte [ebp - 0xc]
push 0
mov byte [edi + 7], cl
push dword [ebp - 8]
push 6
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001acf1
mov esp, ebp
pop ebp
ret

Function at 0x10001dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003d040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [0x1003eae4]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1003eac0]
mov dword [edi], eax
mov ax, word [0x1003eac4]
mov word [edi + 4], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.1001acf1
mov esp, ebp
pop ebp
ret
Function at 0x10019510
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [0x1003e31c]
push edi
mov byte [ebp - 1], dl
mov di, cx
mov esi, dword [eax + esi*4]
mov eax, dword [0x1003eb58]
cmp eax, dword [esi + 4]
jle 0x10019600
push 0x1003eb58
call fcn.1001ad55
add esp, 4
cmp dword [0x1003eb58], 0xffffffff
jne 0x100195fd
mov dword [ebp - 0x10], 0x8cbae810
mov dword [ebp - 0xc], 0x2b00b05e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0x94e0cd89
mov dword [ebp - 0xc], 0xe0fc1eba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0xcde8a345
mov dword [ebp - 0xc], 0xb45fe17
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x94a199ce
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], 0xe0fc1eba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
movaps xmm1, xmmword [ebp - 0x30]
xorps xmm1, xmmword [ebp - 0x20]
push eax
push 0
movaps xmmword [ebp - 0x20], xmm1
call dword [sym.imp.USER32.dll_FindWindowA]
push 0x1003eb58
mov dword [0x1003eb5c], eax
call fcn.1001ad04
add esp, 4
mov dl, byte [ebp - 1]
cmp dword [0x1003eb5c], 0
je 0x1001963b
movzx esi, di
push 0
push esi
test dl, dl
je 0x10019622
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
push 0x100
jmp 0x1001962f
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
push 0x101
push dword [0x1003eb5c]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10019ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10019cbe
push 0
push 0
push 0
push 0x10019750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1001a080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002be6d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1003d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.1001aedb
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x1001a5f0
push 0
push 0
call fcn.1001e1f2
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1001a101
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001acf1
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.1001a98a
int3
Function at 0x1002b500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b52d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b52d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6901b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00690140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00690140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00690140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00690140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x690bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x690c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6a287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x690c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x690c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, reloc.glu32.dll_gluQuadricTexture
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
mov ecx, 0x37602244
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
mov ecx, 0x7d772965
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x410430
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041e6d0
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.0041e6d0
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 0x410490
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x52944c]
test esi, esi
jle 0x4105b0
mov eax, dword [0x529450]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4104c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x410547
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4104b0
mov dword [esp], ebx
call fcn.00410e70
mov edi, eax
test eax, eax
je 0x4105d7
mov eax, dword [0x529450]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00410fb0
mov edx, dword [0x529450]
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 0x4105b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x410540
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x410550
add dword [0x52944c], 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 [0x529450]
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 0x410540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00410430
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4104ce
mov eax, dword [0x529450]
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.00410430
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00410430
lea esi, [esi]
nop
Function at 0x410ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x529468
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x529460]
sub esp, 4
test ebx, ebx
je 0x410b35
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 0x410b2e
test esi, esi
je 0x410b2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x410b10
mov dword [esp], 0x529468
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410e70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x410e95
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x410ea0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x410e95
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 0x410ee8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x410ede
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x410eea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x410ed0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x415b70
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x415ba9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x420e10
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
sub esp, 0x84
movups xmmword [ebp - 0x27], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x4d7030]
movdqu xmm3, xmmword [0x4d7040]
movups xmmword [ebp - 0x47], xmm0
mov eax, dword [0x529fe8]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x77], xmm1
movups xmmword [ebp - 0x67], xmm2
movups xmmword [ebp - 0x57], xmm3
movups xmmword [ebp - 0x37], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x50], 0
je 0x420ecb
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x420e9d
cmp eax, 0x6a
je 0x420eba
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x420e98
cmp eax, 0x6a
je 0x420eba
add ecx, 2
mov byte [ebp + eax - 0x77], 0xa
mov byte [ebp + ecx - 0x77], 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, [ebp - 0x77]
jmp 0x420eb0

Function at 0x421250
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x529fd4], 1
je 0x421308
push edi
mov eax, 0x529fd4
push esi
push ebx
sub esp, 0x10
call fcn.00420bf0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00420470
mov edi, dword [0x529fd4]
test edi, edi
jne 0x4212c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cf0d4], eax
cmp eax, 0xffffffff
je 0x4c7f29
mov dword [0x529fd4], 1
mov dword [esp], esi
call fcn.004207b0
test ebx, ebx
je 0x4212fa
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00420ee0
cmp edi, 1
je 0x4212a2
mov dword [esp], 2
call dword [0x4cf0c0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x529fd4
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.004207b0
test ebx, ebx
jne 0x4212ae
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x421310
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00420fd0
mov edx, dword [entry3]
test edx, edx
je 0x421440
mov ebx, eax
test eax, eax
je 0x421440
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.00420af0
cmp eax, 1
je 0x42144c
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.004c7f2e
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 [0x4cf0d4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x421451
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.00420e10
jmp fcn.004c7f2e

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

Disassembly:
sub esp, 0x1c
call fcn.00421250
mov eax, dword [0x4cf0d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x421488
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00421310
Function at 0x421750
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 0x421780
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x421850
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x421880
cmp eax, 3
jne 0x42176b
mov eax, dword [0x4cf0d4]
cmp eax, 0xffffffff
je 0x42176b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42176b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x4218b0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4217c9
call fcn.00421490
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4217fb
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 0x4217ed
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [esp], esi
call fcn.00420930
mov dword [esp], edi
call fcn.00420af0
cmp eax, 1
je 0x421976
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x42196a
mov eax, dword [0x4cf0d4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x42176b
mov eax, dword [0x529fb0]
test eax, eax
je 0x42176b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x529fb0], 0
sub esp, 4
jmp 0x42176b
mov dword [esp + 4], 0x420b60
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x529fb0], 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 0x421920
test eax, eax
je 0x4218ca
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 0x4218e7
call fcn.00421490
test byte [ebx + 0x24], 4
je 0x421960
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4217fb
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.00420930
jmp 0x421803
test eax, eax
je 0x421960
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.00420930
mov dword [esp], edi
call fcn.00420af0
cmp eax, 1
je 0x421976
mov dword [ebx + 0x38], 0xffffffff
jmp 0x42176b
mov dword [esp], esi
call fcn.00420930
jmp 0x42193f
mov eax, ebx
call fcn.00421090
jmp 0x421829
call fcn.00420e10
lea esi, [esi]
nop
Function at 0x421c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x529fe8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x421d90
cmp eax, 1
je 0x421cb5
mov eax, ebx
call fcn.00420bf0
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.00420470
mov ebp, dword [ebx]
test ebp, ebp
je 0x421cd0
cmp ebp, 1
jne 0x421d60
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004207b0
test esi, esi
je 0x421cb5
mov eax, esi
call fcn.00420ee0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x529fe8]
jne 0x421dda
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x420fa0
mov dword [esp + 0x24], esi
call fcn.00421250
mov eax, dword [0x4cf0d4]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x421dc8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.00421250
mov eax, dword [0x4cf0d4]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x421db0
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call fcn.00421250
mov eax, dword [0x4cf0d4]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x421da0
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x421c9e
mov dword [esp], 2
call dword [0x4cf0c0]
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 0x421c9e
mov eax, 0x16
jmp 0x421cb7
call fcn.00421310
test eax, eax
jne 0x421d46
jmp 0x4c7f53
call fcn.00421310
test eax, eax
jne 0x421d22
jmp 0x4c7f48
call fcn.00421310
test eax, eax
jne 0x421cfc
jmp 0x4c7f41
call fcn.00425650
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x422020
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.00421250
mov eax, dword [0x4cf0d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x422098
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.00420b00
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x422074
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x422074
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.00420b50
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.00421310
mov ebx, eax
jmp 0x42204b