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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x508704
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.00506a10
xor eax, eax
push ebp
push 0x5086d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00507018
test al, al
je 0x5086ba
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040aaa4
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x5086ba
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3c4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00506970
test al, al
je 0x5086ae
mov eax, dword [ebp - 4]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040b424
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00507da8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5086ae
xor eax, eax
push ebp
push 0x5086a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.00506a10
xor eax, eax
push ebp
push 0x508687
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040b424
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00506a14
mov eax, dword [ebp - 4]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040b424
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00507da8
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x508662
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00508370
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.005084ac
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508669
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x508537
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5086df
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.00506a10
pop eax
jmp eax
Function at 0x516cd8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.0040a90c
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x516d09
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.0040aaa4
add esp, 0x24
pop ebx
ret

Function at 0x51d40c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, dword [0x51b73c]
call fcn.00408e30
test al, al
je 0x51d525
mov edx, dword [ebx + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebx + 0x54]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esi + 8]
mov edx, dword [ebx + 8]
call fcn.0040acfc
lea eax, [esi + 0x10]
mov edx, dword [ebx + 0x10]
call fcn.0040acfc
lea eax, [esi + 0x14]
mov edx, dword [ebx + 0x14]
call fcn.0040acfc
lea eax, [esi + 0x18]
mov edx, dword [ebx + 0x18]
call fcn.0040acfc
lea eax, [esi + 0x1c]
mov edx, dword [ebx + 0x1c]
call fcn.0040acfc
lea eax, [esi + 0x20]
mov edx, dword [ebx + 0x20]
call fcn.0040acfc
lea eax, [esi + 0x4c]
mov edx, dword [ebx + 0x4c]
call fcn.0040acfc
lea eax, [esi + 0x50]
mov edx, dword [ebx + 0x50]
call fcn.0040acfc
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x48]
mov edx, dword [ebx + 0x48]
call fcn.0040acfc
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x68]
mov edx, dword [ebx + 0x68]
call fcn.0040acfc
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov edx, dword [ebx + 0x78]
call fcn.0040acfc
movzx eax, byte [ebx + 0x7c]
mov byte [esi + 0x7c], al
lea eax, [esi + 0x80]
mov edx, dword [ebx + 0x80]
call fcn.0040acfc
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.004ac5fc
pop esi
pop ebx
ret
Function at 0x5413f8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x541400
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5415af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x5415c8
call fcn.0040b62c
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
xor edx, edx
call fcn.0053efc8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x5415dc
call fcn.004e503c
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x541479
mov eax, dword [eax - 4]
test eax, eax
jle 0x5414ba
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.0053efc8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x541644
call fcn.004e503c
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040b5d4
mov eax, esi
mov edx, 0x541670
call fcn.0040b5d4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5414d0
mov eax, dword [eax - 4]
test eax, eax
jle 0x54153c
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x541684
call fcn.004e503c
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040b5d4
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x541505
mov eax, dword [eax - 4]
test eax, eax
jle 0x541530
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x5416b4
call fcn.004e503c
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040b5d4
mov eax, esi
mov edx, 0x541670
call fcn.0040b5d4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x541546
mov eax, dword [eax - 4]
test eax, eax
jle 0x541571
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x5416e0
call fcn.004e503c
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040b5d4
mov eax, esi
mov edx, 0x541670
call fcn.0040b5d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5415b6
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040a96c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040a96c
lea eax, [ebp - 4]
call fcn.0040a90c
pop eax
jmp eax
Function at 0x56e354
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x56e4db
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5681e0]
call fcn.00504684
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x56e475
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x56e4f8
call fcn.0042d210
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042b688
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x56e510
call fcn.0040b62c
push 0xff00
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48bf34]
call fcn.004b2430
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x56e464
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00568ee4
mov eax, dword [0x57f544]
mov edx, 0x56e544
call fcn.0040840c
mov edx, dword [ebp - 4]
call fcn.0040840c
call fcn.00408510
call fcn.00406fac
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b3c4
push eax
push 0x56e570
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
ja 0x56e44c
mov eax, dword [0x57f544]
mov edx, 0x56e588
call fcn.0040840c
mov edx, dword [ebp - 4]
call fcn.0040840c
call fcn.00408510
call fcn.00406fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56e46b
mov eax, dword [ebp - 0xc]
call fcn.00408b48
pop eax
jmp eax
Function at 0x40d1b5
Capabilities:
Encode data using xor

Disassembly:
in al, 0x8a
mov ebp, ecx
test esi, ebp
mov ch, 0xe2
imul ebp, dword [edx], 0xffffffc3
loop 0x40d152
sub al, bl
sub ebx, dword [eax - 0x291a419]
out dx, eax
jle 0x40d0de
inc ebp
add al, 0x45
std
xchg esi, eax
daa
imul esp, edi, 0xffffffb9
in al, dx
clc
inc ecx
out dx, eax
xchg ebp, eax
in al, dx
xlatb
push ecx
mov edi, 0x1286b826
xor byte [ecx - 0x32], 0x1b
mov edi, 0x9876878c
jb 0x40d103
mov ch, 0xfe
lahf
adc ebp, dword [edi]
and al, 0x73
invalid
wait
mov edi, 0xb2c3fce7
jmp 0x40d180
ja 0x40d1cf
jbe 0x40d0e5
imul ecx, dword [esi - 0x41], 0x6ab3b6c2
sal dword [edx - 3], cl
aas
cmp esp, dword [ebx + ecx + 0x3c]
imul edi, dword [esi], 0xffffffb7
push ds
and byte [ebx - 0x65], 0x3f
sbb al, ah
sub byte [edx - 0x12], cl
out 0x99, al
invalid
insd dword es:[edi], dx
add cl, dl
adc al, 0x52
mov dh, 0xda
jbe 0x40d15f
cmpsb byte [esi], byte es:[edi]
pop esi
sbb dword [esp + ecx*2], esp
sar dword [ebp - 0x64d38816], 1
je 0x40d1fd
push es
mov bl, 0x9e
mov bh, 0x8d
out 0x8c, eax
mov al, 0xec
popfd
and dh, byte [ebx]
inc edi
mov ebx, 0xa69d7f76
mov al, 0xee
outsb dx, byte [esi]
sub byte [ebx], dh
out 0xdb, al
outsb dx, byte [esi]
invalid
pop ebx
shr dword [ecx - 0xf], 9
jg 0x40d1b4
clc
mov ebx, 0x635357ec
push 0xfffffffffffffffa
ret
Function at 0x442198
Capabilities:
Encode data using xor

