joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov eax, dword [esi + 4]
test eax, eax
jne 0x405040
lea eax, [ebx + 8]
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [ebx], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
je 0x405026
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call fcn.004bcd60
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call edi
sub esp, 0x20
lea esi, [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 0x38], esi
call sub.msvcrt.dll_strlen
cmp eax, 0xf
mov edi, eax
mov dword [esp + 0x34], eax
ja 0x405140
cmp eax, 1
je 0x405181
test eax, eax
jne 0x4051b1
mov edx, esi
mov dword [esp + 0x3c], eax
mov byte [edx + eax], 0
mov dword [esp], ebp
call fcn.004bcd20
lea eax, [ebx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x405190
mov dword [ebx], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a5da0
sub esp, 8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
jmp 0x405106
movzx edx, byte [ebp]
mov byte [esp + 0x40], dl
mov edx, esi
jmp 0x405106
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x14], eax
jmp 0x40512c
mov eax, esi
jmp 0x405167
Function at 0x4096b0
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xb0
mov edi, dword [ecx + 0x24]
mov esi, dword [esp + 0xc0]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x38]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x34], edi
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x3c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x2c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
sub esp, 0x1c
test eax, eax
je 0x4097c0
cmp dword [esp + 0x58], 2
je 0x4097d0
add esp, 0xb0
xor eax, eax
pop ebx
pop esi
pop edi
ret 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4097c0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4097c0
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x4097c0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4097c0
lea eax, [esp + 0x84]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x84], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4097c0
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x34], eax
add esp, 0xb0
mov eax, 1
pop ebx
pop esi
pop edi
ret 4

Function at 0x4135b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00413610
Function at 0x413610
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4d03c0]
test esi, esi
jle 0x413703
mov edi, dword [0x4d03c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x413644
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4136fc
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x413630
mov dword [esp], eax
mov esi, eax
call fcn.00413f00
test eax, eax
mov edi, eax
je 0x413740
mov esi, dword [0x4d03c4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.00414010
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4d03c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x413720
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4136f5
sub eax, 4
and eax, 0xfffffffb
je 0x4136f5
add ebx, dword [0x4d03c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x41370a
add dword [0x4d03c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x41364e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004135b0
mov eax, dword [0x4d03c4]
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 fcn.004135b0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004135b0

Function at 0x413b80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4d03d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4d03d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x413bd5
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 0x413bce
test esi, esi
je 0x413bce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413bb0
mov dword [esp], 0x4d03d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4148d0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x414904
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x4d03f4], eax
call fcn.00422390
test eax, eax
sete al
movzx eax, al
mov dword [0x4c1020], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4148f3
Function at 0x414a20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
jmp 0x414a4c
mov dword [0x4d03f8], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x414b04
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x414b60
test esi, esi
je 0x414ac7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x414b3c
cmp eax, 8
jne 0x414b60
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x4c1020]
test eax, eax
js 0x414b44
test eax, eax
je 0x414a40
mov eax, dword [0x4d03f4]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x414a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414a46
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call eax
test eax, eax
jne 0x414b60
mov eax, 5
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.00414910
mov eax, dword [0x4c1020]
mov edx, dword [esp + 0x2c]
jmp 0x414ad4
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4c1020]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x414bf0
test eax, eax
jne 0x414ba0
mov eax, dword [0x4d03f8]
mov dword [0x4d03f8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x4d03f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4d03f4]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x414b95
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.00414910
mov eax, dword [0x4c1020]
jmp 0x414b84
Function at 0x414c00
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x4c1020]
test eax, eax
js 0x414c45
test eax, eax
jne 0x414c22
mov dword [0x4d03f8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4d03f4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x414c1d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00414910
mov eax, dword [0x4c1020]
jmp 0x414c13

Function at 0x414d60
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x4c1020]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x414e4c
test eax, eax
mov esi, dword [0x4d03f8]
jne 0x414de1
test esi, esi
mov dword [esp + 0x2c], esi
je 0x414dd5
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x414dc7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x414e10
cmp eax, 8
jne 0x414e40
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x414d90
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x4d03f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x414d81
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.00414830
cmp eax, 7
jne 0x414dda
mov eax, ebx
call fcn.004149b0
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.00414910
mov eax, dword [0x4c1020]
jmp 0x414d77

Function at 0x414f00
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x4c1020]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x414f75
test edx, edx
mov eax, dword [0x4d03f8]
jne 0x414f4d
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x414f3f
call fcn.00414830
cmp eax, 7
je 0x414f46
call sub.msvcrt.dll_abort
call fcn.00414a20
jmp 0x414f35
mov eax, esi
call fcn.004149b0
mov esi, dword [0x4d03f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x414f1d
call fcn.00414910
mov edx, dword [0x4c1020]
jmp 0x414f14
Function at 0x414f90
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x414fd0
mov edx, dword [0x4c1020]
test edx, edx
js 0x415020
test edx, edx
mov eax, dword [0x4d03f8]
jne 0x414ff0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.00414a20
cmp eax, 7
je 0x414fe0
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.00414d60
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.004149b0
lea esi, [esi]
mov esi, dword [0x4d03f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x414fb4
call fcn.00414910
mov edx, dword [0x4c1020]
jmp 0x414fab

Function at 0x4151e0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4d0404], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x4d0408], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x415242
mov dword [esp + 4], 0x415100
mov dword [esp], eax
mov dword [0x4d0400], eax
call fcn.00422390
test eax, eax
jne 0x41524a
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41523a
call sub.msvcrt.dll_abort
nop
Function at 0x41ad50
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x41ada3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x41ad90
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x41ae20
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0041a610
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0041a1c0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0041aa50
mov eax, dword [0x4c1060]
cmp eax, 0xffffffff
je 0x41ae4b
test eax, eax
je 0x41ae3b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x41adab
call fcn.004221d0
test al, 1
mov edx, 3
jne 0x41ae2e
jmp 0x41ae33
mov dword [esp], 0x4c7c47
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41ae71
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x4c1060], eax
jmp 0x41ae2a
xor eax, eax
jmp 0x41ae67
Function at 0x41d0b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x41d103
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x41d0f0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x41d180
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0041c800
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0041c310
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0041cdb0
mov eax, dword [0x4c107c]
cmp eax, 0xffffffff
je 0x41d1ab
test eax, eax
je 0x41d19b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x41d10b
call fcn.004221d0
test al, 1
mov edx, 3
jne 0x41d18e
jmp 0x41d193
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41d1d1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x4c107c], eax
jmp 0x41d18a
xor eax, eax
jmp 0x41d1c7
Function at 0x479cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.00479b50
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebp, eax
je 0x479d10
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x479ce1
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x85c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x85c1a8
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 0x85c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c06a
add dl, dl
jne 0x85c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c0dc
xor eax, eax
add dl, dl
jne 0x85c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c17d
add dl, dl
jne 0x85c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85c075
mov eax, 1
add dl, dl
jne 0x85c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c0e1
sub eax, ebx
mov ebx, 1
jne 0x85c128
mov ecx, 1
add dl, dl
jne 0x85c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c136
cmp eax, 0x7d00
jae 0x85c16d
cmp eax, 0x500
jb 0x85c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
cmp eax, 0x7f
ja 0x85c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85c19e
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 0x85c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
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
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xd925cf3
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x493d7c8f
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219