joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57edae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x10], 9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x170], eax
jne 0x4d243a
push 0x3e9
push dword [esi + 0x130]
call dword [sym.imp.USER32.dll_KillTimer]
push 0xc0
call fcn.004f554a
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d22c3
mov ecx, eax
call fcn.0041eb30
mov edi, eax
jmp 0x4d22c5
xor edi, edi
push 3
push 0x98
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e800
mov eax, dword [0x5cce90]
test eax, eax
jne 0x4d2315
push 0x140
call fcn.004f554a
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4d2307
mov ecx, eax
call fcn.004d35a0
jmp 0x4d2309
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5cce90], eax
push edi
mov ecx, eax
call fcn.004d3cc0
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x4d2334
push ecx
mov dword [esp], 0x3f800000
call fcn.00425820
push ecx
mov ecx, esp
push 0x585de0
call fcn.00407900
mov ecx, dword [esi + 0x18c]
call fcn.004133b0
mov eax, dword [0x5cce8c]
test eax, eax
jne 0x4d2387
push 0x178
call fcn.004f554a
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4d2379
mov ecx, eax
call fcn.00448830
jmp 0x4d237b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5cce8c], eax
mov ecx, eax
call fcn.00449280
cmp dword [0x5ccf44], 0
je 0x4d23c1
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str._recommend_softweb
call fcn.00407900
mov dword [ebp - 4], 3
call fcn.004d20e0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004494e0
push 0
push dword [esi + 0x130]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], 0
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004d1680
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push eax
call fcn.004d15c0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
je 0x4d2406
push 1
push eax
call fcn.004f557d
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 5
test eax, eax
jne 0x4d2421
push 1
call fcn.004db6e8
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
push dword [ebp - 0x14]
call fcn.004daa1e
add esp, 8
test eax, eax
je 0x4d243a
push eax
call fcn.004db6bb
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d3ce0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f074
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x5cce90]
test esi, esi
jne 0x4d3d45
push 0x140
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4d3d36
mov ecx, eax
call fcn.004d35a0
mov esi, eax
jmp 0x4d3d38
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5cce90], esi
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4d3e02
push 1
mov ecx, esi
call fcn.00429b40
push 0xc0
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4d3d85
mov ecx, eax
call fcn.0041eb30
mov edi, eax
jmp 0x4d3d87
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e800
push 2
mov ecx, edi
call fcn.0041fa00
movaps xmm0, xmmword [0x5860d0]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.0041fb50
push edi
mov ecx, esi
call fcn.00429b60
push 0
mov ecx, esi
call fcn.00428170
movaps xmm0, xmmword [0x5860e0]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocStringLen
push 0x59fbd0
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.004268f0
push 1
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00429cb0
push eax
call fcn.00482f50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x4d7780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f5e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4d782c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4d782c
call fcn.004650a0
mov esi, eax
jmp 0x4d791c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d784f
call fcn.004650a0
jmp 0x4d790f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4d786d
call fcn.004650a0
jmp 0x4d790f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4d788e
mov esi, 0x8007000e
jmp 0x4d7911
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004d6680
jmp 0x4d78b8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4d78cf
mov esi, 0x8007000e
jmp 0x4d7911
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4d78ef
call fcn.004650a0
jmp 0x4d790f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004d7620
mov esi, eax
test edi, edi
je 0x4d791c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4d7940
lea ecx, [ebp - 0x418]
call fcn.004d6be0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d8ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4d8af9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8b05
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4d8b00
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f9dc7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x55a90d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a512

Function at 0x55a918
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a693

Function at 0x563c4e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563428

Function at 0x563c59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563663

Function at 0x5640c5
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563e4c
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
mov ecx, 0x795838de
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
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
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4a3a500c
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1295000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x129500a
jmp 0x129700f
jmp fcn.00eb2058
Function at 0x4504aa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea esi, [ecx + 0x88]
push dword [esi]
push 0x4504d8
push 8
call fcn.004015a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45199b
Capabilities:
Get geographical location

Disassembly:
push 4
mov eax, 0x47fa58
call fcn.004026ff
mov esi, ecx
push dword [esi + 0x50]
push 0x451d18
push 8
call fcn.004015a0
and dword [ebp - 0x10], 0
add esp, 0xc
mov eax, dword [esi + 0x60]
and dword [ebp - 4], 0
test eax, eax
jne 0x4519e6
mov eax, 0x80004002
push eax
push dword [esi + 0x50]
mov edi, eax
push 0x451c78
push 1
call fcn.004015a0
add esp, 0x10
jmp 0x451a47
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x43b934
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jge 0x451a05
push edi
push dword [esi + 0x50]
push 0x451bd0
jmp 0x4519da
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x451a1c
push dword [esi + 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
jmp 0x451a2e
push dword [esi + 0x50]
push 0x451b08
push 1
call fcn.004015a0
add esp, 0xc
test edi, edi
jge 0x451a47
push edi
push dword [esi + 0x50]
push 0x451a60
push 1
call fcn.004015a0
add esp, 0x10
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x451a58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
call fcn.00402739
ret

Function at 0x45ecc9
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x47eded
call fcn.004026ff
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x45ed13
push dword [esi + 0x8c]
push 0x45efe0
push 1
call fcn.004015a0
add esp, 0xc
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x45ed0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x45edc5
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x45ed39
push eax
push dword [esi + 0x8c]
push 0x45ef48
push 1
call fcn.004015a0
add esp, 0x10
jmp 0x45ecfb
push dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.004045d5
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x45ed76
push dword [esi + 0x8c]
push 0x45ee88
push 1
call fcn.004015a0
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x45ecfb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x45ecfb
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x80]
cmp eax, ebx
jge 0x45ed9f
push eax
push dword [esi + 0x8c]
push 0x45edd0
push 1
call fcn.004015a0
add esp, 0x10
jmp 0x45ed64
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x45edb2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x45edc3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00402739
ret 4
Function at 0x448312
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
test eax, 0x80000000
je 0x44832f
mov edx, eax
and edx, 0x7fffffff
mov dword [ebp - 0xc], edx
jmp 0x448334
xor edx, edx
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
lea eax, [eax + ebx + 0x18]
add esi, ebx
mov eax, dword [eax + 0x64]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add edi, ebx
add ecx, ebx
add eax, ebx
test edx, edx
mov dword [ebp - 0x10], eax
je 0x448374
mov eax, dword [esi + 0x10]
imul eax, eax, 0x3fffffff
add eax, edx
jmp 0x4483b2
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 0
jbe 0x4483ba
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.004483e0
pop ecx
test eax, eax
pop ecx
jne 0x4483a8
inc dword [ebp + 8]
add dword [ebp - 8], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x448381
jmp 0x4483ba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0
je 0x4483d8
cmp dword [ebp - 4], esi
jbe 0x4483d8
mov eax, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 4], eax
jae 0x4483d8
push dword [ebp - 0xc]
push ebx
call dword [ebp + 0x10]
jmp 0x4483db
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44840a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push eax
push esi
push edi
mov ecx, edi
sub ecx, eax
mov esi, eax
mov edi, esi
lodsb al, byte [esi]
xor al, 0x4c
stosb byte es:[edi], al
loop 0x448416
pop edi
pop esi
pop eax
pop ecx
ret

Function at 0x448421
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x547666a7
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1d4e1de0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40164e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401658
repz ret
jmp fcn.0040165d

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
push str.Plants_vs._Zombies
push str.MainWindow
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x401059
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
nop word [eax + eax]
push 0x35
push 0x41421e
push 0x414228
push 0
call esi
cmp eax, 4
jne 0x4010f7
push str.Plants_vs._Zombies
push str.MainWindow
call edi
test eax, eax
je 0x401030
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov ebx, esp
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
push ebx
push 0x6a9ec0
push eax
call edi
mov ebp, 0x7fc
add ebp, dword [esp]
push 0
push 4
push ebx
push ebp
push esi
mov ebx, edi
call edi
mov eax, dword [esp]
and eax, 0xfffffffe
cmp eax, 2
jne 0x4010ed
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
nop word cs:[eax + eax]
push 0x35
push 0x41421e
push 0x41423c
push 0
call edi
cmp eax, 4
jne 0x4010f7
push 0
push 4
lea eax, [esp + 8]
push eax
push ebp
push esi
call ebx
mov eax, dword [esp]
and eax, 0xfffffffe
cmp eax, 2
je 0x4010c0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401100
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x224
push dword [esp + 0x238]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 4]
push 0x220
push 0
push eax
call fcn.00408420
add esp, 0xc
mov dword [esp], 0x224
mov eax, esp
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4011bc
mov ebp, dword [esp + 0x23c]
lea edi, [esp + 0x20]
lea ebx, [esp + 0x120]
nop dword [eax + eax]
push ebp
push edi
call fcn.0040a810
add esp, 8
test eax, eax
je 0x40118b
push ebp
push ebx
call fcn.0040a810
add esp, 8
test eax, eax
je 0x40118b
mov eax, esp
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401160
jmp 0x4011bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push dword [esp + 0x1c]
push eax
push 0
push 0
push dword [esp + 0x250]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4047a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x406d10
mov edx, dword fs:[0]
mov dword [esi + 0x30], edx
lea edx, [esi + 0x30]
mov dword fs:[0], edx
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x38], 1
lea edi, [esi + 0x10]
mov dword [esi + 0xc], ecx
push edi
push edx
push eax
call fcn.00403ff0
mov eax, dword [esi + 0x24]
cmp eax, 0x10
jb 0x40483a
mov ecx, dword [esi + 0x10]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x404830
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x404857
add eax, 0x24
mov edx, eax
mov ecx, edi
push edx
push ecx
call fcn.00406e70
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], vtable.std::system_error.0
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esi + 0x38], 0
call fcn.0040ac47
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
call fcn.00408733
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
lea ecx, [esi + 0x10]
call fcn.00402350
add esp, 0xc
pop ebp
ret

Function at 0x407657
Capabilities:
Parse pe header

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

Function at 0x407fcc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.00407b19
mov edi, eax
test edi, edi
jne 0x407ff3
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x40803c
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x408037
test al, 0x10
je 0x408037
test eax, 0x400
je 0x408033
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00408042
push dword [ebp - 4]
mov esi, eax
call fcn.00407b55
test esi, esi
jne 0x408037
xor edx, edx
jmp 0x408039
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x40836b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00408347
pop esi
leave
ret 8