joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x4778e0
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42bf58
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bf68
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42bfa8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42bf85
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42c016
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42c010
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42bfe4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42c008
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42bfd0
test ecx, ecx
je 0x42c056
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42c008
cmp ecx, 1
jbe 0x42c056
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42c008
cmp ecx, 2
jbe 0x42c056
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42c056
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42bfc0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042d5e0
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42bf54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42c025
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42c025
Function at 0x42d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42d6d1
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42d6af
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42d73a
cmp dword [eax + 0xc], edi
jne 0x42d734
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42d70c
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42d730
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42d6f8
test ecx, ecx
je 0x42d753
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42d730
cmp ecx, 1
jbe 0x42d753
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42d730
cmp ecx, 2
jbe 0x42d753
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42d753
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42d6e6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042d5e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42d74c
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ebb0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x43ec76
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xf
push str._STUDIO_INVOKED
push esi
mov ebx, eax
lea edi, [esi + 0x40]
call fcn.0042d690
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
mov dword [esp + 0x28], 4
call fcn.00427ef0
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x43ec62
cmp eax, 1
jne 0x43ec27
cmp dword [ecx - 0x10], 0
je 0x43ec62
cmp eax, 3
jne 0x43ec3a
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x43ec62
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 1
push 0x43eb90
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
add dword [esi + 8], 0xfffffff0
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp eax, dword [esi + 8]
jae 0x43ec8e
cmp eax, 0x477790
je 0x43ec8e
cmp dword [eax + 8], 0
jg 0x43ec95
mov eax, dword [0x48edb0]
jmp 0x43eca3
push 0
push 3
mov eax, esi
call fcn.0041c500
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x48edc4], 0
jne 0x43edce
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov ebx, eax
call esi
push 0xfffffffffffffff4
mov edi, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xb7
push ebx
mov dword [esp + 0x14], eax
call esi
push 3
push edi
call esi
push 0x4000
push edi
call fcn.0045750e
push 0x476e2c
push eax
call fcn.00457c08
push 0
push 4
push 0
push eax
mov dword [0x48edc4], eax
call fcn.004569f0
mov esi, dword [0x48edc4]
mov ecx, 8
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
call fcn.00453200
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x34]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0045750e
push 0x4788f0
push eax
call fcn.00457c08
push 0
push 4
push 0
push eax
mov dword [0x48edc8], eax
call fcn.004569f0
mov esi, dword [0x48edc8]
mov ecx, 8
lea edi, [esp + 0x50]
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
call fcn.00453200
mov edx, dword [esp + 0xc]
mov edi, eax
push 0x4000
mov ecx, 8
lea esi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0045750e
push 0x476e2c
push eax
call fcn.00457c08
push 0
push 4
push 0
push eax
mov dword [0x48edcc], eax
call fcn.004569f0
mov esi, dword [0x48edcc]
mov ecx, 8
lea edi, [esp + 0x30]
add esp, 0x20
rep movsd dword es:[edi], dword [esi]
call fcn.00453200
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ffc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov edi, 0x200
jmp 0x440016
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
sub ecx, edx
mov dword [ebp - 0x224], ecx
je 0x440080
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x440038
call fcn.00427ae0
mov eax, dword [ebp - 0x224]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0042d690
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x214]
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], edx
call fcn.0041d0e0
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x440089
mov edi, ebx
mov ecx, dword [ebp - 0x21c]
push ecx
push edi
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.00456d30
mov ecx, dword [ebp - 0x218]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp + 0xc], ebx
je 0x4400bf
cmp eax, edi
je 0x440010
lea eax, [ebp - 0x20c]
sub ecx, eax
mov edi, ecx
je 0x440119
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x4400e3
call fcn.00427ae0
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042d690
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
add esp, 0xc
inc dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x210]
call fcn.0041a5d0
mov dword [ebp - 0x214], 1
test ebx, ebx
je 0x440196
mov edi, dword [ebp - 0x220]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x44014f.6
jmp dword [eax*4 + 0x4401ac]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x44017f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x44017f
mov eax, dword [esi]
call fcn.00425fd0
jmp 0x44017f
call fcn.00427d10
test eax, eax
je 0x44017d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x44017f
xor eax, eax
test eax, eax
jne 0x440196
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450183
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00450183
mov esp, ebp
pop ebp
ret
Function at 0x442000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x477060]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442028
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x442068
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x442045
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4420e2
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x4420dc
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x4420a4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x4420d4
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x442090
test ecx, ecx
je 0x442153
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4420d4
cmp ecx, 1
jbe 0x442153
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4420d4
cmp ecx, 2
jbe 0x442153
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x442153
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x442080
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042d5e0
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1e
jl 0x442014
mov ecx, dword [0x477128]
test ecx, ecx
je 0x44214c
mov esi, 0x477128
mov bl, 0x2c
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x442128
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042d690
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x442120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x4420f1
xor cl, 3
mov byte [eax + 5], cl
jmp 0x4420f1
Function at 0x445320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x445337
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44534c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x445383
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44543a
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.004611e0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00444ff0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x445407
push eax
mov eax, esi
call fcn.00445170
add esp, 4
push esi
call fcn.00445200
add esp, 4
test eax, eax
je 0x445435
push esi
call fcn.004450a0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x44544a
add eax, edi
je 0x445435
push 0
push 1
push edi
call eax
test eax, eax
jne 0x445443
call fcn.00445510
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450183
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c4c4]
jne 0x45018d
repz ret
jmp fcn.00457da4

