joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412b9a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041285a

Function at 0xb90108
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb90258
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 0xb9012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9011a
add dl, dl
jne 0xb90139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9018c
xor eax, eax
add dl, dl
jne 0xb90146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9022d
add dl, dl
jne 0xb90155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb90160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb90176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb90182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb90125
mov eax, 1
add dl, dl
jne 0xb9019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb901a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb90191
sub eax, ebx
mov ebx, 1
jne 0xb901d8
mov ecx, 1
add dl, dl
jne 0xb901be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb901c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb901b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb901ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb901fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb901e6
cmp eax, 0x7d00
jae 0xb9021d
cmp eax, 0x500
jb 0xb90218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
cmp eax, 0x7f
ja 0xb90220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb9024e
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 0xb90125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x408910
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4139e8]
jne 0x40891a
repz ret
jmp fcn.0040c93e

Function at 0x40c78a
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.00406aea
and dword [ebp - 4], 0
cmp dword [0x42a8e0], 0
mov ebx, eax
jne 0x40c83b
push 0x4025a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c8ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402594
push edi
call esi
test eax, eax
je 0x40c8ec
push eax
call fcn.00406a78
mov dword [esp], 0x402584
push edi
mov dword [0x42a8e0], eax
call esi
push eax
call fcn.00406a78
mov dword [esp], 0x402570
push edi
mov dword [0x42a8e4], eax
call esi
push eax
call fcn.00406a78
mov dword [esp], 0x402554
push edi
mov dword [0x42a8e8], eax
call esi
push eax
call fcn.00406a78
pop ecx
mov dword [0x42a8f0], eax
test eax, eax
je 0x40c83b
push 0x40253c
push edi
call esi
push eax
call fcn.00406a78
pop ecx
mov dword [0x42a8ec], eax
mov eax, dword [0x42a8ec]
cmp eax, ebx
je 0x40c893
cmp dword [0x42a8f0], ebx
je 0x40c893
push eax
call fcn.00406af3
push dword [0x42a8f0]
mov esi, eax
call fcn.00406af3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c893
test edi, edi
je 0x40c893
call esi
test eax, eax
je 0x40c88a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c88a
test byte [ebp - 0xc], 1
jne 0x40c893
or dword [ebp + 0x10], 0x200000
jmp 0x40c8cc
mov eax, dword [0x42a8e4]
cmp eax, ebx
je 0x40c8cc
push eax
call fcn.00406af3
pop ecx
test eax, eax
je 0x40c8cc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c8cc
mov eax, dword [0x42a8e8]
cmp eax, ebx
je 0x40c8cc
push eax
call fcn.00406af3
pop ecx
test eax, eax
je 0x40c8cc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a8e0]
call fcn.00406af3
pop ecx
test eax, eax
je 0x40c8ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c8ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push edi
push 0x427590
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403b00
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x401095
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402340
add esp, 8
push ebp
call fcn.0041233e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x24]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040e676
add esp, 0x10
test eax, eax
jns 0x4010d7
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402470
add esp, 0xc
jmp 0x4011a1
push dword [ebx + 0xc]
call fcn.00412359
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401106
push dword [ebx + 0xc]
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402470
add esp, 0x10
jmp 0x4011a1
cmp byte [ebx + 0x10], 1
jne 0x40111b
push ebp
push 0
push ebx
push edi
call fcn.004011e0
add esp, 0x10
jmp 0x401192
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x40116d
test ebx, ebx
jb 0x40113d
ja 0x401136
cmp esi, 0x2000
jbe 0x40113d
mov edi, 0x2000
jmp 0x40113f
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040e252
add esp, 0x10
cmp eax, 1
jb 0x401171
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x401136
jb 0x40116d
test esi, esi
jne 0x401128
xor eax, eax
jmp 0x40118e
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402470
add esp, 0xc
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011a1
push ebp
call fcn.0041233e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040dff1
add esp, 4
pop ebx
test ebp, ebp
je 0x4011c0
push dword [esp + 0x24]
push ebp
call fcn.00403c10
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.0041233e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.3.1
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0040a210
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401234
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402340
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00412359
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401268
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00402470
add esp, 0xc
jmp 0x40138e
push 0x2000
call fcn.00412359
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00402470
add esp, 0xc
jmp 0x40138e
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x4012c9
ja 0x4012c2
cmp eax, 0x2000
jbe 0x4012c9
mov esi, 0x2000
jmp 0x4012cb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040e252
add esp, 0x10
cmp eax, esi
jne 0x401389
push dword [esp + 0x5c]
call fcn.0040e04d
add esp, 4
test eax, eax
jne 0x401389
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
nop
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00408720
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40133e.1
movzx ecx, byte [ecx + 0x401414]
jmp dword [ecx*4 + 0x401408]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013b2
push ebp
push esi
push 1
push ebx
call fcn.0040e975
add esp, 0x10
cmp eax, esi
jne 0x401370
push ebp
call fcn.0040e04d
add esp, 4
test eax, eax
je 0x4013c3
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402340
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040a000
push dword [esp + 0x14]
call fcn.0041233e
push ebx
call fcn.0041233e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013c7
push esi
push ebx
push edi
call fcn.0040b730
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401310
cmp eax, 1
je 0x401401
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4013e5
cmp dword [esp + 0x10], ecx
jbe 0x401373
mov eax, dword [esp + 0x10]
jmp 0x4012b5
mov eax, 0xfffffffd
jmp 0x401373
cmp eax, 1
jne 0x401373
xor esi, esi
jmp 0x40138c
Function at 0x401420
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
push 0x427590
push esi
call fcn.00403b00
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
test edi, edi
jne 0x401462
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402340
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040e676
add esp, 0x10
test eax, eax
jns 0x4014b2
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402470
add esp, 0xc
push edi
call fcn.0040dff1
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
push dword [ebx + 0xc]
call fcn.00412359
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4014f3
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402470
add esp, 0x10
push edi
call fcn.0040dff1
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x401508
push ebp
push 0
push ebx
push edi
call fcn.004011e0
add esp, 0x10
jmp 0x401577
mov esi, dword [ebx + 0xc]
xor ebx, ebx
test esi, esi
je 0x40154e
test ebx, ebx
jb 0x401526
ja 0x40151f
cmp esi, 0x2000
jbe 0x401526
mov edi, 0x2000
jmp 0x401528
mov edi, esi
push dword [esp + 0x10]
push 1
push edi
push ebp
call fcn.0040e252
add esp, 0x10
cmp eax, 1
jb 0x401552
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x40151f
jb 0x40154e
test esi, esi
jne 0x401511
xor eax, eax
jmp 0x40156f
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402470
add esp, 0xc
or eax, 0xffffffff
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x401586
push ebp
call fcn.0041233e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040dff1
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x4015a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
cmp byte [ebx + 0x11], 0x6e
jne 0x4015df
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
call fcn.00401040
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4015d7
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_create_symbolic_link__s__n
call fcn.00402340
add esp, 8
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push 0x427678
push dword [esp + 0x28]
call fcn.00403b00
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40161b
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.00402470
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
push ebp
push 0x427590
push esi
call fcn.00403b00
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x401651
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402340
add esp, 8
or edi, 0xffffffff
jmp 0x40178c
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi + 0x1000]
push 0
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebp
call fcn.0040e676
add esp, 0x10
test eax, eax
jns 0x401691
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402470
add esp, 0xc
or edi, 0xffffffff
jmp 0x401783
cmp byte [ebx + 0x10], 1
jne 0x4016ab
push 0
push edi
push ebx
push ebp
call fcn.004011e0
add esp, 0x10
mov edi, eax
jmp 0x401783
push 0x2000
xor edi, edi
call fcn.00412359
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4016e0
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.00402470
add esp, 0xc
or edi, 0xffffffff
jmp 0x401783
mov esi, dword [ebx + 0xc]
xor ebp, ebp
test esi, esi
je 0x401776
nop dword [eax]
test ebp, ebp
jb 0x401705
ja 0x4016fe
cmp esi, 0x2000
jbe 0x401705
mov edi, 0x2000
jmp 0x401707
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040e252
add esp, 0x10
cmp eax, 1
jb 0x401759
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040e975
add esp, 0x10
cmp eax, 1
jb 0x401749
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebp, 0
jne 0x4016f0
jb 0x401745
test esi, esi
jne 0x4016f0
xor edi, edi
jmp 0x401772
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x401767
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402470
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.0041233e
mov ebp, dword [esp + 0x18]
add esp, 4
push ebp
call fcn.0040dff1
add esp, 4
push dword [esp + 0x18]
call fcn.0040dff1
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x406ae0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040ad60
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1018]
xor ebx, ebx
push 0x427590
push eax
call fcn.00403b00
mov esi, eax
add esp, 8
test esi, esi
je 0x406b3c
push 0x427678
push edi
call fcn.00403b00
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x406b57
call fcn.0040dff1
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x1004
ret
call fcn.0040e021
add esp, 4
test eax, eax
jne 0x406bc9
push esi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040e252
add esp, 0x10
test eax, eax
je 0x406bb0
push edi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040e975
add esp, 0x10
test eax, eax
je 0x406bad
push edi
call fcn.0040e04d
add esp, 4
test eax, eax
jne 0x406bad
push esi
call fcn.0040e021
add esp, 4
test eax, eax
je 0x406b63
jmp 0x406bc9
push edi
jmp 0x406bbe
push esi
call fcn.0040e04d
add esp, 4
test eax, eax
je 0x406bc9
push esi
call fcn.0041422b
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.0040dff1
push edi
call fcn.0040dff1
mov ecx, dword [esp + 0x1014]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aa17
add esp, 0x1004
ret

Function at 0x406c00
Capabilities:
Create directory

Disassembly:
mov eax, 0x3008
call fcn.0040ad60
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x3004], eax
mov eax, dword [esp + 0x300c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x301c]
mov ecx, esi
push edi
mov edi, dword [esp + 0x3024]
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c40
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x406c50
sub edx, ebx
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x1000
jae 0x406d11
push 0x5c
push esi
push str._s_c
lea eax, [esp + 0x20]
push 0x1000
push eax
call fcn.00401b80
push 0x5c
push edi
mov ebp, eax
call fcn.0040be10
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x406d0d
mov ebx, 0x1000
sub ebx, ebp
lea ebp, [esp + ebp + 0x14]
nop
push edi
mov eax, esi
sub eax, edi
push eax
push 0x428ee4
push ebx
push ebp
call fcn.00401b80
lea eax, [esp + 0x28]
push eax
call fcn.00403aa0
add esp, 0x18
test eax, eax
jne 0x406cf9
push 0x1000
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407b20
mov eax, dword [esp + 0x1c]
add esp, 0xc
push dword [eax + 0x301c]
lea eax, [esp + 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406d11
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0040be10
mov esi, eax
add esp, 8
test esi, esi
jne 0x406ca0
xor eax, eax
jmp 0x406d14
or eax, 0xffffffff
mov ecx, dword [esp + 0x3014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040aa17
add esp, 0x3008
ret
Function at 0x406d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x1c], xmm0
call fcn.00412359
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x406e9a
mov ebx, dword [esp + 0x2c]
push 2
push 0
push 0
push ebx
call fcn.0040e676
add esp, 0x10
test eax, eax
js 0x406e9a
push ebx
call fcn.004148d2
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x34]
test edx, edx
jb 0x406e9a
ja 0x406db6
cmp edi, eax
jb 0x406e9a
test edx, edx
jne 0x406db6
cmp edi, 0x2000
jae 0x406db6
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x406dc3
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x406e9a
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.0040e676
add esp, 0x10
test eax, eax
js 0x406e9a
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040e252
add esp, 0x10
cmp eax, edi
jne 0x406e9a
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x406e79
lea ebx, [esi - 1]
add ebx, edi
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x406e31
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x406e3a
add edx, 4
add esi, 4
sub eax, 4
jae 0x406e20
cmp eax, 0xfffffffc
je 0x406eba
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x406e67
cmp eax, 0xfffffffd
je 0x406eba
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x406e67
cmp eax, 0xfffffffe
je 0x406eba
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x406e67
cmp eax, 0xffffffff
je 0x406eba
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x406eba
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x406e11
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 0x406d97
test ebp, ebp
jne 0x406d97
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0041233e
add esp, 4
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
add edi, ebp
adc esi, dword [esp + 0x10]
add edi, 0xffffffff
adc esi, 0xffffffff
jmp 0x406ea2
Function at 0x406ed0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040ad60
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push 0
push eax
call fcn.00407b20
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406f28
push str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402400
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.0041233e
add esp, 4
test esi, esi
jne 0x406f6f
push str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00402400
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.004079d0
add esp, 4
test eax, eax
je 0x407006
cmp word [esp + 0xc], 0x5c
je 0x406fa6
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x406f93
mov eax, dword [0x428ff8]
mov dword [edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x406fe2
push eax
lea eax, [esp + 0xc]
push eax
push str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.00402400
add esp, 0xc
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.00414913
add esp, 4
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0xc]
push eax
push 0
call fcn.00414bf7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407046
push str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402400
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
push 0x5c
push esi
call fcn.0040c077
mov edi, eax
add esp, 8
test edi, edi
je 0x4070a6
nop word [eax + eax]
mov ecx, edi
lea eax, [esp + 0x2008]
push esi
sub ecx, esi
sar ecx, 1
push ecx
push str._.s
push 0x1000
push eax
call fcn.00402300
add esp, 0x14
lea eax, [esp + 0x2008]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040c077
mov edi, eax
add esp, 8
test edi, edi
jne 0x407060
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4070f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4070f2
push esi
push str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
push str.CreateDirectory
call fcn.00402690
push esi
call fcn.0041233e
add esp, 0x10
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4008]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.0040aa17
add esp, 0x4004
ret