Disassembly:
stosb byte es:[edi], al
dec eax
and dword [edi + 0x57ea4492], esi
jmp 0x442159
sbb byte [esi + 0x73], 0x5b
sti
jge 0x4421aa
rol byte [esi + edx*2 + 0x48], 0x57
or al, 7
les edi, [edi + esi*2 + 0x336926b6]
push esp
mov bh, 0x2d
or al, 0x2d
retf
aas
jb 0x57a92dcd
and eax, 0x3aa1e212
or eax, 0x40ec4798
sub eax, 0xd1a8e296
dec esp
not dword [esi - 0x6d]
push ecx
movsb byte es:[edi], byte [esi]
dec esi
xchg edi, eax
sti
mov ebp, dword [eax]
aaa
salc
push ecx
pop es
shr ah, cl
jge 0x442152
jne 0x442133
or ch, byte [edi + 0x62a3989e]
and byte [ebp + 0x6f9360c2], cl
jne 0x442125
xchg ebx, eax
shl dword [eax - 0x4531183d], 0x5d
and edx, edi
cmpsb byte [esi], byte es:[edi]
add dword [ebx], eax
jno 0x4421c8
jge 0x4421e5
push ebp
xchg edi, edx
add al, 4
sub dword [eax + 0x3d94a2a8], ebp
push edx
insd dword es:[edi], dx
ror byte [ebx + 0x57c5e751], 1
push ecx
out 0xc5, eax
push edi
popfd
dec edi
xor dword [eax + 0x4e93ab6f], eax
loope 0x4421ad
ret
jo 0x44223c
xchg edi, eax
pop ebx
insd dword es:[edi], dx
jae 0x44220c
inc eax
out dx, eax
daa
xlatb
out dx, eax
test byte [ebx - 0x7b], ch
xlatb
mov ebx, 0xf34b3378
push ebx
sbb cl, 0x6d
or dh, ch
test al, 0xeb
ja 0x442176
jmp 0x44225e
mov eax, 0x47a9f5c7
jecxz 0x442228
js 0x44219c
ficom dword [ebx + 0x57876b55]
sbb eax, 0xba1b06a3
sub al, 0x4a
add edx, edx
cmpsd dword [esi], dword es:[edi]
jo 0x44225f
jmp 0x44226b
test ebp, edx
add dword [eax + ebx*8], 0xffffffe3
add dword [eax + 0x130457af], edi
jnp 0x442277
lea ebx, [edx]
retf
shr eax, 0xe2
fcmove st(0), st(2)
stosb byte es:[edi], al
sal dword ds:[ebp - 0x3e], 1
mov ah, 0x76
imul edi, dword [esi + ecx*2], 0x5f
push es
fcompi st(3)
sub cl, bh
stc
pop edx
ror ah, 1
aaa
mov ah, 0x61
cmpsb byte [esi], byte es:[edi]
inc esi
stosd dword es:[edi], eax
sub dh, byte [esi]
retf 0x9aaa
sar dl, 0xdd
fnstenv [ebp - 0x2f714717]
clc
mov esp, 0x472be6aa
cli
fstp st(1)
mov ch, 0xe9
mov eax, 0xbcf8d08e
stosb byte es:[edi], al
out 0x2b, al
inc edi
sub eax, dword [edi + 0x63]
fst st(0)
wait
out 0x84, eax
enter 0xffffffffffffd10c, 0xffffffffffffffb7
arpl bp, bx
rcr byte [ebx + 0xcc884e7], 1
sal dword [edi - 0x19e6f0d6], 1
sub cl, byte [edi]
sbb esi, esp
cmp eax, 0x81a4d835
mov dl, 0x99
in eax, 0x63
mov bl, byte [edi]
int 0x4d
movsb byte es:[edi], byte [esi]
sbb al, 0xf9
mov edi, dword [esi]
movsb byte es:[edi], byte [esi]
cmpsb byte [esi], byte es:[edi]
mov esi, 0xa01b069b
stosd dword es:[edi], eax
inc eax
fmul dword [edi]
add byte [eax], bl
pop ecx
xor edx, ebx
push ebp
push cs
movsb byte es:[edi], byte [esi]
popfd
dec ebp
dec esi
add byte [ebx + 0x66], bl
iretd
Function at 0x605492
Capabilities:
Encode data using xor

Disassembly:
adc al, 0x6e
push esi
wait
jbe 0x60549c
add al, 0x64
loope 0x6054dc
invalid
xchg edx, eax
xchg esp, eax
cmp al, cl
pop ebp
lcall 0xe16e, 0x87ac08bc
mov ebx, 0xd2acaeb8
mov es, word [eax]
and byte [edx + 0xb58d639], 0x35
or eax, 0x6bbae45b
cwde
sub ch, byte [eax - 5]
jb 0x60551d
or esi, dword [0xbae45b0d]
imul ebx, dword [eax + 0x72fb682a], 0x1c
adc eax, 0xba9efe6
dec edi
inc esi
sahf
imul edx, dword [edi - 0x7b45faaa], 0x87980eff
salc
aam 0x92
in eax, dx
leave
salc
stc
iretd
xchg edi, eax
sbb byte [ebx - 0xab29728], 0xe0
adc bh, bl
cmp dword [edi], ebp
add al, 0x52
wait
jae 0x6054f4
adc dword [esi + 0x5cb89631], esp
mov al, byte [0x888565b1]
sub al, 0x9f
mov dl, 0x4c
xor dword [esi - 0x4e5fa348], edx
test dword gs:[eax + 0x4cb29f2c], ecx
lahf
test al, 0xa6
lodsb al, byte [esi]
xchg byte [ebx + 0x2660a738], dh
jne 0x605531
invalid

Function at 0x627cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303c0
cmp edx, dword [eax]
je 0x627d13
add eax, 8
inc ecx
cmp eax, 0x630450
jl 0x627d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303c0]
jne 0x627e41
mov eax, dword [0x638d68]
cmp eax, 1
je 0x627e1b
test eax, eax
jne 0x627d44
cmp dword [0x6302e8], 1
je 0x627e1b
cmp edx, 0xfc
je 0x627e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286d0
add byte [eax], al
lea eax, [ebp + 8]
lea esi, [esi + 0x6303c4]
push 0
push eax
push dword [esi]
call fcn.00628b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472e10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004064a7
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x472e10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472e10], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x403424
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1bc]
sub esi, dword [0x4331c8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x472d80], eax
jle 0x403582
push dword [0x4331c4]
call fcn.0040340d
push ebx
push ebx
push dword [0x4331c8]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x42f1b8], esi
mov dword [0x41f12c], ebx
mov ebp, 0x4271b8
mov eax, dword [0x4331c0]
sub eax, dword [0x4331c4]
mov edi, 0x4000
cmp eax, edi
jg 0x403499
mov edi, eax
push edi
mov esi, 0x42f1c0
push esi
call fcn.004033db
test eax, eax
je 0x403594
add dword [0x4331c4], edi
mov dword [0x427148], esi
mov dword [0x42714c], edi
cmp dword [0x472d2c], ebx
je 0x4034f0
cmp dword [0x472e00], ebx
jne 0x4034f0
mov eax, dword [0x42f1b8]
sub eax, dword [0x42f1bc]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331c8]
mov dword [0x41f12c], eax
call fcn.00403339
pop ecx
mov ecx, 0x427130
mov dword [0x427150], ebp
mov dword [0x427154], 0x8000
call fcn.0040752a
test eax, eax
jl 0x403599
mov esi, dword [0x427150]
sub esi, ebp
je 0x40354e
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40359e
cmp esi, dword [esp + 0x10]
jne 0x40359e
add dword [0x4331c8], esi
cmp dword [0x42714c], ebx
jne 0x4034bf
jmp 0x40355a
cmp dword [0x42714c], ebx
jne 0x403599
cmp edi, ebx
je 0x403599
mov eax, dword [0x42f1bc]
mov ecx, eax
sub ecx, dword [0x4331c8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403483
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
call fcn.00403339
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40358c
push 0xfffffffffffffffd
pop eax
jmp 0x40358c
push 0xfffffffffffffffe
jmp 0x40359b
Function at 0x4035a2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4035ce
mov ecx, dword [0x472d78]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1bc], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403424
cmp eax, edi
jl 0x4036c7
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x4036c3
cmp dword [ebp - 4], esi
jne 0x4036c3
push dword [ebp + 8]
add dword [0x42f1bc], esi
call fcn.00403424
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4036c6
cmp dword [ebp + 0x10], edi
jne 0x403692
cmp dword [ebp + 8], edi
jle 0x4036be
mov esi, 0x42f1c0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403642
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x4036c3
cmp edi, dword [ebp - 4]
jne 0x4036c3
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40368e
cmp dword [ebp + 0x14], edi
jne 0x40368e
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1bc], eax
cmp dword [ebp + 8], 0
jg 0x403635
jmp 0x4036be
push 0xfffffffffffffffe
jmp 0x4036c5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40369d
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x4036c3
mov eax, dword [ebp - 4]
add dword [0x42f1bc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4036c6
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405de6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457218
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457218], 0x44
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x405e21
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405fd8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405ff5
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
ret 4

Function at 0x405ff8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
ret 0xc

Function at 0x406027
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4096a0]
mov dword [ebp - 8], eax
mov eax, dword [0x4096a4]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x406077
test edi, edi
jne 0x406034
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406071

Function at 0x40607b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060f4
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060dd
cmp dword [ebp + 0x14], 1
je 0x4060e2
cmp dword [ebp + 0x14], 2
je 0x4060e2
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x3ffe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14