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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x40c020]
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 0x4020ab
mov esi, dword [esi + 0x10]
jmp 0x4020ae
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 0x4020f7
cmp eax, 0x3fe
ja 0x4020f7
jne 0x4020ff
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.00402150
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.004070e8
mov esp, ebp
pop ebp
ret

Function at 0x402150
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [section..data]
cmp dword [0x40c448], 0
jne 0x402178
call fcn.004023f0
mov dword [0x40c44c], eax
mov dword [0x40c448], 1
cmp dword [0x40c44c], 0
je 0x4021e9
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.004021f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021e9
mov ebx, esi
call fcn.004022c0
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 0x4021c8
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 0x4022c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x4023e5
cmp dword [0x40c44c], 2
jne 0x4023e5
call fcn.004024b0
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 0x4023b4
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x402348
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x402330
cmp eax, edi
je 0x4023a5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402397
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x4023a5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402397
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x4023a5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402397
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x4023a5
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x4023a5
cmp ecx, edi
mov eax, 1
jg 0x4023a7
or eax, 0xffffffff
jmp 0x4023a7
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x4023e5
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 0x4023f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40c020]
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 0x402456
push 0xed
push 0x40c558
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402456
push 0x5c
push 0x40c558
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x402456
mov byte [eax + 1], 0
push edi
push str.ConfigKernelDebug.ini
push 0x40c558
push 0x4082e8
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.004070e8
add esp, 0x108
ret
Function at 0x404530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40453f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x404627
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 + 0x409918]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x409918]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x404550
pop ebp
test edi, edi
je 0x40464c
jmp 0x404630
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x409918]
add ecx, 1
sub edi, 1
jne 0x404630
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x404660
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x409918]
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 + 0x409918]
mov dword [edx + 8], ecx
ret

Function at 0x4046b0
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 + 0x409918]
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 + 0x409918]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x404e70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x404ea2
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 0x404e98
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 0x404eb5
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 0x404ed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404f03
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 0x404efd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x404f2f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404f15
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 0x404f46
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 0x404f40
cmp byte [esi + 8], 0
je 0x404f40
or eax, 0xffffffff
add esp, 8
ret
Function at 0x404fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x405025
cmp byte [esi + 1], 0
je 0x40502d
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 0x405042
cmp byte [esi + 1], 0
je 0x405034
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 0x40504b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404ffe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40504b
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 0x40505f
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 0x40507e
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 0x4051a3
jmp 0x4050ac
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 0x4050bd
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 0x4050d6
mov ebp, 0x404
cmp byte [esi], 0
je 0x4050fb
cmp byte [esi + 1], 0
je 0x4051a3
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 0x4050fe
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x405126
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 0x405120
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40514c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x405137
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 0x4051a3
lea eax, [ebp - 3]
test eax, eax
jl 0x40518e
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40517e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40517e
cmp byte [eax + ebx + 2], 5
jne 0x40517e
cmp byte [eax + ebx + 3], 6
je 0x405184
test eax, eax
jge 0x405160
jmp 0x40518e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4051a3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4050a0
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 0x405b70
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 0x405b88
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x405b7d
cmp dword [edi + 0x7c], ebx
je 0x405b9b
mov ebx, edi
call fcn.00405f60
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004058e0
add esp, 0xc
test eax, eax
je 0x405bc1
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 0x405c04
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 0x405c11
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 0x405c59
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00404970
test eax, eax
jne 0x405c59
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 0x405c83
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x405c8c
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 0x405cc9
mov cl, byte [ebp]
cmp cl, bl
je 0x405cc9
call fcn.00404660
add ebp, 1
jne 0x405cb8
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 0x406050
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x4060e0
cmp dword [esi + 4], 0xffffffff
jne 0x4060e0
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 0x406078
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x4060a8
cmp al, 0x2f
je 0x4060a8
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x406095
mov ax, word [0x4083a8]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00404dd0
add esp, 4
test eax, eax
jne 0x4060c6
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.004051c0
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 0x406670
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40c020]
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 0x4066ad
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4066ad
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40676d
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x4066c8
cmp al, 0x5c
jne 0x4066ca
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x4066c0
cmp esi, ebp
je 0x406702
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.00406670
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40671f
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 0x406713
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406723
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406735
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 0x40676d
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.004070e8
add esp, 0x20c
ret
Function at 0x403510
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4035dd
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4035dd
xor ecx, ecx
mov eax, 0x201
mov edx, 2
mul edx
seto cl
mov esi, 0x200
neg ecx
or ecx, eax
push ecx
call fcn.00404dc2
mov edi, eax
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
jne 0x403560
mov eax, 0x411460
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 0x200
push edi
push eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
call ebx
inc eax
cmp eax, 0x200
jb 0x4035d2
push edi
add esi, 0x200
call fcn.00404688
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404dc2
mov edi, eax
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
jne 0x4035b9
mov eax, 0x411460
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call ebx
inc eax
cmp eax, esi
jae 0x403583
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4035fc
push 2
call fcn.00404dc2
add esp, 4
pop edi
xor edx, edx
pop esi
mov word [eax], dx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403601
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404dc2
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x403630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405272
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4151d0]
jne 0x40527c
repz ret
jmp fcn.004071dc
Function at 0x40dfd4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4151d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406c7c
and dword [ebp - 0x14], 0
cmp dword [0x4170ec], 0
mov dword [ebp - 0x18], eax
jne 0x40e087
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e12f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e12f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4170ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4170f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4170f4], eax
call edi
push eax
call esi
mov dword [0x4170fc], eax
test eax, eax
je 0x40e087
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4170f8], eax
mov eax, dword [0x4170f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e0e0
cmp dword [0x4170fc], ecx
je 0x40e0e0
push eax
call esi
push dword [0x4170fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e0e0
test ebx, ebx
je 0x40e0e0
call edi
test eax, eax
je 0x40e0d7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e0d7
test byte [ebp - 8], 1
jne 0x40e0e0
or dword [ebp + 0x10], 0x200000
jmp 0x40e113
mov eax, dword [0x4170f0]
cmp eax, dword [ebp - 0x18]
je 0x40e113
push eax
call esi
test eax, eax
je 0x40e113
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e113
mov eax, dword [0x4170f4]
cmp eax, dword [ebp - 0x18]
je 0x40e113
push eax
call esi
test eax, eax
je 0x40e113
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4170ec]
call esi
test eax, eax
je 0x40e12f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e131
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405272
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x508a4162
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x38431a7
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219