Function at 0x456929
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x456950
call fcn.00451ebb
mov dword [eax], esi
call fcn.00451ea8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045a127
mov eax, esi
jmp 0x4569a5
test dword [ebp + 0xc], 0xfffffff9
jne 0x456936
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45697d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00451ece
pop ecx
call fcn.00451ea8
mov eax, dword [eax]
jmp 0x4569a5
test al, 0x10
jne 0x4569a3
test al, 1
je 0x4569a3
test byte [ebp + 0xc], 2
je 0x4569a3
call fcn.00451ebb
mov dword [eax], 5
call fcn.00451ea8
mov dword [eax], 0xd
jmp 0x456974
xor eax, eax
pop esi
pop ebp
ret
Function at 0x466601
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045890a
and dword [ebp - 0x14], 0
cmp dword [0x48ed2c], 0
mov dword [ebp - 0x18], eax
jne 0x4666b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46675c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46675c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x475a4c
push ebx
mov dword [0x48ed2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48ed30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48ed34], eax
call edi
push eax
call esi
mov dword [0x48ed3c], eax
test eax, eax
je 0x4666b4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48ed38], eax
mov eax, dword [0x48ed38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46670d
cmp dword [0x48ed3c], ecx
je 0x46670d
push eax
call esi
push dword [0x48ed3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46670d
test ebx, ebx
je 0x46670d
call edi
test eax, eax
je 0x466704
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x466704
test byte [ebp - 8], 1
jne 0x46670d
or dword [ebp + 0x10], 0x200000
jmp 0x466740
mov eax, dword [0x48ed30]
cmp eax, dword [ebp - 0x18]
je 0x466740
push eax
call esi
test eax, eax
je 0x466740
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x466740
mov eax, dword [0x48ed34]
cmp eax, dword [ebp - 0x18]
je 0x466740
push eax
call esi
test eax, eax
je 0x466740
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ed2c]
call esi
test eax, eax
je 0x46675c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46675e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450183
leave
ret
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x40ea60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4793bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046bfcc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40eae2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004697da
mov eax, dword [eax]
push 0x502200
push eax
call fcn.0045c2e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046c257
test bl, bl
je 0x40eae2
push 0x502200
lea ecx, [esp + 0xc]
call fcn.0046c633
push 0x505d70
lea ecx, [esp + 0xc]
call fcn.0046c633
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40eb1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046c257
jmp 0x40ebe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40eba2
lea edx, [esp + 0x7c]
push 0x505d6c
push edx
call fcn.0045c2e4
add esp, 8
test eax, eax
je 0x40eba2
lea eax, [esp + 0x7c]
push 0x505d68
push eax
call fcn.0045c2e4
add esp, 8
test eax, eax
je 0x40eba2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046c257
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40fe40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fea2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40feb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47951b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x50ccc4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ffe8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ff16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046c257
xor eax, eax
jmp 0x41005f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046c3e0
push esi
lea ecx, [esp + 0xc]
call fcn.0046c66f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41003d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040fe40
test eax, eax
jne 0x41003d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040fe40
test eax, eax
jne 0x41003d
lea eax, [esp + 0x14]
push 0x505d84
push eax
call fcn.0045d3c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41001c
lea ecx, [esp + 0x14]
push 0x505d80
push ecx
call fcn.0045d340
mov esi, eax
add esp, 8
test esi, esi
jne 0x41001c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41001f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046c390
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ff2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046c257
xor eax, eax
jmp 0x41005f
mov byte [esi], 0
push 0x505d7c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046c257
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4