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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0042e8d0
add eax, 0x10
mov dword [esi + 8], eax
lea edi, [esi + 0x10]
mov dword [edi + 0x24], 0
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4257bd
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0042e8d0
add eax, 0x10
mov dword [esi + 0x38], eax
lea edi, [esi + 4]
mov byte [ebp - 4], 4
push edi
push 0xf003f
push 0
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x425870
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
test eax, eax
jne 0x425843
mov eax, dword [ebp + 0x10]
cmp eax, 3
je 0x42582b
cmp eax, 4
je 0x42582b
cmp eax, 0xb
jne 0x425843
cmp dword [ebp + 0xc], 4
jne 0x425843
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x42585b
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Tmdp0NjwCWDl89cExtPxbhAIIRW4JIBkJuoCBlTUIAIN
lea ecx, [ebp - 0x38]
call fcn.0042ed90
push ebx
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp + 0xc]
call fcn.00445090
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00405750
push 0x5bf210
lea eax, [ebp - 0x20]
push eax
call fcn.0054fa3a
int3

Function at 0x429a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00537e15
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x429acb
push eax
push esi
call fcn.00537c57
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00537549
int3
Function at 0x458e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c0a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0x27
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
push str.NlNUOYmU8YMhZBfMiYHFagMXKI0Yj6BxZZlITE
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
call fcn.0042d600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push str.b09sVdBw7VDQAaXPA
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0
call fcn.0042d600
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 4
mov ecx, esp
mov esi, 3
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x1c]
call fcn.00445090
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x458f1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x458f7c
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x20]
call fcn.00445090
add esp, 0x18
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x458f6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
test eax, eax
cmove esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x458fb2
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458fa8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458ffd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x458fe8
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458fde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458ffd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552a0f
int3
Function at 0x4599a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d195
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
je 0x459bbe
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x459bbe
lea esi, [edi + 1]
test esi, esi
js 0x459b70
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x459a10
push esi
lea ecx, [ebp + 8]
call fcn.0042f4e0
mov eax, dword [ebp + 8]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x459b70
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
lea ecx, [ebp + 8]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.0042dcc0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x459a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x459b7a
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459a7d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0042f560
push str.TGdTDSg8VgNis4LAhcjDPgIwoPiMVBKhUqEBjomtKQM
lea ecx, [ebp - 0x18]
call fcn.0042f690
push esi
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
mov ecx, esp
push eax
call fcn.0042e9b0
lea ecx, [ebp - 0x14]
call fcn.00445470
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00446790
push 0x5bf1bc
lea eax, [ebp - 0x38]
push eax
call fcn.0054fa3a
push str.ZXVQeRgwb5JicJEHDQZ5FRQiCJwgQ1JCMXgBg
lea ecx, [ebp - 0x18]
call fcn.0042f690
push 2
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.0042e9b0
lea ecx, [ebp - 0x14]
call fcn.00445470
add esp, 4
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00446790
push 0x5bf1bc
lea eax, [ebp - 0x44]
push eax
call fcn.0054fa3a
int3
Function at 0x466a30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e445
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0042efe0
mov ecx, eax
test ecx, ecx
je 0x466c07
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.WHVYkOC0bBM1Y3GAjY
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042f250
test al, al
jne 0x466a95
push 0x13
push str.WHVYkOC0bBM1Y3GAjY
lea ecx, [ebp - 0x14]
call fcn.0042f580
mov dword [ebp - 4], 1
call fcn.0042efe0
mov ecx, eax
test ecx, ecx
je 0x466c11
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x594764
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042f250
test al, al
jne 0x466ada
push 0
push 0x594764
lea ecx, [ebp - 0x10]
call fcn.0042f580
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x466b5d
push 0x228
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0x22c
push 0
push eax
call fcn.0054f8e0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x466b56
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x248], edi
je 0x466b48
lea eax, [ebp - 0x250]
push eax
push esi
call ebx
test eax, eax
jne 0x466b30
jmp 0x466b56
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x10]
call fcn.004668d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x466bb2
mov ebx, dword [ebp - 0x14]
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov ecx, ebx
mov dword [ebp - 0x1c], edi
call fcn.0042e8d0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
call fcn.00445470
lea edx, [esi - 0x10]
add esp, 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466ba3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x466bf3
mov ecx, dword [ebx]
push ebx
jmp 0x466bee
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.0042e8d0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
or esi, 0xffffffff
mov dword [ecx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x466bdb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x466bf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042f560
push 0x80004005
call fcn.0042f560
int3
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 1
push esi
jle 0x401088
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push ebx
mov esi, 0x42a110
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401064
test cl, cl
je 0x401060
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401064
add eax, 2
add esi, 2
test cl, cl
jne 0x40103c
xor eax, eax
jmp 0x401069
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x401088
call fcn.00401a10
push eax
push 0x42a0f4
call fcn.00401a40
add esp, 8
push 0
call fcn.00415dd3
push 0x42a0e4
call fcn.00415d08
add esp, 4
test eax, eax
jne 0x4010ad
push 0x42a0c0
call fcn.00401a40
add esp, 4
push 1
call fcn.00415dd3
or ecx, 0xffffffff
push edi
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [ebp - 0x104]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x104]
push ecx
call fcn.004018f0
add esp, 4
push eax
call fcn.00415dd3
pop edi
nop
nop
nop
nop
nop
nop
nop

