joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa0d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040d9b7
cmp byte [0x42696d], 0
jne 0x40aa9b
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.00407698
push eax
call fcn.0040d5e1
test eax, eax
jne 0x40aa9b
push 0x40e884
call fcn.0040d9a4
lea eax, [ebp - 0x820]
push eax
call fcn.00409769
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040948b
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40ab62
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x425849], 1
cmp dword [0x425858], ebx
je 0x40ab8a
push 0x7d
call fcn.00409273
push eax
push 2
push dword [0x425858]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x425858]
mov dword [0x42584c], ebx
mov byte [0x425848], 1
cmp eax, ebx
je 0x40abeb
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42697c], ebx
jne 0x40abb9
cmp byte [0x42696c], bl
je 0x40abc1
cmp dword [0x425850], ebx
jne 0x40abe3
push ebx
push 1
push 0x111
push dword [0x425858]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40abe3
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409b1f
cmp dword [0x425858], ebx
jne 0x40abd7
cmp byte [0x425860], bl
pop ebx
je 0x40abf9
jmp fcn.0040aa0d
ret

Function at 0x40ac35
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x425868], bl
je 0x40acb5
cmp word [0x424728], bx
je 0x40acb5
push esi
push 0x424728
lea esi, [ebp - 0x808]
call fcn.0040abfa
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40acb5
push dword [ebp + 8]
call fcn.00409769
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40acba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x425868], 0
je 0x40ad61
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040abfa
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40ad61
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ad58
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40ad3c
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040c994
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40ae89
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x425846], 0
mov eax, dword [ebp + 0xc]
mov dword [0x425738], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42573c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x425730], eax
je 0x40aeb9
xor eax, eax
inc eax
jmp 0x40aee2
cmp byte [0x425847], 0
je 0x40aec7
push 2
pop eax
jmp 0x40aee2
push dword [ebp + 8]
push 0x40a0f8
push dword [0x425858]
push str.REPLACEFILEDLG
push dword [0x425734]
call esi
dec eax
je 0x40af34
dec eax
je 0x40af46
dec eax
je 0x40af2d
dec eax
jne 0x40af11
push dword [ebp + 8]
push 0x40a444
push dword [0x425858]
push str.RENAMEDLG
push dword [0x425734]
call esi
test eax, eax
je 0x40ae93
mov al, 0x52
jmp 0x40af41
dec eax
je 0x40af22
dec eax
mov al, 0x4e
jne 0x40af41
mov byte [0x425847], 1
jmp 0x40af41
mov byte [0x42584a], 1
mov al, 0x43
jmp 0x40af41
mov byte [0x425846], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40af41
Function at 0x40b083
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004012c0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40b2ba
push esi
call fcn.00409769
cmp eax, 0x3f6
jae 0x40b2ba
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040948b
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40b0da
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40b0dd
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40b133
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40b105
jmp 0x40b0f5
cmp word [esi + eax*2], 0x22
je 0x40b0fe
inc eax
cmp word [esi + eax*2], bx
jne 0x40b0ee
jmp 0x40b105
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40b11f
cmp word [esi + eax*2 + 2], 0x2f
je 0x40b11f
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40b0e6
jmp 0x40b133
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40b12d
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40b148
cmp word [0x42606a], bx
je 0x40b148
mov dword [ebp - 0x2c], 0x42606a
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.0040780b
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40b174
push str..inf
push eax
call fcn.0040d524
test eax, eax
jne 0x40b174
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.00403a01
mov bl, al
test bl, bl
je 0x40b19a
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407469
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40b1d8
test bl, bl
jne 0x40b1d8
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.00409793
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.00409800
lea eax, [ebp - 0x840]
push eax
call fcn.00403a01
test al, al
je 0x40b2b9
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40b20a
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40b2b9
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x425860], bl
jne 0x40b21f
cmp byte [ebp + 8], bl
je 0x40b255
mov eax, dword [0x425858]
test eax, eax
je 0x40b23f
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b23f
push 0
push dword [0x425858]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040a9ce
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40b275
push str..exe
push dword [ebp - 4]
call fcn.0040d524
test eax, eax
je 0x40b2a5
cmp byte [0x425860], 0
je 0x40b28b
cmp byte [ebp + 8], 0
jne 0x40b28b
push 0x1b58
jmp 0x40b29f
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40b2b9
cmp byte [ebp + 8], 0
je 0x40b2b9
push 1
push dword [0x425858]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c6c4
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.0040cc97
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42d8d0
call fcn.0040d6de
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40c752
push esi
call fcn.0040a755
cmp byte [0x425869], bl
je 0x40c74a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40c73f
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40c738
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c752
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x424f30
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x425734], edi
mov dword [0x425840], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x425840]
mov dword [0x424f2c], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x424f28], eax
call fcn.0040da27
push esi
mov ecx, 0x426998
call fcn.0040925c
lea ecx, [ebp - 0x40]
call fcn.0040520f
lea ecx, [ebp - 0x24]
call fcn.0040520f
push 0x64
call fcn.00409e28
push 0x64
mov dword [ebp - 0x28], eax
call fcn.00409e28
push ebx
push 0x40bf15
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x424724], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x424720], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x424720], ebx
mov dword [0x424724], ebx
call fcn.00405225
lea ecx, [ebp - 0x40]
call fcn.00405225
lea ecx, [ebp - 8]
call fcn.0040da79
cmp byte [0x425860], bl
je 0x40c82d
call fcn.0040aa0d
push 0x100
push ebx
push 0x425740
call fcn.0040948b
cmp dword [0x42697c], ebx
jbe 0x40c850
push dword [0x426970]
call fcn.00409308
push dword [0x424f2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x424f28]
cmp eax, ebx
je 0x40c86a
push eax
call esi
cmp dword [0x42698c], ebx
jne 0x40c889
cmp byte [0x42584a], bl
je 0x40c889
push 0xff
mov ecx, 0x42698c
call fcn.004019a2
mov eax, dword [0x426984]
mov byte [0x42584a], 1
cmp eax, ebx
je 0x40c89f
push eax
call fcn.0040a9ce
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x42698c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40cf8a
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x422680]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4100d0]
mov ecx, dword [0x422688]
mov dword [0x422680], eax
movzx eax, al
add eax, dword [0x422684]
imul eax, eax, 0x8088405
inc eax
mov dword [0x422684], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4100d0]
mov eax, dword [esp + 4]
mov dword [0x422688], ecx
ret 4

Function at 0x40d01d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040cfe4
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004094b8
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040cf6a
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040cf8a
inc esi
cmp esi, 0xc
jl 0x40d03c
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x411548]
test byte [eax + 0x28], 2
movzx eax, byte [0x4215b7]
jne 0x40d077
movzx eax, byte [0x4215bf]
movzx ecx, cx
cmp ecx, eax
je 0x40d083
or eax, 0xffffffff
jmp 0x40d0c8
mov ecx, dword [0x421560]
mov eax, ecx
cdq
cmp edx, dword [0x410924]
push edi
jl 0x40d0a5
mov edx, dword [0x410920]
jg 0x40d0a1
cmp eax, edx
jbe 0x40d0a5
mov edi, edx
jmp 0x40d0a7
mov edi, ecx
mov esi, dword [0x421558]
jmp 0x40d0c1
dec edi
call fcn.0040cf6a
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040cf8a
inc esi
test edi, edi
jne 0x40d0af
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40d9b7
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x404720
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404756
mov dword [0x4d65b0], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x40d010], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x40d010], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x40c0ec
mov dword [ebp - 0x1c], 0x404900
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x40d010], 0
mov dword [ebp - 0x44], 0x4d65c0
je 0x4048e0
jl 0x404920
mov dword [ebp - 0x3c], 1
mov eax, dword [0x4d65b0]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4049c3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4d6600]
mov eax, 0xffffffff
test edx, edx
je 0x40493a
mov eax, dword [0x40d014]
test eax, eax
je 0x40497a
xor eax, eax
test eax, eax
jne 0x404970
mov edi, dword [0x40d010]
test edi, edi
js 0x404970
mov dword [ebp - 0x44], 0x4d65c0
mov ebx, dword [0x40d010]
test ebx, ebx
je 0x4048e0
jmp 0x40488e
xor esi, esi
mov dword [0x40d010], esi
jmp 0x404948
mov dword [esp], 0x40d018
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404a01
mov eax, dword [0x40d014]
test eax, eax
jne 0x404938
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x40d014]
test eax, eax
je 0x40499d
jmp 0x404938
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4049f5
mov dword [esp + 4], eax
mov eax, dword [0x4d65b0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x404a2a
test edx, edx
je 0x404a15
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x40d014], eax
jmp 0x404938
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4048d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4049f1
Function at 0x406190
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4d6650]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4061d0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], 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 + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x406580
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 [0x4d6650]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40665c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x406671
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x406630
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4065c8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4065d8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x406623
test edx, edx
jne 0x406616
test ecx, ecx
je 0x4065c0
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 0x406680
cmp eax, 8
je 0x4065c0
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 + 0x2c]
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 0x4065b2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x4065a4
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x4065a4
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 sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40661b
mov eax, dword [0x4d6650]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4066d3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x4066fe
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4066df
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 sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
jmp 0x4066b1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4066c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4066c2
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x4066b8
Function at 0x406800
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 eax, dword [0x4d6650]
test eax, eax
je 0x406860
mov esi, dword [eax + 0x30]
test esi, esi
js 0x406880
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x4068a0
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x4068f0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x406822
jmp 0x406880
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x406829
jmp 0x4068a0
mov ebx, dword [eax + 0x2c]
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
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x406851
lea esi, [esi]
mov eax, dword [0x4d6650]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40693d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x406949
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40691e
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
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40690d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40690d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
jmp 0x4068fc
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x406903
Function at 0x406960
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 [0x4d6650]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4069f4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x406a10
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x406a30
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x4069e8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x406aaf
mov eax, dword [0x4d6650]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406a86
mov edx, dword [eax + 0x30]
test edx, edx
js 0x406aa0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406a60
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 sym.__Unwind_ForcedUnwind_Phase2
jmp 0x4069a5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x406980
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40698b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
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 0x40698e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4069d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4069d7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x4069c9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x4069c9
call sym._abort
lea esi, [esi]
lea edi, [edi]