joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5dc018
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4a5dc034
xor eax, eax
mov dword [esi], eax
xor ebx, ebx
mov eax, esi
call fcn.4a50763c
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a5dc0c2
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4a5dc0b9
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.4a5080ac
cmp dword [ebp - 0x10], 0
je 0x4a5dc0ac
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4a5dc0ac
xor ebx, ebx
jmp 0x4a5dc0ae
mov bl, 1
test bl, bl
jne 0x4a5dc0b9
mov eax, esi
call fcn.4a50763c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5dc0d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4a5dc13a
mov ebx, esi
test ebx, ebx
je 0x4a5dc117
sub ebx, 4
mov ebx, dword [ebx]
push ebx
push esi
push 3
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5dc70c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x4a5dc814
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, eax
add dword [ebx + 0x20], 1
adc dword [ebx + 0x24], 0
cmp dword [ebx + 0x28], 0
je 0x4a5dc7ee
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x4a5dc830
call fcn.4a507dac
mov esi, dword [ebp - 4]
mov eax, esi
add eax, 8
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov edx, dword [ebx + 0x24]
mov dword [eax + 4], edx
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x28]
call fcn.4a544fe4
mov eax, dword [ebp - 0x10]
mov dl, 1
call fcn.4a5dc588
test al, al
je 0x4a5dc7c8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebx + 0x28]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a5dc7d6
mov eax, esi
test eax, eax
je 0x4a5dc7af
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x4a5dc7d6
mov eax, dword [ebx + 0x28]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x4a5dc844
mov edx, 0x4a5dc85c
mov eax, 0x80000001
call fcn.4a5dc0d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5dc81b
lea eax, [ebp - 0x10]
call fcn.4a507618
lea eax, [ebp - 0xc]
call fcn.4a50763c
lea eax, [ebp - 4]
call fcn.4a50763c
ret
Function at 0x401610
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2724
call fcn.004042b0
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x2720], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push 0x2710
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
call fcn.00404100
add esp, 0xc
push 0
lea ecx, [esp + 4]
push ecx
push 0x2710
lea edx, [esp + 0x1c]
push edx
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40168d
mov ecx, dword [esp + 0x28]
push 0x14
lea edx, [esp + ecx + 0x14]
push edx
push edi
call fcn.00404180
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2720]
xor ecx, esp
call fcn.004040e4
add esp, 0x2724
ret
Function at 0x4016b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov ebp, dword [esp + 0x48]
mov al, 0xcc
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
cmp ebp, 0xffffffff
jne 0x40174f
mov ebp, dword [0x411160]
lea edx, [esp + 0x2c]
mov ecx, ebp
call fcn.00401010
mov al, 0x5c
mov cl, 0x69
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x2c]
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x1e], cl
mov byte [esp + 0x14], 0x50
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x21], 0
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x15], 0x68
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0x73
mov byte [esp + 0x19], 0x63
mov byte [esp + 0x1c], 0x44
mov byte [esp + 0x18], cl
mov byte [esp + 0x1d], 0x72
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017c0
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4017d0
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0
push 3
push 0
push 3
mov ecx, eax
push 0xc0000000
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40184f
push ebp
mov edi, ebx
call fcn.00401360
mov edi, eax
add esp, 4
test edi, edi
jne 0x40182b
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401820
sub eax, edx
jne 0x401834
mov edi, ebx
call fcn.00401610
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004040e4
add esp, 0x38
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004040e4
add esp, 0x38
ret
Function at 0x401870
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2724
call fcn.004042b0
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x2720], eax
push edi
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0x2710
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.00404100
add esp, 0xc
push edi
lea ecx, [esp + 8]
push ecx
push 0x2710
lea edx, [esp + 0x20]
push edx
push 0xc
lea eax, [esp + 0x1c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40194b
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x40191a
cmp eax, 3
je 0x40191a
cmp eax, 0xb
je 0x40191a
mov eax, dword [esp + 0x2c]
lea eax, [esp + eax + 0x14]
push 0x14
push eax
push ebx
call fcn.00404180
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [esp + 0x2720]
xor ecx, esp
call fcn.004040e4
add esp, 0x2724
ret
mov eax, dword [esp + 0x2c]
lea eax, [esp + eax + 0x14]
call fcn.004014d0
push 0x14
push eax
push ebx
call fcn.00404180
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [esp + 0x2720]
xor ecx, esp
call fcn.004040e4
add esp, 0x2724
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2724]
pop edi
xor ecx, esp
call fcn.004040e4
add esp, 0x2724
ret
Function at 0x401b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x74
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
mov ebp, dword [esp + 0x80]
mov ebx, ecx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x401b96
mov ebx, dword [0x411160]
lea edx, [esp + 0x6c]
mov ecx, ebx
mov dword [esp + 0x10], 0
call fcn.00401010
mov al, 0x5c
mov cl, 0x69
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x33], al
lea eax, [esp + 0x6c]
mov byte [esp + 0x3e], cl
mov byte [esp + 0x38], cl
mov byte [esp + 0x40], 0x65
mov byte [esp + 0x34], 0x50
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x41], 0
mov byte [esp + 0x32], 0x2e
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x35], 0x68
mov byte [esp + 0x3f], 0x76
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], 0x73
mov byte [esp + 0x39], 0x63
mov byte [esp + 0x3c], 0x44
mov byte [esp + 0x3d], 0x72
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401c08
lea edi, [esp + 0x30]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401c18
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 1
push 3
push esi
push 3
push 0xc0000000
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
je 0x401c8b
push esi
lea ecx, [esp + 0x18]
push ecx
push 0x18
lea edx, [esp + 0x24]
push edx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401c8b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
imul ecx, eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], esi
mov dword [ebp + 4], eax
jmp 0x401c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x401cff
mov edi, ebx
shr edi, 0x10
cmp edi, esi
je 0x401cff
lea esi, [edi + 2]
and esi, 0xfffc
shl esi, 5
add esi, 0x28
push esi
call fcn.0040432a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401d16
mov eax, dword [ebp]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push 0
push 0
push 0x7400c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401cff
shl edi, 5
mov ecx, dword [edi + ebx - 0x18]
lea eax, [edi + ebx]
mov dword [ebp + 8], ecx
mov edx, dword [eax - 0x14]
mov dword [ebp + 0xc], edx
mov ecx, dword [eax - 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax - 0xc]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004040e4
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 8
call fcn.004040e4
add esp, 0x74
ret
Function at 0x401d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x74
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
mov ebp, dword [esp + 0x80]
mov ebx, ecx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x401d66
mov ebx, dword [0x411160]
lea edx, [esp + 0x6c]
mov ecx, ebx
mov dword [esp + 0x10], 0
call fcn.00401010
mov al, 0x5c
mov cl, 0x69
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x33], al
lea eax, [esp + 0x6c]
mov byte [esp + 0x3e], cl
mov byte [esp + 0x38], cl
mov byte [esp + 0x40], 0x65
mov byte [esp + 0x34], 0x50
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x41], 0
mov byte [esp + 0x32], 0x2e
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x35], 0x68
mov byte [esp + 0x3f], 0x76
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], 0x73
mov byte [esp + 0x39], 0x63
mov byte [esp + 0x3c], 0x44
mov byte [esp + 0x3d], 0x72
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401dd8
lea edi, [esp + 0x30]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401de8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0xc0000000
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
je 0x401e5e
push esi
lea ecx, [esp + 0x18]
push ecx
push 0x18
lea edx, [esp + 0x24]
push edx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401e5e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
imul ecx, eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], esi
mov dword [ebp + 4], eax
jmp 0x401e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x401ed2
mov edi, ebx
shr edi, 0x10
cmp edi, esi
je 0x401ed2
lea esi, [edi + 2]
and esi, 0xfffc
shl esi, 5
add esi, 0x28
push esi
call fcn.0040432a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401ee9
mov eax, dword [ebp]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push 0
push 0
push 0x7400c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401ed2
shl edi, 5
mov ecx, dword [edi + ebx - 0x18]
lea eax, [edi + ebx]
mov dword [ebp + 8], ecx
mov edx, dword [eax - 0x14]
mov dword [ebp + 0xc], edx
mov ecx, dword [eax - 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax - 0xc]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004040e4
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 8
call fcn.004040e4
add esp, 0x74
ret
Function at 0x401f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 0x14]
jb 0x401fb5
ja 0x401fab
cmp edx, dword [eax + 0x10]
jbe 0x401fb5
mov eax, 0x26
pop esi
add esp, 0x14
ret
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x401ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 0x14]
jb 0x402025
ja 0x40201b
cmp edx, dword [eax + 0x10]
jbe 0x402025
mov eax, 0x26
pop esi
add esp, 0x14
ret
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402050
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x402060
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
xor esi, esi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4020a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x4020b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
xor esi, esi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4020f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x402b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x120
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0xff
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00404100
xor eax, eax
add esp, 0xc
push 0xff
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
mov dword [0x411160], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402c02
mov dl, byte [esp + 0x1c]
lea eax, [esp]
push eax
mov byte [esp + 4], dl
mov byte [esp + 5], 0
call fcn.00402a40
add esp, 4
mov dword [0x411160], eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004040e4
add esp, 0x120
ret

Function at 0x403450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x478
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x474], eax
push edi
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServices_nlsX86ccBlessed
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x4035d6
push ebx
push ebp
push esi
push 0x28
lea ebp, [eax + 0xa]
call fcn.0040432a
push 0x28
mov dword [0x411c00], eax
call fcn.0040432a
add esp, 8
mov dword [0x411e18], eax
xor esi, esi
lea ebx, [edi + 0x28]
lea esp, [esp]
cmp esi, ebp
jb 0x4034eb
mov ecx, dword [0x411c00]
add ebx, 0x28
push ebx
push ecx
add ebp, 0xa
call fcn.00404471
push ebx
push eax
mov dword [0x411c00], eax
call fcn.00404471
add esp, 0x10
mov dword [0x411e18], eax
cmp dword [0x411c00], 0
je 0x4035b6
cmp dword [0x411e18], 0
je 0x4035b6
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x34], 0x401
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
jne 0x4035bd
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.0040432a
mov edx, dword [0x411c00]
mov dword [edx + esi*4], eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
call fcn.0040432a
mov ecx, dword [0x411e18]
mov dword [ecx + esi*4], eax
mov eax, dword [0x411c00]
add esp, 8
cmp dword [eax + esi*4], edi
je 0x4035b6
mov edx, dword [0x411e18]
cmp dword [edx + esi*4], edi
je 0x4035b6
mov edx, dword [eax + esi*4]
lea ecx, [esp + 0x80]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x403590
mov eax, dword [0x411e18]
mov edx, dword [eax + esi*4]
lea ecx, [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4035a6
inc esi
jmp 0x4034c0
mov edi, 8
jmp 0x4035d3
cmp edi, 0x103
jne 0x4035d3
mov dword [0x411bd0], esi
mov dword [0x4117ac], ebp
xor edi, edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x478]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004040e4
add esp, 0x478
ret
Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x11c]
push eax
push str..mailslot_nlsX86ccMailslot
lea ecx, [esp + 0x18]
push str._s_d
push ecx
xor ebx, ebx
call fcn.004043f4
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40367f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004040e4
add esp, 0x108
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x210
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4036a1
call edi
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4036c6
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004040e4
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004040e4
add esp, 0x108
ret
Function at 0x403a80
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x10c
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x108], eax
cmp byte [0x411e35], 0
push esi
mov esi, dword [esp + 0x114]
jne 0x403af3
mov eax, dword [esp + 0x118]
push eax
push str.nlsX86cc
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call fcn.004043f4
mov eax, dword [0x411c04]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
test eax, eax
je 0x403af3
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.004040e4
add esp, 0x10c
ret

Function at 0x403dd0
Capabilities:
Create mailslot

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x411bd4], eax
test eax, eax
jne 0x403e01
call ebx
mov esi, eax
test esi, esi
jne 0x403ee5
push 0
push 0
push 0
push 0
call edi
mov dword [0x411bd8], eax
mov dword [0x4117a8], eax
test eax, eax
jne 0x403e25
call ebx
mov esi, eax
test esi, esi
jne 0x403ee5
push 0
push 0
push 0
push 0
call edi
mov dword [0x411bdc], eax
mov dword [0x411e30], eax
test eax, eax
jne 0x403e49
call ebx
mov esi, eax
test esi, esi
jne 0x403ee5
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00403c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x403ee5
mov edi, dword [sym.imp.KERNEL32.dll_CreateMailslotA]
lea ecx, [esp + 0xc]
push ecx
push 0xffffffffffffffff
push eax
push str..mailslot_nlsX86ccMailslot
call edi
mov dword [0x4117b0], eax
cmp eax, 0xffffffff
jne 0x403e85
call ebx
mov esi, eax
test esi, esi
jne 0x403ee5
lea edx, [esp + 0xc]
push 1
push edx
call fcn.00403c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x403ee5
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push esi
push str..mailslot_nlsX86ccCtlSlot
call edi
cmp dword [0x4117b0], 0xffffffff
mov dword [0x4113e0], eax
jne 0x403ebf
call ebx
mov esi, eax
test esi, esi
jne 0x403ee5
cmp byte [0x411e35], 0
jne 0x403ee5
push str.nlsX86cc
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [0x411c04], eax
test eax, eax
jne 0x403ee5
call ebx
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4040e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410070]
jne 0x4040ee
repz ret
jmp fcn.00404dee