joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044660
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x11], 0
je 0x10044682
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x38]
inc eax
xor byte [edx], cl
cmp eax, 0x10
jb 0x10044670
mov byte [esi + 0x11], 0
mov eax, esi
pop esi
ret

Function at 0x10044700
Capabilities:
Create thread
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100490fe
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10053040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], 0
jne 0x10044851
push 0x1004a48a
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10001d80
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 1
push eax
push 0
push 0
push 0x1004fc68
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.10044b60
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 3
cmp ecx, 0xf
jbe 0x100447c2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100447b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100447b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10047b68
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.100449f0
call fcn.1003a0c0
add esp, 0x18
test al, al
je 0x10044872
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x64
push 0x232
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
push 0
push 0
push 0x10044690
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10044851
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10044847
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10044847
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10047b68
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047730
mov esp, ebp
pop ebp
ret 0xc
movaps xmm0, xmmword [0x100505a0]
lea ecx, [ebp - 0x3c]
push 0x10
push str.COMBOT_INC
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x2c], pe_nt_image_headers32
call fcn.10044660
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x10044e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10045050
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10044f5d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10044eda
mov eax, dword [ebp - 4]
cmp eax, dword [0x10053004]
ja 0x10044eda
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10044eaa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10044f00
jmp 0x10044f5d
cmp dword [ebp - 0x14], 0x10000
jne 0x10044f43
cmp dword [ebp - 0x18], 0x10000
jb 0x10044f43
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10044f36
mov eax, dword [ebp - 8]
jmp 0x10044f5f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10044f58
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10045050
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10044eaa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10044f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10045080
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10045045
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10044fc5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10053004]
ja 0x10044fc5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10044f95
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10044feb
jmp 0x10045045
cmp dword [ebp - 0x14], 0x10000
jne 0x1004502e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004502e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10045021
mov eax, dword [ebp - 8]
jmp 0x10045047
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10045040
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10045080
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10044f95
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40341b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [section..data], 0xffffffff
jne 0x403434
mov eax, 0x4d96ec
jmp 0x40356e
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x403456
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403466
mov eax, 0x4d96ec
jmp 0x40356e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40347f
mov eax, 0x4d96ec
jmp 0x40356e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax], 0
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x40356b
mov ecx, dword [ebp - 0xc]
call fcn.0047e16a
test eax, eax
je 0x4034f0
mov ecx, dword [ebp - 0xc]
call fcn.0047e16a
push eax
call fcn.004aed70
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
cmp eax, 0x1000
jl 0x4034c9
jmp 0x40356b
mov ecx, dword [ebp - 0xc]
call fcn.0047e16a
push eax
push dword [ebp - 4]
call fcn.004afef0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x403527
mov dword [ebp - 0x18], 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
cmp eax, 0x1000
jl 0x403506
jmp 0x40356b
push 0x4da018
push dword [ebp - 4]
call fcn.004afef0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
cmp eax, 0x1000
jl 0x40353d
jmp 0x40356b
push 0x4da020
push dword [ebp - 4]
call fcn.004afef0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x40348f
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x404209
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.004b0380
cmp dword [section..data], 0xffffffff
je 0x40436b
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404345
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x404343
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x40427b
push str.0__pRFHead__lActiveStackBasedObjects
push str.DEBUG
push 0x4af
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x4042b6
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push str._ld_missing_stack_based_destructor_calls_detected
lea eax, [ebp - 0x2008]
push eax
call fcn.00404e5d
add esp, 0xc
push eax
push str.DEBUG
push 0x4b2
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004046ac
add esp, 0x10
mov eax, dword [ebp - 4]
cmp eax, dword [0x51eeb4]
jne 0x4042c8
and dword [0x51eeb4], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x404306
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x404306
push str.HeapFree_Failed_
push str.DEBUG
push 0x4b7
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004046ac
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.00402428
pop ecx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x404343
push str.TlsSetValue_failed_
push str.DEBUG
push 0x4bc
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004049b8
add esp, 0x10
jmp 0x40436b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40436b
push str.NO_ERROR__GetLastError__
push str.DEBUG
push 0x4c1
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004044d6
add esp, 0x10
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [section..data], 0xffffffff
je 0x404401
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4043ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
jmp 0x404401
push 0x18
call fcn.0040245f
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
push dword [ebp - 4]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov esp, ebp
pop ebp
ret
Function at 0x404f76
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and dword [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
call fcn.0040436f
cmp eax, 0xffffffff
jne 0x404fad
jmp 0x405022
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x404fff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
je 0x404fe2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0xc], eax
jmp 0x405022
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405022
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x38
push str.D:projectsUTIL_src_rf.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x40502b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and dword [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
call fcn.0040436f
cmp eax, 0xffffffff
jne 0x405064
jmp 0x4050d9
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x4050b6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
je 0x405099
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0xc], eax
jmp 0x4050d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4050d9
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x4d
push str.D:projectsUTIL_src_rf.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4052c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + 8]
mov byte [eax + 8], cl
call fcn.00403411
movzx eax, al
test eax, eax
je 0x405345
call fcn.0040436f
cmp eax, 0xffffffff
je 0x405345
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40531f
push dword [ebp - 4]
call fcn.00428e8a
pop ecx
movzx eax, al
test eax, eax
je 0x40531d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
jmp 0x405345
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405345
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x200
push str.D:projectsUTIL_srcgstring.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [eax], 0x51f0fc
mov eax, dword [ebp - 4]
and dword [eax + 4], 0
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [eax + 0x51f0fc]
test eax, eax
je 0x40537d
push 0x203
push str.D:projectsUTIL_srcgstring.cpp
push str.___stbuf_0_
call fcn.00403b39
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 8]
call fcn.004085af
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4053cb
mov eax, dword [ebp - 8]
inc eax
push eax
mov ecx, dword [ebp - 4]
call fcn.00408af1
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.004ae720
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4053d4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0xff
call fcn.00403411
movzx eax, al
test eax, eax
je 0x405454
call fcn.0040436f
cmp eax, 0xffffffff
je 0x405454
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40542e
push dword [ebp - 4]
call fcn.00428e8a
pop ecx
movzx eax, al
test eax, eax
je 0x40542c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x405454
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405454
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x20f
push str.D:projectsUTIL_srcgstring.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [eax], 0x51f0fc
mov eax, dword [ebp - 4]
and dword [eax + 4], 0
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [eax + 0x51f0fc]
test eax, eax
je 0x40548c
push 0x212
push str.D:projectsUTIL_srcgstring.cpp
push str.___stbuf_0_
call fcn.00403b39
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov byte [eax + ecx], 0
cmp dword [ebp + 8], 0
je 0x4054da
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + eax]
test eax, eax
je 0x4054da
push dword [ebp + 8]
call fcn.004aed70
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov ecx, dword [ebp - 4]
call fcn.00408af1
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.004afef0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4054e3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0xff
call fcn.00403411
movzx eax, al
test eax, eax
je 0x405562
call fcn.0040436f
cmp eax, 0xffffffff
je 0x405562
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40553c
push dword [ebp - 4]
call fcn.00428e8a
pop ecx
movzx eax, al
test eax, eax
je 0x40553a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x405562
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405562
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x1f7
push str.D:projectsUTIL_srcgstring.cpp
call fcn.004044d6
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [eax], 0x51f0fc
mov eax, dword [ebp - 4]
and dword [eax + 4], 0
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [eax + 0x51f0fc]
test eax, eax
je 0x40559a
push 0x1fa
push str.D:projectsUTIL_srcgstring.cpp
push str.___stbuf_0_
call fcn.00403b39
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4055b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
call fcn.00403411
movzx eax, al
test eax, eax
je 0x405628
call fcn.0040436f
cmp eax, 0xffffffff
je 0x405628
call fcn.0040436f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405602
push dword [ebp - 8]
call fcn.00428e8a
pop ecx
movzx eax, al
test eax, eax
je 0x405600
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
jmp 0x405628
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405628
push str.NO_ERROR__GetLastError__
push 0x4da680
push 0x22d
push str.D:projectsUTIL_srcgstring.cpp
call fcn.004044d6
add esp, 0x10
mov ecx, dword [ebp - 8]
call fcn.00406f8f
mov esp, ebp
pop ebp
ret
Function at 0x40a406
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
push str.GDIRENTRY::operator
lea ecx, [ebp - 0x24]
call fcn.00404f76
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [eax + 0x10], ecx
push 8
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call fcn.004ae720
add esp, 0xc
push 8
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call fcn.004ae720
add esp, 0xc
push 8
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x24
push eax
call fcn.004ae720
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x20]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x24]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x38], ecx
push 0x104
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x3c
push eax
call fcn.004ae720
add esp, 0xc
push 0xe
mov eax, dword [ebp + 8]
add eax, 0x130
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x140
push eax
call fcn.004ae720
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a586
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xce
je 0x40a5d3
cmp dword [ebp - 0x10], 3
jne 0x40a63e
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4dadf4
lea eax, [ebp - 0x35]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.004294f4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
call fcn.0042acdf
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00429657
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35]
call fcn.004055b0
mov eax, dword [ebp - 0x24]
jmp 0x40a645
xor eax, eax
jmp 0x40a645
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a653
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40a689
xor eax, eax
inc eax
jmp 0x40a721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
push 0x4dadf4
lea eax, [ebp - 0x39]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.004294f4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.0042acdf
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a6e7
mov dword [ebp - 0x14], 1
jmp 0x40a6eb
and dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00429657
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x39]
call fcn.004055b0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40a71e
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40a721
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret