joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402954
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x49b030], 0x8088405
inc edx
mov dword [0x49b030], edx
mul edx
mov eax, edx
ret

Function at 0x405e9b
Capabilities:
Log keystrokes via polling

Disassembly:
sar bh, 0x25
add bh, dl
dec ecx
invalid
mov eax, eax

Function at 0x406fa4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4071e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403494
cmp dword [0x4990dc], 1
je 0x407025
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x4071ca
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.0040352c
jmp 0x4071ca
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004027b4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x4071ca
cmp byte [ebp - 0x15], 0x5a
ja 0x4071ca
mov eax, dword [ebp - 4]
call fcn.00403574
cmp eax, 3
jl 0x4071ca
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4071ca
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x4071ca
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4071ca
xor edx, edx
push ebp
push 0x4071c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402648
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4071a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x4070f4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00402678
jmp 0x4070b8
test eax, eax
je 0x407107
call fcn.004031bc
call fcn.004031bc
jmp 0x4071ca
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x4070b8
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x407183
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004027b4
cmp al, byte [ebp - 0x15]
jne 0x407183
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403574
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.0040352c
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004035c0
call fcn.004031bc
call fcn.004031bc
jmp 0x4071ca
inc edi
dec esi
jne 0x407112
jmp 0x4070b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071ef
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403420
ret
Function at 0x407280
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004034e0
add esp, 0x104
pop ebx
ret

Function at 0x408568
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4085a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004034e0
jmp 0x4085aa
mov eax, ebx
mov edx, esi
call fcn.00403494
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4085b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4085d5
mov al, byte [esp]
jmp 0x4085d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419a18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc esp
fiadd dword [ecx]
dec esp
fiadd dword [ecx]
mov dh, al
inc ecx
add byte [eax - 0x3bffbe24], bh
fadd qword [ecx]
nop
mov byte [ecx], 0xdc
mov byte [ecx], 0x30
mov byte [ecx], 0x74
fadd qword [ecx]
rcr ah, 1
inc ecx
add ah, bh
fadd qword [ecx]
adc dh, bl
inc ecx
add byte [0x6f624954], al
outsb dx, byte [esi]
mov eax, eax
pop es
add al, 0x54
dec ecx
arpl word [edi + 0x6e], bp
cld
cdq
inc eax
add al, dl
xchg edi, eax
inc eax
add byte [eax], al
add byte [eax], cl
inc edi
jb 0x419ac6
jo 0x419acf
push 0x7363
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov al, byte [0x419a]
add byte [eax], al
add bl, dh
lcall 0, 0xc0041
les edx, [eax]
inc eax
add byte [esp + ebp], ch
inc eax
add al, ah
sub al, byte [eax]
or byte [edx], ch
inc eax
add byte [edx + ebp + 0x40], cl
add byte [eax + eax], al
adc al, 0
pop esp
lcall 0x6c6c, 0x400d0041
outsd dx, dword [esi]
bound edx, qword [edx + 0x65]
jae 0x419b21
jne 0x419b26
arpl word [ebx + edx], sp
fcomp dword [ebx + 0x460c0041]
jb 0x419b24
push edx
jb 0x419b34
jne 0x419b39
jb 0x419b2b
arpl word [ebp + 0x15], sp
add byte [eax], ch
pushfd
inc eax
adc eax, 0x409c2800
add byte [esi], cl
push cs
inc ebx
push 0x64676e61
push edx
jae 0x419b49
jae 0x419b49
jne 0x419b4e
arpl word [ebp + edx], sp
pushfd
inc ecx
add byte [esi], cl
inc eax
jae fcn.00419b5b
imul esp, dword [edi + 0x6e], 0x6f726552
jne 0x419b63
arpl word [ebp + 0x10], sp
push esp
push edx
jb 0x419b68
jne 0x419b6d
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x419a8e
invalid
ror byte [ecx + 0x66c031c2], 1
rol al, 5
jl 0x419b2f
inc eax
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x419b32
inc edx
inc eax
dec ecx
je 0x419b24
mov byte [esp], 1
mov al, byte [esp]
add dword [edx + 0x5a5a2404], ecx
add al, 0x24
pop edx
pop edx
ret
lea eax, [eax]
test dl, dl
je 0x419b48
add esp, 0xfffffff0
call fcn.00402c30
mov word [eax + 8], cx
mov dword [eax + 8], ecx
test dl, dl
je 0x419b5a
mov es, word fs:[0]
add ah, 0xc
ret
invalid
invalid

Function at 0x419b04
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
mov edx, eax
xor eax, eax
rol al, 5
xor al, byte [edx]
inc edx
dec eax
jne 0x419b0a
ret

Function at 0x4235bc
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x49b654], 0
je 0x4235d0
mov eax, dword [0x49b654]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x49b654], eax
cmp dword [0x49b658], 0
je 0x4235ed
push 0
mov eax, dword [0x49b658]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x49b658], eax
ret

Function at 0x42cccc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42cd14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042cbc0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd1b
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x42cd24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cd3d
test al, 0x10
je 0x42cd41
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cd8a
test al, 0x10
je 0x42cd8a
test ah, 4
je 0x42cd8e
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42cd94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00403728
xor eax, eax
push ebp
push 0x42ce86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403744
mov ebx, pe_nt_image_headers32
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x42ce11
mov eax, dword [ebp + 0xc]
call fcn.00403738
push eax
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42ce3a
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call fcn.00405964
test eax, eax
je 0x42ce4a
mov eax, dword [esi]
call fcn.00403738
call fcn.004072c0
mov edx, ebx
sub edx, 8
cmp eax, edx
jl 0x42ce5b
cmp ebx, 0x10000
jl 0x42ce65
mov edx, esi
xchg edx, eax
call fcn.004038a4
jmp 0x42ce70
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x42cdcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce8d
lea eax, [ebp - 0xc]
call fcn.00403400
ret

Function at 0x42cf5c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x42cfa4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00403738
push eax
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42cfc8
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call fcn.00405964
push ebx
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
sete al
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x42d028
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
mov byte [esp], 0
test ebx, ebx
je 0x42d064
mov eax, ebx
call fcn.00403738
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x42d094
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d082
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x42d094
push 0
mov eax, esi
call fcn.00403738
push eax
call fcn.00405964
cmp byte [esp], 0
sete al
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42d44c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d4da
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x42d497
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.004034e0
jmp 0x42d4c4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x42d4ab
lea eax, [ebp - 4]
call fcn.00403400
jmp 0x42d4ba
lea edx, [ebp - 4]
call fcn.0042d2a0
test ebx, ebx
je 0x42d4ba
dec ebx
jmp 0x42d49c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d4e1
lea eax, [ebp - 4]
call fcn.00403400
ret

Function at 0x42d898
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004074e4
add esp, 0x104
pop ebx
ret

Function at 0x42d8c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004074e4
add esp, 0x104
pop ebx
ret
Function at 0x42dc00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42dd38
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x42dd22
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42dc5d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42dd22
cmp dword [ebp - 0x10], 0
jne 0x42dc72
mov eax, dword [ebp - 8]
call fcn.00403400
mov bl, 1
jmp 0x42dd22
cmp dword [ebp - 0x10], 0x70000000
jb 0x42dc80
call fcn.00408c00
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.004034e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403744
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x42dc26
test eax, eax
jne 0x42dd22
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42dcd0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42dd22
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x42dcdb
dec esi
test esi, esi
je 0x42dce9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x42dcda
cmp dword [ebp - 0xc], 7
jne 0x42dcf4
test esi, esi
je 0x42dcf4
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004038a4
cmp dword [ebp - 0xc], 7
jne 0x42dd15
test esi, esi
je 0x42dd15
lea eax, [ebp - 0x14]
call fcn.00403744
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00403450
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd3f
lea eax, [ebp - 0x14]
call fcn.00403400
ret

Function at 0x42dd64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
push 0
push 0
push 0
push 0
push esi
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
test bl, bl
je 0x42ddd9
test esi, esi
je 0x42dd8f
cmp byte [esi], 0
jne 0x42ddd9
cmp dword [0x4990dc], 2
je 0x42ddd9
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x42ddc8
cmp eax, 0xea
jne 0x42ddd9
test eax, eax
jne 0x42ddd6
cmp byte [esp], 0
jne 0x42ddd6
mov bl, 1
jmp 0x42ddd9
inc esi
jmp 0x42dd9c
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42de44
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x42de58
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyA
pop esi
pop ebx
ret
cmp dword [0x49b65c], 0
jne 0x42de7b
push 0x42dea0
push 0x42deb0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x49b65c], eax
cmp dword [0x49b65c], 0
je 0x42de95
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x49b65c]
jmp 0x42de9a
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x42de45
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x42de58
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyA
pop esi
pop ebx
ret
cmp dword [0x49b65c], 0
jne 0x42de7b
push 0x42dea0
push 0x42deb0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x49b65c], eax
cmp dword [0x49b65c], 0
je 0x42de95
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x49b65c]
jmp 0x42de9a
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x42dec0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x42e003
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x42def3
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x42defd
mov ebx, 0x57
jmp 0x42dfed
cmp dword [0x4990dc], 2
jne 0x42dfdd
push 0
push 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 1]
call fcn.0042de1c
test eax, eax
jne 0x42dfdd
xor edx, edx
push ebp
push 0x42dfd6
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.004034e0
xor ebx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00403574
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0xea
jne 0x42df9f
mov eax, dword [ebp - 0x14]
call fcn.00403574
cmp eax, 0x10000
jge 0x42dfbf
mov eax, dword [ebp - 0x14]
call fcn.00403574
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004034e0
jmp 0x42df47
test eax, eax
jne 0x42dfbf
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 1]
call fcn.0042dec0
test eax, eax
je 0x42df47
inc ebx
jmp 0x42df47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dfdd
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 1]
call fcn.0042de44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e00a
lea eax, [ebp - 0x14]
call fcn.00403400
ret
Function at 0x42e014
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov edi, edx
mov ebx, eax
push 0
push 1
lea eax, [esp + 8]
push eax
mov ecx, ebp
mov edx, edi
mov eax, ebx
call fcn.0042de1c
mov esi, eax
test esi, esi
jne 0x42e092
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [esp + 0x2c]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov esi, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
test esi, esi
jne 0x42e092
cmp dword [esp + 4], 0
jne 0x42e08d
cmp dword [esp + 8], 0
jne 0x42e08d
mov ecx, ebp
mov edx, edi
mov eax, ebx
call fcn.0042de44
mov esi, eax
jmp 0x42e092
mov esi, 0x91
mov eax, esi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42e09c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
cmp dword [0x4990dc], 2
je 0x42e0b8
mov byte [ebp - 1], 1
jmp 0x42e287
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x499788
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x42e287
xor eax, eax
push ebp
push 0x42e280
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 5
jb 0x42e119
push 0x42e290
push 0x42e2a8
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x42e142
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x42e269
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
jmp 0x42e269
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 8
call fcn.004058d4
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x42e193
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
je 0x42e174
call fcn.004031bc
jmp 0x42e287
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x42e193
call fcn.004031bc
jmp 0x42e287
xor eax, eax
push ebp
push 0x42e262
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x42e1d6
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x42e1d6
call fcn.004031bc
call fcn.004031bc
jmp 0x42e287
mov eax, dword [ebp - 0x14]
call fcn.00402648
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x42e208
call fcn.004031bc
call fcn.004031bc
jmp 0x42e287
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x42e243
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x42e23f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x42e23f
mov byte [ebp - 1], 1
jmp 0x42e243
inc ebx
dec esi
jne 0x42e215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e269
mov eax, dword [ebp - 0x18]
call fcn.00402660
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e287
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec88
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x42ed28
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4990dc], 2
jne 0x42eccc
push 1
mov eax, esi
call fcn.00403738
push eax
mov eax, edi
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileExA
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
jmp 0x42ed12
mov eax, esi
call fcn.00403738
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040352c
mov eax, dword [ebp - 4]
call fcn.00406f50
mov ebx, eax
test bl, bl
jne 0x42ecf5
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
jne 0x42ed12
mov eax, esi
call fcn.00403738
push eax
mov eax, edi
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileA
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ed2f
lea eax, [ebp - 4]
call fcn.00403400
ret