Function at 0x405c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x44fcd4]
test eax, eax
push esi
jne 0x405c78
push 0x44fcd4
call fcn.00407480
add esp, 4
test eax, eax
jne 0x405d1a
mov esi, dword [ebp + 8]
test esi, esi
je 0x405cbc
push esi
call fcn.004095d0
add esp, 4
test eax, eax
je 0x405cbc
mov eax, dword [0x44fcd4]
push 0x134
push esi
push eax
call fcn.00402060
mov eax, dword [0x44fcd4]
mov ecx, dword [eax + 0x124]
add esp, 0xc
and ecx, 0xfffffeff
mov dword [eax + 0x124], ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x208]
push ecx
push 0x104
mov byte [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x405cf4
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x104]
push 0x42b854
push eax
call fcn.00416026
add esp, 0xc
mov edx, dword [0x44fcd4]
lea ecx, [ebp - 0x104]
push ecx
push 0xffffffffffffffff
push edx
call fcn.00408dd0
mov eax, dword [0x44fcd4]
add esp, 0xc
mov word [eax + 0x120], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406850
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x406950
cmp word [ecx], 0x886a
jne 0x406950
mov eax, dword [ecx + 0x12c]
cmp eax, 1
je 0x406884
test eax, eax
je 0x406884
mov eax, 1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.00406300
add esp, 8
test eax, eax
jne 0x406941
mov al, byte [ebp - 0x20]
test al, al
je 0x406941
call fcn.00406960
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004180a0
add esp, 8
test eax, eax
jne 0x4068c3
mov eax, 1
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40694a
or ecx, 0xffffffff
push esi
push edi
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebp - 0x60]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x44fd30]
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
jne 0x40692a
call fcn.00406960
push eax
call sub.WSOCK32.dll_gethostbyname
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x44fd30
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x60]
push eax
push 0x44fd30
call fcn.004180a0
add esp, 8
test eax, eax
pop edi
pop esi
jne 0x40694a
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.0040bcd0
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 8
push 1
call edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x40a948
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, esi
and al, 0x10
xor cl, cl
cmp cl, al
pop edi
pop esi
pop ebx
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x40a960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push ecx
push edx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a98d
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x40a9c1
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 4
je 0x40a9cd
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a9d9
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40a9f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 2
push 0
push 0x43301c
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40aa1c
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x40aa50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push eax
push 1
push 0
push ecx
push edx
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40aa79
xor eax, eax
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aaa2
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x40aaa2
cmp eax, 2
jbe 0x40aaa5
mov byte [esi], 0
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [esi]
xor eax, eax
test cl, cl
setne al
pop esi
pop ebp
ret

