joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f12c
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x43f36d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
call fcn.00404060
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.00404520
push eax
call fcn.004062f4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x43f1bb
lea eax, [ebp - 0x154]
call fcn.0043e818
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp + 8]
call fcn.004040b4
jmp 0x43f341
cmp byte [ebp + 0xc], 0
je 0x43f1f9
call fcn.00402ab0
mov eax, 0x1ff
call fcn.00402ce4
mov edx, eax
inc edx
mov eax, edx
shl eax, 4
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x43f108]
call fcn.004053e8
add esp, 4
jmp 0x43f1fc
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x43f108]
call fcn.004053e8
add esp, 4
mov ecx, edi
mov eax, ebx
dec eax
test eax, eax
jb 0x43f232
inc eax
xor edx, edx
mov bl, byte [ecx]
xor bl, 0xff
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], bl
inc ecx
inc edx
dec eax
jne 0x43f222
xor ebx, ebx
cmp byte [ebp + 0x10], 0
je 0x43f2e9
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x58]
mov ecx, 0x40
call fcn.004065c0
cmp word [ebp - 0x58], 0x5a4d
jne 0x43f2c9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
lea edx, [eax + edx]
lea eax, [ebp - 0x150]
mov ecx, 0xf8
call fcn.004065c0
cmp dword [ebp - 0x150], 0x4550
jne 0x43f2a9
cmp word [ebp - 0x138], 0x10b
jb 0x43f2a9
call fcn.0043e468
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx + 8]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004065b8
mov bl, 1
jmp 0x43f2eb
lea edx, [ebp - 0x158]
mov eax, 0x43f388
call fcn.0043cb08
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + 8]
call fcn.004040b4
jmp 0x43f2eb
lea edx, [ebp - 0x15c]
mov eax, 0x43f3a0
call fcn.0043cb08
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp + 8]
call fcn.004040b4
jmp 0x43f2eb
mov bl, 1
test bl, bl
je 0x43f338
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00406514
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00406534
test eax, eax
je 0x43f31f
mov byte [ebp - 1], 1
jmp 0x43f338
lea eax, [ebp - 0x160]
call fcn.0043e818
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp + 8]
call fcn.004040b4
mov eax, dword [ebp - 8]
push eax
call fcn.004062cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f374
lea eax, [ebp - 0x160]
mov edx, 4
call fcn.00404084
lea eax, [ebp - 0x18]
mov edx, dword [0x43f108]
call fcn.004053f4
ret
Function at 0x43fec8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], ebx
mov esi, ecx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x44003a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dword [esi], 2
mov eax, edi
call fcn.00404060
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00404520
push eax
call fcn.004062f4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44001c
push 0
push 0
push 0
push ebx
call fcn.00406514
cmp eax, 0xffffffff
je 0x440016
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
call fcn.004064ec
test eax, eax
je 0x440016
cmp word [ebp - 0x4c], 0x5a4d
jne 0x440016
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.00406514
cmp eax, 0xffffffff
je 0x440016
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push ebx
call fcn.004064ec
test eax, eax
je 0x440016
cmp dword [ebp - 0x144], 0x4550
jne 0x440016
mov eax, dword [ebp - 0x13c]
xor eax, 0x50485e00
xor eax, dword [ebp - 0x11c]
movzx edx, word [ebp - 0x13e]
xor eax, edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jle 0x43ffe3
cmp dword [ebp - 0xc], 0x7a120
jge 0x43ffe3
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov byte [ebp - 1], 1
jmp 0x440016
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0xc]
call fcn.00407ae8
mov eax, dword [ebp - 0x148]
push eax
lea edx, [ebp - 0x14c]
mov eax, 0x440058
call fcn.0043cb08
mov edx, dword [ebp - 0x14c]
mov eax, edi
pop ecx
call fcn.0040436c
push ebx
call fcn.004062cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440041
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.00404084
ret
Function at 0x440088
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44025b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.00404520
push eax
call fcn.004062f4
mov esi, eax
cmp esi, 0xffffffff
je 0x44023f
push 0
push 0
push 0
push esi
call fcn.00406514
cmp eax, 0xffffffff
je 0x440239
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.004064ec
test eax, eax
je 0x440239
cmp word [ebp - 0x4c], 0x5a4d
jne 0x440239
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.00406514
cmp eax, 0xffffffff
je 0x440239
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call fcn.004064ec
test eax, eax
je 0x440239
cmp dword [ebp - 0x144], 0x4550
jne 0x440239
call fcn.004063bc
add eax, 0x7c6
mov edx, dword [ebp - 0x11c]
xor edx, 0x50485e00
movzx ecx, word [ebp - 0x13e]
xor edx, ecx
xor edi, edx
xor eax, edi
mov dword [ebp - 0x13c], eax
call fcn.00402ab0
mov eax, 9
call fcn.00402ce4
mov word [ebp - 0x100], ax
mov eax, 9
call fcn.00402ce4
mov word [ebp - 0xfe], ax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.00406514
cmp eax, 0xffffffff
je 0x4401dd
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call fcn.00406534
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
je 0x440239
mov eax, 0x200
call fcn.00402ce4
mov edi, eax
shl edi, 4
test edi, edi
jle 0x440239
push 2
push 0
push 0
push esi
call fcn.00406514
cmp eax, 0xffffffff
je 0x440239
push edi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x440064]
call fcn.004053e8
add esp, 4
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.004065c8
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push esi
call fcn.00406534
push esi
call fcn.004062cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440262
lea eax, [ebp - 0xc]
mov edx, dword [0x440064]
call fcn.004053f4
ret

Function at 0x443f54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443fd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404060
mov eax, dword [ebp - 4]
call fcn.00404320
mov esi, eax
test esi, esi
jle 0x443fbb
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov bl, byte [eax + edx - 1]
xor bl, byte [ebp - 5]
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404248
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404328
inc dword [ebp - 0xc]
dec esi
jne 0x443f94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443fd8
lea eax, [ebp - 0x10]
call fcn.00404060
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403020
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433cd8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x48e868]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0x4353be
lea eax, [ebp + 8]
push eax
call fcn.00401060
add esp, 8
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x403091
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401a90
mov al, byte [ebp - 0x12]
jmp 0x403149
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
lea edx, [ebp + 8]
push edx
call fcn.00401870
mov dword [ebp - 0x2c], eax
push 0x43861c
push 0x4353bf
push str.SELECT__FROM_Win32_Process
push str.ROOTcimv2
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 2
jl 0x4030f6
mov byte [ebp - 0x13], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401a90
mov al, byte [ebp - 0x13]
jmp 0x403149
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401a90
mov al, byte [ebp - 0x14]
jmp 0x403149
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x403700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403724
xor eax, eax
jmp 0x4037a4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40373b
xor eax, eax
jmp 0x4037a4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403787
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403787
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40375e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403793
xor eax, eax
jmp 0x4037a4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4037a1
xor eax, eax
jmp 0x4037a4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4078b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434220
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x420
mov eax, dword [0x48e868]
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 dword [ebp - 0x430], ecx
mov byte [ebp - 0x41d], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x418], 0x400
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x4079c9
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x4079bc
mov dword [ebp - 0x424], 0
jmp 0x40797c
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
cmp edx, dword [ebp + 0x18]
jge 0x4079bc
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x42c], edx
mov eax, dword [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4079ba
mov byte [ebp - 0x41d], 1
jmp 0x4079bc
jmp 0x40796d
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4079d8
mov dword [ebp - 4], 0xffffffff
jmp 0x4079e8
mov al, byte [ebp - 0x41d]
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.0041e8f2
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408640
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48e868]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4086b4
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40867f
mov eax, dword [ebp - 0x18]
jmp 0x4087ab
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4086ae
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x4087ab
mov edx, dword [ebp - 0x1c]
mov byte [edx], 1
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.004013e0
add esp, 4
push eax
push 0x459cac
push 0x17
push 0
push 0x484d1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4086ed
mov eax, dword [ebp - 0x18]
jmp 0x4087ab
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x80
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408735
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 0x18]
jmp 0x4087ab
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x20
mov eax, dword [ebp + 0xc]
push eax
push 0x449644
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40878c
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x18]
jmp 0x4087ab
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8f2
mov esp, ebp
pop ebp
ret 8
Function at 0x4097d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push str.C:WINDOWS_system32drivers_vmmouse.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4097f1
mov al, 1
jmp 0x40982a
push str.C:WINDOWS_system32drivers_vmhgfs.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x409810
mov al, 1
jmp 0x40982a
push str.C:WINDOWS_system32driversVBoxMouse.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x409828
mov al, 1
jmp 0x40982a
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40d790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x48e868]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jb 0x40d818
cmp dword [ebp - 0x110], 1
jb 0x40d818
push str.CsrGetProcessId
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40d812
call dword [ebp - 0x11c]
jmp 0x40d825
xor eax, eax
jmp 0x40d825
push str.csrss.exe
call fcn.0040d870
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8f2
mov esp, ebp
pop ebp
ret

Function at 0x40d870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x48e868]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0041eef0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x40d8c2
xor eax, eax
jmp 0x40d977
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40d8f7
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d977
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0041f4f5
add esp, 8
test eax, eax
jne 0x40d923
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x40d977
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40d968
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041f4f5
add esp, 8
test eax, eax
jne 0x40d966
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x40d977
jmp 0x40d923
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8f2
mov esp, ebp
pop ebp
ret
Function at 0x40e950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434808
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48e868]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x40e990
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x40e99c
mov al, 1
jmp 0x40eb3f
mov dword [ebp - 0x54], 8
call fcn.00409070
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00409070
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.004090d0
add esp, 8
movzx eax, al
test eax, eax
je 0x40e9df
xor al, al
jmp 0x40eb3f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040bc80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.00404340
mov ecx, eax
call fcn.00401d90
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00412110
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404340
mov ecx, eax
call fcn.00401d90
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.00412690
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ea5a
cmp dword [ebp - 0x3c], 1
je 0x40ea61
cmp dword [ebp - 0x3c], 3
je 0x40eafb
jmp 0x40eb13
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404340
mov ecx, eax
call fcn.00401d90
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40eac4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404340
mov ecx, eax
call fcn.00401d90
push eax
call fcn.0041fed4
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40eac4
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a90
mov al, byte [ebp - 0x34]
jmp 0x40eb3f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x40eae7
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a90
mov al, byte [ebp - 0x31]
jmp 0x40eb3f
cmp dword [ebp - 0x38], 0
jne 0x40eaf9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00408ab0
jmp 0x40eb2b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a90
mov al, byte [ebp - 0x33]
jmp 0x40eb3f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a90
mov al, byte [ebp - 0x32]
jmp 0x40eb3f
jmp 0x40e9f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e8f2
mov esp, ebp
pop ebp
ret
Function at 0x412dc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x48e868]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x412df4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412df4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x412e03
jmp 0x412f6c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
movzx ecx, word [eax]
test ecx, ecx
je 0x412e5e
mov edx, dword [ebp - 0x41c]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x412e41
mov ecx, dword [ebp - 0x41c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x412e4d
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x41c]
add ecx, 2
mov dword [ebp - 0x41c], ecx
jmp 0x412e18
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x418]
cmp eax, dword [ebp + 0xc]
je 0x412eee
mov ecx, dword [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.0041d960
add esp, 0xc
mov ecx, dword [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 0x208
jae 0x412eb7
jmp 0x412ebc
call fcn.004205f8
xor edx, edx
mov eax, dword [ebp - 0x424]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412dc0
add esp, 8
mov eax, dword [ebp - 0x420]
add eax, 2
mov dword [ebp - 0x420], eax
mov ecx, 2
imul ecx, ecx, 0
mov dword [ebp - 0x428], ecx
cmp dword [ebp - 0x428], 0x208
jae 0x412f0a
jmp 0x412f0f
call fcn.004205f8
xor edx, edx
mov eax, dword [ebp - 0x428]
mov word [ebp + eax - 0x20c], dx
cmp dword [ebp + 8], 0
je 0x412f38
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0042089b
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0042086c
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412f6c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8f2
mov esp, ebp
pop ebp
ret