joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e555c
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x53061a
call fcn.0050ea84
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004eafd8
push 0x15c
call fcn.0040dca6
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4e55a0
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004ec494
jmp 0x4e55a2
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004eafaa
call fcn.0041c3d5
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4e573c
cmp dword [edi + 4], ebx
jle 0x4e573c
lea ecx, [ebp - 0x118]
call fcn.0040a150
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4e5720
lea ecx, [ebp - 0x11c]
call fcn.0040a150
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4e5671
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x552550
push eax
call fcn.0040acb0
add esp, 0xc
jmp 0x4e56a3
jge 0x4e5691
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.0040acb0
add esp, 0x10
jmp 0x4e56a3
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040a8b0
push 0x15c
call fcn.0040dca6
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e56c7
mov ecx, eax
call fcn.004be4f3
mov esi, eax
jmp 0x4e56c9
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.0041b247
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004eafaa
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401390
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401390
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4e560a
call fcn.0050eb07
ret
Function at 0x4ea06c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ea084
mov edi, dword [esi + 0xc]
jmp 0x4ea0c4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ea09d
call fcn.0041e1d8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ea0b2
call fcn.0041e1d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ea0c4
call fcn.0041e1d8
call fcn.0041c3d5
cmp dword [eax + 0x3c], 0
je 0x4ea0d9
push edi
mov ecx, ebx
call fcn.004e8f59
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e9f92
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4ea0f7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ea103
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4f12fa
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4f1344
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f1344
call fcn.004f0b86
test eax, eax
je 0x4f1344
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0040b6f0
xor eax, eax
inc eax
jmp 0x4f155c
cmp dword [ebx + 4], 0x100
push edi
jne 0x4f1553
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4f1441
push 0x11
call edi
test ax, ax
jl 0x4f1441
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f1441
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4f13b4
cmp eax, 0x20
jbe 0x4f1441
cmp eax, 0x24
jbe 0x4f13a7
cmp eax, 0x26
je 0x4f13a7
cmp eax, 0x28
jne 0x4f1441
call fcn.004f0b86
test eax, eax
je 0x4f1441
mov ecx, esi
call fcn.004175d5
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004f0b86
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4f13e9
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040b6f0
jmp 0x4f154e
call fcn.00414bf4
test eax, eax
je 0x4f154e
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00414c2c
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4f1417
xor edi, edi
jmp 0x4f141a
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.00414bf4
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4f154e
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4f151d
sub eax, 0x12
je 0x4f14f5
sub eax, 0xb
je 0x4f1463
dec eax
dec eax
jne 0x4f1553
push 0x12
call edi
test ax, ax
jl 0x4f1553
push 0x11
call edi
test ax, ax
jl 0x4f1553
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f1553
call fcn.004f0b86
test eax, eax
jne 0x4f154e
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004f0b00
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00413830
test eax, eax
je 0x4f154e
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00413830
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4f154e
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f1509
push 0
call fcn.004f0b00
mov ecx, esi
call fcn.00414377
test eax, eax
je 0x4f1553
mov ecx, esi
call fcn.00414377
jmp 0x4f1547
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00413830
test eax, eax
je 0x4f1553
push dword [esi + 0x20]
call edi
push eax
call fcn.00413830
push 0
push esi
mov ecx, eax
call fcn.0040f568
mov ecx, eax
call fcn.004175d5
xor eax, eax
inc eax
jmp 0x4f155b
push ebx
mov ecx, esi
call fcn.00411672
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fe860
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x532d18
call fcn.0050ea1b
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4fe936
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4fe936
cmp ebx, 0x43
je 0x4fe8a2
cmp ebx, 0x2d
jne 0x4fe936
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fe936
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040a150
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.0040acb0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401390
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0047a128
call fcn.0050eaf3
ret 4

Function at 0x5069fb
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x506a3b
test edi, edi
jl 0x506a3b
cmp al, 0x20
je 0x506a30
cmp word [ebp + 8], 0x71
jne 0x506a3b
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x50c6c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57f82c]
jne 0x50c6ca
repz ret
jmp fcn.005169ac
Function at 0x520398
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0051559a
and dword [ebp - 4], 0
cmp dword [0x588d48], 0
mov ebx, eax
jne 0x520449
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5204fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55dbf0
push edi
call esi
test eax, eax
je 0x5204fa
push eax
call fcn.00515528
mov dword [esp], 0x55dbe0
push edi
mov dword [0x588d48], eax
call esi
push eax
call fcn.00515528
mov dword [esp], 0x55dbcc
push edi
mov dword [0x588d4c], eax
call esi
push eax
call fcn.00515528
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x588d50], eax
call esi
push eax
call fcn.00515528
pop ecx
mov dword [0x588d58], eax
test eax, eax
je 0x520449
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00515528
pop ecx
mov dword [0x588d54], eax
mov eax, dword [0x588d54]
cmp eax, ebx
je 0x5204a1
cmp dword [0x588d58], ebx
je 0x5204a1
push eax
call fcn.005155a3
push dword [0x588d58]
mov esi, eax
call fcn.005155a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5204a1
test edi, edi
je 0x5204a1
call esi
test eax, eax
je 0x520498
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x520498
test byte [ebp - 0xc], 1
jne 0x5204a1
or dword [ebp + 0x10], 0x200000
jmp 0x5204da
mov eax, dword [0x588d4c]
cmp eax, ebx
je 0x5204da
push eax
call fcn.005155a3
pop ecx
test eax, eax
je 0x5204da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5204da
mov eax, dword [0x588d50]
cmp eax, ebx
je 0x5204da
push eax
call fcn.005155a3
pop ecx
test eax, eax
je 0x5204da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x588d48]
call fcn.005155a3
pop ecx
test eax, eax
je 0x5204fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5204fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037ac]
call fcn.0040242c
xor eax, eax
push ebp
push 0x4041f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
je 0x40417d
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x404189
cmp esi, 0x30000000
jbe 0x404132
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00403eb0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4041d9
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x4040bc
mov eax, dword [ebp - 4]
call fcn.0040389c
test eax, eax
je 0x4041d9
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041fc
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037ac]
call fcn.004024f0
ret

Function at 0x4042cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x40433b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401d50
mov esi, eax
test esi, esi
jle 0x40431b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00401f9c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x404301
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404342
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405118
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x405140
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x405153
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x40515c
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x4051a6
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid
Function at 0x4052e0
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4052f8
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x4052f3
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x405304
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x40531c
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x405317
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x405328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x405390
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40537b
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4053bc
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x4053c8
jne 0x40537b
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x4053e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x405448
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405433
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405474
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x405480
jne 0x405433
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x405498
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x405500
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054eb
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x40552c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x405538
jne 0x4054eb
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x405678
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x40568f
jne 0x405696
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x4056a5
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x4056ad
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4056d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x405726
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x40573c
call fcn.00401b58
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x405709
xor eax, eax
leave
ret
mov eax, 1
leave
ret
Function at 0x405764
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add dword [eax + 0x20], 0x2000
ret

Function at 0x405a1c
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405abb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405cf8
test al, al
je 0x405aa5
xor eax, eax
push ebp
push 0x405a9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401f48
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405aa5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ac2
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405b24
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405b84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405b9c
call fcn.00401b58
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00401b58
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.0040607c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b8b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x405c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405ce5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00401d50
push eax
mov eax, dword [ebp + 8]
call fcn.00401f48
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x405cb9
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cec
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 8]
call fcn.00401ac0
ret
Function at 0x405d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405dfe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405de3
cmp esi, 0xffffffff
jne 0x405dc7
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00401f9c
push eax
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e05
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x40607c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 0xc]
call fcn.00401f38
xor eax, eax
push ebp
push 0x40615b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00401b14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406138
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40612f
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402074
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00401f48
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406162
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 0xc]
call fcn.00401ac0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00401f48
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40666d
test al, 0x10
jne 0x406671
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4068a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40697e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00401cac
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x406994
call fcn.00401d9c
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov esi, eax
mov eax, dword [0x40d090]
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00401cac
lea eax, [ebp - 0x14]
mov edx, dword [0x40d090]
call fcn.00401d58
mov eax, dword [ebp - 0x14]
call fcn.00401f48
push eax
push 1
push 0
push 0x4069cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406985
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00401ae4
ret

Function at 0x4069d8
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x406a0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
pop edx
pop ebx
ret