joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516d08
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
xor edx, edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x516d91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x516d6b
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, 0x80
call fcn.00405b0c
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 4]
call fcn.0040a2a0
jmp 0x516d78
mov eax, dword [ebp - 4]
mov edx, 0x516da4
call fcn.004058e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516d98
lea eax, [ebp - 0x8c]
call fcn.0040588c
ret

Function at 0x516dac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x516e50
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004031e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040b144
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x516e2d
lea eax, [ebp - 0x14]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405dc0
mov eax, dword [ebp - 0x14]
mov edx, 0x516e68
call fcn.00405cac
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x516e2d
mov eax, dword [ebp - 8]
call fcn.00405d60
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516e57
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004058b0
lea eax, [ebp - 8]
call fcn.0040588c
ret

Function at 0x516eb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x104
call fcn.0040b680
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x516f2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x104
call fcn.00403ae4
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x516f10
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405a94
jmp 0x516f18
mov eax, dword [ebp - 8]
call fcn.0040588c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516f35
mov eax, dword [ebp - 0xc]
call fcn.0040b6cc
ret
Function at 0x517008
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405d50
xor eax, eax
push ebp
push 0x5170c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x5170d4
call fcn.004058e0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405d60
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x51709e
lea ecx, [ebp - 0x18]
movzx eax, word [ebp - 0x14]
mov edx, 4
call fcn.0040a838
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00408b5c
movzx eax, ax
lea ecx, [ebp - 0x1c]
mov edx, 4
call fcn.0040a838
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5170c8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004058b0
lea eax, [ebp - 4]
call fcn.0040588c
ret

Function at 0x517bc8
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], 7
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x517bf0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
call fcn.00517bc8
test al, al
je 0x517c33
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00405d60
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x52d20c
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x52d214
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00405d50
xor eax, eax
push ebp
push 0x52d3d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x55289c]
cmp byte [eax], 0
je 0x52d277
lea ecx, [ebp - 0x1c]
mov edx, dword [0x552a18]
movzx edx, byte [edx]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50c]
mov eax, dword [eax + 0x25c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 0x52d3ec
call fcn.00405bac
jmp 0x52d284
lea eax, [ebp - 0x10]
mov edx, 0x52d3f8
call fcn.00405924
mov eax, dword [ebp - 4]
call fcn.00405d60
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x384]
mov eax, dword [eax + 0x264]
dec eax
test eax, eax
jl 0x52d2e3
inc eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
push dword [ebp - 8]
push 0x52d3ec
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x384]
xor ecx, ecx
mov edx, ebx
call fcn.004ddac4
push dword [ebp - 0x20]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405c20
inc ebx
dec dword [ebp - 0x18]
jne 0x52d2ac
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051d3b4
mov eax, dword [0x552c6c]
movzx eax, word [eax]
test eax, eax
jle 0x52d381
mov dword [ebp - 0x18], eax
mov edi, 1
lea eax, [ebp - 8]
call fcn.0040588c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x384]
mov esi, dword [eax + 0x264]
dec esi
test esi, esi
jl 0x52d36e
inc esi
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x384]
mov ecx, edi
mov edx, ebx
call fcn.004ddac4
mov eax, dword [ebp - 0x24]
mov cl, 0x2c
mov dl, 0x2e
call fcn.004f5c18
push dword [ebp - 8]
push 0x52d3ec
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405c20
inc ebx
dec esi
jne 0x52d327
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051d3b4
inc edi
dec dword [ebp - 0x18]
jne 0x52d308
mov eax, 0x52d404
call fcn.0044a1f0
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405d60
push eax
push 0x52d5a0
mov eax, dword [ebp - 0x14]
call fcn.00460d1c
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d3dc
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004058b0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004058b0
ret
Function at 0x402570
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0xb0
lea ebx, [ebp - 0x88]
mov al, 0
mov edx, 0x30
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [0x47b154], eax
lea ebx, [ebp - 0x58]
mov al, 0
mov edx, 0x30
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0x47300b
mov dword [ebp - 0x50], sym.__Z22EingabeWindowProcedureP6HWND__jjl_16
mov dword [ebp - 0x58], 0x30
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._RegisterClassExA_4
sub esp, 4
test ax, ax
sete al
test al, al
je 0x4025e3
mov eax, 0
jmp 0x4026f4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], 0x473000
mov dword [ebp - 0x80], sym.__Z15WindowProcedureP6HWND__jjl_16
mov dword [ebp - 0x88], 0x30
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._RegisterClassExA_4
sub esp, 4
test ax, ax
sete al
test al, al
je 0x402626
mov eax, 0
jmp 0x4026f4
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x22e
mov dword [esp + 0x18], 0x3ac
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcc0000
mov dword [esp + 8], str.Uni_Short_Links
mov dword [esp + 4], 0x473000
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
jmp 0x4026c2
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
setne al
test al, al
jne 0x4026a6
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x4114a4
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x78
mov dword [esp + 0x44], sym.___gxx_personality_sj0
mov dword [esp + 0x48], 0x47292c
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x411611
mov dword [esp + 0x54], esp
lea eax, [esp + 0x2c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp byte [0x481180], 0
jne 0x4115d6
mov byte [0x481180], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x411636
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp byte [eax], 0x2a
sete al
movzx eax, al
add dword [esp + 0x18], eax
mov dword [esp + 0x6c], 0xffffffff
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0x30], 0xffffffff
call sym.___cxa_demangle
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x6c], 0
mov dword [esp + 4], eax
je 0x4115c8
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x475b1d
call sym._fwrite
cmp dword [esp + 0x6c], 0
je 0x411603
mov dword [esp + 0x30], 1
call sym.___cxa_rethrow
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fputs
jmp 0x41158c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._free
jmp 0x4115bb
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x411631

Function at 0x4178fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort
Function at 0x417948
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x417964
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x417a14
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x417a08
cmp eax, 4
je 0x417a08
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x417959
cmp eax, 4
je 0x417959
mov dword [esp + 0xc], edx
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 sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error

Function at 0x417c98
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 dbg.__main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
push ecx
test ebx, ebx
je 0x417d0b
nop
mov al, byte [ebx]
cmp al, 0x20
je 0x417cd2
cmp al, 9
jne 0x417cd8
inc ebx
jmp 0x417cc8
cmp al, 0x22
jne 0x417ceb
jmp 0x417cf8
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x417d50
cmp al, 9
je 0x417d54
test al, al
jne 0x417ce0
jmp 0x417d03
test al, al
je 0x417d03
inc ebx
mov al, byte [ebx]
cmp al, 0x22
jne 0x417cf4
nop
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x417d00
cmp al, 9
je 0x417d00
test byte [ebp - 0x30], 1
je 0x417d48
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
push edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
leave
lea esp, [ecx - 4]
ret
mov esi, 0xa
jmp 0x417d15
mov al, 0x20
jmp 0x417d03
mov al, 9
jmp 0x417d03
Function at 0x418074
Capabilities:
Allocate thread local storage

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x4811cc]
test ebx, ebx
je 0x4180ec
mov eax, dword [0x4811a4]
test eax, eax
je 0x4180aa
test ebx, ebx
je 0x4180aa
mov edi, dword [ebx]
test edi, edi
je 0x4180c0
mov eax, dword [0x4811d0]
test eax, eax
je 0x418150
mov eax, dword [eax]
test eax, eax
jns 0x4180b9
mov eax, dword [0x4811d0]
test eax, eax
je 0x4180fc
mov dword [eax], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 4]
mov dword [esp], eax
call sym._InterlockedIncrement_4
push esi
test eax, eax
jne 0x4180e1
jmp 0x418108
mov dword [esp], 0
call sym._Sleep_4
push ecx
mov edx, dword [ebx]
test edx, edx
je 0x4180d4
jmp 0x418097
call dbg.__shmem_grabber_sjlj_once
mov ebx, eax
mov dword [0x4811cc], eax
jmp 0x418084
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x4180b3
mov esi, dword [0x4811d0]
test esi, esi
je 0x418175
mov edi, dword [0x4811d4]
test edi, edi
je 0x418167
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x418160
mov dword [edi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov dword [ebx], 1
jmp 0x418097
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x4180a4
call sym._GetLastError_0
jmp 0x418138
call dbg.__shmem_grabber_fc_key
mov edi, eax
mov dword [0x4811d4], eax
jmp 0x41811c
call dbg.__shmem_grabber_use_fc_key
mov esi, eax
mov dword [0x4811d0], eax
jmp 0x418112
Function at 0x418260
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, eax
mov ebx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [ebx]
jmp 0x4182ac
mov eax, dword [0x4811d4]
test eax, eax
je 0x4183d8
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x41837c
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x418368
mov ebp, dword [eax + 0x18]
xor edi, edi
mov eax, 0xa
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [esp + 0x28]
test eax, eax
jne 0x4183a4
cmp edi, 5
je 0x4183a9
test ebp, ebp
je 0x418331
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
mov edi, eax
cmp eax, 7
je 0x4183a9
cmp eax, 8
jne 0x4183a4
mov eax, dword [ebx]
mov edi, dword [eax]
mov eax, dword [0x4811d0]
test eax, eax
je 0x4183b4
mov eax, dword [eax]
test eax, eax
js 0x418388
mov eax, dword [0x4811d0]
test eax, eax
je 0x418398
mov eax, dword [eax]
test eax, eax
jne 0x418280
mov eax, dword [0x4811d8]
test eax, eax
je 0x4183c4
mov dword [eax], edi
jmp 0x4182a6
xor ebp, ebp
mov edi, 5
mov eax, 0x1a
jmp 0x4182be
call sym._GetLastError_0
jmp 0x4182a6
call dbg.fc_key_init_once
mov eax, dword [0x4811d0]
test eax, eax
jne 0x41834d
nop
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x41834d
mov edi, 2
mov eax, edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x41833e
call dbg.__shmem_grabber_fc_static
mov dword [0x4811d8], eax
mov dword [eax], edi
jmp 0x4182a6
call dbg.__shmem_grabber_fc_key
mov dword [0x4811d4], eax
jmp 0x41828d
Function at 0x4183e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x4811d0]
test eax, eax
je 0x4184a4
mov edi, dword [eax]
test edi, edi
js 0x418498
mov eax, dword [0x4811d0]
test eax, eax
je 0x4184b4
mov esi, dword [eax]
test esi, esi
je 0x418474
mov eax, dword [0x4811d4]
test eax, eax
je 0x4184c4
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov edi, eax
mov dword [esp], esi
call sym._SetLastError_4
push ecx
mov dword [ebx], edi
mov eax, dword [0x4811d4]
test eax, eax
je 0x4184f4
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x41848c
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x4811d8]
test eax, eax
je 0x4184d4
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym._GetLastError_0
call dbg.fc_key_init_once
jmp 0x418409
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x4183ff
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x418416
call dbg.__shmem_grabber_fc_key
mov dword [0x4811d4], eax
jmp 0x418429
call dbg.__shmem_grabber_fc_static
mov dword [0x4811d8], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x418481
call dbg.__shmem_grabber_fc_static
mov dword [0x4811d8], eax
mov dword [eax], ebx
jmp 0x418483
call dbg.__shmem_grabber_fc_key
mov dword [0x4811d4], eax
jmp 0x418455

Function at 0x418504
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x4811d0]
test eax, eax
je 0x418580
mov eax, dword [eax]
test eax, eax
js 0x41856c
mov eax, dword [0x4811d0]
test eax, eax
je 0x418574
mov eax, dword [eax]
test eax, eax
je 0x418550
mov eax, dword [0x4811d4]
test eax, eax
je 0x41859c
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x418560
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4811d8]
test eax, eax
je 0x41858c
mov dword [eax], ebx
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp sym._GetLastError_0
call dbg.fc_key_init_once
jmp 0x41851d
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x418526
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x418517
call dbg.__shmem_grabber_fc_static
mov dword [0x4811d8], eax
mov dword [eax], ebx
jmp 0x41855b
call dbg.__shmem_grabber_fc_key
mov dword [0x4811d4], eax
jmp 0x418535
Function at 0x418638
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
mov eax, dword [0x4811d0]
test eax, eax
je 0x41874a
mov edi, dword [eax]
test edi, edi
js 0x418740
mov eax, dword [0x4811d0]
test eax, eax
je 0x418759
mov esi, dword [eax]
test esi, esi
je 0x4186fc
mov eax, dword [0x4811d4]
test eax, eax
je 0x418779
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov edi, eax
mov dword [esp], esi
call sym._SetLastError_4
push ecx
mov dword [esp + 0x2c], edi
test edi, edi
je 0x4186ed
mov eax, edi
lea esi, [esp + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4186df
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x41870c
cmp eax, 8
jne 0x418734
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4186a8
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x4811d8]
test eax, eax
je 0x418768
mov edi, dword [eax]
jmp 0x41869a
mov dword [ebx + 0xc], 0
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov dword [esp + 0x2c], edi
mov edx, esi
mov eax, ebx
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x4186f2
mov eax, esi
call sym._uw_install_context.isra.2
nop
mov eax, 3
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call dbg.fc_key_init_once
jmp 0x418659
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x41864f
call dbg.__shmem_grabber_use_fc_key
mov dword [0x4811d0], eax
jmp 0x418666
call dbg.__shmem_grabber_fc_static
mov dword [0x4811d8], eax
mov edi, dword [eax]
jmp 0x41869a
call dbg.__shmem_grabber_fc_key
mov dword [0x4811d4], eax
jmp 0x41867d