joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435890
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b968
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4358c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4359dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4358dd
mov eax, 0xffffffc7
jmp 0x4359de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4358ee
cmp dword [esi + 8], eax
jne 0x4358dd
cmp dword [esi + 8], eax
jne 0x435907
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435907
mov eax, 0xffffffc7
jmp 0x4359de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43591b
push eax
mov ecx, ebx
call fcn.004350c0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406620
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43594c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406640
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434830
test eax, eax
mov dword [esp + 0x38], eax
je 0x43597f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47aa80
call fcn.00406820
mov eax, dword [esp + 0x38]
jmp 0x4359de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004356f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4359c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435710
mov esi, eax
test esi, esi
jne 0x4359f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004356f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435995
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47aa80
call fcn.00406820
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47aa80
call fcn.00406820
mov eax, esi
jmp 0x4359de

Function at 0x438b20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x438b80
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x438b80
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x438b80
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x438b80
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x438bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43ead0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bf98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00464ddd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e470
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00464d0b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004615cf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004615cf
push 1
push 0
push 0
mov ecx, esi
call fcn.00461577
push 1
push 0
push 1
mov ecx, esi
call fcn.00461577
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464e4f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ec50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bfb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00464ddd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e470
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00464d0b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ed14
cmp dword [esp + 0x40], 1
jne 0x43ed12
cmp ecx, eax
jge 0x43ed14
mov eax, ecx
cmp eax, 0xc8
jge 0x43ed20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ead0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464e4f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f4a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c023
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045f9ef
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00465085
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004665a1
test eax, eax
je 0x43f5bc
mov ecx, dword [esp + 0x3c]
call fcn.004650b2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f580
push edi
mov ecx, esi
call fcn.00462716
mov ecx, esi
call fcn.0043f720
cmp dword [esp + 0x38], 1
jne 0x43f5b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00462851
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441fe0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442013
push esi
call fcn.004450d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44200c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442099
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442082
mov eax, dword [esi + 8]
test eax, eax
je 0x442037
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44207e
cmp eax, 2
je 0x442082
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44202a
cmp eax, 3
je 0x44205d
cmp eax, 1
jne 0x44202a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44202a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44202a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004420c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4420a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004420c0
add esp, 4
pop esi
ret

Function at 0x4607e5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46081d
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.0045e899
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e871
jmp 0x460829
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461ed3
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 0x461f15
call fcn.0046798c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461f15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461f0c
xor eax, eax
jmp 0x461f1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461f23
pop edi
pop esi
pop ebx
ret 4

Function at 0x467ebc
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 0x467eea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467f08
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467e22
jmp 0x467f08
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467f08
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467e22
test edi, edi
mov eax, edi
jne 0x467ef2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4055a9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588a
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055e8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429228], eax
jmp 0x40577b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405602
test eax, eax
je 0x405729
test bl, 2
je 0x405729
mov esi, 0x4246a0
push edi
push esi
call fcn.00405d1a
cmp dword [ebp + 8], 0
je 0x405621
push 0x409500
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405627
push edi
call fcn.004057ce
cmp word [edi], 0
jne 0x405637
cmp word [0x4246a0], 0x5c
jne 0x405642
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40571e
lea eax, [ebp - 0x230]
push 0x3f
push eax
lea esi, [ebp - 0x230]
call fcn.004057af
xor ecx, ecx
cmp word [eax], cx
je 0x405689
cmp word [ebp - 0x28], cx
je 0x405689
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4056a4
mov ax, word [esi + 2]
cmp ax, cx
je 0x4056fd
cmp ax, 0x2e
jne 0x4056a4
cmp word [esi + 4], cx
je 0x4056fd
push esi
push ebx
call fcn.00405d1a
test byte [ebp - 0x25c], 0x10
je 0x4056c9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056fd
push dword [ebp + 0xc]
push edi
call fcn.004055a9
jmp 0x4056fd
push dword [ebp - 4]
push edi
call fcn.00405561
test eax, eax
jne 0x4056f5
cmp dword [ebp - 4], eax
je 0x4056ed
push edi
push 0xfffffffffffffff1
call fcn.00404fce
push 0
push edi
call fcn.00405bb4
jmp 0x4056fd
inc dword [0x429228]
jmp 0x4056fd
push edi
push 0xfffffffffffffff2
call fcn.00404fce
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405665
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405729
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40577b
cmp dword [ebp - 0xc], esi
jne 0x40573d
inc dword [0x429228]
jmp 0x40577b
push edi
call fcn.0040605d
test eax, eax
je 0x40577b
push edi
call fcn.00405782
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405561
test eax, eax
jne 0x405773
cmp dword [ebp - 4], esi
je 0x405735
push edi
push 0xfffffffffffffff1
call fcn.00404fce
push esi
push edi
call fcn.00405bb4
jmp 0x40577b
push edi
push 0xffffffffffffffe5
call fcn.00404fce
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409803
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040d8e0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409a1e
push esi
call fcn.0040d86a
pop ecx
cmp eax, 0x7f6
jae 0x409a1e
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d7f0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40985e
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x409861
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x4098b7
mov ecx, esi
cmp word [ecx], 0x22
jne 0x409889
jmp 0x409879
cmp word [esi + eax*2], 0x22
je 0x409882
inc eax
cmp word [esi + eax*2], bx
jne 0x409872
jmp 0x409889
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x4098a3
cmp word [esi + eax*2 + 2], 0x2f
je 0x4098a3
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40986a
jmp 0x4098b7
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x4098b1
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4098c3
cmp word [eax], bx
jne 0x4098d8
cmp byte [ebp + 0xc], bl
jne 0x4098d8
cmp word [0x4314fa], bx
je 0x4098d8
mov dword [ebp - 0x34], 0x4314fa
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.004064aa
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x409904
push str..inf
push eax
call fcn.0040c21e
test eax, eax
jne 0x409904
mov dword [ebp - 0x3c], 0x41d870
push dword [ebp - 0x38]
call fcn.00403acb
test al, al
je 0x40992d
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004067ee
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409a1d
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x4304f0], bl
jne 0x409962
cmp byte [ebp + 0xc], bl
jne 0x409962
cmp byte [0x4304dd], bl
je 0x4099bf
cmp dword [ebp + 8], ebx
je 0x40997e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40997e
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.00408c61
cmp byte [0x4304dd], bl
je 0x4099bf
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4099bf
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x4304e0]
jbe 0x4099bf
mov dword [0x4304e0], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x4099de
push 0x41d864
push dword [ebp - 8]
call fcn.0040c21e
test eax, eax
je 0x409a0c
cmp byte [0x4304f0], bl
je 0x4099f7
cmp byte [ebp + 0xc], bl
jne 0x4099f7
mov dword [0x4304e4], 0x1b58
jmp 0x409a0c
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x4304e4], eax
cmp byte [ebp - 1], bl
je 0x409a1d
cmp byte [ebp + 0xc], bl
je 0x409a1d
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401010
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
xor ebp, ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4010eb
push 0xfffffffffffffff4
call edi
cmp esi, eax
jne 0x4010eb
push 0xfffffffffffffff6
call edi
mov edx, eax
cmp edx, 0xffffffff
jne 0x40104f
mov ebp, 2
jmp 0x4010f0
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], bp
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
add eax, 0xc
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4010aa
mov ebp, 3
jmp 0x4010f0
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [esp + 0x10]
push eax
push ecx
call ebx
test eax, eax
je 0x4010e4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], 0x103
jne 0x4010f0
push 0x64
call edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call ebx
test eax, eax
jne 0x4010c6
mov ebp, 4
jmp 0x4010f0
mov ebp, 1
test esi, esi
je 0x401104
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push esi
push 0xfffffffffffffff5
call edi
push esi
push 0xfffffffffffffff4
call edi
test bp, bp
je 0x401113
movzx ecx, bp
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40117f
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x402090
call fcn.004014b4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4011ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4011ba
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4011d2
cmp eax, 0x20b
je 0x4011bf
mov dword [ebp - 0x1c], edi
jmp 0x4011e6
cmp dword [ecx + 0x84], 0xe
jbe 0x4011ba
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4011e0
cmp dword [ecx + 0x74], 0xe
jbe 0x4011ba
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40302c], 0xffffffff
or dword [0x403030], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403024]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403020]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403028], eax
call fcn.004013bd
call fcn.00401485
cmp dword [0x403010], edi
jne 0x401246
push 0x40147d
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040145b
push 0x40300c
push 0x403008
call sub.MSVCR71.dll__initterm
push 0x401406
call fcn.004013a6
mov eax, dword [0x40301c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403018]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x40129a
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401010
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4012d6
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40130b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014ef
ret
Function at 0x401080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x42812c]
push esi
mov edx, dword [ecx + eax*4 + 0x2c080]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4010af
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x401110
Capabilities:
Check mutex on windows
Create thread

Disassembly:
sub esp, 8
push esi
push str.Globalwlg_contact
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401288
call fcn.00407750
call fcn.00407400
push 0
call fcn.0041c424
test eax, eax
je 0x401288
push str.CrashRpt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401170
push str.Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401170
push 2
call eax
add esp, 4
mov ecx, 0x428128
call fcn.00406840
test eax, eax
je 0x401288
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x42812c]
mov dword [ecx + 0x2c084], eax
mov edx, dword [0x42812c]
lea ecx, [esp + 4]
mov eax, dword [edx + 2]
push eax
push ecx
call fcn.00406d60
call fcn.004022f0
call fcn.00406e10
push str.wlg_minispy
call fcn.004078f0
add esp, 0xc
cmp eax, 2
jne 0x4011d1
push str.wlg_minispy
call fcn.004079b0
add esp, 4
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x428160
call fcn.00415a81
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.HIDEDIR
call fcn.00415d7a
call fcn.00403130
add esp, 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x4013d0
push 0
push 0
mov dword [0x428168], eax
mov dword [0x428164], edx
call esi
push 0
push 0
push 0
push 0x4012a0
push 0
push 0
mov dword [0x428180], eax
call esi
push 0
push 0
push 0
push 0x4022c0
push 0
push 0
mov dword [0x42817c], eax
call esi
push 0
push 0
push 0
push 0x4026e0
push 0
push 0
mov dword [0x428178], eax
call esi
mov eax, dword [0x428168]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
call fcn.00415d0c
xor eax, eax
pop esi
add esp, 8
ret 0x10