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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004b2135
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4b20f2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b20e4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp edx, 3
jge 0x4b20e4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x4b20af
mov edx, dword [ebp - 0xc]
push edx
call fcn.004a1a72
add esp, 4
jmp 0x4b2127
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b2127
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp ecx, 3
jge 0x4b2127
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
test eax, eax
jne 0x4b20f2
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xa
mov esp, ebp
pop ebp
ret

Function at 0x4b2209
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b2135
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b224e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call fcn.004a1a72
add esp, 4
jmp 0x4b2263
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b2522
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
cmp dword [0x51c864], 0
je 0x4b2554
push 0x118
mov eax, dword [0x51c864]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00469bb0
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x4b25cf
call fcn.004b21bd
test eax, eax
je 0x4b25bd
lea edx, [ebp - 0x3ac]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3ac]
push eax
call fcn.004b26c6
add esp, 4
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
je 0x4b25bb
push 0x118
mov ecx, dword [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.00469bb0
add esp, 0xc
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.004a1a72
add esp, 4
jmp 0x4b25cf
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x13c]
push edx
call fcn.0046be50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4b25ec
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4b2604
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x13d]
cmp edx, 0x5c
jne 0x4b2604
jmp 0x4b25e3
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x13c], 0
lea ecx, [ebp - 0x13c]
push ecx
push str._s_sqlite_
mov edx, dword [ebp + 8]
push edx
call fcn.00463360
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0046be50
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
push ecx
push 0xf
call fcn.004bf490
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4b266e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp - 4], 0xf
jge 0x4b269d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x140]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x4b2656
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x140]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b2209
add esp, 4
test eax, eax
jne 0x4b26bb
jmp 0x4b26c0
jmp 0x4b260f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4b297c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4b298c
xor eax, eax
jmp 0x4b2a07
call fcn.004b21bd
test eax, eax
jne 0x4b29ac
mov eax, dword [ebp + 8]
push eax
call fcn.0046be50
add esp, 4
cmp eax, 0x104
jbe 0x4b29ac
xor eax, eax
jmp 0x4b2a07
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b2135
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b29dc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a1a72
add esp, 4
jmp 0x4b29e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b29f3
xor eax, eax
jmp 0x4b2a07
mov edx, dword [ebp - 8]
and edx, 0x10
cmp edx, 0x10
je 0x4b2a02
xor eax, eax
jmp 0x4b2a07
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4b3004
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x51c86c], 0
jne 0x4b304e
call fcn.004b2f7c
cmp dword [0x51c86c], 0
jne 0x4b3049
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x51c858], eax
cmp dword [0x51c858], 0xffffffff
jne 0x4b303f
call fcn.004b2f8e
xor eax, eax
jmp 0x4b30f3
mov dword [0x51c86c], 1
call fcn.004b2f8e
mov eax, dword [0x51c858]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jle 0x4b30ab
cmp dword [ebp - 4], 0
jne 0x4b30a9
push 0xc
call fcn.004b2040
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b30a9
mov ecx, dword [ebp - 4]
mov edx, dword [0x4f3500]
mov dword [ecx], edx
mov eax, dword [0x4f3504]
mov dword [ecx + 4], eax
mov edx, dword [0x4f3508]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x51c858]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4b30f0
cmp dword [ebp - 4], 0
je 0x4b30f0
cmp dword [ebp + 8], 0
jge 0x4b30f0
push 0xc
push 0x4f3500
mov edx, dword [ebp - 4]
push edx
call fcn.00486c10
add esp, 0xc
test eax, eax
jne 0x4b30f0
mov eax, dword [ebp - 4]
push eax
call fcn.004b2075
add esp, 4
push 0
mov ecx, dword [0x51c858]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4c0115
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 2
jge 0x4c012b
mov eax, 0x17
jmp 0x4c01dd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [ecx + 0x4f3388]
mov eax, edx
shl eax, 2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx - 1]
xor ecx, ecx
mov cl, byte [edx + 0x4f3388]
imul ecx, ecx, 3
xor eax, ecx
xor eax, dword [ebp + 0xc]
cdq
mov ecx, 0x7f
idiv ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + str.Pk_]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4c0189
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x4f3abc]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jl 0x4c01d8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x4f3b30]
cmp ecx, dword [ebp + 0xc]
jne 0x4c01d6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx*2 + 0x4f3ba4]
add edx, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHERE
push edx
call fcn.004a1f44
add esp, 0xc
test eax, eax
jne 0x4c01d6
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x4f3c8c]
mov eax, ecx
jmp 0x4c01dd
jmp 0x4c0178
mov eax, 0x17
mov esp, ebp
pop ebp
ret
Function at 0x4c7270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4c7281
xor eax, eax
jmp 0x4c73d5
push 1
push 0x44
call fcn.004a19b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c729d
xor eax, eax
jmp 0x4c73d5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 5]
mov byte [eax + 5], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004c6ec4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004c6ffc
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004c6d50
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.004c6ec4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004c6d50
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.004c6ec4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004c7270
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.004c6d50
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.004c6d50
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], 0xffffffff
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 6]
mov byte [edx + 6], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 7]
mov byte [edx + 7], cl
mov edx, dword [ebp - 4]
mov byte [edx + 8], 0
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7386f31
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4e174a21
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f66b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, 0x514ba4
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov ecx, 0x514b90
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x74]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x7c]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401106
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f66b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, 0x514ba4
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov ecx, 0x514b90
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x74]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x7c]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f68d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ebp, dword [edi + 8]
sub esp, 0x1c
lea edx, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x38], 0
mov dword [esi], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x48]
lea ecx, [esi + 0xc]
push eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x34], 2
push ecx
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x50]
lea ecx, [esi + 0x14]
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x54]
push ebp
mov ecx, edi
mov dword [esi + 0x18], eax
mov byte [esp + 0x38], 0
call fcn.00402330
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 0x1c
Function at 0x4129e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4fa159
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0049c130
lea ecx, [esi + 0x74]
mov dword [esp + 0x40], 0
call fcn.00477f80
push 0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x44], 1
call fcn.004f40d0
push 0
lea ecx, [esi + 0x118]
mov byte [esp + 0x44], 2
call fcn.004f31e0
push 0
lea ecx, [esi + 0x154]
mov byte [esp + 0x44], 3
call fcn.004f3030
push 0
lea ecx, [esi + 0x190]
mov byte [esp + 0x44], 4
call fcn.004f2ae0
lea ebp, [esi + 0x1cc]
mov byte [esp + 0x40], 5
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x515ae8
mov eax, dword [edi + 0x80]
push 0
push eax
mov byte [esp + 0x48], 6
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x412aa5
mov eax, dword [edi + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ecx, ecx
mov al, byte [0x54aebc]
mov dword [esp + 0x21], ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
lea ecx, [esp + 0x10]
call fcn.004c84b4
add edi, 0x84
push str.DISKID
lea edx, [esp + 0x4c]
push edi
push edx
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 8
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x48]
mov edi, eax
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x412b40
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
push 0x14
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.004c8322
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 6
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x412fe0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa248
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, ecx
push esi
push edi
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebx + 0x6c]
mov esi, dword [esp + 0x34]
add eax, 0x38
mov ecx, esi
push eax
call fcn.004c830a
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x41303d
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x413116
mov ecx, dword [ebx + 0x6c]
cmp dword [ecx + 0xa8], 2
jne 0x4130a8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push ebp
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.00412e30
test eax, eax
jne 0x41308c
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x30]
mov ecx, edi
push eax
call fcn.004c8322
push edi
call fcn.00492640
add esp, 4
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4130c4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
push ecx
push edx
push str._04X_08lX_
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push edi
lea eax, [esp + 0x3c]
push esi
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
lea ecx, [esp + 0x38]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
test ebx, ebx
je 0x413136
push edi
lea ecx, [esp + 0x38]
push esi
push ecx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
lea ecx, [esp + 0x34]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413136
mov esi, dword [esp + 0x20]
push 0xa6
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
xor eax, eax
jmp 0x41313b
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x20
Function at 0x418aa0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4fae55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0049c130
push 0
lea ecx, [esi + 0x74]
mov dword [esp + 0x80], 0
call fcn.004f40d0
push 0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x80], 1
call fcn.004f3030
push 0
lea ecx, [esi + 0xec]
mov byte [esp + 0x80], 2
call fcn.004f2ae0
lea ebp, [esi + 0x128]
mov byte [esp + 0x7c], 3
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
push 0
lea ecx, [esi + 0x12c]
mov byte [esp + 0x80], 4
call fcn.0047bff0
mov dword [esi], 0x515dec
mov eax, dword [edi + 0x80]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x418b5f
mov eax, dword [edi + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x3c]
call fcn.004f31e0
mov eax, dword [edi + 0x80]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0x80], 5
call fcn.004f4060
lea ecx, [esp + 0x38]
call fcn.004f4050
xor ecx, ecx
mov al, byte [0x54aebc]
mov dword [esp + 0x21], ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
lea ecx, [esp + 0x10]
call fcn.004c84b4
add edi, 0x84
push str.DISKID
lea edx, [esp + 0x88]
push edi
push edx
mov byte [esp + 0x88], 6
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 7
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x84]
mov edi, eax
mov byte [esp + 0x7c], 6
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x418c32
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
push 0x14
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.004c8322
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 4
call fcn.004f3200
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x74
ret 4