joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5297b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5299b9
sub esp, 0x6c
xor ebx, ebx
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp], 0x5e5200
call fcn.0040e800
mov ebx, dword [esp + 4]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp], 0x5ba080
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004043a0
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 0
je 0x5299b2
lea ebp, [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov ebp, 0x5e5200
mov dword [esp], ebp
call fcn.0040f2d0
mov ecx, dword [esp + 0x18]
cmp ecx, 0
je 0x5299ab
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov eax, 0x6b1a90
mov dword [esp + 0x24], eax
mov dword [esp + 8], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], ecx
call fcn.005299d0
mov ebx, dword [esp + 0x18]
cmp ebx, 0
je 0x5299a7
mov dword [esp + 0x14], ebx
mov dword [esp], 0x5caea0
call fcn.0040e800
mov esi, dword [esp + 4]
mov eax, 0x52ae70
mov dword [esi], eax
mov eax, dword [esp + 0x18]
cmp eax, 0
je 0x5299a3
mov dword [esp + 0x10], esi
cmp byte [0x6d9e38], 0
jne 0x52998e
mov dword [esi + 4], eax
mov edx, dword [esp + 0x14]
mov ecx, 0x6b2940
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], esi
add esp, 0x6c
ret
lea esi, [esi + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040f1d0
mov esi, dword [esp + 0x10]
jmp 0x529972
mov dword [eax], eax
jmp 0x529962
mov dword [ebx], eax
jmp 0x52993e
mov dword [ecx], eax
jmp 0x52990c
mov dword [ebx], eax
jmp 0x5298e6
call fcn.00450db0
jmp fcn.005297b0
Function at 0x557f30
Capabilities:
Encrypt data using des

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5580dd
sub esp, 0x3c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 8
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jge 0x55809b
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
xor ecx, ecx
cmp ecx, 4
jge 0x558082
xor eax, eax
cmp eax, 0x10
jge 0x558078
mov ebx, dword [esp + 0x1c]
mov edi, 7
sub edi, ebx
mov ebx, dword [esp + 0x1c]
mov ebp, 0x6b7fc0
cmp ebx, 8
jae 0x5580d6
shl ebx, 6
add ebp, ebx
mov dword [esp + 0x24], ecx
mov ebx, ecx
mov esi, ebp
cmp ecx, 4
jae 0x5580cf
shl ebx, 4
add esi, ebx
mov dword [esp + 0x20], eax
mov ebp, esi
cmp eax, 0x10
jae 0x5580c8
add ebp, eax
movzx ebx, byte [ebp]
xor edx, edx
mov eax, ebx
mov ecx, edi
shl ecx, 2
cmp ecx, 0x40
jae 0x5580bf
cmp ecx, 0x20
jae 0x5580b4
shld edx, eax, cl
shl eax, cl
mov ecx, edx
mov edx, 0x6b2400
cmp edx, 0
je 0x5580ad
mov edi, 0x20
mov esi, 0x20
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 8], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], esi
call fcn.00557e30
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
shl esi, 4
add esi, edi
mov ebx, dword [esp + 0x1c]
mov ebp, 0x6db6e0
cmp ebx, 8
jae 0x5580a6
shl ebx, 8
add ebp, ebx
mov ebx, esi
mov esi, ebp
cmp ebx, 0x40
jae 0x55809f
shl ebx, 2
add esi, ebx
mov dword [esi], edx
mov eax, edi
inc eax
cmp eax, 0x10
jl 0x557f87
inc ecx
cmp ecx, 4
jl 0x557f7c
mov ebx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jl 0x557f69
add esp, 0x3c
ret
call fcn.00428680
ud2
call fcn.00428680
ud2
mov dword [edx], eax
jmp 0x558004
mov edx, eax
shl edx, cl
xor eax, eax
jmp 0x557ff4
xor edx, edx
xor eax, eax
jmp 0x557fe6
call fcn.00428680
ud2
call fcn.00428680
ud2
call fcn.00428680
ud2
call fcn.00450db0
jmp fcn.00557f30
Function at 0x4014f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x28], 1
cmp dword [ebp + 0xc], 0
jne 0x401507
xor al, al
jmp 0x401631
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40152e
mov byte [ebp - 0x28], 0
jmp 0x40162f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40155f
mov byte [ebp - 0x28], 0
jmp 0x40162d
mov word [ebp - 0x24], 0x4d42
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x14]
mov dword [ebp - 0x22], ecx
mov word [ebp - 0x1e], 0
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov dword [ebp - 0x1a], ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0xe
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4015bb
mov byte [ebp - 0x28], 0
jmp 0x40162b
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
lea edx, [ecx*4 + 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4015e7
mov byte [ebp - 0x28], 0
jmp 0x401629
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401618
mov byte [ebp - 0x28], 0
jmp 0x401627
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0x28]
jmp 0x401631
jmp 0x401618
jmp 0x401618
jmp 0x401618
jmp 0x401618
jmp 0x401618
mov esp, ebp
pop ebp
ret
Function at 0x401635
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409284
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x28], 0x4000
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401681
xor eax, eax
jmp 0x40181d
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00404850
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4017e0
mov dword [ebp - 0x20], 0
jmp 0x4016d6
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x4017de
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
and ecx, 1
cmp ecx, 1
jne 0x4017a7
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x14]
push ecx
lea ecx, [ebp - 0x38]
call section..text
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
push edx
call fcn.00401aef
add esp, 4
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401190
mov eax, dword [ebp - 0x30]
and eax, 0xff
test eax, eax
je 0x4017a7
push 8
call fcn.0040443b
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x40], 0
je 0x40176b
push 0
mov ecx, dword [ebp - 0x40]
call section..text
mov dword [ebp - 0x44], eax
jmp 0x401772
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x14]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.004010a7
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402580
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
cmp eax, 2
jne 0x4017d9
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp - 0x10]
add edx, ecx
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401635
jmp 0x4016cd
jmp 0x4017eb
cmp dword [ebp - 0x18], 0x103
je 0x4017eb
jmp 0x4017f8
cmp dword [ebp - 0x18], 0x103
jne 0x401690
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401818
xor eax, eax
jmp 0x40181d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40182d
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], 0x4000
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401879
xor eax, eax
jmp 0x4019ca
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00404850
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40198d
mov dword [ebp - 0x20], 0
jmp 0x4018ce
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x40198b
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
and ecx, 1
cmp ecx, 1
jne 0x401954
push 8
call fcn.0040443b
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x401918
push 0
mov ecx, dword [ebp - 0x34]
call section..text
mov dword [ebp - 0x38], eax
jmp 0x40191f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004010a7
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402580
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
and ecx, 2
cmp ecx, 2
jne 0x401986
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x10]
add eax, edx
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040182d
jmp 0x4018c5
jmp 0x401998
cmp dword [ebp - 0x18], 0x103
je 0x401998
jmp 0x4019a5
cmp dword [ebp - 0x18], 0x103
jne 0x401888
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x24]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4019c5
xor eax, eax
jmp 0x4019ca
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x401aef
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4092c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push 0
lea ecx, [ebp - 0x14]
call section..text
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040106a
push str._tst
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004011a5
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040106a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401190
push 0
push 0x40000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00402570
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x401bb8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.00402570
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401190
mov al, byte [ebp - 0x24]
jmp 0x401bce
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401190
mov al, byte [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x401c87
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xf003f
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push str.REG_SZ
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402570
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00402570
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402570
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x401d05
mov al, 1
jmp 0x401d07
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x401d0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10c], 0x20019
mov dword [ebp - 4], 0xfe
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402570
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402570
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004010a7
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
jne 0x401dab
mov al, 1
jmp 0x401dad
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x401ea1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0xf003f
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402570
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp + 0x10]
call fcn.00402570
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401ef5
mov al, 1
jmp 0x401ef7
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4036f1
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x409390
call fcn.00404828
sub esp, 0x34
push esi
push edi
mov esi, str.Mrak1pack
lea eax, [ebp - 0x28]
xor edi, edi
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004042d0
lea eax, [ebp - 0x40]
push esi
push eax
mov byte [ebp - 0x1a], 5
call fcn.004042d0
lea eax, [ebp + 8]
mov byte [ebp - 0x32], 5
push eax
call fcn.00401c15
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x403786
push 2
push edi
push 0xffffffffffffffe8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x28]
push 0x18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404af0
pop ecx
test eax, eax
pop ecx
jne 0x403786
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], edi
je 0x403782
push dword [ebp + 8]
call fcn.00404449
pop ecx
mov al, 1
jmp 0x40379a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], edi
je 0x403798
push dword [ebp + 8]
call fcn.00404449
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403f39
Capabilities:
Check if file exists
Create directory
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
push str.Mrak1pack
push eax
call fcn.004042d0
pop ecx
xor esi, esi
pop ecx
mov byte [ebp - 0x26], 5
push esi
push str.mrakcontrolWndClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x403fcc
push 0x44
lea eax, [ebp - 0x78]
pop edi
push edi
push esi
push eax
call fcn.00404850
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x78], edi
call fcn.00404850
add esp, 0x18
push dword [0x40c850]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403fd3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x40c870]
push esi
push esi
push esi
push esi
push esi
push esi
push dword [0x40c850]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403fd3
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
push 0x40c870
call fcn.00401aef
test al, al
pop ecx
jne 0x403fef
push esi
push dword [0x40c870]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40c820
call fcn.00401c15
mov edi, eax
pop ecx
cmp edi, esi
mov dword [ebp - 4], edi
je 0x404051
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push 0xffffffffffffffe8
push edi
call ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x34]
push 0x18
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push 2
push esi
push 0xffffffffffffffe8
pop eax
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x34]
push str.Control
push eax
call fcn.00404af0
pop ecx
test eax, eax
pop ecx
je 0x404058
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403fce
push 0x40c850
call fcn.00401bdc
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x404048
push dword [ebp - 0x24]
call fcn.0040443b
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0x20]
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call edi
push 0x44
lea eax, [ebp - 0x78]
pop ebx
push ebx
push esi
push eax
call fcn.00404850
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x78], ebx
call fcn.00404850
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x40c870]
push esi
push esi
push esi
push esi
push esi
push esi
push dword [0x40c850]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404051
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x18]
call edi
jmp 0x403fcc