joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5c4
Capabilities:
Check os version

Disassembly:
mov eax, 0x41021e
call fcn.0040f8ec
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, ecx
push fcn.0040e59d
push 0x40e570
push 0x19
lea eax, [esi + 0x20]
push 0x10
push eax
mov dword [ebp - 0x14], esi
call fcn.0040f752
mov edi, 0x94
xor ebx, ebx
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi], 0x411388
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edi, [esi + 8]
xor eax, eax
mov dword [esi + 4], ebx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040e71d
cmp eax, ebx
mov dword [esi + 0x1c], ebx
je 0x40e684
mov ecx, esi
call fcn.0040e824
cmp dword [esi + 0x1c], ebx
jbe 0x40e684
lea edi, [esi + 0x2c]
cmp dword [ebp - 0xa4], 6
je 0x40e678
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push dword [edi - 8]
call fcn.0040e9e6
test eax, eax
je 0x40e671
mov eax, dword [ebp - 0x10]
jmp 0x40e674
or eax, 0xffffffff
mov dword [edi], eax
jmp 0x40e67b
or dword [edi], 0xffffffff
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x1c]
jb 0x40e651
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40eb73
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 8], 4
push dword [ebp + 8]
xor esi, esi
call fcn.0040ea90
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x210]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ebe1
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Speaker_Configuration
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x40ebe1
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
leave
ret 4

Function at 0x40ebe8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push eax
xor esi, esi
push dword [ebp + 8]
call fcn.0040ea90
lea eax, [ebp + 8]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x415e40
lea eax, [ebp - 0x208]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ec58
push edi
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push esi
push str.Speaker_Configuration
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40ef79
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 0
je 0x40effd
mov ecx, dword [ebp - 0x90]
cmp ecx, 4
jb 0x40effd
push 2
pop eax
cmp dword [ebp - 0x84], eax
jne 0x40eff0
cmp ecx, 4
ja 0x40efd7
push 1
jmp 0x40efff
cmp dword [ebp - 0x84], eax
jne 0x40eff0
cmp ecx, 5
jne 0x40efe7
push 3
pop eax
cmp ecx, 6
jne 0x40f000
push 4
jmp 0x40efff
cmp dword [ebp - 0x8c], 0xa
jae 0x40f000
xor eax, eax
leave
ret
push 5
pop eax
leave
ret

