joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198d9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x419931
push ebx
sub ebx, ebx
push esi
push edi
pop esi
cmp word [edi], bx
je 0x419905
add esi, 2
cmp word [esi], bx
jne 0x4198f5
add esi, 2
cmp word [esi], bx
jne 0x4198f5
sub esi, edi
add esi, 2
push esi
call fcn.00415521
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x419926
push esi
push edi
push eax
call fcn.00413df0
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret
Function at 0x421a10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
sub edx, edx
add eax, ecx
push edi
or ebx, ebx
je 0x421a4c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x421a44
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x421a4e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x421a34
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x421b20
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x421b34
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
sub eax, eax
cmp dword [ecx], 0x4550
jne 0x421b4f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x421c88
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x24
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
push eax
pop esi
mov dword [ebp - 0x18], esi
call fcn.00416524
mov dword [ebp - 0x14], eax
cmp dword [0x46c658], edi
jne 0x421d79
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x421d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x421e59
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
or esi, esi
je 0x421e59
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or eax, eax
je 0x421e59
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46c658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46c65c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46c660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c668], eax
or eax, eax
je 0x421d76
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c664], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421d9e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421d91
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x421db3
push 4
pop eax
jmp 0x421e5b
cmp dword [ebp - 0x14], edi
je 0x421db3
push dword [0x46c658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x421d98
mov eax, dword [0x46c664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x421e11
cmp dword [0x46c668], esi
je 0x421e11
push eax
call ebx
push dword [0x46c668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
or ecx, ecx
je 0x421e11
or eax, eax
je 0x421e11
call ecx
or eax, eax
je 0x421e06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x421e06
test byte [ebp - 8], 1
jne 0x421e11
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x421e41
mov eax, dword [0x46c65c]
cmp eax, esi
je 0x421e3e
push eax
call ebx
or eax, eax
je 0x421e3e
call eax
mov edi, eax
or edi, edi
je 0x421e3e
mov eax, dword [0x46c660]
cmp eax, esi
je 0x421e3e
push eax
call ebx
or eax, eax
je 0x421e3e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46c658]
call ebx
test eax, eax
je 0x421e59
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x421e5b
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411784
leave
ret
Function at 0x425c71
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
push esi
mov esi, dword [ebp + 8]
or esi, esi
je 0x425cce
cmp word [esi], 0
je 0x425cce
push 0x4306e4
push esi
call fcn.00424fa5
pop ecx
pop ecx
test eax, eax
je 0x425cce
push 0x4306ec
push esi
call fcn.00424fa5
pop ecx
pop ecx
test eax, eax
jne 0x425cc5
push 2
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x2000000b
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425ce9
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
push esi
call fcn.0041179c
pop ecx
jmp 0x425cc2
push 2
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x20001004
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x425ced
sub eax, eax
jmp 0x425cc2
mov eax, dword [ebp + 8]
test eax, eax
jne 0x425cc2
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetACP]

Function at 0x425d1e
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
push ecx
push esi
push edi
call fcn.00418afb
mov esi, dword [ebp + 8]
push 2
push eax
pop edi
lea eax, [ebp - 4]
push eax
push esi
pop ecx
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x425d56
sub eax, eax
jmp 0x425d82
cmp esi, dword [ebp - 4]
je 0x425d7f
cmp dword [ebp + 0xc], 0
je 0x425d7f
push dword [edi + 0x9c]
call fcn.0042592c
push dword [edi + 0x9c]
push eax
pop esi
call fcn.00416a15
pop ecx
pop ecx
cmp esi, eax
je 0x425d52
sub eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x425d86
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x14], eax
call fcn.00418afb
lea ebx, [eax + 0x9c]
xor eax, eax
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413d60
add esp, 0xc
call fcn.00418afb
lea ecx, [ebp - 0x10]
mov dword [eax + 0x3b8], ecx
or esi, esi
jne 0x425de2
or dword [ebp - 0x10], 0x104
jmp 0x425e9f
lea eax, [esi + 0x80]
lea edi, [ebx + 4]
xor ecx, ecx
mov dword [ebx], esi
mov dword [edi], eax
or eax, eax
je 0x425e11
cmp word [eax], cx
je 0x425e11
mov eax, dword [0x4306e0]
push edi
dec eax
push eax
push 0x430408
call fcn.0042553a
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx]
test eax, eax
je 0x425e81
cmp word [eax], cx
je 0x425e81
mov eax, dword [edi]
or eax, eax
je 0x425e35
cmp word [eax], cx
je 0x425e35
lea eax, [ebp - 0x10]
push eax
call fcn.00425856
jmp 0x425e3e
lea eax, [ebp - 0x10]
push eax
call fcn.004258d3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x425eb5
mov eax, dword [0x4306dc]
push ebx
dec eax
push eax
push 0x42f958
call fcn.0042553a
add esp, 0xc
test eax, eax
je 0x425eab
mov eax, dword [edi]
test eax, eax
je 0x425e76
sub ecx, ecx
cmp word [eax], cx
je 0x425e76
lea eax, [ebp - 0x10]
push eax
call fcn.00425856
jmp 0x425e95
lea eax, [ebp - 0x10]
push eax
call fcn.004258d3
jmp 0x425e95
mov eax, dword [edi]
or eax, eax
je 0x425e98
cmp word [eax], cx
je 0x425e98
lea eax, [ebp - 0x10]
push eax
call fcn.00425816
pop ecx
jmp 0x425eab
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], 0
je 0x425f8f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00425c71
mov esi, eax
pop ecx
pop ecx
or esi, esi
je 0x425f8f
cmp esi, 0xfde8
je 0x425f8f
cmp esi, 0xfde9
je 0x425f8f
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425f8f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
or eax, eax
je 0x425f8f
mov eax, dword [ebp - 0x18]
or eax, eax
je 0x425f19
mov dword [eax], esi
push 0x55
lea eax, [ebx + 0x250]
push eax
push dword [ebp - 0xc]
call fcn.004184f3
mov ebx, dword [ebp - 0x14]
add esp, 0xc
or ebx, ebx
je 0x425f8a
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004184f3
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x425f8f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call edi
or eax, eax
je 0x425f8f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00426daf
add esp, 0x10
sub eax, eax
inc eax
jmp 0x425f91
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411784
leave
ret
Function at 0x426ace
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
mov ebx, esi
mov dword [ebp - 8], esi
call fcn.0041ef9f
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x426b56
push 2
push esi
push esi
push edi
call fcn.0041ef9f
push eax
pop ecx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x426b56
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x426bed
jg 0x426b30
test esi, esi
je 0x426bed
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x426b62
call fcn.004169c1
mov dword [eax], 0xc
call fcn.004169c1
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.00426cac
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x426b8a
jg 0x426b83
cmp esi, 0x1000
jb 0x426b8a
mov eax, 0x1000
jmp 0x426b8c
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.0041c564
add esp, 0xc
cmp eax, 0xffffffff
je 0x426bb3
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x426bce
jg 0x426b75
or esi, esi
je 0x426bce
jmp 0x426b75
call fcn.0041698d
cmp dword [eax], 5
jne 0x426bc8
call fcn.004169c1
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00426cac
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x426c53
test eax, eax
jg 0x426c5f
jl 0x426bf7
test esi, esi
jae 0x426c5f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041ef9f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x426b56
push edi
call fcn.00423b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
mov eax, edx
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x426c5f
call fcn.004169c1
mov dword [eax], 0xd
call fcn.0041698d
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x426b56
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.0041ef9f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x426b56
sub eax, eax
jmp 0x426b5d
Function at 0x401040
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.2.13
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.00409000
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.00401b50
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00411b63
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.00401b30
add esp, 0xc
jmp 0x4011f0
push 0x2000
call fcn.00411b63
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.00401b30
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.0040cfb2
add esp, 0x10
cmp eax, esi
jne 0x4011eb
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040cdad
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.004075f0
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.0040d6d5
add esp, 0x10
cmp eax, esi
jne 0x4011d2
push ebp
call fcn.0040cdad
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.00401b50
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.00408df0
push dword [esp + 0x14]
call fcn.00411b48
push ebx
call fcn.00411b48
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.0040a480
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:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e5
lea eax, [ebp + 0x70]
push 0x426350
push eax
call fcn.00402ba0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e5
mov eax, dword [esp + 0x14]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401b50
add esp, 8
xor eax, eax
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
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.0040d3d6
add esp, 0x10
test eax, eax
jns 0x401324
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.00401b30
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
add esp, 8
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.00411b63
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x401359
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.00401b30
add esp, 0x10
jmp 0x4013d8
cmp byte [ebx + 0x10], 1
jne 0x40137d
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013d8
push esi
call fcn.00411b48
add esp, 4
xor esi, esi
jmp 0x4013d8
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x4013d4
nop dword [eax]
test ebx, ebx
jb 0x4013a5
ja 0x40139e
cmp esi, 0x2000
jbe 0x4013a5
mov edi, 0x2000
jmp 0x4013a7
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040cfb2
add esp, 0x10
cmp eax, 1
jb 0x4013f9
mov eax, dword [esp + 0x14]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x14], eax
test ebx, ebx
ja 0x40139e
jb 0x4013d4
test esi, esi
jne 0x401390
mov esi, dword [esp + 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x4013ef
push eax
call fcn.0040cd51
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 8
ret
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.00401b30
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.00411b48
add esp, 4
xor esi, esi
jmp 0x4013d8
Function at 0x401430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004056b0
add esp, 4
cmp eax, 0xffffffff
jne 0x40144d
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.00405980
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x401493
push ebx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.00401b30
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 0x4014ca
lea eax, [ebp + 0x70]
push 0x426350
push eax
call fcn.00402ba0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4014ca
push ebx
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401b50
add esp, 8
or edi, 0xffffffff
jmp 0x4015f0
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.0040d3d6
add esp, 0x10
test eax, eax
jns 0x401501
push ebx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00401b30
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015f0
cmp byte [esi + 0x10], 1
jne 0x40151b
push 0
push edi
push esi
push ebp
call fcn.00401040
add esp, 0x10
mov edi, eax
jmp 0x4015f0
push 0x2000
xor edi, edi
call fcn.00411b63
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40154d
push ebx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.00401b30
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015f0
mov esi, dword [esi + 0xc]
xor ebx, ebx
test esi, esi
je 0x4015e7
nop word [eax + eax]
test ebx, ebx
jb 0x401575
ja 0x40156e
cmp esi, 0x2000
jbe 0x401575
mov edi, 0x2000
jmp 0x401577
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040cfb2
add esp, 0x10
cmp eax, 1
jb 0x4015ca
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040d6d5
add esp, 0x10
cmp eax, 1
jb 0x4015ba
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
test ebx, ebx
ja 0x40156e
jb 0x4015b6
test esi, esi
jne 0x401560
xor edi, edi
jmp 0x4015e3
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x4015d8
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401b30
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.00411b48
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x401607
push eax
call fcn.0040cd51
add esp, 4
mov dword [ebp], 0
push dword [esp + 0x18]
call fcn.0040cd51
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x405400
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00409820
mov eax, dword [0x434008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00406890
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405458
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00409807
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.00411b48
add esp, 4
test esi, esi
jne 0x40549f
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00409807
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.00406510
add esp, 4
test eax, eax
lea eax, [esp + 8]
je 0x4054bf
push eax
call fcn.004136d4
add esp, 4
jmp 0x4054cf
push 0x1000
push eax
push 0
call fcn.00412c58
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4054fb
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00409807
add esp, 0x4004
ret
push 0x2000
lea eax, [esp + 0x200c]
push 0
push eax
call fcn.0040ab30
push 0x5c
push esi
call fcn.0040adc7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40555d
mov ecx, edi
lea eax, [esp + 0x2008]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.00413733
add esp, 0xc
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.0040adc7
mov edi, eax
add esp, 8
test edi, edi
jne 0x405520
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x4008]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.00409807
add esp, 0x4004
ret
Function at 0x405580
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.00409820
mov eax, dword [0x434008]
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 0x426350
push eax
call fcn.00402ba0
push esi
push edi
mov ebx, eax
call fcn.00405980
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x40567f
push ebx
test esi, esi
je 0x405684
call fcn.0040cd81
add esp, 4
test eax, eax
jne 0x405656
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040cfb2
add esp, 0x10
test eax, eax
jne 0x405619
push ebx
call fcn.0040cdad
add esp, 4
test eax, eax
je 0x40563b
push ebx
jmp 0x40564b
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040d6d5
add esp, 0x10
test eax, eax
je 0x40564a
push esi
call fcn.0040cdad
add esp, 4
test eax, eax
jne 0x40564a
push ebx
call fcn.0040cd81
add esp, 4
test eax, eax
je 0x4055f0
jmp 0x405656
push esi
call fcn.0041489c
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040cd51
push esi
call fcn.0040cd51
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00409807
add esp, 0x1004
ret
test esi, esi
je 0x40568c
push esi
call fcn.0040cd51
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409807
add esp, 0x1004
ret