joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002280
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
nop
movsx edx, byte [ecx + str.91__]
dec edx
mov eax, edx
and edx, 7
sar eax, 3
movsx eax, byte [eax + edi]
test dword [edx*4 + 0x10026e80], eax
setne al
mov byte [esi + ecx + 4], al
inc ecx
cmp ecx, 0x38
jl 0x10002290
push 0x60
lea eax, [esi + 0x6074]
push 0
push eax
call fcn.1000c0b0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
movsx edi, byte [eax + 0x100270f0]
xor edx, edx
lea ebx, [edi - 0x1c]
nop
cmp edx, 0x1c
mov ecx, edi
sbb eax, eax
and eax, 0xffffffe4
add eax, 0x38
cmp edi, eax
cmovge ecx, ebx
inc edi
inc ebx
mov al, byte [ecx + esi + 4]
mov byte [esi + edx + 0x3c], al
inc edx
cmp edx, 0x38
jl 0x100022e0
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movsx ecx, byte [eax + 0x100270c0]
mov ebx, dword [ebp + 8]
cmp byte [ecx + esi + 0x3b], 0
je 0x1000233b
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
add edx, ebx
mov cl, byte [ecx*4 + 0x10026e80]
or byte [edx + esi + 0x6074], cl
inc eax
cmp eax, 0x30
jl 0x10002310
mov eax, dword [ebp - 4]
add ebx, 6
inc eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x60
jl 0x100022d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002360
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, ecx
push 0x1000
mov dword [ebp - 4], eax
add eax, 0x5074
push 0
push eax
call fcn.1000c0b0
add esp, 0xc
xor edi, edi
xor ebx, ebx
xor esi, esi
nop word [eax + eax]
xor eax, eax
movsx edx, byte [eax + 0x10026ea0]
dec edx
mov ecx, edx
sar ecx, 3
cmp ecx, edi
jne 0x100023cf
and edx, 7
test dword [edx*4 + 0x10026e80], esi
je 0x100023cf
mov ecx, eax
lea edx, [ebx + esi]
shr ecx, 3
add ecx, dword [ebp - 4]
lea edx, [ecx + edx*4]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx*4 + 0x10026e80]
or byte [edx + 0x5074], cl
inc eax
cmp eax, 0x20
jl 0x10002392
inc esi
cmp esi, 0x100
jl 0x10002390
add ebx, 0x100
inc edi
cmp ebx, 0x400
jl 0x10002385
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, ecx
movlpd qword [ebp - 0xc], xmm0
mov bl, byte [edx]
xor ecx, ecx
test bl, bl
je 0x100026a6
cmp ecx, 0x28
jge 0x100026a6
mov eax, ecx
and eax, 0x80000007
jns 0x1000269a
dec eax
or eax, 0xfffffff8
inc eax
xor byte [ebp + eax - 0xc], bl
inc edx
inc ecx
mov bl, byte [edx]
test bl, bl
jne 0x10002687
push str.:2_
lea eax, [esi + 0x74]
push eax
call fcn.10002400
push 0x1002a9a8
lea eax, [esi + 0x874]
push eax
call fcn.10002400
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.10002280
mov ecx, esi
call fcn.10002220
mov ecx, esi
call fcn.10002360
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a5cd
mov esp, ebp
pop ebp
ret 4

Function at 0x100029e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10002a15
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [edx*4 + 0x1002b6e8]
mov dword [edi], ebx
sub eax, 1
jne 0x100029f3
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x100091f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0x40
push 4
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a5cd
mov esp, ebp
pop ebp
ret

Function at 0x10009240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push edi
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1000c260
add esp, 0xc
push 0
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a5cd
mov esp, ebp
pop ebp
ret

Function at 0x10010fa7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010fe6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010fe6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010fe6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010fe6
cmp dword [ecx + 0x74], 0xe
jbe 0x10010fe6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001231d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1002b210]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001235d
cmp byte [ebx], 0xa
jne 0x1001235d
or byte [edi + eax + 0x28], 4
jmp 0x10012362
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10012461
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10012444
inc eax
cmp dl, 0xd
je 0x1001238e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100123b4
cmp eax, ecx
jae 0x100123c2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10012376
jmp 0x10012461
push 0
lea eax, [ebp - 0x10]
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 0x1001243f
cmp dword [ebp - 0x10], 0
je 0x1001243f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002b210]
test byte [eax + edi + 0x28], 0x48
je 0x10012419
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10012404
mov byte [esi], dl
jmp 0x10012415
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002b210]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012461
cmp byte [ebp - 1], 0xa
jne 0x10012428
cmp esi, ebx
jne 0x10012428
mov byte [esi], 0xa
jmp 0x10012460
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10017e4e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012461
mov byte [esi], 0xd
jmp 0x10012460
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002b210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001245e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012461
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001246a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002b210]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100124b0
cmp word [ebx], dx
jne 0x100124b0
or byte [eax + edi + 0x28], 4
jmp 0x100124b5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10012618
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100125f8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100124f6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001252c
cmp eax, edx
jae 0x1001253a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100124d1
jmp 0x10012618
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100125f3
cmp dword [ebp - 0x18], 0
je 0x100125f3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002b210]
test byte [eax + edi + 0x28], 0x48
je 0x100125c9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001258d
mov word [esi], cx
jmp 0x100125c4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002b210]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002b210]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002b210]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10012618
pop eax
cmp word [ebp - 4], ax
jne 0x100125d9
cmp esi, ebx
jne 0x100125d9
mov word [esi], ax
jmp 0x10012615
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10017e4e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10012618
push 0xd
pop eax
jmp 0x100125d4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002b210]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10012612
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10012618
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100150cd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f14
push 0x10022f0c
push str.FlsAlloc
push 0x1f
call fcn.10014fa9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015101
push dword [ebp + 8]
mov ecx, esi
call dword [0x100201ac]
call esi
jmp 0x10015107
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001514b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f24
push 0x10022f1c
push str.FlsGetValue
push 0x21
call fcn.10014fa9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015182
push dword [ebp + 8]
mov ecx, esi
call dword [0x100201ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001518a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f2c
push 0x10022f24
push str.FlsSetValue
push 0x22
call fcn.10014fa9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100151c4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100201ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100168ae
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 0x1001694b
push ebx
push esi
call fcn.10016877
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.1001680b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100168f8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001694a
push edi
push eax
call fcn.10013a5a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016918
call fcn.10012e37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016949
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001680b
add esp, 0x20
test eax, eax
jne 0x10016937
push edi
call fcn.10012e37
jmp 0x1001693f
push ebx
call fcn.10012e37
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 0x1001bba1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001bb1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001bd10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001bd10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001bcc5
jg 0x1001bbfd
test eax, eax
je 0x1001bcbb
push 1
push 0x1000
call fcn.10014e33
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001bc20
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001bcb2
push 0x8000
push ebx
call fcn.1001ba4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001bc49
jg 0x1001bc44
cmp ecx, 0x1000
jb 0x1001bc49
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10018911
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001bc8e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001bc44
jl 0x1001bc75
test ecx, ecx
jne 0x1001bc36
push dword [ebp - 0xc]
push ebx
call fcn.1001ba4e
push esi
call fcn.10012e37
add esp, 0xc
xor ebx, ebx
jmp 0x1001bd1e
cmp byte [edi + 0x24], 0
je 0x1001bca5
cmp dword [edi + 0x20], 5
jne 0x1001bca5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001bcb0
mov ebx, dword [edi + 0x18]
jmp 0x1001bcb2
xor ebx, ebx
push esi
call fcn.10012e37
pop ecx
jmp 0x1001bd1e
test ecx, ecx
jg 0x1001bc87
jl 0x1001bcc5
test eax, eax
jae 0x1001bc87
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10017e4e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001bce5
cmp byte [edi + 0x1c], 0
je 0x1001bc87
jmp 0x1001bd16
push ebx
call fcn.10017d61
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001bc87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001bd1e
cmp byte [edi + 0x1c], 0
je 0x1001bd1b
mov ebx, dword [edi + 0x18]
jmp 0x1001bd1e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10017e4e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e85d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e85d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x48], 1
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x6e0032
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0xc]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CDC::SelectObject_1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 4]
mov byte [esp + 0x40], 3
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 5]
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x50]
mov esi, dword [edx - 8]
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x34]
call dword [eax + 0x64]
mov dword [esp + 4], 0x4045c0
lea ecx, [esp + 4]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4045ac
mov dword [esp + 0xc], 0x4045c0
mov dword [esp + 4], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], esi
mov byte [esp + 0x40], 0
call fcn.00402f92
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call fcn.00402f3e
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd0f1ab7
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6fb615da
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x7d051abd
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x6efa37c3
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.00401537
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4019de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, edi
shl eax, cl
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401a7c
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401a17
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401a11
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401a30
mov eax, dword [ebp + 0xc]
add eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401a8d
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
or edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
xor edx, esi
add edx, eax
push edx
call fcn.00401970
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a38
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, esi
dec edx
and eax, edx
cmp dword [ebp - 4], eax
jle 0x401a07
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40147f
Capabilities:
Create thread
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetFocus]
push 0x463994
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.004015b2
mov byte [0x45e4b8], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push 0
call dword [sym.imp.USER32.dll_EnableWindow]
xor ecx, ecx
mov cl, byte [0x40a110]
test ecx, ecx
je 0x401529
push 0
push 0
push 0
push 0
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10