joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100856c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10085500
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1008578b
mov dword [ebp - 4], 0
jmp 0x1008571c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1008578b
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10087f83
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10085789
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.10087f83
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10085320
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10087f83
jmp 0x10085713
pop esi
add esp, 8
cmp ebp, esp
call fcn.10087f83
mov esp, ebp
pop ebp
ret

Function at 0x100857a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1008584b
mov dword [ebp - 4], 0
jmp 0x100857d3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x1008582e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10087f83
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1008582c
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.10087f83
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10087f83
jmp 0x100857ca
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x100af1d8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.10087f83
pop esi
add esp, 8
cmp ebp, esp
call fcn.10087f83
mov esp, ebp
pop ebp
ret
Function at 0x10085860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x100b6700]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x100858c3
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10087f83
test eax, eax
jne 0x100858ee
mov eax, 0xa
jmp 0x100859f0
cmp dword [ebp + 0xc], 0
je 0x1008593a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10085938
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x10085976
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10085961
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10085976
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10087f83
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.10087f83
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.10087f83
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10085a14]
call fcn.10087f2f
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.10087f83
mov esp, ebp
pop ebp
ret
Function at 0x100860f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x100b66f4]
mov dword [ebp - 4], eax
jmp 0x10086117
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10086130
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1008612e
mov eax, dword [ebp - 4]
jmp 0x100861b4
jmp 0x1008610f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10087f83
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100861b1
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x10086173
mov edx, dword [ebp - 4]
mov eax, dword [0x100b66f4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100b66f4], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.10087f83
mov esp, ebp
pop ebp
ret

Function at 0x100866a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x100866f0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x100866f0
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x100866f0
xor eax, eax
jmp 0x10086731
mov dword [ebp - 4], 1
jmp 0x10086702
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1008672c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x1008672a
xor eax, eax
jmp 0x10086731
jmp 0x100866f9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1008902a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10089051
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10089054
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10089006
pop esi
leave
ret 8
Function at 0x407430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407452
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407448
mov eax, 1
add ebx, ebx
jne 0x40746b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40747c
jne 0x40749b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40749b
dec eax
add ebx, ebx
jne 0x407488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x407460
add ebx, ebx
jne 0x407497
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4074ed
xor ecx, ecx
sub eax, 3
jb 0x4074b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407522
sar eax, 1
mov ebp, eax
jmp 0x4074be
add ebx, ebx
jne 0x4074be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40748c
inc ecx
add ebx, ebx
jne 0x4074cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40748c
add ebx, ebx
jne 0x4074d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4074ce
jne 0x4074ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4074ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40750c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4074fe
jmp 0x40744e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40750c
add edi, ecx
jmp 0x40744e
pop esi
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407574
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7370]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x73ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407529
mov ecx, edi
jns 0x407558
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x73b0]
or eax, eax
je 0x40756e
mov dword [ebx], eax
add ebx, 4
jmp 0x407546
call dword [esi + 0x73c0]
mov ebp, dword [esi + 0x73b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4075a8
sub esp, 0xffffff80
jmp 0x4010e0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x1004e20
Capabilities:
Packed with generic packer

Disassembly:
popal
je 0x1004e86
add byte [eax], al
add al, al
or eax, dword [eax]
add byte [eax], al
inc eax
add dword [eax], eax
add byte [esi], al
add byte [eax], al
add byte [eax], bl
add dword [eax], eax
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
inc eax
jb 0x1004f00
Function at 0x4025a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x406557
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::Empty
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, 0x43
mov byte [esp + 0x18], bl
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::operator
push 0x409c80
lea ecx, [esp + 0x18]
call fcn.00406036
lea eax, [esp + 0x14]
push 0x409c7c
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x1c]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, 3
je 0x40264a
inc bl
cmp bl, 0x5a
mov byte [esp + 0x18], bl
jle 0x4025f8
jmp 0x402662
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x409c78
lea ecx, [esp + 0x14]
call fcn.00406036
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x402a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4065c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], 0
call sub.MFC42.DLL_CFile::CFile
lea eax, [esp + 0x160]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x15c]
mov byte [esp + 0x154], 2
cmp ebp, 6
jne 0x402a66
mov edi, 0xdc
jmp 0x402a80
cmp ebp, 0xc
jne 0x402a72
mov edi, 0xe6
jmp 0x402a80
cmp ebp, 0x12
mov edi, 0x117
je 0x402a80
mov edi, dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x409cf8
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00406018
lea ecx, [esp + 0x28]
push 0xa
push ecx
push edi
mov byte [esp + 0x160], 3
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
call fcn.00406018
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 4
call fcn.0040607e
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402b2a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 0x1001
push 0
lea ecx, [esp + 0x16c]
mov edi, eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402b7b
lea ecx, [esp + 0xc]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 0
call fcn.00406048
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402c45
mov edx, dword [esp + 0x18]
push 0
push 0
lea ecx, [esp + 0x20]
call dword [edx + 0x30]
cmp ebp, 0x12
push 0xe
je 0x402ba6
push str.BM8e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
push 0x1b29
jmp 0x402bb9
push str.BM6_r
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
push 0xd27
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CFile::SetStatus
lea ecx, [esp + 0xc]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 0
call fcn.00406048
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14c
ret
Function at 0x402e10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x406658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ebp
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::operator_2
push 0
push 0x409c7c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0xc]
push eax
push 0x409c7c
call sub.MFC42.DLL_CString::Find
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
mov esi, eax
cmp esi, 0xffffffff
je 0x402ed9
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call edi
add esp, 4
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x409c7c
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x402e85
push ebp
call edi
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404bb0
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00404b70
mov ebp, dword [esp + 0x20]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + edx + 0x1e]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
test esi, esi
jne 0x404c17
push 0
push str.Fatal_Error
push str.Cannot_properly_report_error.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
push edx
push ebp
push ebx
push str.Error__d:__s._n_r_s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404c50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00404bb0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404c70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00404bb0
add esp, 4
call fcn.00404f60
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404e60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
mov eax, dword [0x40ca5c]
mov ecx, dword [0x40ca60]
mov edx, dword [0x40ca64]
mov dword [esp], eax
mov eax, dword [0x40c9b4]
push ebx
push edi
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
push 1
push edx
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
cmp ebx, 2
jbe 0x404f1a
cmp ebx, 0x102
jne 0x404f30
mov eax, dword [0x40ca5c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, ebx
jne 0x404ed3
push str.Reader_Status_Thread_didnt_exit._n_r
call edi
mov ecx, dword [0x40ca60]
push 0
push ecx
call esi
cmp eax, 0x102
jne 0x404eec
push str.Writer_Thread_didnt_exit._n_r
call edi
mov edx, dword [0x40ca64]
push 0
push edx
call esi
cmp eax, 0x102
pop esi
jne 0x404f3d
push str.Timer_Thread_didnt_exit.__n_r
call edi
mov eax, dword [0x40c9b4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
mov eax, dword [0x40c9b4]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
push str.WaitForMultipleObjects
call fcn.00404bb0
add esp, 4
mov eax, dword [0x40c9b4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x460e20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x55929b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0054a25d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x460ea2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00546cb1
mov eax, dword [eax]
push 0x655d94
push eax
call fcn.00537ab4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0054a4e8
test bl, bl
je 0x460ea2
push 0x655d94
lea ecx, [esp + 0xc]
call fcn.0054a878
push 0x655da0
lea ecx, [esp + 0xc]
call fcn.0054a878
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x460ede
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0054a4e8
jmp 0x460fa9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x460f62
lea edx, [esp + 0x7c]
push 0x655d9c
push edx
call fcn.00537ab4
add esp, 8
test eax, eax
je 0x460f62
lea eax, [esp + 0x7c]
push 0x655d98
push eax
call fcn.00537ab4
add esp, 8
test eax, eax
je 0x460f62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x460ef2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0054a4e8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x462220
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x462282
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc