joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f1c010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1966000]
push edi
or ebp, 0xffffffff
jmp 0x1f1c032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f1c039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f1c028
mov eax, 1
add ebx, ebx
jne 0x1f1c04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f1c05c
jne 0x1f1c07b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f1c07b
dec eax
add ebx, ebx
jne 0x1f1c068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f1c040
add ebx, ebx
jne 0x1f1c077
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f1c0cd
xor ecx, ecx
sub eax, 3
jb 0x1f1c093
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f1c102
sar eax, 1
mov ebp, eax
jmp 0x1f1c09e
add ebx, ebx
jne 0x1f1c09e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f1c06c
inc ecx
add ebx, ebx
jne 0x1f1c0ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f1c06c
add ebx, ebx
jne 0x1f1c0b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f1c0ae
jne 0x1f1c0ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f1c0ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f1c0ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f1c0de
jmp 0x1f1c02e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f1c0ec
add edi, ecx
jmp 0x1f1c02e
pop esi
mov edi, esi
mov ecx, 0x4ca7b1
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1f1c127
cmp byte [edi], 0x25
jne 0x1f1c10c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1f1c10a
lea edi, [esi + 0x1ae0000]
mov eax, dword [edi]
or eax, eax
je 0x1f1c16f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f9b3b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f9b4e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f1c12d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f9b4ec]
or eax, eax
je 0x1f1c169
mov dword [ebx], eax
add ebx, 4
jmp 0x1f1c14a
call dword [esi + 0x2f9b4e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1f1c1a0
cmp al, 0xef
ja 0x1f1c193
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1f1c175
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1f1c182
mov ebp, dword [esi + 0x2f9b4f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1f1c1d4
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x40c3be
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418528]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004082ca
mov dword [ebp - 0x14], eax
cmp dword [0x43e130], esi
jne 0x40c4b1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c43e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c591
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c591
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c591
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43e130], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43e134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43e138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e140], eax
test eax, eax
je 0x40c4ae
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e13c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c4d6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c4c9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c4eb
push 4
pop eax
jmp 0x40c593
cmp dword [ebp - 0x14], esi
je 0x40c4eb
push dword [0x43e130]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c4d0
mov eax, dword [0x43e13c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c549
cmp dword [0x43e140], edi
je 0x40c549
push eax
call ebx
push dword [0x43e140]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c549
test eax, eax
je 0x40c549
call ecx
test eax, eax
je 0x40c53e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c53e
test byte [ebp - 8], 1
jne 0x40c549
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c579
mov eax, dword [0x43e134]
cmp eax, edi
je 0x40c576
push eax
call ebx
test eax, eax
je 0x40c576
call eax
mov esi, eax
test esi, esi
je 0x40c576
mov eax, dword [0x43e138]
cmp eax, edi
je 0x40c576
push eax
call ebx
test eax, eax
je 0x40c576
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43e130]
call ebx
test eax, eax
je 0x40c591
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c593
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039f0
mov esp, ebp
pop ebp
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c090]
jne 0x401abf
repz ret
jmp fcn.00402878

Function at 0x40aa9e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407675
and dword [ebp - 4], 0
cmp dword [0x461ef8], 0
mov ebx, eax
jne 0x40ab4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ac00
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ac00
push eax
call fcn.00407603
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x461ef8], eax
call esi
push eax
call fcn.00407603
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x461efc], eax
call esi
push eax
call fcn.00407603
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x461f00], eax
call esi
push eax
call fcn.00407603
pop ecx
mov dword [0x461f08], eax
test eax, eax
je 0x40ab4f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407603
pop ecx
mov dword [0x461f04], eax
mov eax, dword [0x461f04]
cmp eax, ebx
je 0x40aba7
cmp dword [0x461f08], ebx
je 0x40aba7
push eax
call fcn.0040767e
push dword [0x461f08]
mov esi, eax
call fcn.0040767e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aba7
test edi, edi
je 0x40aba7
call esi
test eax, eax
je 0x40ab9e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab9e
test byte [ebp - 0xc], 1
jne 0x40aba7
or dword [ebp + 0x10], 0x200000
jmp 0x40abe0
mov eax, dword [0x461efc]
cmp eax, ebx
je 0x40abe0
push eax
call fcn.0040767e
pop ecx
test eax, eax
je 0x40abe0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40abe0
mov eax, dword [0x461f00]
cmp eax, ebx
je 0x40abe0
push eax
call fcn.0040767e
pop ecx
test eax, eax
je 0x40abe0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x461ef8]
call fcn.0040767e
pop ecx
test eax, eax
je 0x40ac00
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ac02
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d79b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bd852c], 0x930
jne 0x40d7c2
push str.ridivizujohomalelerijuva_nazogipedijifavave
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bd852c], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bd8248], eax
jne 0x40d7fa
push str.pasesibuhapijibitemamobumofaceco_bamenolunalazoxeduceh_zijetezudihedavacagobowavawe
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea eax, [ebp - 0x1c]
push eax
push str.gijuluzibuxomavifakulaxofaxutirerijasocazitixewecetanazisofosufexejacikicoyaxahowuburokujasulununucexikowuvulanavi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret
Function at 0x4018d6
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x7fffffff
jbe 0x4018f5
push str.out_of_memory_n
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
test eax, eax
je 0x40190f
push esi
lea esi, [eax + eax]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [esp + 0xc]
shr esi, 1
mov dword [ecx], esi
pop esi
jmp 0x401911
xor eax, eax
ret 8
Function at 0x40245d
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.004016e4
lea eax, [ebp - 0xa5c]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x40a118
lea ecx, [ebp - 0x10]
call fcn.004016e4
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
push 1
push 0
lea ecx, [ebp - 0x10]
call fcn.00406637
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
sub eax, dword [esi]
test eax, 0xfffffffe
je 0x4024f4
cmp dword [ebp + 0x14], 0
push esi
je 0x4024d0
call fcn.0040724b
jmp 0x4024d5
call fcn.0040715b
test al, al
pop ecx
je 0x4024f0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4024f4
push dword [esi + 4]
lea ecx, [ebp - 0x28]
push dword [esi]
call fcn.00401586
jmp 0x4024f4
push dword [esi]
call edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x654]
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004034c5
add esp, 0x1c
test al, al
lea ebx, [ebp - 0x854]
jne 0x402549
mov ebx, dword [ebp + 0x14]
lea eax, [ebp + 0xf]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040663a
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x18]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004014d1
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00401648
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040144a
cmp dword [ebp + 0x14], 0
je 0x4025f3
lea eax, [ebp + 0x17]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040663a
lea eax, [ebp - 0x24c]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x24c]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004014d1
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401648
add esp, 0xc
push dword [eax + 4]
lea ecx, [ebp - 0x38]
push dword [eax]
call fcn.004019a6
lea ecx, [ebp - 0x4c]
call fcn.0040144a
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xa5c]
push eax
call edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.004016e4
push 1
push 0
lea ecx, [ebp - 0x38]
call fcn.00406637
lea ecx, [ebp - 0x38]
call fcn.0040144a
lea ecx, [ebp - 0x28]
call fcn.0040144a
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035b8
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x3fffffff
jbe 0x4035d7
push str.out_of_memory_n
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
test eax, eax
je 0x4035f4
push esi
mov esi, eax
shl esi, 2
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [esp + 0xc]
shr esi, 2
mov dword [ecx], esi
pop esi
jmp 0x4035f6
xor eax, eax
ret 8

Function at 0x403bba
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xfffffff
jbe 0x403bdb
push str.out_of_memory_n
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
test esi, esi
je 0x403bf4
shl esi, 4
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [esp + 0xc]
shr esi, 4
mov dword [ecx], esi
jmp 0x403bf6
xor eax, eax
pop esi
ret 8
Function at 0x4047b7
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov al, byte [edi]
mov byte [esi], al
mov al, byte [edi + 1]
mov byte [esi + 1], al
mov al, byte [edi + 2]
mov byte [esi + 2], al
mov al, byte [edi + 3]
mov byte [esi + 3], al
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov al, byte [edi + 7]
mov byte [esi + 7], al
mov al, byte [edi + 8]
mov byte [esi + 8], al
mov al, byte [edi + 9]
mov byte [esi + 9], al
mov al, byte [edi + 0xa]
mov byte [esi + 0xa], al
mov al, byte [edi + 0xb]
mov byte [esi + 0xb], al
mov al, byte [edi + 0xc]
mov byte [esi + 0xc], al
mov al, byte [edi + 0xd]
mov byte [esi + 0xd], al
mov al, byte [edi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [edi + 0xf]
mov byte [esi + 0xf], al
mov al, byte [edi + 0x10]
mov byte [esi + 0x10], al
mov al, byte [edi + 0x11]
mov byte [esi + 0x11], al
mov al, byte [edi + 0x12]
mov byte [esi + 0x12], al
mov al, byte [edi + 0x13]
mov byte [esi + 0x13], al
mov al, byte [edi + 0x14]
mov byte [esi + 0x14], al
mov al, byte [edi + 0x15]
mov byte [esi + 0x15], al
mov al, byte [edi + 0x16]
mov byte [esi + 0x16], al
mov al, byte [edi + 0x17]
mov byte [esi + 0x17], al
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov al, byte [edi + 0x1a]
mov byte [esi + 0x1a], al
mov al, byte [edi + 0x1b]
mov byte [esi + 0x1b], al
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
cmp eax, ecx
je 0x404885
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea eax, [edi + 0x34]
lea ecx, [esi + 0x34]
cmp eax, ecx
je 0x404899
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
cmp eax, ecx
je 0x4048ad
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea eax, [edi + 0x54]
lea ecx, [esi + 0x54]
cmp eax, ecx
je 0x4048c1
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea eax, [edi + 0x64]
lea ecx, [esi + 0x64]
cmp eax, ecx
je 0x4048d5
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea eax, [edi + 0x74]
lea ecx, [esi + 0x74]
cmp eax, ecx
je 0x4048e9
push dword [eax + 4]
push dword [eax]
call fcn.00401586
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x4048f1
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x71
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40a388
push dword [ebp + 0xc]
mov esi, eax
call edi
push 0x40abc8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x409cf4
push dword [ebp + 0x14]
call edi
test esi, esi
je 0x404a83
test ebx, ebx
je 0x404a83
mov al, byte [esi + 0xa]
mov edi, dword [ebp + 0x10]
mov byte [edi + 2], al
mov al, byte [esi + 4]
mov byte [edi + 3], al
mov al, byte [esi + 5]
mov byte [edi + 4], al
mov al, byte [esi + 6]
mov byte [edi + 5], al
mov al, byte [esi + 7]
mov byte [edi + 6], al
mov al, byte [esi + 8]
mov byte [edi + 9], al
mov al, byte [esi + 9]
mov byte [edi + 0xa], al
mov al, byte [esi + 0xb]
mov byte [edi + 0xb], al
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov al, byte [esi + 0xd]
mov byte [edi + 0xd], al
mov al, byte [esi + 0xe]
mov byte [edi + 0xe], al
mov al, byte [esi + 0x838]
mov byte [edi + 0x11], al
cmp byte [esi + 0x83a], 0
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
sete al
mov byte [edi + 0x13], al
mov al, byte [esi + 0x839]
mov byte [edi + 0x12], al
mov al, byte [esi + 0x83b]
mov byte [edi + 0x14], al
mov al, byte [esi + 0x83c]
mov byte [edi + 0x15], al
mov al, byte [esi + 0x83d]
mov byte [edi + 0x16], al
mov al, byte [esi + 0x83e]
mov byte [edi + 0x17], al
mov al, byte [esi + 0x83f]
mov byte [edi + 0x18], al
mov al, byte [esi + 0x840]
mov byte [edi + 0x19], al
mov eax, dword [esi + 0x10]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x220]
push eax
call ebx
pop ecx
lea ecx, [esi + 0x220]
lea eax, [ecx + eax*2]
push eax
push ecx
lea ecx, [edi + 0x34]
call fcn.00401586
lea eax, [esi + 0x630]
push eax
call ebx
pop ecx
lea ecx, [esi + 0x630]
lea eax, [ecx + eax*2]
push eax
push ecx
lea ecx, [edi + 0x44]
call fcn.00401586
push 0x40a0ec
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push 0x40a0ec
lea ecx, [edi + 0x64]
call fcn.00401586
add esi, 0x18
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x409060
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00401559
lea eax, [ebp - 0x14]
push eax
call fcn.0040710c
pop ecx
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.00403254
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x405cc3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wsplitpath]
mov ebx, dword [ebp + 0x18]
add esp, 0x14
push esi
push dword [ebp + 0xc]
push str._s_s
push ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
push ebx
call edi
and word [ebx + eax*2 - 2], 0
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
mov ebx, dword [ebp + 0x1c]
je 0x405d89
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x405dd2
mov eax, dword [ebp + 0x20]
push str.mpr.dll
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405d47
push str.WNetGetConnectionW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x405d49
xor eax, eax
test eax, eax
je 0x405d7c
lea ecx, [ebp + 0x14]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x405d7c
push ebx
call edi
cmp eax, 2
jle 0x405d7c
lea eax, [ebx + 4]
push 0x409060
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x405d7c
and word [eax], 0
test esi, esi
je 0x405dd2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405dd2
push esi
call edi
cmp eax, 2
jle 0x405dd2
push 2
push 0x409180
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405dd2
lea eax, [esi + 4]
push 0x409060
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x405dd2
sub eax, esi
mov edi, eax
sar edi, 1
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
and word [ebx + edi*2], 0
cmp word [ebx], 0
jne 0x405de2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4061b8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x1000
lea edi, [esi + esi]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push dword [ebp + 0xc]
mov ebx, eax
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
add esi, 0xfffffffe
cmp eax, esi
jb 0x4061f5
push ebx
call fcn.0040754f
pop ecx
mov esi, edi
jmp 0x4061c6
cmp word [ebx], 0
je 0x40629e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x3d
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_wcschr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x406288
lea esi, [edi + 2]
push 0x409f84
push esi
call dword [sym.imp.MSVCRT.dll_wcsspn]
lea eax, [esi + eax*2]
xor esi, esi
mov si, word [eax]
neg si
pop ecx
pop ecx
sbb esi, esi
and esi, eax
je 0x406288
cmp word [esi], 0
je 0x406288
and word [edi], 0
lea eax, [ebp + 0xf]
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.00401559
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040392f
lea ecx, [ebp - 0x18]
call fcn.00403254
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401559
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0040392f
lea ecx, [ebp - 0x28]
call fcn.00403254
mov eax, dword [ebp - 4]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x4061ff
mov ebx, dword [ebp - 8]
push ebx
call fcn.0040754f
pop ecx
pop edi
pop esi
pop ebx
leave
ret