joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push esi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x10], xmm0
call fcn.00414210
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
test esi, esi
jne 0x407d1b
push 0x2000
push str.LOADER:_failed_to_allocate_read_buffer___d_bytes___n
call fcn.004024d0
add esp, 8
jmp 0x407eb1
push ebx
mov ebx, dword [esp + 0x24]
push 2
push 0
push 0
push ebx
call fcn.00410129
add esp, 0x10
test eax, eax
jns 0x407d45
push str.LOADER:_failed_to_seek_to_the_end_of_the_file__n
call fcn.004024d0
add esp, 4
jmp 0x407eb0
push edi
push ebx
call fcn.00416753
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x30]
test edx, edx
ja 0x407d71
jb 0x407d5f
cmp edi, eax
jae 0x407d71
push str.LOADER:_file_is_too_short_to_contain_magic_pattern__n
call fcn.004024d0
add esp, 4
jmp 0x407eaf
push ebp
test edx, edx
jne 0x407d91
cmp edi, 0x2000
jae 0x407d91
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x407d9e
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x407eae
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.00410129
add esp, 0x10
test eax, eax
js 0x407e9f
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040fcfd
add esp, 0x10
cmp eax, edi
jne 0x407e8f
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x407e55
lea ebx, [esi - 1]
add ebx, edi
nop dword [eax]
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x407e11
nop dword [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x407e16
add edx, 4
add esi, 4
sub eax, 4
jae 0x407e00
cmp eax, 0xfffffffc
je 0x407e77
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x407e43
cmp eax, 0xfffffffd
je 0x407e77
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x407e43
cmp eax, 0xfffffffe
je 0x407e77
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x407e43
cmp eax, 0xffffffff
je 0x407e77
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x407e77
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x407df0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, 0
add edi, ebp
adc edx, ebx
add edi, 0xffffffff
adc edx, 0xffffffff
test ebx, ebx
jne 0x407d72
test ebp, ebp
je 0x407eae
jmp 0x407d72
xor eax, eax
add edi, ebp
adc eax, dword [esp + 0x10]
add edi, 0xffffffff
mov dword [esp + 0x18], edi
adc eax, 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x407eae
push edi
push str.LOADER:_failed_to_read_chunk___zd_bytes___n
call fcn.004024d0
add esp, 8
jmp 0x407eae
push ebx
push ebp
push str.LOADER:_failed_to_seek_to_the_offset_0x_llX__n
call fcn.004024d0
add esp, 0xc
pop ebp
pop edi
pop ebx
push dword [esp + 8]
call fcn.00414200
mov eax, dword [esp + 0x10]
add esp, 4
mov edx, dword [esp + 0x10]
pop esi
add esp, 0x18
ret
Function at 0x408300
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x2254
call fcn.0040c730
mov eax, dword [0x43a040]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2260]
lea eax, [esp + 0x258]
push esi
push edi
push ebp
push 0x42cda8
push 0x1000
push eax
call fcn.00402490
mov ebx, eax
add esp, 0x10
cmp ebx, 0x1000
jge 0x4084c3
lea eax, [esp + 0x10]
mov esi, 0x1001
push eax
lea eax, [esp + 0x264]
sub esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4084c3
mov edx, 0x42cdb4
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4083a6
test ax, ax
je 0x4083a2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4083a6
add ecx, 4
add edx, 4
test ax, ax
jne 0x408380
xor eax, eax
jmp 0x4083ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x40849a
mov ecx, 0x42cdb8
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4083e6
test dx, dx
je 0x4083e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4083e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4083c0
xor eax, eax
jmp 0x4083eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40849a
lea eax, [esp + 0x3c]
push eax
push 0x42cdc0
lea eax, [esp + ebx*2 + 0x266]
push esi
push eax
call fcn.00402490
add esp, 0x10
cmp eax, esi
jge 0x40849a
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x408473
test eax, 0x400
je 0x408450
cmp dword [esp + 0x34], 0xa000000c
jne 0x408450
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40849a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_directory_symbolic_link:__ls_n
jmp 0x408492
lea eax, [esp + 0x260]
push eax
call fcn.00408300
add esp, 4
test eax, eax
jns 0x40849a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_directory:__ls_n
jmp 0x408492
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40849a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_file:__ls_n
call fcn.004025b0
add esp, 8
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408371
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
jmp 0x4084c6
or eax, 0xffffffff
mov ecx, dword [esp + 0x2260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c3f3
add esp, 0x2254
ret
Function at 0x408880
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x2028
call fcn.0040c730
mov eax, dword [0x43a040]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
mov ebx, dword [esp + 0x2030]
push ebp
xor ebp, ebp
mov dword [esp + 8], ebx
push esi
push edi
cmp dword [ebx + 0x3038], ebp
je 0x408924
push 0x42cb80
call fcn.00408a50
push dword [ebx + 0x3038]
mov ebp, eax
call fcn.00408060
mov edi, eax
add esp, 8
test edi, edi
jne 0x4088e2
push ebp
call fcn.00414200
add esp, 4
or eax, 0xffffffff
jmp 0x408a37
push edi
push 0x42cb84
call fcn.00416f24
push edi
mov esi, eax
call fcn.00414200
add esp, 0xc
test esi, esi
je 0x408917
push str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.00402710
push ebp
call fcn.00414200
add esp, 8
or eax, 0xffffffff
jmp 0x408a37
push str.LOADER:_successfully_resolved_the_specified_runtime_tmpdir_n
call fcn.004025b0
add esp, 4
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x34]
push eax
push str.LOADER:_attempting_to_create_temporary_application_directory_under__ls_n
call fcn.004025b0
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004023b0
add esp, 0x18
xor esi, esi
jmp 0x408965
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0041775a
add esp, 8
mov edi, eax
push dword [ebx + 0x301c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40899e
push edi
call fcn.00414200
inc esi
add esp, 4
or ebx, 0xffffffff
cmp esi, 5
jl 0x408961
jmp 0x4089d4
push 0x1000
lea eax, [ebx + 0x2012]
push eax
push edi
call fcn.00409590
add esp, 0xc
test eax, eax
jne 0x4089c9
push str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
call fcn.00402710
add esp, 4
or ebx, 0xffffffff
jmp 0x4089cb
xor ebx, ebx
push edi
call fcn.00414200
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x3038], 0
je 0x408a35
push 0
push 0
push 0x42cb80
call fcn.00409510
test ebp, ebp
je 0x408a1f
push 0
push 0
push ebp
mov edi, eax
call fcn.00409510
mov esi, eax
push esi
push edi
call fcn.00416f24
push edi
call fcn.00414200
push esi
call fcn.00414200
push ebp
call fcn.00414200
add esp, 0x2c
jmp 0x408a35
mov esi, eax
push 0x42c6c4
push esi
call fcn.00416f24
push esi
call fcn.00414200
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c3f3
add esp, 0x2028
ret
Function at 0x408a50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040c730
mov eax, dword [0x43a040]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push 0
push eax
call fcn.00409510
add esp, 0xc
lea ecx, [esp]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 0x1000
jae 0x408ae3
test eax, eax
je 0x408ae3
push 0x1000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x1000
jae 0x408ae3
test eax, eax
je 0x408ae3
push 0
lea eax, [esp + 0x2004]
push 0
push eax
call fcn.00409590
add esp, 0xc
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040c3f3
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040c3f3
add esp, 0x4004
ret
Function at 0x40cbcd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40cc02
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40cbff
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40cc0b
add edx, 0x28
cmp edx, esi
jne 0x40cbed
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40cc08

Function at 0x40d079
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d0b8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d0b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d0b8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d0b8
cmp dword [ecx + 0x74], 0xe
jbe 0x40d0b8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414ef2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4328e0
push esi
call fcn.0041d7b1
pop ecx
pop ecx
test eax, eax
jne 0x414f20
xor al, al
jmp 0x414f9d
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00414c14
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x414f5a
push dword [ebp - 0x210]
call fcn.00414200
xor al, al
jmp 0x414f9b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x414f60
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x414f80
push edx
call fcn.00414e29
pop ecx
test al, al
je 0x414f4b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x414f8e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00414200
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c3f3
leave
ret
Function at 0x416524
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040c730
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418e2c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416566
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4166dd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040c760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43e348]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a7e4
mov ecx, dword [esi*4 + 0x43e348]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4166d6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4166d6
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4166d6
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a7e4
add esp, 0x14
cmp edx, esi
jl 0x4166d6
jg 0x416631
cmp eax, esi
jb 0x4166d6
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4166d6
jl 0x416653
cmp dword [ebp - 0x1008], eax
ja 0x4166d6
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x416678
cmp ebx, esi
je 0x4166bd
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4166bd
mov al, byte [ecx]
cmp al, 0xd
jne 0x41669e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4166aa
cmp byte [ecx + 1], 0xa
jne 0x4166aa
inc ecx
jmp 0x4166aa
movzx eax, al
movsx eax, byte [eax + 0x43a250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416684
cmp edx, ebx
jne 0x416684
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4166db
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c3f3
leave
ret
Function at 0x419ada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43e348]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419b1c
cmp byte [ebx], 0xa
jne 0x419b1c
or byte [edi + eax + 0x28], 4
jmp 0x419b21
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419c24
mov cl, byte [eax]
cmp cl, 0x1a
je 0x419bff
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x419b50
mov eax, dword [ebp - 8]
jmp 0x419b70
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x419b8c
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x419b6a
add eax, 2
mov cl, 0xa
jmp 0x419b6d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x419b32
jmp 0x419c24
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419bfa
cmp dword [ebp - 0x10], 0
je 0x419bfa
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x43e348]
test byte [eax + edi + 0x28], 0x48
je 0x419bd9
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x419bc9
mov byte [esi], 0xa
jmp 0x419c23
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x43e348]
mov byte [eax + edi + 0x2a], cl
jmp 0x419c23
cmp byte [ebp - 1], 0xa
jne 0x419be3
cmp esi, ebx
je 0x419bc4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a802
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419c24
mov byte [esi], 0xd
jmp 0x419c23
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x43e348]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x419c21
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x419c24
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419c2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43e348]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x419c71
push 0xa
pop esi
cmp word [ebx], si
jne 0x419c71
or byte [eax + edi + 0x28], 4
jmp 0x419c76
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x419de1
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x419db9
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x419cc3
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x419ced
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x419d0c
push 0xa
pop ebx
cmp word [edx], bx
jne 0x419cda
push ebx
add eax, 4
pop edx
jmp 0x419ce2
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x419c88
jmp 0x419de1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419db4
cmp dword [ebp - 0x14], 0
je 0x419db4
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43e348]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x419d90
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x419d58
mov word [esi], ax
jmp 0x419dde
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43e348]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43e348]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43e348]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x419dde
cmp word [ebp - 4], ax
jne 0x419d9a
cmp esi, ebx
je 0x419d50
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a802
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419de1
push 0xd
pop eax
jmp 0x419d50
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43e348]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x419ddb
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x419de1
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b71e
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41b738
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41b74f
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41b7a7
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041732a
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41b7a7
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41b7a7
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b7a7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41b7a1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41b7a3
xor bl, bl
mov al, bl
jmp 0x41b7a9
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x41e624
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41e667
call fcn.004141b8
mov dword [eax], 0xf
call fcn.004141cd
mov dword [eax], 0xd
call fcn.0041911d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c3f3
leave
ret
test eax, eax
jne 0x41e66e
inc eax
jmp 0x41e65b
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41e659
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41e65b

Function at 0x41eefb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ea17
Function at 0x41f884
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41f8cf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041fa1d
test al, al
jne 0x41f8c9
sub edx, 2
cmp edx, edi
jne 0x41f8af
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41f8f1
lea eax, [edi + 2]
cmp edx, eax
je 0x41f8f1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041f7d0
add esp, 0x10
jmp 0x41f9e9
push esi
lea ecx, [ebp - 0x255]
call fcn.0041fa1d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f932
push dword [ebp - 0x25c]
jmp 0x41f8e1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41f96f
cmp word [ebp - 0x226], 0
je 0x41f990
cmp word [ebp - 0x226], ax
jne 0x41f96f
cmp word [ebp - 0x224], 0
je 0x41f990
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041f7d0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41f9dc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41f949
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41f9c4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41f9e9
push 0x41f600
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00424d10
add esp, 0x10
jmp 0x41f9b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c3f3
leave
ret
Function at 0x4202e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420384
push ebx
push esi
call fcn.004202b0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e74f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420331
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420383
push edi
push eax
call fcn.0041b8e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420351
call fcn.00419170
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420382
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e74f
add esp, 0x20
test eax, eax
jne 0x420370
push edi
call fcn.00419170
jmp 0x420378
push ebx
call fcn.00419170
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x420387
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x420398
pop esi
ret
push ebx
push edi
push esi
call fcn.004202b0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041b8e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4203c0
push ebx
push esi
push edi
call fcn.0040d1f0
add esp, 0xc
push 0
call fcn.00419170
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret