joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.004062ff
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and edi, 1
mov dword [ebp + 8], edi
je 0x4060d7
test eax, eax
je 0x406217
test byte [ebp + 0xc], 2
je 0x4061d3
mov esi, 0x421d50
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4060f7
push str..
push esi
call edi
jmp 0x4060fd
push ebx
call fcn.00406266
push 0x40900c
push ebx
call edi
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4061c9
cmp byte [ebp - 0x118], 0x2e
jne 0x406143
cmp byte [ebp - 0x117], 0x2e
je 0x4061ac
cmp byte [ebp - 0x117], 0
je 0x4061ac
lea eax, [ebp - 0x118]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x40616f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4061ac
push dword [ebp + 0xc]
push ebx
call fcn.004060a2
jmp 0x4061ac
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4061a4
test byte [ebp + 0xc], 4
je 0x40619c
push ebx
push 0xfffffffffffffff1
call fcn.00405afb
push 0
push ebx
call fcn.00406455
jmp 0x4061ac
inc dword [0x4243c8]
jmp 0x4061ac
push ebx
push 0xfffffffffffffff2
call fcn.00405afb
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406128
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4061d3
and byte [edi - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x406217
cmp dword [ebp + 8], esi
je 0x406217
push ebx
call fcn.0040621e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40620f
test byte [ebp + 0xc], 4
je 0x406207
push ebx
push 0xfffffffffffffff1
call fcn.00405afb
push esi
push ebx
call fcn.00406455
jmp 0x406217
inc dword [0x4243c8]
jmp 0x406217
push ebx
push 0xffffffffffffffe5
call fcn.00405afb
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4062ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422150
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.004062b2
test eax, eax
jne 0x40631e
xor eax, eax
jmp 0x40636d
test byte [0x424350], 0x80
je 0x406332
mov cl, byte [eax]
test cl, cl
je 0x40631a
cmp cl, 0x5c
je 0x40631a
mov edi, eax
sub edi, esi
jmp 0x40634c
call fcn.004069fa
test eax, eax
je 0x406346
test byte [eax], 0x10
je 0x40631a
push esi
call fcn.00406266
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x406338
call fcn.0040621e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x4063de
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40640d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406451
test edi, edi
jne 0x406418
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40644b
Function at 0x406455
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40648d
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40648d
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4065d2
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ed8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ed8
je 0x4064d1
push 1
push 0
push esi
call fcn.004063de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4065d8
cmp eax, edi
jg 0x4065d8
mov esi, 0x422ad8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4065d8
cmp eax, edi
jg 0x4065d8
push esi
push ebp
push str._s_s_r_n
push 0x4226d8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4065d2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4065ba
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4065ae
push str._Rename__r_n
push edi
call fcn.00406372
test eax, eax
jne 0x4065df
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4226d8
push eax
call fcn.004063be
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409318
push eax
call fcn.00406372
test eax, eax
je 0x406595
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406608
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x4065fb
sub eax, edi
jmp 0x406597
Function at 0x40660c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406670
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40665f
cmp dword [ebp + 0x14], 1
je 0x406661
cmp dword [ebp + 0x14], 2
je 0x406661
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10022db
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor esi, esi
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002323
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1002385
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002385
cmp dword [ebp - 4], esi
jne 0x100232c
xor eax, eax
jmp 0x1002385
push ebx
push esi
push esi
push dword [ebp - 4]
call fcn.01009241
mov ebx, eax
cmp ebx, esi
jne 0x1002344
mov eax, 0x8007000e
jmp 0x1002384
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002375
push ebx
call fcn.01008f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1002384
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002384
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x1002390
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10023d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100243a
and eax, 0xffff
or eax, 0x80070000
jmp 0x100243a
cmp dword [ebp - 4], esi
jne 0x10023e1
xor eax, eax
jmp 0x100243a
push ebx
push esi
push esi
push dword [ebp - 4]
call fcn.01009241
mov ebx, eax
cmp ebx, esi
jne 0x10023f9
mov eax, 0x8007000e
jmp 0x1002439
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100242a
push ebx
call fcn.01008f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1002439
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002439
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x10086a1
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
sub esi, esi
add esi, 0x30
mov edi, dword fs:[esi]
push ecx
mov esi, edi
invalid

Function at 0x10086c7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and eax, 0xdf00df
mov ebx, dword [ebx + 0xc]
shl ebx, 8
add ebx, eax
shr ebx, 2
invalid
jmp 0x10086ad
dec esp

Function at 0x1009087
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x1009181
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1009181
cmp dword [ebp + 8], edi
je 0x1009181
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x1009181
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebx], edi
mov dword [eax], edi
or dword [esi], 0xffffffff
call fcn.01009349
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1009106
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1009101
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1009158
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10090ed
cmp dword [ebp - 0xc], edi
je 0x1009127
mov dword [ebp - 4], 0x80004005
jmp 0x100915d
push edi
push edi
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10090ed
push dword [ebp + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x10090ed
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebx], eax
cmp dword [ebp - 4], edi
je 0x100916e
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100916e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
cmp dword [ebp - 8], edi
je 0x100917c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1009186
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1009192
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1009232
cmp dword [ebp + 0xc], esi
je 0x1009232
cmp dword [ebp + 0x10], esi
je 0x1009232
push edi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call fcn.01009349
mov edi, eax
cmp edi, 0xffffffff
jne 0x10091e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10091e4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100922d
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1009216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1009212
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1009226
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
and esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
jmp 0x1009237
mov eax, 0x80070057
pop esi
leave
ret 0xc
Function at 0x45a7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x45a802
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45a809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a7f8
mov eax, 1
add ebx, ebx
jne 0x45a81b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45a82c
jne 0x45a84b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a84b
dec eax
add ebx, ebx
jne 0x45a838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45a810
add ebx, ebx
jne 0x45a847
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45a89d
xor ecx, ecx
sub eax, 3
jb 0x45a863
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45a8d2
sar eax, 1
mov ebp, eax
jmp 0x45a86e
add ebx, ebx
jne 0x45a86e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a83c
inc ecx
add ebx, ebx
jne 0x45a87c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a83c
add ebx, ebx
jne 0x45a889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45a87e
jne 0x45a89a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45a87e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45a8bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45a8ae
jmp 0x45a7fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45a8bc
add edi, ecx
jmp 0x45a7fe
pop esi
mov edi, esi
mov ecx, 0x8b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45a8da
cmp byte [edi], 5
jne 0x45a8da
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 0x45a8df
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45a957
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a0c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45a90c
mov ecx, edi
jns 0x45a93b
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 + 0x5a108]
or eax, eax
je 0x45a951
mov dword [ebx], eax
add ebx, 4
jmp 0x45a929
call dword [esi + 0x5a118]
mov ebp, dword [esi + 0x5a10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x45a98b
sub esp, 0xffffff80
jmp 0x40138c
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406054], 1
mov dword [0x406050], 1
mov dword [0x40604c], 1
mov dword [0x406044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40600c], eax
mov eax, dword [0x406060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40605c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40301c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x401a10
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401924
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401910
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a37
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019b0
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40192e
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401f45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f3e
test esi, esi
je 0x401f3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f20
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x758848fb
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x372e6625
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
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 0x4285c0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040b0
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.00402470
add esp, 8
push ebp
call fcn.0041323e
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.0040f4c6
add esp, 0x10
test eax, eax
jns 0x4010e0
call fcn.00413220
mov ecx, eax
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.004025f0
add esp, 0x10
jmp 0x4011c2
push dword [ebx + 0xc]
call fcn.00413259
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401119
mov esi, dword [ebx + 0xc]
call fcn.00413220
mov ecx, eax
lea eax, [ebx + 0x12]
push esi
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [ecx]
push str.malloc
call fcn.004025f0
add esp, 0x14
jmp 0x4011c2
cmp byte [ebx + 0x10], 1
jne 0x401131
push ebp
push 0
push ebx
push edi
call fcn.00401200
add esp, 0x10
jmp 0x4011b3
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x401185
nop
test ebx, ebx
jb 0x401155
ja 0x40114e
cmp esi, 0x2000
jbe 0x401155
mov edi, 0x2000
jmp 0x401157
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040f0a2
add esp, 0x10
cmp eax, 1
jb 0x401189
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x40114e
jb 0x401185
test esi, esi
jne 0x401140
xor eax, eax
jmp 0x4011af
call fcn.00413220
mov ecx, eax
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [ecx]
push str.fread
call fcn.004025f0
add esp, 0x10
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011c2
push ebp
call fcn.0041323e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040ee41
add esp, 4
pop ebx
test ebp, ebp
je 0x4011e1
push dword [esp + 0x24]
push ebp
call fcn.004041c0
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.0041323e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret