joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5410
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e7910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004b4cd0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004b4cd0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.004b4d40
cmp dword [esp + 0x40], ebx
jne 0x4b5498
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004b4cf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004b4cf0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.004b5350
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0044f5f0
cmp eax, esi
jb 0x4b551b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x6b3b58
lea ecx, [esp + 0x1c]
call fcn.004b50f0
cmp eax, 1
jne 0x4b550d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004b4e90
push ebx
lea ecx, [esp + 0x20]
call fcn.004b51e0
push eax
call fcn.004c638d
add esp, 8
test eax, eax
jge 0x4b550d
push ebx
lea ecx, [esp + 0x20]
call fcn.004b51d0
push eax
call edi
test eax, eax
je 0x4b5550
lea ecx, [esp + 0xc]
inc esi
call fcn.0044f5f0
cmp esi, eax
jbe 0x4b54bd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004b4cf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004b4cf0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004b4cf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004b4cf0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4b7a50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4b7a5b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4b7b5e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x68a46c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x68a46c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x68a46c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x68a46c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x68a46c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x68a46c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x68a46c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x68a46c]
xor eax, edx
inc ecx
dec edi
jne 0x4b7a76
pop edi
test esi, esi
je 0x4b7b80
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x68a46c]
xor eax, edx
inc ecx
dec esi
jne 0x4b7b62
pop esi
pop ebx
not eax
ret

Function at 0x4b8450
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4b8491
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b8486
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4b84a4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4b93e0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4b9495
cmp dword [ebp + 4], 0xffffffff
jne 0x4b9495
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x6b3de0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4b945d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b945d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004b81e0
add esp, 0x10
test eax, eax
jne 0x4b9480
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004b8720
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4b98f0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4b99b8
mov al, byte [ecx]
test al, al
je 0x4b99b8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4b991b
cmp al, 0x5c
jne 0x4b991d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b9913
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4b9954
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004c63d3
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004b98f0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4c638d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c63ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c483a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c63d0
test byte [esp + 8], 2
je 0x4c63d0
call fcn.004c48ad
mov dword [eax], 0xd
call fcn.004c48b6
mov dword [eax], 5
jmp 0x4c63a9
xor eax, eax
ret

Function at 0x4d76bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d76f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d56a9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d5681
jmp 0x4d7703
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d8db2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d8df4
call fcn.004def2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d8df4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d8deb
xor eax, eax
jmp 0x4d8dfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d8e02
pop edi
pop esi
pop ebx
ret 4

Function at 0x4df45c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4df48a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4df4a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004df3c2
jmp 0x4df4a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4df4a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004df3c2
test edi, edi
mov eax, edi
jne 0x4df492
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
cmp eax, 0x20
push edi
mov edi, ecx
jne 0x401478
push 0x1f
xor eax, eax
pop ecx
movzx edx, byte [edi + ecx + 0x20]
add eax, eax
xor eax, edx
dec ecx
jns 0x40145a
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
mov ecx, edi
call fcn.0040112f
mov al, 1
jmp 0x4014f5
mov ecx, dword [ebp + 0xc]
xor ecx, dword [ebp + 0x14]
xor ecx, dword [ebp + 0x18]
test cl, 1
je 0x40148a
xor al, al
jmp 0x4014f5
push ebx
push esi
lea esi, [eax + edi + 0x20]
lea ebx, [eax + 1]
mov eax, dword [ebp + 0x18]
shr eax, 1
push ebx
push eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x14]
shr eax, 1
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
shr eax, 1
push eax
push dword [ebp + 8]
mov ecx, edi
mov byte [esi], 0
call fcn.00401447
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x1c]
mov byte [ebp + 0x1b], al
mov eax, dword [ebp + 0x10]
add ecx, eax
shr ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add ecx, eax
shr ecx, 1
push ecx
push eax
mov ecx, edi
mov byte [esi], 1
call fcn.00401447
cmp byte [ebp + 0x1b], 0
pop esi
pop ebx
jne 0x4014f2
test al, al
jne 0x4014f2
xor eax, eax
jmp 0x4014f5
xor eax, eax
inc eax
pop edi
pop ebp
ret 0x18

Function at 0x401b51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x20]
cmp esi, ecx
mov eax, esi
jae 0x401b73
mov dx, word [eax]
xor word [ebp - 4], dx
inc eax
inc eax
cmp eax, ecx
jb 0x401b66
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
mov al, byte [eax + 0x431570]
xor al, byte [ecx + 0x431670]
mov bl, byte [ebp + 8]
push 0x1f
xor bl, al
lea eax, [esi + 1]
push esi
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
mov byte [esi], bl
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x401e03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor ecx, ecx
xor al, al
inc ecx
xor al, byte [ecx + edx]
inc ecx
inc ecx
cmp ecx, 0x20
jb 0x401e0e
xor ecx, ecx
mov cl, byte [edx]
movzx eax, al
movzx eax, byte [eax + 0x431670]
xor eax, ecx
xor ecx, ecx
mov cl, byte [ebp + 0xc]
xor eax, ecx
pop ebp
ret

Function at 0x401e85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 2
xor al, al
pop ecx
mov edx, dword [ebp + 8]
xor al, byte [ecx + edx]
inc ecx
inc ecx
cmp ecx, 0x20
jb 0x401e8d
pop ebp
ret
Function at 0x4053a7
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
xor eax, eax
push 0x432168
push dword [ebp + 8]
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
call fcn.00405367
push 0x432178
push dword [ebp + 8]
lea eax, [ebp - 6]
push eax
call fcn.00405367
push 0x432188
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00405367
mov eax, dword [ebp + 0xc]
mov di, word [ebp - 6]
mov bx, word [ebp - 4]
mov dx, word [ebp - 8]
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*2]
xor di, word [ecx + 0xa]
xor dx, word [ecx + 8]
lea eax, [eax + eax*2 + 6]
xor bx, word [esi + eax*2]
movzx esi, di
movzx ecx, dx
mov eax, esi
shl eax, 0x10
add eax, ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 8], dx
mov word [ebp - 6], di
mov word [ebp - 4], bx
call fcn.00405279
movzx eax, bx
shl eax, 8
shr esi, 8
add eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405279
add esp, 0x34
push 7
pop eax
mov ecx, 0x1c0
movzx edx, byte [ebp + eax - 0x18]
movzx edx, byte [edx + ecx + 0x431f68]
mov esi, dword [ebp - 0x10]
shl esi, 4
or edx, esi
dec eax
sub ecx, 0x40
mov dword [ebp - 0x10], edx
jns 0x405457
push 0x432198
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax]
add esp, 0xc
xor ecx, dword [eax + 4]
pop edi
pop esi
mov dword [eax + 4], edx
mov dword [eax], ecx
pop ebx
leave
ret 8

Function at 0x4054a1
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push str.:2_
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov edi, ecx
call fcn.004052da
add esp, 0xc
push 0xf
pop esi
push esi
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.004053a7
dec esi
jns 0x4054c1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], eax
push 0x4321f8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call fcn.004052da
add esp, 0xc
pop edi
pop esi
leave
ret 8

Function at 0x4054f6
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
mov esi, ecx
push 0
push esi
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x1b
pop edi
movzx eax, byte [edi + str.91__]
push dword [ebp + 8]
push eax
call fcn.00405296
mov ecx, dword [esi + 4]
push dword [ebp + 8]
movzx eax, al
shl ecx, 1
or eax, ecx
mov dword [esi + 4], eax
movzx eax, byte [edi + 0x431f1c]
push eax
call fcn.00405296
mov ecx, dword [esi]
movzx eax, al
shl ecx, 1
or eax, ecx
add esp, 0x10
dec edi
mov dword [esi], eax
jns 0x40550d
pop edi
pop esi
pop ebp
ret 4
Function at 0x405551
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xa]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x431ef0]
test eax, eax
jle 0x405596
mov ecx, eax
mov eax, dword [esi]
mov edx, eax
and edx, 1
shl edx, 0x1b
shr eax, 1
or edx, eax
mov dword [esi], edx
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
shl edx, 0x1b
shr eax, 1
or edx, eax
dec ecx
mov dword [esi + 4], edx
jne 0x405571
push 0xf
pop ebx
movzx ax, byte [ebx + 0x431f38]
push 0x1c
push eax
push esi
call fcn.004052ba
xor ecx, ecx
mov cx, word [edi - 2]
movzx ax, al
shl cx, 1
push 0x1c
or eax, ecx
mov word [edi - 2], ax
movzx ax, byte [ebx + 0x431f48]
push eax
push esi
call fcn.004052ba
xor ecx, ecx
mov cx, word [edi]
movzx ax, al
shl cx, 1
push 0x1c
or eax, ecx
mov word [edi], ax
movzx ax, byte [ebx + 0x431f58]
push eax
push esi
call fcn.004052ba
xor ecx, ecx
mov cx, word [edi + 2]
movzx ax, al
shl cx, 1
add esp, 0x24
or eax, ecx
dec ebx
mov word [edi + 2], ax
jns 0x405599
inc dword [ebp - 4]
add edi, 6
cmp dword [ebp - 4], 0x10
jl 0x405561
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a8d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x432350
call fcn.00405c94
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405acd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405ae5
cmp eax, 0x20b
je 0x405ad2
mov dword [ebp - 0x1c], ebx
jmp 0x405af9
cmp dword [ecx + 0x84], 0xe
jbe 0x405acd
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x405af3
cmp dword [ecx + 0x74], 0xe
jbe 0x405acd
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x434c50], 0xffffffff
or dword [0x434c54], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x434c48]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x434c44]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x434c4c], eax
call fcn.00405d30
call fcn.00405dd0
cmp dword [0x434330], ebx
jne 0x405b59
push fcn.00405dd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00405dbe
push 0x43400c
push 0x434008
call sub.MSVCR71.dll__initterm
push 0x405d74
call fcn.00405d1e
mov eax, dword [0x434c40]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x434c3c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x405bad
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x434004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x405c2b
cmp al, bl
je 0x405bd7
cmp dword [ebp - 0x20], ebx
jne 0x405c2b
mov al, byte [esi]
cmp al, bl
je 0x405be7
cmp al, 0x20
ja 0x405be7
inc esi
mov dword [ebp - 0x24], esi
jmp 0x405bd7
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x405c03
movzx eax, word [ebp - 0x54]
jmp 0x405c06
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0040443f
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x405c23
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x405c80
cmp al, 0x22
jne 0x405c3a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x405c4d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x405bc5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00405ccf
ret
Function at 0x401d60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not eax
imul esi
inc edi
dec ebx
and ebx, 0x8d
add ebx, 0x39
rcr edx, 0x70
rol edx, 0x13
mov edi, 0xe8
imul eax
and eax, 0xe5
mov eax, 0xa8
imul esi
rcr esi, 0x6b
rol edx, 0xa8
inc esi
sbb eax, 0x42
sub eax, 0x8a
ror ebx, 7
dec edx
add edx, 8
and edi, 0xb8
and eax, 0x25
neg edi
or edx, 0x63
ror edi, 0xf1
sub edi, 0xbd
rcr ebx, 0x10
sub esi, 0x87
ror eax, 0x6a
imul ebx
not edi
ror edi, 0xd9
or edx, 0x7e
dec ebx
imul edi
bswap edx
inc edx
inc ebx
not edx
dec eax
inc esi
imul edx
ror ebx, 0xfa
neg edx
rol ebx, 0x52
add edx, 0x8d
rcl edx, 0x30
neg edx
imul edx
xor ecx, ecx
xor edi, edi
ror ebx, 0xda
and esi, 0x13
sbb edi, 0xf3
rcr edx, 0x13
sbb edi, 0xf0
rcr eax, 0xe4
ror esi, 0xd2
ror ebx, 0xdd
bswap esi
inc edx
rol edx, 0xfe
ror edx, 0x52
dec eax
imul ebx
rol esi, 0x62
dec edx
rol edx, 0x74
imul ebx
imul eax
rol edi, 0xc9
and eax, 0xd8
mov eax, 0xd3
dec edi
bswap ebx
bswap edx
and edi, 0xce
and edi, 0x85
inc eax
and ebx, 0x12
neg edi
rol edi, 0x3f
not esi
dec eax
imul esi
neg edx
bswap ebx
bswap edi
rcl esi, 0x5f
or ebx, 0x8b
bswap edi
inc esi
not eax
and eax, 0x4c
ror eax, 0xcf
not esi
dec edx
dec edi
imul ebx
sub edi, 3
add esi, 0x3b
mov ecx, dword [ebp + 0xc]
bswap esi
sbb eax, 0x4f
or ebx, 0xcc
neg esi
bswap edx
bswap eax
sub ebx, 0x53
bswap edx
rol esi, 0x4b
ror ebx, 0x3f
imul ebx
neg esi
ror edi, 0x97
rol eax, 0x44
neg edi
dec edi
not edx
not edx
ror ebx, 0x3e
not ebx
rcl ebx, 0x39
add edx, 0x1c
inc edx
rcr edx, 0xbe
not esi
inc ebx
imul eax
not esi
sbb edx, 0x70
mov edx, 0x3b
bswap edx
ror edx, 0x8b
not esi
add ebx, 0xc7
rcl edx, 0x41
inc ebx
imul edi
rol esi, 0x57
ror edx, 0xaa
and edi, 0x40
imul edi
add edx, 0x24
rcl edi, 0xba
not eax
rol esi, 0xb5
not edi
or ebx, 0x85
or edi, 0xbe
and esi, 0xe8
mov edi, 0x4e
mov edi, dword [ebp + 8]
xor esi, eax
xor esi, esi
xor eax, ebx
not byte [edi]
mov esi, ebx
mov esi, eax
xor ebx, ebx
xor eax, esi
mov esi, esi
mov ebx, ebx
xor eax, eax
mov ebx, esi
xor ebx, esi
add byte [edi], 0x79
mov ebx, eax
xor ebx, ebx
mov ebx, eax
mov esi, esi
mov eax, ebx
mov ebx, ebx
mov eax, esi
mov esi, eax
xor eax, eax
sub byte [edi], 0x30
xor ebx, eax
xor ebx, ebx
xor esi, esi
mov ebx, esi
xor esi, esi
xor ebx, ebx
mov eax, eax
xor esi, eax
mov esi, ebx
imul byte [edi]
inc edi
loop 0x401f17
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407444
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441694]
jne 0x40744e
repz ret
jmp fcn.0040be26
Function at 0x40d62d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3ef
and dword [ebp - 4], 0
cmp dword [0x442c14], 0
mov ebx, eax
jne 0x40d6de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d78f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d78f
push eax
call fcn.0040a37d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442c14], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442c18], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x442c1c], eax
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x442c24], eax
test eax, eax
je 0x40d6de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x442c20], eax
mov eax, dword [0x442c20]
cmp eax, ebx
je 0x40d736
cmp dword [0x442c24], ebx
je 0x40d736
push eax
call fcn.0040a3f8
push dword [0x442c24]
mov esi, eax
call fcn.0040a3f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d736
test edi, edi
je 0x40d736
call esi
test eax, eax
je 0x40d72d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d72d
test byte [ebp - 0xc], 1
jne 0x40d736
or dword [ebp + 0x10], 0x200000
jmp 0x40d76f
mov eax, dword [0x442c18]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d76f
mov eax, dword [0x442c1c]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442c14]
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d78f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d791
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret