joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ae5dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5ae656
mov eax, dword [ebx + 8]
call fcn.005230e8
mov ecx, eax
mov dl, 1
mov eax, dword [0x52f230]
call fcn.0051d46c
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.00533b04
mov dword [esi + 0x2b4], ebx
mov dword [esi + 0x2b0], 0x5aded4
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005230e8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005230e8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5ae6cc
mov eax, dword [ebx + 8]
call fcn.005230e8
mov ecx, eax
mov dl, 1
mov eax, dword [0x52f230]
call fcn.0051d46c
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.00533b04
mov dword [esi + 0x2b4], ebx
mov dword [esi + 0x2b0], 0x5adf20
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005230e8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005230e8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5ae738
mov eax, dword [ebx + 8]
call fcn.005230e8
mov ecx, eax
mov dl, 1
mov eax, dword [0x52fca0]
call fcn.0051d46c
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x288], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005230e8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005230e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4019a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym.___write_memory.part.0
Function at 0x401f00
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x401f10
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x401f0d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x401f30
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x401f68
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x401f5e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x401f6a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x401f50
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4024b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053bc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 4
test ebx, ebx
je 0x402505
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4024fe
test esi, esi
je 0x4024fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024e0
mov dword [esp], 0x4053a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40962a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40966e
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40963d
jmp 0x40966e
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40965e
pop esi
pop ebp
ret

Function at 0x40a370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40a3a5
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40a3cf
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40a3cf
test edi, edi
je 0x40a39c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40a39c
test edi, edi
je 0x40a3d7
mov eax, edi
jmp 0x40a39e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40a39e
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_rel_w32_d_000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040d6e6
add esp, 0xc
int3
Function at 0x40d71a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestScopeExit.exe_gMozillaPoisonSize], eax
call fcn.0040a370
pop ecx
mov ecx, dword [sym.TestScopeExit.exe_gMozillaPoisonSize]
mov dword [sym.TestScopeExit.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40d752
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestScopeExit.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x3000b67b
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x30002658
call fcn.3000b62f
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x3000b6bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x3000b6bb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3000b6d3
cmp eax, 0x20b
je 0x3000b6c0
mov dword [ebp - 0x1c], ebx
jmp 0x3000b6e7
cmp dword [ecx + 0x84], 0xe
jbe 0x3000b6bb
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3000b6e1
cmp dword [ecx + 0x74], 0xe
jbe 0x3000b6bb
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x3000d748], 0xffffffff
or dword [0x3000d74c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x3000d740]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3000d73c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x3000d744], eax
call fcn.3000b896
call fcn.3000b94b
cmp dword [0x3000d0ac], ebx
jne 0x3000b747
push 0x3000b948
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.3000b936
push 0x3000d010
push 0x3000d00c
call sub.MSVCRT.dll__initterm
push 0x3000b8da
call fcn.3000b884
mov eax, dword [0x3000d738]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x3000d734]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x3000b79b
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x3000d008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3000b800
cmp al, bl
je 0x3000b7c5
cmp dword [ebp - 0x20], ebx
jne 0x3000b800
mov al, byte [esi]
cmp al, bl
je 0x3000b7d5
cmp al, 0x20
ja 0x3000b7d5
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3000b7c5
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3000b7f1
movzx eax, word [ebp - 0x54]
jmp 0x3000b7f4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.3000b1af
cmp al, 0x22
jne 0x3000b80f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000b822
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3000b7b3

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 0x4690e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4690ef
pop dword [ebp - 0x34]
mov eax, 0xfc690c37
add eax, 0x3dd84b8
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe062fa39
add dword [ebp - 0x44], 0x6def4b12
mov dword [ebp - 0x40], 0x83b387aa
add dword [ebp - 0x40], 0xae7fc49b
mov dword [ebp - 0x3c], 0xabf38704
sub dword [ebp - 0x3c], 0x5fa742d6
mov dword [ebp - 0x38], 0x400669d4
add dword [ebp - 0x38], 0xbff9962c
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x14934431
sub dword [ebp - 0x44], 0xa020dadb
mov dword [ebp - 0x40], 0x8eea67a0
sub dword [ebp - 0x40], 0x4d7e062b
mov dword [ebp - 0x3c], 0xa7d99745
sub dword [ebp - 0x3c], 0x446a2ad9
mov dword [ebp - 0x38], 0xb1b72f6f
sub dword [ebp - 0x38], 0xb1b72f6f
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x47b87
push 0
call eax
mov ecx, 0x4fa3
xor edx, edx
add edx, eax
mov ebx, 0x8bedb6bb
sub ebx, 0x8ba50ebb
add ebx, dword [ebp - 0x34]
mov esi, 0x84931d24
mov dword [ebp - 0x30], 0x420b55f5
mov edi, dword [ebx]
sub dword [ebp - 0x1c], 0x4c1addf4
xor edi, esi
sub dword [ebp - 0x2c], edi
mov dword [edx], edi
xor dword [ebp - 0x20], eax
add edx, 4
add ebx, 0x445f2042
add ebx, 0xbba0dfc2
loop 0x4691fd
add eax, 0x1315f
mov ebx, eax
add eax, 0x3692d8de
sub eax, 0x3692d8d9
mov ecx, 0x6b204836
sub ecx, 0x6ae04836
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1205058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x12051a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x120507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x120506a
add dl, dl
jne 0x1205089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12050dc
xor eax, eax
add dl, dl
jne 0x1205096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x120517d
add dl, dl
jne 0x12050a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12050b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12050bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12050c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12050d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1205075
mov eax, 1
add dl, dl
jne 0x12050ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12050f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12050e1
sub eax, ebx
mov ebx, 1
jne 0x1205128
mov ecx, 1
add dl, dl
jne 0x120510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1205119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1205105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1205075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x120513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x120514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1205136
cmp eax, 0x7d00
jae 0x120516d
cmp eax, 0x500
jb 0x1205168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1205075
cmp eax, 0x7f
ja 0x1205170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1205075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x120519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1205075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402369
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x42abd4], eax
mov edx, esi
mov eax, 0x42abd4
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x42b590
jl 0x40237e
mov dword [0x425058], esi
mov dword [0x42b594], esi
pop edi
pop esi
ret

Function at 0x4023ab
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x42b594], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x42abd4
jne 0x4023cd
push 0
call fcn.00417c53
push eax
call fcn.00402369
pop ecx
pop ecx
mov dword [0x425058], 0x270
mov dword [0x42abd0], esi
mov dword [esp + 0x10], 0xe3
mov edi, 0x7ffffffe
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x4023ef
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x402426
mov eax, dword [esi]
mov edx, dword [0x42abd4]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402480
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x425058]
jne 0x40248d
call fcn.004023ab
mov eax, dword [0x42abd0]
mov ecx, dword [eax]
add dword [0x42abd0], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4024c3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x425058]
jne 0x4024d5
call fcn.004023ab
mov eax, dword [0x42abd0]
mov eax, dword [eax]
add dword [0x42abd0], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and cx, 0xdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
fild qword [ebp - 8]
fmul qword [0x422448]
leave
ret
Function at 0x405079
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10108
call fcn.00417db0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
push 0
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
call fcn.0041530e
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
lea eax, [ebp - 0x10108]
push 0xffff
push eax
push 3
mov ecx, esi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push 2
mov ecx, esi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push 1
mov ecx, esi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10108]
push eax
call fcn.00401af4
pop esi
leave
ret 8
Function at 0x405cd1
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x405d58
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.004178e0
pop ecx
test eax, eax
pop ecx
je 0x405d3f
lea eax, [ebp - 0x114]
push 0x426520
push eax
call fcn.004178e0
pop ecx
test eax, eax
pop ecx
je 0x405d3f
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.0041519e
add esp, 0xc
test al, al
je 0x405d51
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jmp 0x405cf6
xor bl, bl
jmp 0x405e01
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x405d6c
mov al, 1
jmp 0x405e0a
lea eax, [ebp - 0x140]
push eax
push 0x42651c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x405dff
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x405ded
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.004178e0
pop ecx
test eax, eax
pop ecx
je 0x405ded
lea eax, [ebp - 0x114]
push 0x426520
push eax
call fcn.004178e0
pop ecx
test eax, eax
pop ecx
je 0x405ded
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405cd1
test al, al
je 0x405d51
push 0x426520
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x405d87
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405e11
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x24]
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e54
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00401aa7
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x405e5d
push 1
mov ecx, ebx
call fcn.00402b3b
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4062ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov dword [ebp - 8], ecx
push edi
push 0x42b598
lea ecx, [ebp - 0x14]
call fcn.00401000
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
xor edi, edi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea ecx, [ebp - 0x14]
call fcn.004010e1
push 0x426570
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x406339
push 0x63
jmp 0x4063a4
push str.cdrom
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x40634e
push 5
jmp 0x4063a4
push str.removable
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x406363
push 2
jmp 0x4063a4
push str.fixed
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x406378
push 3
jmp 0x4063a4
push str.network
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x40638d
push 4
jmp 0x4063a4
push str.ramdisk
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
jne 0x406455
push 6
pop ebx
push esi
lea eax, [ebp - 0x80]
push 1
mov dword [ebp + 8], 0x61
mov dword [ebp - 4], eax
pop esi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00401126
push 0x426540
lea ecx, [ebp - 0x14]
call fcn.004011b9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, ebx
je 0x4063e4
cmp ebx, 0x63
jne 0x406403
cmp eax, esi
je 0x406403
push 0x42653c
lea ecx, [ebp - 0x14]
call fcn.004014dd
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.00417750
pop ecx
inc edi
add dword [ebp - 4], 4
pop ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x7a
jle 0x4063b6
test edi, edi
jle 0x406480
lea eax, [edi + 1]
push eax
push dword [ebp + 0xc]
call fcn.00415e2a
push 0
push dword [ebp + 0xc]
call fcn.00415e49
add esp, 0x10
mov ecx, eax
push edi
call fcn.00401aa7
cmp edi, esi
jl 0x406489
lea ebx, [ebp - 0x80]
push esi
push dword [ebp + 0xc]
call fcn.00415e49
pop ecx
pop ecx
push ebx
mov ecx, eax
call fcn.00401af4
inc esi
add ebx, 4
cmp esi, edi
jle 0x406438
jmp 0x406489
push 0x426534
lea ecx, [ebp - 0x14]
call fcn.00401504
test eax, eax
je 0x4063a5
mov ecx, dword [ebp - 8]
push 1
call fcn.00402b3b
lea ecx, [ebp - 0x14]
call fcn.0040107a
xor eax, eax
jmp 0x406494
mov ecx, dword [ebp - 8]
push esi
call fcn.00402b3b
lea ecx, [ebp - 0x14]
call fcn.0040107a
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x40649a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, 0x42b598
lea ecx, [ebp - 0x24]
push esi
call fcn.00401000
push esi
lea ecx, [ebp - 0x18]
call fcn.00401000
push esi
lea ecx, [ebp - 0xc]
call fcn.00401000
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea ecx, [ebp - 0x24]
call fcn.004010e1
mov ecx, dword [ebp + 8]
push 1
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea ecx, [ebp - 0x18]
call fcn.004010e1
lea ecx, [ebp - 0x18]
call fcn.00401290
push str.close
lea ecx, [ebp - 0x30]
call fcn.00401000
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040125d
pop ecx
mov byte [ebp + 0xb], al
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0040107a
cmp byte [ebp + 0xb], bl
mov esi, str.closed
je 0x406539
push esi
lea ecx, [ebp - 0x18]
call fcn.004010e1
push str.open
lea ecx, [ebp - 0x3c]
call fcn.00401000
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040125d
pop ecx
test al, al
pop ecx
jne 0x406581
push esi
lea ecx, [ebp - 0x30]
call fcn.00401000
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040125d
pop ecx
mov byte [ebp + 0xb], al
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0040107a
cmp byte [ebp + 0xb], bl
je 0x406593
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 5
mov byte [ebp + 0xb], 1
je 0x406596
mov byte [ebp + 0xb], bl
lea ecx, [ebp - 0x3c]
call fcn.0040107a
cmp byte [ebp + 0xb], bl
je 0x406631
push 0x4265b8
lea ecx, [ebp - 0xc]
call fcn.004010e1
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
push eax
call fcn.00401163
push str._type_cdaudio_alias_cd_wait
lea ecx, [ebp - 0xc]
call fcn.004011b9
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x406631
push str.set_cd_door
lea ecx, [ebp - 0xc]
call fcn.004010e1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
push eax
call fcn.00401163
push str._wait
lea ecx, [ebp - 0xc]
call fcn.004011b9
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x40661a
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00401aa7
push str.close_cd_wait
lea ecx, [ebp - 0xc]
call fcn.004010e1
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call esi
jmp 0x40663a
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00401aa7
lea ecx, [ebp - 0xc]
call fcn.0040107a
lea ecx, [ebp - 0x18]
call fcn.0040107a
lea ecx, [ebp - 0x24]
call fcn.0040107a
pop esi
xor eax, eax
pop ebx
leave
ret 8