Function at 0x40aac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 2
push 0
push 0x43301c
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40aaec
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x40bfa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x452548]
test eax, eax
je 0x40bfb7
mov ecx, dword [ebp + 8]
push ecx
call eax
add esp, 4
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.00415dd3

Function at 0x40c190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov edi, eax
call fcn.00407c60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40c1c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
mov edi, eax
call fcn.00407c60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x40e220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4540dc]
test eax, eax
jne 0x40e242
push 4
push 0x34
push 0
call fcn.00404910
add esp, 0xc
mov dword [0x4540dc], eax
push ebx
push esi
push edi
push 1
push 0x4540dc
call fcn.00404b60
mov eax, dword [0x4540e0]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x4540dc]
mov cl, byte [ebp + 8]
mov byte [eax + edx*4], cl
mov eax, dword [0x4540e0]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov edx, dword [0x4540dc]
mov dword [edx + eax*4 + 0x30], 0
movsx eax, cl
push eax
lea ecx, [ebp - 4]
push 0x42e808
push ecx
call fcn.00416026
mov eax, dword [0x4540e0]
mov ecx, dword [0x4540dc]
add esp, 0x14
push 0x20
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
lea edx, [ecx + eax*4 + 0x10]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [0x4540e0]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x4540dc]
lea edi, [eax + edx*4]
mov esi, 0x42fdc8
lea eax, [edi + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40e308
test cl, cl
je 0x40e304
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40e308
add eax, 2
add esi, 2
test cl, cl
jne 0x40e2e0
xor eax, eax
jmp 0x40e30d
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov esi, 0x42fdc8
mov dword [edi + 8], ecx
mov eax, dword [0x4540e0]
mov ecx, dword [0x4540dc]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
lea edx, [ecx + eax*4]
lea edi, [edx + 0x10]
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40e359
test cl, cl
je 0x40e355
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40e359
add eax, 2
add esi, 2
test cl, cl
jne 0x40e335
xor eax, eax
jmp 0x40e35e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e39a
mov esi, 0x42fdc4
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40e38d
test cl, cl
je 0x40e389
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40e38d
add eax, 2
add esi, 2
test cl, cl
jne 0x40e369
xor eax, eax
jmp 0x40e392
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e39a
xor eax, eax
jmp 0x40e39f
mov eax, 1
mov dword [edx + 0xc], eax
mov ecx, dword [0x4540e0]
pop edi
mov eax, ecx
inc ecx
pop esi
mov dword [0x4540e0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e430
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
movsx edi, byte [ebp + 8]
push edi
call fcn.0040e1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e44c
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40e472
push edi
lea eax, [ebp + 8]
push 0x42e808
push eax
call fcn.00416026
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp ecx, 4
pop edi
sete al
pop esi
pop ebp
ret
Function at 0x40e660
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov ecx, dword [ebp + 8]
push ebx
mov bl, byte [ecx]
test bl, bl
push esi
lea eax, [ebp - 0x104]
mov byte [ebp - 0x104], bl
lea edx, [ecx + 1]
je 0x40e6a4
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
mov byte [eax], cl
jne 0x40e683
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x40e6a4
mov cl, byte [eax - 1]
cmp cl, 0x2f
je 0x40e6a8
cmp cl, 0x5c
je 0x40e6a8
mov byte [eax], 0x5c
inc eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x40e6df
mov cl, byte [edx]
inc edx
test cl, cl
mov byte [eax], cl
je 0x40e6c2
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
mov byte [eax], cl
jne 0x40e6b8
mov cl, byte [0x42f258]
test cl, cl
mov byte [eax], cl
mov edx, 0x42f259
je 0x40e6fa
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
mov byte [eax], cl
jne 0x40e6d3
jmp 0x40e6fa
mov cl, byte [0x42fdd8]
test cl, cl
mov byte [eax], cl
mov edx, 0x42fdd9
je 0x40e6fa
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
mov byte [eax], cl
jne 0x40e6f0
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e76a
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x244]
push ebx
push ecx
call fcn.0040e770
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40e762
push edi
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.0040e770
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e73f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret