joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455c84
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x455c96
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a29c
mov eax, dword [0x45e8ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x456028
mov eax, dword [0x45e8b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x456034
mov eax, ebx
call fcn.00456040
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4514e8
push eax
push 0
push 0
mov eax, dword [0x45ea08]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ef44]
call fcn.00420464
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ef44]
call fcn.00420464
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ef44]
call fcn.00420464
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004564b8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456388
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456388
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456388
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455dd3
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45616c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456317
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4562f8
mov dl, 1
mov eax, dword [0x4123dc]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4562e7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004478c4
test al, al
je 0x4562da
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x456328
lea eax, [ebp - 0x254]
call fcn.00409348
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4562da
xor eax, eax
push ebp
push 0x4562d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x456360
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4562bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4562bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4562da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4561dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004160b4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45631e
lea eax, [ebp - 0x260]
call fcn.00404814
ret

Function at 0x456c90
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463c94]
cmp byte [eax + 0xad], 0
jne 0x456d01
cmp dword [0x463cb0], 0
jne 0x456cc2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456c4c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463cb0], eax
cmp dword [0x463cac], 0
jne 0x456cdd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463cac], eax
cmp dword [0x463cb4], 0
jne 0x456d01
push esp
push 0
push 0
push 0x456bf0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463cb4], eax
pop edx
ret
Function at 0x456f04
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456f1b
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a29c
mov eax, dword [0x45e9f4]
cmp word [eax + 2], 0
jne 0x456f43
mov eax, dword [0x45e9f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458c4c
mov eax, dword [0x45ea9c]
cmp word [eax + 2], 0
jne 0x456f5d
mov eax, dword [0x45ea9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458e58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411fb8]
call fcn.004039d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f720]
call fcn.004255ec
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x457114
mov eax, dword [0x45e914]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004259c0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45951c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e914]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cb80
test eax, eax
je 0x457064
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbb4
test eax, eax
je 0x457078
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x4586d8
call fcn.0041b418
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45e814]
cmp byte [eax], 0
jne 0x4570c9
mov eax, ebx
call fcn.00457258
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00459700
mov eax, ebx
call fcn.0045a264
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457109
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4574d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x457577
cmp dword [ebx + 0x94], 0
jne 0x457571
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457460
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457571
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457537
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457571
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041435c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457546
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457790
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x463c94]
cmp dword [eax + 0x30], 0
je 0x4578ed
test bl, bl
jne 0x45783e
cmp dword [esi + 0x9c], 0
jne 0x457833
mov eax, esi
call fcn.0045a0e0
push eax
push 0x4576bc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x457804
mov eax, dword [0x463c94]
call fcn.0045a7c0
test al, al
je 0x457804
mov eax, dword [0x463cb8]
call fcn.00405708
mov edi, eax
cmp edi, 0
jl 0x457804
push 0
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4577ee
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x457833
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041435c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x457813
inc dword [esi + 0x9c]
jmp 0x4578ed
cmp dword [esi + 0x9c], 0
jle 0x4578ed
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4578ed
cmp dword [esi + 0x44], 0
je 0x457899
mov eax, dword [0x463c94]
call fcn.0045a7c0
test al, al
je 0x457899
mov eax, dword [0x463cb8]
call fcn.00405708
mov edi, eax
cmp edi, 0
jl 0x457899
push 5
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x457883
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4578c8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041435c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4578a8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x463cb8
mov ecx, 1
mov edx, dword [0x45769c]
call fcn.004058bc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4583d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45843e
mov eax, ebx
call fcn.0045a7c0
test al, al
jne 0x45843e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45842b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45844b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x45844b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4598e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459952
mov eax, esi
call fcn.004424f4
test al, al
je 0x459952
mov eax, dword [ebx + 0x84]
call fcn.00442154
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459952
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x459946
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442154
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439fd4
jmp 0x459952
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00459720
pop esi
pop ebx
ret

Function at 0x45ad00
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x45ad82
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x45ad8c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x45ad48
mov dword [esp + 0x18], 2
jmp 0x45ad4e
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x45ada0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov esi, ecx
mov ebp, edx
mov dword [esp], eax
mov al, 1
call fcn.0045ad00
mov edi, ebp
mov eax, edi
test eax, eax
je 0x45adc2
sub eax, 4
mov eax, dword [eax]
add eax, eax
inc eax
call fcn.00402e50
mov ebx, eax
mov eax, edi
test eax, eax
je 0x45add7
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, ebp
call fcn.0040569c
test esi, esi
jbe 0x45adef
mov dword [esp + 4], esi
jmp 0x45adfd
lea ecx, [esp + 4]
xor edx, edx
mov eax, dword [esp]
call fcn.0045ab8c
mov eax, dword [esp + 4]
push eax
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov edi, eax
add edi, edi
push 4
push 0x1000
push edi
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push edi
push ebx
push ebp
push esi
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45ae7c
push 0x45aea0
push 0x45aeb0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push ebp
push edi
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov dword [esp + 8], eax
mov esi, dword [esp + 8]
push 0xffffffffffffffff
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, ebx
call fcn.00402e6c
mov eax, esi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4073f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov eax, dword [esi + 0x100]
push 0x79
push ebx
push 0x1036
push eax
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
push 0x6b
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], 0xf
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x96
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x100]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push edx
push ebx
push 0x101b
push eax
call edi
push 0x6c
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x78
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x100]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push edx
push 1
push 0x101b
push eax
call edi
push 0x6d
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x78
mov dword [esp + 0x28], 2
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x100]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push edx
push 2
push 0x101b
push eax
call edi
push 0x6e
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x78
mov dword [esp + 0x28], 3
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x100]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push edx
push 3
push 0x101b
push eax
call edi
push 0x6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x23a
mov dword [esp + 0x28], 4
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + 0x100]
lea edx, [esp + 0x10]
push edx
push 4
push 0x101b
push eax
call edi
mov edx, dword [esi + 0x100]
lea ecx, [esp + 0x10]
push ecx
push 5
push 0x101b
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 5
mov dword [esp + 0x2c], 0x40b778
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x404c00
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4078c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov esi, ecx
lea ebp, [esi + 0x178]
mov ecx, 0x11
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1bc]
mov dword [ebp], 0x44
mov ecx, edi
mov dword [esp + 0x18], 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esi + 0x1a4], 1
mov word [esi + 0x1a8], ax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edi
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
mov byte [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404cc2
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi]
push 0x1f4
push ecx
call ebp
cmp eax, 0x102
jne 0x404caf
mov ecx, esi
call fcn.00404a30
jmp 0x404c95
test eax, eax
jne 0x404c95
mov ecx, esi
call fcn.00404a30
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x404d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4078f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x30]
push 0
push 0x30
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x404e03
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x404dfa
add esi, 0xe0
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00406860
test eax, eax
je 0x404de8
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [eax + 0xc4]
lea edx, [esp + 4]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x404dbd
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00406d2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4051b0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x407968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x14c]
mov dword [esp + 0x14], 0
test eax, eax
mov dword [esi + 0x144], 0
jne 0x405245
mov eax, dword [esi + 0x174]
push ebx
push str.PSP_OUTPUT
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push 0
push edx
call ebx
mov eax, dword [esp + 0xc]
push str.100MNV01_
lea edi, [esi + 0x140]
push eax
push str._s_s
push edi
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
add esp, 0x10
push 0
push edi
call ebx
pop ebx
jmp 0x405275
cmp eax, 1
jne 0x405275
mov ecx, dword [esi + 0x174]
push str.IPOD_OUTPUT_
lea edi, [esi + 0x140]
push ecx
push str._s_s
push edi
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
add esp, 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
mov ecx, esi
call fcn.004044d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405cb0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x405e0a
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405ccc
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x405e0a
mov al, byte [esp + 0x10]
cmp al, 0x41
jl 0x405cf9
cmp al, 0x5a
jle 0x405d09
cmp al, 0x61
jl 0x405e0a
cmp al, 0x7a
jg 0x405e0a
cmp byte [esp + 0x11], 0x3a
jne 0x405e0a
cmp byte [esp + 0x12], 0x5c
jne 0x405e0a
cmp ecx, 3
jne 0x405d60
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x405d53
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x405d53
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov al, byte [esp + 0x13]
mov esi, 3
test al, al
mov edi, 1
je 0x405df8
mov ebx, dword [sym.imp.MSVCRT.dll__access]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x13]
mov ecx, eax
mov al, byte [eax]
test al, al
je 0x405d9b
cmp al, 0x5c
je 0x405d9b
mov al, byte [esp + esi + 0x11]
inc esi
test al, al
jne 0x405d8e
mov al, byte [esp + esi + 0x10]
xor edx, edx
test al, al
sete dl
push ecx
mov edi, edx
mov byte [esp + esi + 0x14], 0
call fcn.00405a10
add esp, 4
test eax, eax
je 0x405e0a
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x405de2
lea eax, [esp + 0x10]
push 0
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x405d43
test edi, edi
jne 0x405df8
mov byte [esp + esi + 0x10], 0x5c
inc esi
mov cl, byte [esp + esi + 0x10]
lea eax, [esp + esi + 0x10]
test cl, cl
jne 0x405d86
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret