joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406500
Capabilities:
Get disk size

Disassembly:
sub esp, 0x130
mov edx, dword [esp + 0x134]
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x406564
cmp byte [esp + 0x2d], dl
jne 0x406564
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x406590
cmp cl, dl
je 0x40655c
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x40654b
jmp 0x406590
cmp byte [eax], 0
je 0x406590
inc eax
jmp 0x406568
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x406590
cmp cl, dl
je 0x406583
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x406572
jmp 0x406590
cmp byte [eax], 0
je 0x406590
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4065fa
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4065fa
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x4065e2
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shrd eax, ecx, 0xa
pop edi
pop esi
shr ecx, 0xa
add esp, 0x130
ret
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x406629
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x4068f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40691b
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.0040ddc0
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406955
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b2e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x38]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov edi, eax
call ebx
mov esi, dword [esp + 0xc0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x427198]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
inc eax
dec ecx
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
push 0
lea ecx, [esp + 0x3c]
push edi
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push edx
push 2
push 1
dec eax
push 4
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4271a0]
mov edx, dword [esp + 0x14]
sub edi, ebx
mov ebx, dword [esp + 0x1c]
push eax
push esi
sub ebx, edx
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push ebx
push 1
push ecx
push edx
push esi
mov dword [esp + 0x3c], eax
call ebp
mov eax, dword [esp + 0x14]
push 0xf00021
push 1
push edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call ebp
mov edx, dword [0x42719c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec ebx
push 0xf00021
push ebx
inc eax
push 1
dec ecx
push eax
push ecx
push esi
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0xf00021
dec edi
push 1
dec edx
push edi
inc eax
push edx
push eax
push esi
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40b426
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b436
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
Function at 0x410c84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423110
cmp edx, dword [eax]
je 0x410ca6
add eax, 8
inc ecx
cmp eax, 0x4231a0
jl 0x410c97
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423110]
jne 0x410dd4
mov eax, dword [0x4271c0]
cmp eax, 1
je 0x410dae
test eax, eax
jne 0x410cd7
cmp dword [0x422e04], 1
je 0x410dae
cmp edx, 0xfc
je 0x410dd4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410d0e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413100
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410000
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410d51
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410000
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41fd4c
push edi
call fcn.0040dfa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413100
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413110
lea eax, [ebp - 0xa0]
push 0x41fd2c
push eax
call fcn.00413110
push dword [esi + 0x423114]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413110
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415008
add esp, 0x2c
pop edi
jmp 0x410dd4
lea eax, [ebp + 8]
lea esi, [esi + 0x423114]
push 0
push eax
push dword [esi]
call fcn.00410000
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x74e57242
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0xed5299a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1abe646b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x67fa108d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push 0x8000
push 0
call fcn.00404168
push eax
call fcn.004041ec
add esp, 8
push eax
call fcn.00404b90
add esp, 8
push 0x8000
push 1
call fcn.00404168
push eax
call fcn.004041ec
add esp, 8
push eax
call fcn.00404b90
push 0
call fcn.00404168
push eax
push 5
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004043f9
add esp, 0x1c
cmp eax, 5
jne 0x4010fb
nop dword [eax]
movzx eax, byte [esp]
and eax, 3
push eax
call fcn.004047c3
movzx eax, byte [esp + 8]
push eax
call fcn.004047c3
movzx eax, byte [esp + 8]
shr eax, 2
and eax, 3
push eax
call fcn.004047c3
movzx eax, byte [esp + 0xf]
push eax
call fcn.004047c3
movzx eax, byte [esp + 0x10]
shr eax, 4
and eax, 3
push eax
call fcn.004047c3
movzx eax, byte [esp + 0x16]
push eax
call fcn.004047c3
movzx eax, byte [esp + 0x18]
shr eax, 6
push eax
call fcn.004047c3
movzx eax, byte [esp + 0x1d]
push eax
call fcn.004047c3
push 0
call fcn.00404168
push eax
push 5
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.004043f9
add esp, 0x34
cmp eax, 5
je 0x401070
push 0
call fcn.00404b3d
int3

Function at 0x401909
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401948
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401948
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401948
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401948
cmp dword [ecx + 0x74], 0xe
jbe 0x401948
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4063e4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411488
push 0x411480
push str.FlsAlloc
push 0x1e
call fcn.004062a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406418
push dword [ebp + 8]
mov ecx, esi
call dword [0x410118]
call esi
jmp 0x40641e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406462
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411498
push 0x411490
push str.FlsGetValue
push 0x20
call fcn.004062a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406499
push dword [ebp + 8]
mov ecx, esi
call dword [0x410118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x406b97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x416fa8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x406bd7
cmp byte [ebx], 0xa
jne 0x406bd7
or byte [eax + edi + 0x28], 4
jmp 0x406bdc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x406cda
mov al, byte [edx]
cmp al, 0x1a
je 0x406cbc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x406c0b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x406c30
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x406c3a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x406bed
jmp 0x406cda
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406cb7
cmp dword [ebp - 0xc], 0
je 0x406cb7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x416fa8]
test byte [eax + edi + 0x28], 0x48
je 0x406c91
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x406c7c
mov byte [esi], dl
jmp 0x406c8d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x416fa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x406cda
cmp byte [ebp - 1], 0xa
jne 0x406ca0
cmp esi, ebx
jne 0x406ca0
mov byte [esi], 0xa
jmp 0x406cd9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040bd4f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x406cda
mov byte [esi], 0xd
jmp 0x406cd9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x416fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x406cd6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x406cda
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406ce3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x416fa8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x406d26
cmp word [esi], dx
jne 0x406d26
or byte [edi + eax + 0x28], 4
jmp 0x406d2b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x406e64
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x406e44
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x406d6d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x406da3
cmp eax, edx
jae 0x406daf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x406d45
jmp 0x406e64
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406e40
cmp dword [ebp - 0x14], 0
je 0x406e40
mov eax, dword [ebx*4 + 0x416fa8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x406e18
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x406e5e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x416fa8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x416fa8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x416fa8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x406e61
pop ebx
cmp word [ebp - 4], bx
jne 0x406e29
cmp esi, dword [ebp + 0xc]
jne 0x406e29
mov word [esi], bx
jmp 0x406e61
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040bd4f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x406e64
push 0xd
jmp 0x406e5d
mov ecx, dword [ebx*4 + 0x416fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x406e5b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x406e64
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407685
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004074f6
Function at 0x409692
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40972f
push ebx
push esi
call fcn.0040965b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004095a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4096dc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40972e
push edi
push eax
call fcn.00409d2a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4096fc
call fcn.00406138
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40972d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004095a4
add esp, 0x20
test eax, eax
jne 0x40971b
push edi
call fcn.00406138
jmp 0x409723
push ebx
call fcn.00406138
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f2bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f2bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403cea
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x472e6c
call fcn.00456482
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00403a5d
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004036a1
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x18], edi
jbe 0x403d54
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403385
mov cl, byte [0x4a329c]
xor byte [eax], cl
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403385
movzx eax, byte [eax]
push eax
mov ecx, esi
call fcn.00403768
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403d29
push dword [esi]
lea ecx, [ebp - 0x48]
call fcn.004023b9
mov edi, dword [ebp + 0x28]
dec edi
mov byte [ebp - 4], 3
test edi, edi
jle 0x403da6
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00401f75
lea eax, [ebp - 0x4c]
push eax
call fcn.00403cea
add esp, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040396d
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401264
inc edi
cmp dword [ebp + 0x2c], edi
jne 0x403dd7
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403827
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040396d
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401264
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.004018e5
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004018e5
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004018e5
mov eax, esi
call fcn.00456505
ret