joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbfb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x4cbfd5
inc ecx
xor esi, esi
mov bl, byte [edx + esi]
xor bl, byte [eax + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x4cbfc5
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4cc21c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
lea edi, [esp + 8]
mov edx, edi
mov eax, dword [esp]
mov ecx, 8
call fcn.004029c4
mov ebx, 4
mov eax, edi
mov dx, word [eax]
mov ecx, edx
shl ecx, 8
movzx edx, dx
shr edx, 8
or cx, dx
mov word [eax], cx
add eax, 2
dec ebx
jne 0x4cc246
xor ebx, ebx
mov ebp, ebx
add ebp, ebp
lea ebp, [ebp + ebp*2]
mov dx, word [esi + ebp*2 + 0x50]
mov eax, edi
call fcn.004cc138
mov ax, word [esi + ebp*2 + 0x52]
add word [edi + 2], ax
mov ax, word [esi + ebp*2 + 0x54]
add word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x56]
lea eax, [edi + 6]
call fcn.004cc138
mov ax, word [edi + 4]
mov word [esp + 0x10], ax
mov ax, word [edi]
xor word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x58]
lea eax, [edi + 4]
call fcn.004cc138
mov ax, word [edi + 2]
mov word [esp + 0x12], ax
mov ax, word [edi + 6]
xor word [edi + 2], ax
mov ax, word [edi + 4]
add word [edi + 2], ax
mov dx, word [esi + ebp*2 + 0x5a]
lea eax, [edi + 2]
call fcn.004cc138
mov ax, word [edi + 2]
add word [edi + 4], ax
mov ax, word [edi + 2]
xor word [edi], ax
mov ax, word [edi + 4]
xor word [edi + 6], ax
mov ax, word [esp + 0x10]
xor word [edi + 2], ax
mov ax, word [esp + 0x12]
xor word [edi + 4], ax
inc ebx
cmp ebx, 8
jne 0x4cc262
mov eax, edi
mov dx, word [esi + 0xb0]
call fcn.004cc138
mov ax, word [esi + 0xb2]
add word [edi + 4], ax
mov ax, word [esi + 0xb4]
add word [edi + 2], ax
lea eax, [edi + 6]
mov dx, word [esi + 0xb6]
call fcn.004cc138
mov ax, word [edi]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi], dx
mov ax, word [edi + 4]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [esp + 0x12], dx
mov ax, word [edi + 2]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 4], dx
mov ax, word [edi + 6]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 6], dx
mov ax, word [esp + 0x12]
mov word [edi + 2], ax
mov edx, dword [esp + 4]
mov eax, edi
mov ecx, 8
call fcn.004029c4
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cc3b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
lea edi, [esp + 8]
mov edx, edi
mov eax, dword [esp]
mov ecx, 8
call fcn.004029c4
mov ebx, 4
mov eax, edi
mov dx, word [eax]
mov ecx, edx
shl ecx, 8
movzx edx, dx
shr edx, 8
or cx, dx
mov word [eax], cx
add eax, 2
dec ebx
jne 0x4cc3e2
xor ebx, ebx
mov ebp, ebx
add ebp, ebp
lea ebp, [ebp + ebp*2]
mov dx, word [esi + ebp*2 + 0xb8]
mov eax, edi
call fcn.004cc138
mov ax, word [esi + ebp*2 + 0xba]
add word [edi + 2], ax
mov ax, word [esi + ebp*2 + 0xbc]
add word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0xbe]
lea eax, [edi + 6]
call fcn.004cc138
mov ax, word [edi + 4]
mov word [esp + 0x10], ax
mov ax, word [edi]
xor word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0xc0]
lea eax, [edi + 4]
call fcn.004cc138
mov ax, word [edi + 2]
mov word [esp + 0x12], ax
mov ax, word [edi + 6]
xor word [edi + 2], ax
mov ax, word [edi + 4]
add word [edi + 2], ax
mov dx, word [esi + ebp*2 + 0xc2]
lea eax, [edi + 2]
call fcn.004cc138
mov ax, word [edi + 2]
add word [edi + 4], ax
mov ax, word [edi + 2]
xor word [edi], ax
mov ax, word [edi + 4]
xor word [edi + 6], ax
mov ax, word [esp + 0x10]
xor word [edi + 2], ax
mov ax, word [esp + 0x12]
xor word [edi + 4], ax
inc ebx
cmp ebx, 8
jne 0x4cc3fe
mov eax, edi
mov dx, word [esi + 0x118]
call fcn.004cc138
mov ax, word [esi + 0x11a]
add word [edi + 4], ax
mov ax, word [esi + 0x11c]
add word [edi + 2], ax
lea eax, [edi + 6]
mov dx, word [esi + 0x11e]
call fcn.004cc138
mov ax, word [edi]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi], dx
mov ax, word [edi + 4]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [esp + 0x12], dx
mov ax, word [edi + 2]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 4], dx
mov ax, word [edi + 6]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 6], dx
mov ax, word [esp + 0x12]
mov word [edi + 2], ax
mov edx, dword [esp + 4]
mov eax, edi
mov ecx, 8
call fcn.004029c4
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5182c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x51837a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x541d50]
mov eax, dword [eax]
call fcn.00436758
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040910c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x518390
call fcn.00403fe8
mov eax, dword [ebp - 4]
call fcn.00408e88
test al, al
je 0x51832f
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404160
push eax
push 0x5183a0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x51835f
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x5183b0
call fcn.00409cb0
mov eax, dword [ebp - 8]
mov cx, word [0x5183d0]
mov dl, 1
call fcn.00446664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518381
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403d44
ret
Function at 0x536138
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x536252
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00536b9c
mov ebx, eax
test ebx, ebx
je 0x53623c
cmp byte [ebx + 0x24], 0
je 0x5361f1
lea edx, [ebp - 4]
mov eax, dword [ebx + 8]
call fcn.0040920c
mov eax, dword [ebp - 4]
mov edx, 0x536268
call fcn.00408664
test eax, eax
jne 0x5361a9
push 1
push 0
mov eax, dword [ebx + 0x28]
call fcn.00404160
push eax
mov eax, dword [ebx + 8]
call fcn.00404160
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
jmp 0x5361cd
push 1
push 0
mov eax, dword [ebx + 0x28]
call fcn.00404160
push eax
mov eax, dword [ebx + 8]
call fcn.00404160
push eax
push 0x536270
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
cmp ebx, 0x20
jg 0x53623c
push 0
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0047d034
mov eax, dword [ebp - 4]
mov cx, word [0x536278]
mov dl, 1
call fcn.00446664
jmp 0x53623c
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.0050d5ac
test al, al
je 0x536215
mov eax, dword [esi + 0x10ec]
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 8]
call fcn.00408750
test eax, eax
je 0x536233
mov dword [esi + 0x1118], ebx
push 0
push 0
push 0x802
mov eax, esi
call fcn.00428dec
push eax
call sub.user32.dll_PostMessageA
jmp 0x53623c
mov edx, ebx
mov eax, esi
call fcn.0051c020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536259
lea eax, [ebp - 4]
call fcn.00403d20
ret

Function at 0x5377f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x53790e
mov eax, dword [ebp - 8]
call fcn.004c033c
test eax, eax
je 0x53790e
mov dl, 1
mov eax, dword [0x4bc628]
call fcn.004bcca8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5378cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10ec]
mov edx, dword [edx + 0xc]
call fcn.00403d74
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov edx, dword [ebp - 8]
add edx, 0x30
call fcn.00403f40
mov eax, dword [ebp - 8]
call fcn.004c033c
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
add eax, 0x10
call fcn.00403d74
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [eax]
call dword [edx + 0x84]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
call fcn.004c033c
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xf8]
mov edx, dword [ebp - 0xc]
call fcn.004bcf68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53790e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53ad64
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
mov esi, dword [0x541d9c]
xor eax, eax
push ebp
push 0x53af28
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx + 0x26c]
mov dl, 1
mov eax, dword [0x45b08c]
call fcn.0045b0e8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53af0b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [esi]
call fcn.00403db8
mov al, byte [ebx + 0x270]
push eax
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov al, byte [ebx + 0x271]
push eax
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
xor eax, eax
mov al, byte [ebx + 0x276]
push eax
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b2e0
mov al, byte [ebx + 0x277]
push eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov al, byte [ebx + 0x278]
push eax
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov al, byte [ebx + 0x279]
push eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov eax, dword [ebx + 0x272]
push eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b17c
mov eax, dword [ebx + 0x27a]
push eax
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b17c
mov eax, dword [ebx + 0x27e]
push eax
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b17c
mov al, byte [ebx + 0x282]
push eax
mov ecx, dword [esi + 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
xor eax, eax
mov al, byte [ebx + 0x283]
push eax
mov ecx, dword [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b2e0
mov al, byte [ebx + 0x284]
push eax
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov al, byte [ebx + 0x285]
push eax
mov ecx, dword [esi + 0x34]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
mov al, byte [ebx + 0x286]
push eax
mov ecx, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b380
xor eax, eax
mov al, byte [ebx + 0x287]
push eax
mov ecx, dword [esi + 0x3c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045b2e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53af12
mov eax, dword [ebp - 4]
call fcn.00403174
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x53ef11e1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xac926f3
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406964
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4069ab
cmp ebx, 0x20
je 0x4069ab
cmp ebx, 0xffffffe0
je 0x4069ab
jne 0x4069b4
add eax, 1
cmp esi, eax
je 0x4069c1
jne 0x406990
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4069c5
jne 0x40698c
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x406a9a
test ecx, ecx
je 0x406a9a
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x406a9a
test ebx, ebx
je 0x406a9a
mov ebx, eax
add ebx, edx
je 0x406a9a
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x406a9a
cmp dword [edx + eax + 0x14], 0
je 0x406a9a
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x406a9a
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x406a8a
test dl, dl
je 0x406a86
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x406a8a
add edi, 2
add esi, 2
test dl, dl
jne 0x406a6a
xor eax, eax
jmp 0x406a8f
sbb eax, eax
or eax, 1
test eax, eax
je 0x406aa6
inc ebp
cmp ebp, dword [esp + 4]
jb 0x406a57
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x422390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b388b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a8a75
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x422412
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a6988
mov eax, dword [eax]
push 0x4d6b70
push eax
call fcn.0048eafb
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a8d00
test bl, bl
je 0x422412
push 0x4d6b70
lea ecx, [esp + 0xc]
call fcn.004a9090
push 0x4d6b7c
lea ecx, [esp + 0xc]
call fcn.004a9090
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42244e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a8d00
jmp 0x422519
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4224d2
lea edx, [esp + 0x7c]
push 0x4d6b78
push edx
call fcn.0048eafb
add esp, 8
test eax, eax
je 0x4224d2
lea eax, [esp + 0x7c]
push 0x4d6b74
push eax
call fcn.0048eafb
add esp, 8
test eax, eax
je 0x4224d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422462
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a8d00
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x422d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x422d72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x422d80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b390b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e6120]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x422eb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x422de6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a8d00
xor eax, eax
jmp 0x422f2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a8e3d
push esi
lea ecx, [esp + 0xc]
call fcn.004a90cc
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x422f0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00422d10
test eax, eax
jne 0x422f0d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00422d10
test eax, eax
jne 0x422f0d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0048fd97
mov esi, eax
add esp, 8
test esi, esi
jne 0x422eec
lea ecx, [esp + 0x14]
push 0x4d6b88
push ecx
call fcn.0048fbd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x422eec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x422eef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a8ded
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x422dfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a8d00
xor eax, eax
jmp 0x422f2f
mov byte [esi], 0
push 0x4d6b84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004a8d00
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4