joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ac5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a888
mov ebx, 0x465e20
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406b13
push 1
push ebp
push edi
call fcn.00405e7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c8e
cmp eax, esi
jg 0x406c8e
push esi
mov edi, 0x46b478
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c8e
cmp eax, esi
jg 0x406c8e
push ebp
push ebp
push esi
push 0x466620
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406c8e
push ebp
push ebp
push esi
mov esi, 0x466c70
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406c8e
push esi
push 0x466620
push str._s_s_r_n
push 0x467070
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47eabc]
push dword [eax + 0x128]
push edi
call fcn.00406831
push 4
push 0xc0000000
push edi
call fcn.00405e7c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406c8e
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406c84
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c84
cmp edi, dword [esp + 0x10]
jne 0x406c84
push str._Rename__r_n
push esi
call fcn.00405de2
cmp eax, ebp
jne 0x406c17
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c4c
push 0x40a87c
add eax, 0xa
push eax
call fcn.00405de2
mov ebp, eax
test ebp, ebp
je 0x406c4a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406c41
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406c37
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406c4e
xor ebp, ebp
mov eax, edi
push ebx
push 0x467070
add eax, esi
push eax
call fcn.00405e38
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x126c0f90
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x65c46f71
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100096d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000989d
pushal
mov esi, 0x4628000
lea edi, [esi - 0x7000]
push edi
jmp 0x100096fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10009701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100096f0
mov eax, 1
add ebx, ebx
jne 0x10009713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10009708
jne 0x10009724
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009708
xor ecx, ecx
sub eax, 3
jb 0x10009738
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100097aa
mov ebp, eax
add ebx, ebx
jne 0x10009743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10009750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10009774
inc ecx
add ebx, ebx
jne 0x10009760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10009755
jne 0x10009771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009755
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10009794
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10009785
jmp 0x100096f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10009794
add edi, ecx
jmp 0x100096f6
pop esi
mov edi, esi
mov ecx, 0x7b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100097b2
cmp byte [edi], 4
jne 0x100097b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100097b7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x1000982f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x921c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100097e4
mov ecx, edi
jns 0x10009813
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9220]
or eax, eax
je 0x10009829
mov dword [ebx], eax
add ebx, 4
jmp 0x10009801
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10009860
cmp al, 0xef
ja 0x10009853
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10009835
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10009842
mov ebp, dword [esi + 0x9224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10009894
sub esp, 0xffffff80
jmp 0x100032af
Function at 0x401040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.2.11
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.00408590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401094
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.0040e380
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4010c8
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.004021e0
add esp, 0xc
jmp 0x4011f0
push 0x2000
call fcn.0040e380
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010fa
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.004021e0
add esp, 0xc
jmp 0x4011f0
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 0x401129
ja 0x401122
cmp eax, 0x2000
jbe 0x401129
mov esi, 0x2000
jmp 0x40112b
mov esi, eax
mov eax, dword [esp + 0x5c]
push dword [eax]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040b91e
add esp, 0x10
cmp eax, esi
jne 0x4011eb
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040b70c
add esp, 4
test eax, eax
jne 0x4011eb
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
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00406c00
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x4011a0.1
movzx ecx, byte [ecx + 0x401274]
jmp dword [ecx*4 + 0x401268]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401214
push ebp
push esi
push 1
push ebx
call fcn.0040bf4f
add esp, 0x10
cmp eax, esi
jne 0x4011d2
push ebp
call fcn.0040b70c
add esp, 4
test eax, eax
je 0x401225
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.004083d0
push dword [esp + 0x14]
call fcn.0040e365
push ebx
call fcn.0040e365
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401229
push esi
push ebx
push edi
call fcn.0040a370
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401172
cmp eax, 1
je 0x401263
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401247
cmp dword [esp + 0x10], ecx
jbe 0x4011d5
mov eax, dword [esp + 0x10]
jmp 0x401115
mov eax, 0xfffffffd
jmp 0x4011d5
cmp eax, 1
jne 0x4011d5
xor esi, esi
jmp 0x4011ee
Function at 0x4012a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e1
lea eax, [ebp + 0x70]
push 0x423260
push eax
call fcn.004035c0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e1
mov eax, dword [esp + 0x10]
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 ebp
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040bd15
add esp, 0x10
test eax, eax
jns 0x40131e
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.004021e0
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
pop ecx
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.0040e380
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x401350
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.004021e0
add esp, 0x10
jmp 0x4013cb
cmp byte [ebx + 0x10], 1
jne 0x401374
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013cb
push esi
call fcn.0040e365
add esp, 4
xor esi, esi
jmp 0x4013cb
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x4013c7
test ebx, ebx
jb 0x401398
ja 0x401391
cmp esi, 0x2000
jbe 0x401398
mov edi, 0x2000
jmp 0x40139a
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jb 0x4013ea
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x401391
jb 0x4013c7
test esi, esi
jne 0x401383
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
je 0x4013e2
push eax
call fcn.0040b65c
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.004021e0
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call fcn.0040e365
add esp, 4
xor esi, esi
jmp 0x4013cb
Function at 0x401420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00405a40
add esp, 4
cmp eax, 0xffffffff
jne 0x40143d
or eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
mov esi, dword [esp + 0x20]
lea eax, [ebp + 0x3070]
push edi
lea ebx, [esi + 0x12]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00405d10
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x401483
push ebx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.004021e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
mov edx, dword [ebp]
test edx, edx
jne 0x4014ba
lea eax, [ebp + 0x70]
push 0x423260
push eax
call fcn.004035c0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4014ba
push ebx
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402340
add esp, 8
or edi, 0xffffffff
jmp 0x4015e0
mov ecx, dword [esi + 4]
xor eax, eax
add ecx, dword [ebp + 8]
push 0
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040bd15
add esp, 0x10
test eax, eax
jns 0x4014f1
push ebx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015e0
cmp byte [esi + 0x10], 1
jne 0x40150b
push 0
push edi
push esi
push ebp
call fcn.00401040
add esp, 0x10
mov edi, eax
jmp 0x4015e0
push 0x2000
xor edi, edi
call fcn.0040e380
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40153d
push ebx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015e0
mov esi, dword [esi + 0xc]
xor ebx, ebx
test esi, esi
je 0x4015d7
nop word [eax + eax]
test ebx, ebx
jb 0x401565
ja 0x40155e
cmp esi, 0x2000
jbe 0x401565
mov edi, 0x2000
jmp 0x401567
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jb 0x4015ba
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040bf4f
add esp, 0x10
cmp eax, 1
jb 0x4015aa
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
test ebx, ebx
ja 0x40155e
jb 0x4015a6
test esi, esi
jne 0x401550
xor edi, edi
jmp 0x4015d3
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x4015c8
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e365
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x4015f7
push eax
call fcn.0040b65c
add esp, 4
mov dword [ebp], 0
push dword [esp + 0x18]
call fcn.0040b65c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x405780
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00406990
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4057d8
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402340
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
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.0040e365
add esp, 4
test esi, esi
jne 0x40581f
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00402340
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.004067d0
add esp, 4
test eax, eax
lea eax, [esp + 8]
je 0x40583f
push eax
call fcn.0040fd34
add esp, 4
jmp 0x40584f
push 0x1000
push eax
push 0
call fcn.0040f3be
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x40587b
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402340
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x2010]
push 0
push eax
call fcn.0040a8f0
push 0x5c
push esi
call fcn.0040acb7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4058e9
nop word [eax + eax]
mov ecx, edi
lea eax, [esp + 0x200c]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040fd93
add esp, 0xc
lea eax, [esp + 0x200c]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040acb7
mov edi, eax
add esp, 8
test edi, edi
jne 0x4058b0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
Function at 0x405910
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x423260
push eax
call fcn.004035c0
push esi
push edi
mov ebx, eax
call fcn.00405d10
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x405a0f
push ebx
test esi, esi
je 0x405a14
call fcn.0040b6e0
add esp, 4
test eax, eax
jne 0x4059e6
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040b91e
add esp, 0x10
test eax, eax
jne 0x4059a9
push ebx
call fcn.0040b70c
add esp, 4
test eax, eax
je 0x4059cb
push ebx
jmp 0x4059db
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040bf4f
add esp, 0x10
test eax, eax
je 0x4059da
push esi
call fcn.0040b70c
add esp, 4
test eax, eax
jne 0x4059da
push ebx
call fcn.0040b6e0
add esp, 4
test eax, eax
je 0x405980
jmp 0x4059e6
push esi
call fcn.004114a8
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040b65c
push esi
call fcn.0040b65c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004096fa
add esp, 0x1004
ret
test esi, esi
je 0x405a1c
push esi
call fcn.0040b65c
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004096fa
add esp, 0x1004
ret
Function at 0x405a90
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x405b0f
push 0x4255cc
call fcn.00405c60
push ebp
mov ebx, eax
call fcn.00405780
mov edi, eax
add esp, 8
test edi, edi
je 0x405bcb
push edi
push 0x4255d0
call fcn.0041037e
push edi
mov esi, eax
call fcn.0040e365
add esp, 0xc
test esi, esi
je 0x405b13
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00402340
add esp, 4
xor eax, eax
jmp 0x405c45
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004021b0
add esp, 0x10
xor esi, esi
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0041148d
mov edi, eax
push edi
call fcn.00406830
add esp, 0xc
test eax, eax
je 0x405bcf
push edi
call fcn.0040e365
inc esi
add esp, 4
cmp esi, 5
jl 0x405b40
test ebp, ebp
je 0x405bcb
push 0
push 0x4255cc
push 0
call fcn.00406990
test ebx, ebx
je 0x405bb4
push 0
push ebx
push 0
mov edi, eax
call fcn.00406990
mov esi, eax
push esi
push edi
call fcn.0041037e
push edi
call fcn.0040e365
push esi
call fcn.0040e365
push ebx
call fcn.0040e365
add esp, 0x2c
xor eax, eax
jmp 0x405c45
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040e365
add esp, 4
xor eax, eax
jmp 0x405c45
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00406a30
push edi
call fcn.0040e365
add esp, 0x10
test ebp, ebp
je 0x405c40
push 0
push 0x4255cc
push 0
call fcn.00406990
test ebx, ebx
je 0x405c29
push 0
push ebx
push 0
mov edi, eax
call fcn.00406990
mov esi, eax
push esi
push edi
call fcn.0041037e
push edi
call fcn.0040e365
push esi
call fcn.0040e365
push ebx
call fcn.0040e365
add esp, 0x2c
jmp 0x405c40
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040e365
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004096fa
add esp, 0x2028
ret
Function at 0x405c60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00406990
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x405cf0
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00406a30
add esp, 0xc
test eax, eax
je 0x405cf0
cmp byte [eax], 0
je 0x405cf0
push eax
call fcn.00412f2d
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret

Function at 0x4060c0
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00406990
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.0040e365
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x4060f0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00406990
push 1
push 0x16
call fcn.00410f12
push 1
push 2
call fcn.00410f12
push 1
push 0xf
call fcn.00410f12
push 1
push 0x15
call fcn.00410f12
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
push 1
mov dword [esp + 0x68], eax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
push 2
mov dword [esp + 0x78], eax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406247
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.004096fa
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x4256d4
call fcn.00402290
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.004096fa
add esp, 0x2068
ret