joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430950
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4004
call fcn.004aea90
push ebx
mov ebx, dword [esp + 0x400c]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x430a6e
mov esi, dword [esp + 0x4024]
test esi, esi
jne 0x430993
mov esi, dword [edi + 0x634]
test esi, esi
jne 0x430993
mov ecx, dword [edi + 0x270]
movzx eax, word [edi + 0x274]
jmp 0x43099b
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [esp + 0x401c]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4ddc04]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0047c9c0
mov ebp, dword [esp + 0x4038]
mov edx, eax
add esp, 0x18
add edx, edx
cmp word [ebp], 0
je 0x4309f7
mov ecx, edx
mov eax, 0x2000
push ebp
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.0047c9c0
add esp, 0x10
cmp ebx, 3
jne 0x430a21
push 1
call fcn.0049b6a2
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004a1274
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4004
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x430a6e
test esi, esi
jne 0x430a5c
mov esi, dword [edi + 0x634]
test esi, esi
jne 0x430a5c
mov eax, dword [esp + 0x401c]
mov ecx, edi
push ebp
push eax
call fcn.004302e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4004
ret 0x10
mov eax, dword [esp + 0x401c]
mov ecx, esi
push ebp
push 1
push eax
call fcn.0042ff20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4004
ret 0x10
Function at 0x430da0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3cc
push ebx
mov ebx, dword [esp + 0x3d4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x430dd0
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x430dda
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4de740]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x430e88
nop
cmp byte [esi + 0x11], 0
je 0x430e28
mov ecx, dword [esi]
call fcn.004774b0
sub eax, 0
je 0x430e0e
sub eax, 1
je 0x430e0e
mov eax, str.Object
jmp 0x430e13
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4cfb58
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.0047ca10
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x430df0
cmp word [esp + 0x10], si
je 0x430e88
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430e40
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x430e79
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4cb1a4
push edi
call fcn.004a1eb4
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x430e88
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x430e88
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4dc2e8]
cmp byte [eax + 0xf8], 0
je 0x430ea6
cmp byte [0x4de781], 0
jne 0x430ea6
mov esi, 1
jmp 0x430ea8
xor esi, esi
mov eax, dword [0x4dc40c]
cmp eax, 1
jle 0x430eb7
lea edi, [eax - 1]
jmp 0x430eb9
xor edi, edi
mov cl, 1
call fcn.00413820
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.00413bc0
mov ecx, dword [0x4dc40c]
mov edx, 0x4b70dc
push eax
push dword [0x4dc428]
mov eax, dword [0x4dc3f8]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4c9b80
cmovle eax, edx
cmp dword [0x4dc43c], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4c9b78
push eax
push dword [0x4de748]
mov eax, ecx
push dword [0x4de74c]
cmovne eax, edx
cmp dword [0x4dc440], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.0047c9c0
add eax, eax
mov edi, 0xfffe
add ebx, eax
add esp, 0x3c
sar eax, 1
mov edx, edi
sub edx, eax
mov ecx, ebx
call fcn.0040a050
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f60
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4dc438], 0
lea esi, [ebx + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebp
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.0047c9c0
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3cc
ret 8
Function at 0x437150
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00445950
mov edi, eax
test edi, edi
je 0x437227
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00481780
mov dword [esp + 0xc], eax
test eax, eax
je 0x437227
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x4371c9
cmp esi, dword [0x4ddc88]
je 0x4371c9
mov ecx, edi
call fcn.00481c20
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x4371cf
push 1
push esi
push dword [0x4ddc88]
call edi
test eax, eax
setne bl
jmp 0x4371cf
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x43720a
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
mov eax, dword [0x4d98d8]
mov ecx, dword [eax + 0x58]
cmp ecx, 0xffffffff
jle 0x43720a
mov edx, 1
call fcn.004015d0
test bl, bl
je 0x437219
push 0
push esi
push dword [0x4ddc88]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x437254
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, esi
call fcn.0042fd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x438020
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x438345
cmp word [esi], 0
je 0x438345
push str.Exist
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x43805a
lea esi, [eax + 1]
jmp 0x4380ba
push str.Close
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x438071
lea esi, [eax + 2]
jmp 0x4380ba
push str.Priority
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x438088
lea esi, [eax + 3]
jmp 0x4380ba
push str.Wait
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x43809f
lea esi, [eax + 4]
jmp 0x4380ba
push str.WaitClose
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x438345
mov esi, 5
lea eax, [esi - 1]
jmp dword [eax*4 + 0x438360]
push esi
push 0
push str.Parameter_1_invalid.
mov ecx, edi
call fcn.0042ff20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438c80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4ddbb0]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00445950
mov ebx, eax
test ebx, ebx
je 0x438cb0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x438cb5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.0047faa0
cmp eax, 1
je 0x438cd3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x438d61
push edi
push 0
push 1
call fcn.004014c0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x438cfc
mov edi, dword [esi + 0xc]
jmp 0x438cfe
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x438d16
test byte [edi + 0x15], 8
je 0x438d11
mov ecx, edi
call fcn.00401330
add edi, 0xc
jmp 0x438d1b
mov edi, 0x4df418
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x438d2b
mov edi, dword [esi + 0xc]
jmp 0x438d2d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x438d45
test byte [edi + 0x15], 8
je 0x438d40
mov ecx, edi
call fcn.00401330
add edi, 0xc
jmp 0x438d4a
mov edi, 0x4df418
cmp dword [edi], 2
jae 0x438d9e
push 0
push 1
mov ecx, esi
call fcn.004014c0
xor ecx, ecx
mov word [eax], cx
jmp 0x438d9e
push 0
push 1
call fcn.004014c0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x438d79
mov edi, dword [esi + 0xc]
jmp 0x438d7b
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x438d93
test byte [edi + 0x15], 8
je 0x438d8e
mov ecx, edi
call fcn.00401330
add edi, 0xc
jmp 0x438d98
mov edi, 0x4df418
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x438da7
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438dc7
cmp dword [0x4de7ec], 0
je 0x438dc7
push ecx
mov ecx, 0x4de7e0
call fcn.00405590
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x438e60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c60
call fcn.004aea90
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.00431d80
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0x1835], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0x1864], eax
push dword [0x4d98d8]
call fcn.00481df0
test eax, eax
je 0x438ebf
lea eax, [esp + 8]
push eax
push 0x4811e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0x1834]
jne 0x438ecf
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x438ee8
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x438f11
mov ecx, esi
call fcn.00401330
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4dc430], 0
je 0x438f21
mov ecx, esi
call fcn.00401330
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439fb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004aea90
push esi
mov esi, dword [0x4ddbb0]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x43a076
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.0047faa0
test eax, eax
jne 0x43a007
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.004014c0
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x43a034
push eax
push 1
mov ecx, esi
call fcn.004014c0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x43a03d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x43a062
cmp dword [0x4de7ec], 0
je 0x43a062
push ecx
mov ecx, 0x4de7e0
call fcn.00405590
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4b70dc
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0047faa0
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x43cc90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2214
call fcn.004aea90
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x17], dl
push esi
push dword [0x4de778]
lea ebp, [esp + 0x228]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.0047c9c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x43ccf0
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x43ccf0
mov eax, dword [0x4de778]
jmp 0x43cd49
lea ecx, [esp + 0x18]
call fcn.0043d220
test eax, eax
je 0x43cde1
push esi
lea eax, [esp + 0x1c]
push eax
push str.__s_s
lea eax, [esp + 0x22c]
push 0x800
push eax
call fcn.0047c9c0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x43cde1
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x43cde1
lea eax, [esp + 0x18]
cmp byte [esp + 0x17], 0
mov dword [esp + ebx*2 + 0x220], 0x22
je 0x43cdb2
push 0x4d1380
push eax
push str.__s_s
lea eax, [esp + 0x122c]
push 0x800
push eax
call fcn.0047c9c0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x43cdb2
lea eax, [esp + 0x1222]
push eax
call edi
cmp eax, 0xffffffff
je 0x43cdb2
mov dword [esp + ebx*2 + 0x1220], 0x22
lea ebp, [esp + 0x1220]
lea eax, [esp + 0x220]
jmp 0x43cdb7
mov eax, 0x4b70dc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4ddca0
call fcn.00430fb0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2214
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2214
ret
Function at 0x440d60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4ddbb0]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.00414160
mov bl, al
add esp, 0xc
test bl, bl
jne 0x440dfe
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00454db0
add esp, 4
test eax, eax
jne 0x440dc4
push 1
push eax
push 0xffffffffffffffff
push 0x4b70dc
mov ecx, edi
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.00455020
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0047f2c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x440e10
xor eax, eax
jmp 0x440e1b
push 2
push esi
call fcn.0049bd84
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x440e39
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x440e3e
mov edx, 1
mov cl, bl
call fcn.00454f80
push 1
test al, al
mov edx, 0x4d181c
push 0
mov ecx, 0x4d1818
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x440e70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4ddbb0]
push 0
call fcn.0047faa0
mov eax, dword [ebp + 8]
test eax, eax
je 0x440fbf
cmp word [eax], 0
je 0x440fbf
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004a1eb4
add esp, 0xc
lea ecx, [esp + 0x28]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x22e], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440ed0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x26], 0x5c
je 0x440efd
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x440fbf
mov dword [esp + ecx*2 + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x440fbf
cmp byte [ebp + 0xc], 0
je 0x440f2f
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x440f37
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4b716c
shr edi, 0x14
call fcn.0047faa0
mov esi, dword [0x4ddbb0]
cmp byte [esi + 0x17], 0
jne 0x440f63
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x440f7a
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x440fa1
mov ecx, esi
call fcn.00401330
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4dc430], 0
je 0x440fb1
mov ecx, esi
call fcn.00401330
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x440fec
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, esi
call fcn.0042fd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x441310
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, 0x1085c
call fcn.004aea90
push ebx
push esi
mov esi, dword [esp + 0x10868]
mov ebx, ecx
mov dword [esp + 0x10], ebx
test esi, esi
je 0x441514
cmp word [esi], 0
je 0x441514
push str.List
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x441355
lea esi, [eax + 1]
jmp 0x441516
push str.FileSystem
push esi
call fcn.00499643
add esp, 8
test eax, eax
je 0x44150d
push 0x4d08a4
push esi
call fcn.00499643
add esp, 8
test eax, eax
je 0x44150d
push str.Label
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x44139b
lea esi, [eax + 3]
jmp 0x441516
push 9
push str.SetLabel:
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
je 0x44145e
push str.Serial
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x4413cd
lea esi, [eax + 5]
jmp 0x441516
push str.Type
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x4413e7
lea esi, [eax + 6]
jmp 0x441516
push str.Status
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x441401
lea esi, [eax + 7]
jmp 0x441516
push str.StatusCD
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x44141b
lea esi, [eax + 8]
jmp 0x441516
push str.Capacity
push esi
call fcn.00499643
add esp, 8
test eax, eax
je 0x441443
push 0x4d0908
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x441514
push 0
push dword [esp + 0x10870]
mov ecx, ebx
call fcn.00440e70
pop esi
pop ebx
add esp, 0x1085c
ret 8
push 0x7ffe
push dword [esp + 0x10870]
lea eax, [esp + 0x86c]
push eax
call fcn.004a1eb4
add esp, 0xc
lea ecx, [esp + 0x864]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x10860], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441490
sub ecx, edx
sar ecx, 1
je 0x4414b9
cmp word [esp + ecx*2 + 0x862], 0x5c
je 0x4414b9
mov eax, 0x5c
mov word [esp + ecx*2 + 0x864], ax
lea eax, [esi + 0x12]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4414cd
cmp ecx, 9
jne 0x4414d2
add eax, 2
jmp 0x4414c0
push eax
lea eax, [esp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 1
test eax, eax
mov edx, 0x4ca34c
push 0
mov ecx, 0x4b716c
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4dc408]
call fcn.0047faa0
pop esi
pop ebx
add esp, 0x1085c
ret 8
mov esi, 2
jmp 0x441516
xor esi, esi
push ebp
mov ebp, dword [0x4ddbb0]
mov ecx, ebp
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0047faa0
jmp dword [esi*4 + 0x4419a8]
Function at 0x443150
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x443184
cmp word [esi + 2], 0x3a
jne 0x443184
cmp word [esi + 4], 0
jne 0x443184
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4431dc
cmp byte [0x4de780], al
je 0x443202
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x4431c0
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop esi
add esp, 8
ret
mov ecx, dword [0x4de2d4]
push 0x4b70dc
push 0
push 0x4ca34c
call fcn.0042fd40
pop esi
add esp, 8
ret
cmp byte [0x4de780], 0
je 0x443202
mov ecx, esi
call fcn.00443210
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
pop esi
add esp, 8
ret

Function at 0x443210
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004aea90
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x443249
push ecx
lea esi, [esp + 8]
mov ecx, 0x4db000
push esi
call fcn.00455880
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x443259
push ecx
push esi
mov ecx, 0x4db000
call fcn.00455880
pop esi
add esp, 0x10000
ret
Function at 0x4438c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
je 0x443998
cmp word [edi], 0
je 0x443998
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44390d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
mov al, bl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call fcn.00496f12
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x443980
cmp word [ebx - 2], 0x3a
je 0x443980
test esi, esi
je 0x443932
xor ecx, ecx
mov eax, edi
mov word [ebx], cx
jmp 0x443960
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi*2 + 2]
call fcn.004ae980
mov eax, esp
push esi
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004a1eb4
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, eax
call fcn.004438c0
test esi, esi
je 0x443975
mov ecx, 0x5c
mov word [ebx], cx
cmp word [ebx + 2], 0
je 0x4439a2
test al, al
je 0x4439a2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444730
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x44477f
push 0
push 1
mov ecx, esi
call fcn.004014c0
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x44475a
mov edi, dword [esi + 0xc]
jmp 0x44475c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x444776
test byte [edi + 0x15], 8
je 0x44476f
mov ecx, edi
call fcn.00401330
lea eax, [edi + 0xc]
mov eax, dword [eax]
jmp 0x4447b5
mov eax, 0x4df418
mov eax, dword [eax]
jmp 0x4447b5
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.0047f4d0
add esp, 4
test eax, eax
jne 0x4447ad
mov eax, dword [0x4d98d8]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
push ebp
xor edi, edi
mov dword [esp + 0x20], eax
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x444806
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x4447f9
push ecx
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
mov dword [ecx + 0x30], eax
cmp ebp, 0xffffffff
je 0x444821
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
test esi, esi
jne 0x44482f
push ebx
call fcn.0049b8d4
add esp, 4
test edi, edi
je 0x444852
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x44487f
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4b70dc
push 0
push 0x4ca34c
call fcn.0042fd40
pop edi
pop esi
pop ebx
add esp, 8
ret 8