joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x413d32
mov eax, dword fs:[0]
push eax
mov eax, 0x10024
call fcn.004103b0
mov eax, dword [0x41a2d4]
xor eax, esp
mov dword [esp + 0x10020], eax
push ebx
push ebp
push esi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0x10034]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10044]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
cmp dword [eax + 0x18], 8
jb 0x402718
mov eax, dword [eax + 4]
jmp 0x40271b
add eax, 4
push 0x10000
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebp
jne 0x402737
mov eax, 0x41b234
jmp 0x402780
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402750
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x34]
push edx
lea esi, [esp + 0x1c]
call fcn.004028e0
mov ebx, 1
mov dword [esp + 0x1003c], ebp
mov eax, esi
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebp
push ebp
mov ecx, edi
mov word [edi + 4], bp
call fcn.00401da0
or ebx, 2
test bl, 1
je 0x4027b4
cmp dword [esp + 0x2c], 8
jb 0x4027b4
mov eax, dword [esp + 0x18]
push eax
call fcn.0040772e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x10034]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.00407472
add esp, 0x10030
ret

Function at 0x402ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00403030
add esp, 4
test al, al
je 0x402ccb
mov eax, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00402d20
add esp, 4
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00402fb0
add esp, 4
test al, al
je 0x402d11
cmp byte [ebp + 0xc], 0
je 0x402ce3
call fcn.004036d0
cmp dword [ebx + 0x18], 8
jb 0x402cfd
mov ebx, dword [ebx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d20
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x414299
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 3
push 0x416c90
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004028e0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], ebx
push eax
mov edx, esi
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.00402e10
add esp, 4
test al, al
mov esi, 8
setne byte [esp + 0x13]
cmp dword [esp + 0x30], esi
jb 0x402dab
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040772e
add esp, 4
cmp byte [esp + 0x44], bl
je 0x402dba
mov ebx, edi
call fcn.004036d0
xor ebx, ebx
cmp dword [edi + 0x18], esi
jb 0x402dc4
mov edi, dword [edi + 4]
jmp 0x402dc7
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
cmp byte [esp + 0x13], bl
je 0x402df5
cmp al, bl
je 0x402df5
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x403130
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x414211
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x41a2d4]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2cc]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push esi
mov dword [esp + 0x2c8], ebx
call fcn.00403030
add esp, 4
test al, al
je 0x403325
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
push esi
lea esi, [esp + 0x30]
mov byte [esp + 0x2c8], 1
call fcn.00402280
push edi
mov eax, esi
call fcn.00403520
mov eax, dword [esp + 0x34]
mov edi, 8
add esp, 4
cmp dword [esp + 0x44], edi
jae 0x4031e5
lea eax, [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403251
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x18]
call fcn.00401250
cmp dword [esp + 0x44], edi
jb 0x403219
mov edx, dword [esp + 0x30]
push edx
call fcn.0040772e
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
je 0x403359
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.004023d0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
jmp 0x403351
lea eax, [esp + 0x90]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403270
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x50]
call fcn.004028e0
push 1
mov byte [esp + 0x2c8], 2
mov eax, dword [esp + 0x60]
push 0x416c88
xor ecx, ecx
mov edi, esi
call fcn.00403bb0
test eax, eax
je 0x4032d3
mov eax, dword [esp + 0x5c]
push 2
push 0x416c98
xor ecx, ecx
call fcn.00403bb0
test eax, eax
je 0x4032d3
mov ecx, esi
push ecx
lea esi, [esp + 0x18]
call fcn.00401350
mov byte [esp + 0x2c4], 1
cmp dword [esp + 0x60], 8
jb 0x4032ef
mov edx, dword [esp + 0x4c]
push edx
call fcn.0040772e
add esp, 4
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403251
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x2c4], bl
cmp dword [esp + 0x44], 8
jb 0x403325
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040772e
add esp, 4
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x18]
call fcn.00401250
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403359
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push edx
call fcn.004023d0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0040772e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00407472
add esp, 0x2b4
ret
Function at 0x4036d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x14
cmp dword [ebx + 0x18], 8
push edi
lea edi, [ebx + 4]
jb 0x4036e1
mov eax, dword [edi]
jmp 0x4036e3
mov eax, edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esi, [esp + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
call fcn.00403580
cmp byte [esp + 0x15], 0
pop esi
jne 0x40370b
mov al, 1
pop edi
add esp, 0x14
ret
lea ecx, [esp + 8]
mov byte [esp + 0x11], 0
call fcn.00403630
cmp dword [ebx + 0x18], 8
jb 0x403721
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop edi
add esp, 0x14
ret

Function at 0x4041b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4141b3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x41a2d4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
push eax
mov edi, ecx
mov esi, edx
call fcn.0040b050
push esi
mov edx, edi
lea ecx, [esp + 0x98]
mov dword [esp + 0x4c], 0x44
call fcn.00403d40
add esp, 0x10
mov dword [esp + 0xb0], 0
mov esi, dword [esp + 0x9c]
add esi, 1
mov dword [esp + 0x30], vtable.hp::container::Buffer_wchar_t_.0
mov dword [esp + 0x34], esi
je 0x40426e
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x41b720
neg ecx
or ecx, eax
push ecx
call fcn.004075ea
add esp, 8
mov ebx, eax
jmp 0x404270
xor ebx, ebx
mov dword [esp + 0x38], ebx
test ebx, ebx
mov byte [esp + 0xb0], 1
jne 0x4042a7
push 1
push 0x41b1e8
lea ecx, [esp + 0x1c]
call fcn.0040753b
push 0x417d18
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.std::bad_alloc.0
call fcn.0040862b
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x4042bf
lea eax, [esp + 0x8c]
push eax
push esi
push ebx
call fcn.004077f3
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4042d5
mov edi, dword [edi + 4]
jmp 0x4042d8
add edi, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x404320
lea ecx, [esp + 0x14]
call fcn.004074dc
push 0x417d30
lea ecx, [esp + 0x18]
push ecx
call fcn.0040862b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x404354
lea ecx, [esp + 0x14]
call fcn.004074dc
push 0x417d30
lea ecx, [esp + 0x18]
push ecx
call fcn.0040862b
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
call fcn.00404570
lea esi, [esp + 0x88]
call fcn.00402410
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00407472
add esp, 0xa4
ret
Function at 0x4046e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x413e79
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x44], ebx
cmp dword [eax + 0x18], 8
jb 0x404726
mov eax, dword [eax + 4]
jmp 0x404729
add eax, 4
push ecx
push esi
push edi
push edi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x40477c
mov eax, esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404751
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x1c]
call fcn.004028e0
mov ebx, 1
mov dword [esp + 0x38], edi
mov eax, esi
mov dword [esp + 0x44], ebx
jmp 0x404781
mov eax, 0x41b218
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
push edi
mov ecx, ebp
mov word [ebp + 4], di
call fcn.00401da0
or ebx, 2
test bl, 1
je 0x4047b5
cmp dword [esp + 0x2c], 8
jb 0x4047b5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040772e
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x4047d0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
jb 0x4047e8
mov eax, dword [eax + 4]
jmp 0x4047eb
add eax, 4
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 2
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404806
mov edi, dword [esi]
jmp 0x40480a
mov edi, dword [esp + 8]
cmp edi, dword [esi]
jne 0x404814
pop edi
xor al, al
pop esi
pop ecx
ret
cmp dword [ebx + 0x18], 8
mov edx, dword [ebx + 0x14]
jb 0x404822
mov eax, dword [ebx + 4]
jmp 0x404825
lea eax, [ebx + 4]
cmp dword [0x41b2a0], 8
mov ecx, dword [0x41b28c]
jae 0x404839
mov ecx, 0x41b28c
lea edx, [edx + edx + 2]
push edx
push eax
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x404910
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x414180
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x74]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
mov dword [esp + 0x90], ebx
mov eax, dword [edx]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebp, eax
cmp ebp, ebx
je 0x404981
mov ecx, dword [0x41c538]
jmp 0x404ad8
mov esi, dword [esp + 0x18]
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x41b720
mov dword [esp + 0x1c], esi
neg ecx
or ecx, eax
push ecx
call fcn.004075ea
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4049bd
mov ecx, dword [0x41c538]
jmp 0x404ad8
xor eax, eax
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
jbe 0x404a6d
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x78]
push ebx
push ebx
push ebx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
push ecx
push edi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebp, eax
cmp ebp, ebx
je 0x4049ff
cmp ebp, 0xea
jne 0x404a58
mov eax, edi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404a15
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x4c]
call fcn.004028e0
mov ecx, esi
push ecx
lea esi, [esp + 0x38]
mov byte [esp + 0x6c], 1
call fcn.00401350
mov byte [esp + 0x68], bl
cmp dword [esp + 0x5c], 8
jb 0x404a58
mov edx, dword [esp + 0x48]
push edx
call fcn.0040772e
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jb 0x4049cd
push edi
call fcn.00407729
add esp, 4
cmp ebp, 0x103
je 0x404ad4
cmp ebp, ebx
je 0x404ad4
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp edi, eax
mov ebx, eax
jbe 0x404a9d
call fcn.00407719
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp edi, eax
lea esi, [esp + 0x34]
jbe 0x404aaa
call fcn.00407719
push ebx
push esi
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x48]
call fcn.00404cf0
mov esi, dword [esp + 0x70]
push esi
mov ecx, ebx
call fcn.00401250
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x404ae8
lea ecx, [esp + 0x34]
mov esi, dword [esp + 0x70]
push esi
call fcn.00401250
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x404b08
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.004023d0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.0040772e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x404b20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], 0
lea esi, [edi + 4]
jb 0x404b44
mov eax, dword [esi]
jmp 0x404b46
mov eax, esi
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push 0x10009
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404b67
mov eax, dword [ebx]
jmp 0x404b6b
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx]
mov dword [esp + 0x14], eax
je 0x404b8b
lea eax, [esp + 0x14]
push eax
call fcn.00404bb0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x18], 8
jb 0x404b93
mov esi, dword [esi]
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x41a2d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov ebx, dword [eax]
mov esi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], esi
test esi, esi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x18], ebx
je 0x4053bd
cmp esi, ecx
je 0x4053c2
call fcn.00407719
cmp ebx, edi
je 0x405471
test esi, esi
mov dword [ebp - 4], 0
jne 0x4053da
call fcn.00407719
cmp ebx, dword [esi + 4]
jne 0x4053e4
call fcn.00407719
mov eax, dword [ebx + 0xc]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40540e
lea ecx, [ebp - 0x28]
call fcn.004074dc
push 0x417d30
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040862b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x405450
lea ecx, [ebp - 0x34]
call fcn.004074dc
push 0x417d30
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040862b
mov dword [ebp - 0x14], 0
mov eax, 0x40544b
ret
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp ebx, dword [edx + 4]
jne 0x405464
call fcn.00407719
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
jmp 0x4053af
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e50
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x41a2d4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [0x41c524], eax
xor eax, eax
push ebx
mov dword [0x41c51c], ecx
mov dword [0x41c520], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
lea ecx, [esp + 0xc]
call fcn.004051b0
lea edx, [esp + 0x1c]
add esp, 4
push edx
lea ecx, [esp + 0xc]
call fcn.00405ed0
add esp, 4
push eax
call fcn.004082c2
int3

Function at 0x406980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
lea ebx, [esi + 0x44]
push ebx
call fcn.00403030
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
test al, al
je 0x4069ac
push 1
mov ecx, ebx
call fcn.00402d20
add esp, 4
jmp 0x4069d4
push ebx
call fcn.00402fb0
add esp, 4
test al, al
je 0x4069d8
call fcn.004036d0
cmp dword [ebx + 0x18], 8
jb 0x4069c9
mov ebx, dword [ebx + 4]
jmp 0x4069cc
add ebx, 4
push ebx
call edi
test eax, eax
setne al
test al, al
je 0x406a3a
lea ebx, [esi + 0x28]
push ebx
call fcn.00403390
add esp, 4
test al, al
je 0x406a2f
push ebx
call fcn.00403030
add esp, 4
test al, al
je 0x406a03
push 1
mov ecx, ebx
call fcn.00402d20
add esp, 4
jmp 0x406a2b
push ebx
call fcn.00402fb0
add esp, 4
test al, al
je 0x406a2f
call fcn.004036d0
cmp dword [ebx + 0x18], 8
jb 0x406a20
mov ebx, dword [ebx + 4]
jmp 0x406a23
add ebx, 4
push ebx
call edi
test eax, eax
setne al
test al, al
je 0x406a3a
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406a50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
lea ebx, [esi + 0x178]
push ebx
call fcn.00403030
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
test al, al
je 0x406a7f
push 1
mov ecx, ebx
call fcn.00402d20
add esp, 4
jmp 0x406aa7
push ebx
call fcn.00402fb0
add esp, 4
test al, al
je 0x406aab
call fcn.004036d0
cmp dword [ebx + 0x18], 8
jb 0x406a9c
mov ebx, dword [ebx + 4]
jmp 0x406a9f
add ebx, 4
push ebx
call edi
test eax, eax
setne al
test al, al
je 0x406b10
lea ebx, [esi + 0x194]
push ebx
call fcn.00403390
add esp, 4
test al, al
je 0x406b05
push ebx
call fcn.00403030
add esp, 4
test al, al
je 0x406ad9
push 1
mov ecx, ebx
call fcn.00402d20
add esp, 4
jmp 0x406b01
push ebx
call fcn.00402fb0
add esp, 4
test al, al
je 0x406b05
call fcn.004036d0
cmp dword [ebx + 0x18], 8
jb 0x406af6
mov ebx, dword [ebx + 4]
jmp 0x406af9
add ebx, 4
push ebx
call edi
test eax, eax
setne al
test al, al
je 0x406b10
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406cc0
Capabilities:
Persist via run registry key
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x41a2d4]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x60]
call fcn.004027e0
xor ebp, ebp
cmp dword [esp + 0x74], ebp
jne 0x406d0e
cmp dword [esp + 0x78], 8
jb 0x406cf9
mov eax, dword [esp + 0x64]
push eax
call fcn.0040772e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00407472
add esp, 0x74
ret
mov ebx, dword [esi + 4]
push 2
mov edi, 7
push 0x417124
lea esi, [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.004028e0
mov ecx, esi
push ecx
lea esi, [esp + 0x18]
call fcn.00401350
cmp dword [esp + 0x3c], 8
jb 0x406d5f
mov edx, dword [esp + 0x28]
push edx
call fcn.0040772e
add esp, 4
push 3
push 0x41712c
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.004028e0
mov eax, esi
push eax
lea esi, [esp + 0x18]
call fcn.00401350
cmp dword [esp + 0x3c], 8
jb 0x406d9c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040772e
add esp, 4
push ebx
lea esi, [esp + 0x18]
call fcn.00401350
mov edx, esi
push edx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x48]
call fcn.00403d40
add esp, 4
push 0x31
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea esi, [esp + 0x2c]
mov dword [esp + 0x48], 0x80000002
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.004028e0
lea ecx, [esp + 0x40]
lea ebx, [esp + 0x44]
mov eax, esi
call fcn.004047d0
mov ebx, 8
cmp dword [esp + 0x3c], ebx
movzx esi, al
jb 0x406e08
mov eax, dword [esp + 0x28]
push eax
call fcn.0040772e
add esp, 4
cmp dword [esp + 0x5c], ebx
jb 0x406e1b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040772e
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x406e4e
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
push edx
call fcn.004023d0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0040772e
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jb 0x406e6d
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040772e
add esp, 4
mov ecx, dword [esp + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407472
add esp, 0x74
ret