Function at 0x40f0c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x81c]
cmp eax, 2
je 0x40f0e8
cmp eax, 3
je 0x40f0e8
cmp eax, 4
je 0x40f0e8
call fcn.0040f540
push 1
pop eax
pop esi
pop ebx
ret
xor ebx, ebx
cmp dword [esi + 0x818], ebx
jne 0x40f103
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x818], eax
mov eax, dword [esi + 0x818]
cmp eax, ebx
jne 0x40f119
or dword [esi + 0x820], 0xffffffff
jmp 0x40f253
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call edi
push str.SetupDiGetDeviceRegistryPropertyA
mov dword [esi], eax
push dword [esi + 0x818]
call edi
push str.SetupDiGetDeviceInterfaceDetailA
mov dword [esi + 0x10], eax
push dword [esi + 0x818]
call edi
push str.SetupDiEnumDeviceInfo
mov dword [esi + 8], eax
push dword [esi + 0x818]
call edi
push str.SetupDiDestroyDeviceInfoList
mov dword [esi + 0x14], eax
push dword [esi + 0x818]
call edi
push str.SetupDiEnumDeviceInterfaces
mov dword [esi + 0xc], eax
push dword [esi + 0x818]
call edi
cmp dword [esi], ebx
mov dword [esi + 4], eax
pop edi
jne 0x40f1a0
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffe
jmp 0x40f253
cmp dword [esi + 0xc], ebx
jne 0x40f1c6
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffd
jmp 0x40f253
cmp dword [esi + 0x10], ebx
jne 0x40f1e9
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffc
jmp 0x40f253
cmp dword [esi + 0x14], ebx
jne 0x40f20c
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffb
jmp 0x40f253
cmp dword [esi + 8], ebx
jne 0x40f22f
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffa
jmp 0x40f253
cmp eax, ebx
jne 0x40f0e2
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x824], eax
xor eax, eax
jmp 0x40f0e5
Function at 0x40f7d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4113d8
push 0x40f974
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41600c], 0xffffffff
or dword [0x416010], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x416004]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x416000]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416008], eax
call fcn.0040f9a1
cmp dword [0x415e20], 0
jne 0x40f857
push 0x40f99e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040f98c
push 0x413010
push 0x41300c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x415ffc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x415ff8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x413008
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402dd0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x27c14c6d
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x14e7572c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401cc0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, str._J_Xmx
add esi, 0x20
mov dword [ebp - 0xc], ebx
mov dword [esp], str._J_Xmx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004128e8
inc eax
je 0x401d10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cld
xor eax, eax
lea edi, [ebp - 0x38]
mov ecx, 8
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, 0xcccccccd
sub esp, 4
mul dword [ebp - 0x30]
shr edx, 0x16
cmp edx, 0x5f
jg 0x401d86
mov edx, 0x60
mov dword [esp + 0xc], edx
mov ebx, str.__J_Xmx_dm
mov ecx, 0x20
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x58]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.0040d1f0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00413c88
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp edx, 0x200
jle 0x401d40
mov edx, 0x200
jmp 0x401d40
Function at 0x405d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
movzx eax, byte [ebp + 0x10]
cmp ebx, dword [ebp + 8]
mov byte [ebp - 0xd], al
jge 0x405d40
mov esi, esi
lea edi, [edi]
cld
mov edx, dword [ebp + 0xc]
mov ecx, 8
mov esi, str.__trace
mov edx, dword [edx + ebx*4]
mov edi, edx
mov dword [ebp - 0x14], edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405d4d
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x405d20
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 1]
cmp eax, dword [ebp + 8]
je 0x405da5
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + eax*4]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x41b008
call fcn.00414028
cmp byte [ebp - 0xd], 0
je 0x405d40
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00405440
test al, al
jne 0x405d40
mov eax, dword [0x41b008]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
jmp 0x405d40
mov dword [esp], 0
mov eax, dword [ebp - 0x14]
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, str.Argument_is_missing_for___s__option.
mov dword [esp + 8], eax
call fcn.00405820
xor eax, eax
jmp 0x405d45
Function at 0x406010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1030
mov ebp, esp
push esi
push ebx
call fcn.0040cc40
mov dword [esp], str.getStringFromRegistry___n_tkeyName:__s_n_tvalueName:__s
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004056d0
mov dword [esp + 4], ebx
xor eax, eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x406130
mov eax, 0x1000
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x1010], eax
movzx eax, byte [0x4196a0]
mov ecx, 0xfff
mov dword [ebp - 0x1014], ebx
lea ebx, [ebp - 0x1008]
mov byte [ebp - 0x1008], al
lea eax, [ebp - 0x1007]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0x1010]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1014]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x100c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4060f7
cmp dword [ebp - 0x1014], 1
je 0x40614d
mov dword [esp], 1
mov ecx, str.RegQueryValueEx___failed.
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.00405820
mov eax, dword [ebp - 0x100c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 1
mov eax, str.RegOpenKeyEx___failed.
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.00405820
jmp 0x406123
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], str._s:__s
call fcn.004056d0
mov eax, dword [ebp - 0x100c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00414028
mov eax, 1
jmp 0x406125

Function at 0x40c0e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x41fa88]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40c120
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.00411ec0
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 0x40c4d0
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 [0x41fa88]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40c5ac
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40c5c1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40c580
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40c518
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40c528
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40c573
test edx, edx
jne 0x40c566
test ecx, ecx
je 0x40c510
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 0x40c5d0
cmp eax, 8
je 0x40c510
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 0x40c502
call fcn.0040cd20
mov eax, dword [0x41fa88]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40c4f4
call fcn.0040c140
mov eax, dword [0x41fa88]
jmp 0x40c4f4
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 fcn.0040c440
cmp eax, 7
jne 0x40c56b
mov eax, dword [0x41fa88]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40c623
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40c64e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40c62f
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 fcn.0040cd20
mov eax, dword [0x41fa88]
jmp 0x40c601
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 0x40c612
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c612
call fcn.0040c140
mov eax, dword [0x41fa88]
jmp 0x40c608
Function at 0x40c8b0
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 [0x41fa88]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40c944
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40c960
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40c980
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40c938
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040c440
cmp eax, 7
jne 0x40c9ff
mov eax, dword [0x41fa88]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40c9d6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40c9f0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40c9b0
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 fcn.0040c660
jmp 0x40c8f5
call fcn.0040cd20
mov eax, dword [0x41fa88]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40c8d0
lea esi, [esi]
call fcn.0040c140
mov eax, dword [0x41fa88]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40c8db
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 0x40c8de
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 0x40c927
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c927
call fcn.0040cd20
mov eax, dword [0x41fa88]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40c919
nop
lea esi, [esi]
call fcn.0040c140
mov eax, dword [0x41fa88]
jmp 0x40c919
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40ca10
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 esi, dword [edi + 0xc]
test esi, esi
je 0x40caa2
mov eax, dword [0x41fa88]
test eax, eax
je 0x40ca96
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40cb11
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40cab7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040c660
cmp eax, 7
jne 0x40cb2f
mov eax, dword [0x41fa88]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40cb02
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40cb20
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40cae3
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 fcn.0040cd20
mov eax, dword [0x41fa88]
jmp 0x40ca32
mov dword [esp], edi
call fcn.0040c4d0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
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 0x40ca47
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 0x40ca85
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ca85
call fcn.0040cd20
mov eax, dword [0x41fa88]
jmp 0x40ca70
call fcn.0040c140
mov eax, dword [0x41fa88]
jmp 0x40ca3d
call fcn.0040c140
mov eax, dword [0x41fa88]
jmp 0x40ca7b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40d030
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00411ec0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x10039ef
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1003a81
cmp dword [ebp + 0x10], ebx
je 0x1003a81
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a64
cmp dword [ebp - 8], 4
jne 0x1003a57
push dword [ebp - 4]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 4]
add eax, 0x20
push dword [ebp + 0x10]
push 0x1001348
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x14
jmp 0x1003a81
cmp byte [ebp + 0x14], bl
je 0x1003a81
push edi
push 0x100131c
jmp 0x1003a6f
cmp byte [ebp + 0x14], bl
je 0x1003a81
push edi
push 0x10012f4
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
pop edi
pop ebx
leave
ret 0x10

Function at 0x1003a8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100a018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], 0x208
test esi, esi
je 0x1003b65
test ebx, ebx
je 0x1003b65
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003b47
cmp dword [ebp - 0x214], 1
je 0x1003b26
cmp dword [ebp - 0x214], 2
je 0x1003b26
cmp byte [ebp + 0x14], al
je 0x1003b65
push esi
push 0x100131c
jmp 0x1003b53
lea eax, [ebp - 0x210]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push 0x1001360
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
jmp 0x1003b65
cmp byte [ebp + 0x14], 0
je 0x1003b65
push esi
push 0x10012f4
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010055b7
leave
ret 0x10
Function at 0x1003b7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
cmp dword [ebp + 0xc], ebx
je 0x1003bf2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [0x100a008]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003bd8
cmp dword [ebp - 4], 4
je 0x1003bc4
cmp dword [ebp - 4], 3
jne 0x1003bd8
cmp dword [ebp - 8], ebx
setne al
cmp al, bl
je 0x1003bd8
push dword [ebp + 0xc]
push 0x1001398
jmp 0x1003be0
push dword [ebp + 0xc]
push 0x1001370
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
pop ebx
leave
ret 8