joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xa15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0xa1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x215]
push 0
push ecx
mov byte [esp + 0x21c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x615]
push 0
push edx
mov byte [esp + 0x61c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push 0x1ff
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR80.dll__localtime64]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_strftime]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x40260b
mov esi, dword [esi + 0x10]
jmp 0x40260e
add esi, 0x10
push edi
push esi
push str.TRACE
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa20]
call fcn.00401050
push ebx
mov eax, edi
push eax
push 0x3fe
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x24
test eax, eax
jl 0x402657
cmp eax, 0x3fe
ja 0x402657
jne 0x40265f
mov byte [esp + 0x60e], 0
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x61c]
call fcn.00401050
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004026b0
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.00407648
mov esp, ebp
pop ebp
ret

Function at 0x4026b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [section..data]
cmp dword [0x40d448], 0
jne 0x4026d8
call fcn.00402950
mov dword [0x40d44c], eax
mov dword [0x40d448], 1
cmp dword [0x40d44c], 0
je 0x402749
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.00402750
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402749
mov ebx, esi
call fcn.00402820
push 2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402728
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402820
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x402945
cmp dword [0x40d44c], 2
jne 0x402945
call fcn.00402a10
xor edi, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402914
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4028a8
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x402890
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x402905
cmp ecx, edi
mov eax, 1
jg 0x402907
or eax, 0xffffffff
jmp 0x402907
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x402945
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
add esp, 0x28
ret

Function at 0x402950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4029b6
push 0xed
push 0x40d558
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4029b6
push 0x5c
push 0x40d558
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4029b6
mov byte [eax + 1], 0
push edi
push str.ConfigKernelDebug.ini
push 0x40d558
push 0x40953c
mov eax, 0x104
lea edi, [esp + 0x10]
call fcn.00401050
add esp, 0xc
mov ecx, edi
push ecx
push 0
push str.Log2File
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00407648
add esp, 0x108
ret
Function at 0x404a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x404a9f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x404b87
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x404ab0
pop ebp
test edi, edi
je 0x404bac
jmp 0x404b90
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x40abe8]
add ecx, 1
sub edi, 1
jne 0x404b90
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x404bc0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x40abe8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x40abe8]
mov dword [edx + 8], ecx
ret

Function at 0x404c10
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x40abe8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x40abe8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x4053d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x405402
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4053f8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x405415
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call sub.MSVCR80.dll_memcpy
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x405430
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x405463
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40545d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40548f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x405475
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4054a6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4054a0
cmp byte [esi + 8], 0
je 0x4054a0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x405540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x405585
cmp byte [esi + 1], 0
je 0x40558d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4055a2
cmp byte [esi + 1], 0
je 0x405594
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x4055ab
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40555e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4055ab
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x4055bf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4055de
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x405703
jmp 0x40560c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40561d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x405636
mov ebp, 0x404
cmp byte [esi], 0
je 0x40565b
cmp byte [esi + 1], 0
je 0x405703
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40565e
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x405686
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405680
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4056ac
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x405697
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x405703
lea eax, [ebp - 3]
test eax, eax
jl 0x4056ee
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x4056de
cmp byte [eax + ebx + 1], 0x4b
jne 0x4056de
cmp byte [eax + ebx + 2], 5
jne 0x4056de
cmp byte [eax + ebx + 3], 6
je 0x4056e4
test eax, eax
jge 0x4056c0
jmp 0x4056ee
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x405703
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x405600
push ebx
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4060d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4060e8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4060dd
cmp dword [edi + 0x7c], ebx
je 0x4060fb
mov ebx, edi
call fcn.004064c0
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405e40
add esp, 0xc
test eax, eax
je 0x406121
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push esi
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406164
push 0x4000
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x406171
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4061b9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00404ed0
test eax, eax
jne 0x4061b9
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4061e3
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x4061ec
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x406229
mov cl, byte [ebp]
cmp cl, bl
je 0x406229
call fcn.00404bc0
add ebp, 1
jne 0x406218
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4065b0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x406640
cmp dword [esi + 4], 0xffffffff
jne 0x406640
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4065d8
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x406608
cmp al, 0x2f
je 0x406608
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4065f5
mov ax, word [0x4095f0]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00405330
add esp, 4
test eax, eax
jne 0x406626
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00405720
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x406bd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x406c0d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406c0d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x406ccd
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x406c28
cmp al, 0x5c
jne 0x406c2a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x406c20
cmp esi, ebp
je 0x406c62
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call sub.MSVCR80.dll_memcpy
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00406bd0
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x406c7f
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x406c73
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406c83
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406c95
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x406ccd
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00407648
add esp, 0x20c
ret
Function at 0x407648
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d020]
jne 0x407652
repz ret
jmp fcn.00407a7a
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40633c
pop dword [ebp - 0x3c]
mov eax, 0xf936e564
sub eax, 0xf8f68228
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc65a1e2c
add dword [ebp - 0x4c], 0x87f8271f
mov dword [ebp - 0x48], 0x6d455647
sub dword [ebp - 0x48], 0x3b120a02
mov dword [ebp - 0x44], 0xe19f48b9
sub dword [ebp - 0x44], 0x9553048b
mov dword [ebp - 0x40], 0xeb982ee4
add dword [ebp - 0x40], 0x1467d11c
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xff94aadf
add eax, 0xabc581
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x2b76408b
sub dword [ebp - 0x4c], 0xb703d735
mov dword [ebp - 0x48], 0xac87e0b2
add dword [ebp - 0x48], 0x94e480c3
mov dword [ebp - 0x44], 0x18320bed
add dword [ebp - 0x44], 0x4b3d607f
mov dword [ebp - 0x40], 0xf5a83ec3
add dword [ebp - 0x40], 0xa57c13d
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x787b3115
add eax, 0x87c53feb
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39379
push 0
call eax
mov ecx, 0xbe68af
sub ecx, 0xbe164a
mov esi, eax
mov edx, 0x38dd134d
add edx, 0xc763ecb3
add edx, dword [ebp - 0x3c]
mov edi, 0x8aec8d05
add edi, 0x9be5d237
mov dword [ebp - 0x20], 0xcccc365
mov ebx, dword [edx]
sub dword [ebp - 0xc], 0x265492a
add ebx, edi
sub dword [ebp - 8], 0xf93d9af9
mov dword [esi], ebx
xor dword [ebp - 0xc], 0x3921979f
add esi, 0xef025828
add esi, 0x10fda7dc
add edx, 0xf3465d4a
sub edx, 0xf3465d46
loop 0x40645e
add eax, 0x972aa203
sub eax, 0x9729659c
xor ebx, ebx
add ebx, eax
add eax, 0xba5279f9
add eax, 0x45ad860c
mov ecx, 0x9054e54b
add ecx, 0x6feb1ab5
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040632d
jmp 0x406676

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

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