joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b5e
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406b87
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406b7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406c32
cmp dword [0x46d204], ebx
je 0x406c32
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x476240], bx
je 0x406bfe
cmp dword [0x40c058], 0xffffffff
jne 0x406c07
mov esi, 0x476240
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.0040681f
mov dword [0x40c058], eax
cmp eax, 0xffffffff
je 0x406c30
cmp dword [ebp + 8], 0xffffffff
jne 0x406bf3
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40c058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406c30
push 0x40a8ac
mov esi, 0x46d220
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406c69
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a8c0
mov ebx, 0x465e20
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406cb7
push 1
push ebp
push edi
call fcn.0040681f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406e32
cmp eax, esi
jg 0x406e32
push esi
mov edi, 0x46b478
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406e32
cmp eax, esi
jg 0x406e32
push ebp
push ebp
push esi
push 0x466620
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406e32
push ebp
push ebp
push esi
mov esi, 0x466c70
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406e32
push esi
push 0x466620
push str._s_s_r_n
push 0x467070
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47eabc]
push dword [eax + 0x128]
push edi
call fcn.004068ca
push 4
push 0xc0000000
push edi
call fcn.0040681f
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406e32
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406e28
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406e28
cmp edi, dword [esp + 0x10]
jne 0x406e28
push str._Rename__r_n
push esi
call fcn.00405e88
cmp eax, ebp
jne 0x406dbb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406df0
push 0x40a8b4
add eax, 0xa
push eax
call fcn.00405e88
mov ebp, eax
test ebp, ebp
je 0x406dee
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406de5
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406ddb
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406df2
xor ebp, ebp
mov eax, edi
push ebx
push 0x467070
add eax, esi
push eax
call fcn.00405ede
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407451
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x40748f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407465
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x407460
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4074bc
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40749d
not eax
pop ebp
ret 0xc
Function at 0x40c49f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.00449e41
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00449e41
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 1
push dword [ebp + 8]
call fcn.0040c674
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40c64c
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp + 8]
mov eax, 0x2b
call fcn.00449e53
cmp dword [ebp - 0x14], esp
je 0x40c54e
push 0x6a
push 0x403da72
push 6
call fcn.00449e4d
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push 0x5040fd
push 0
mov eax, 0x2c
call fcn.00449e53
cmp dword [ebp - 0x14], esp
je 0x40c584
push 0x94
push 0x403da72
push 6
call fcn.00449e4d
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
mov eax, 0x2d
call fcn.00449e53
cmp dword [ebp - 0x14], esp
je 0x40c61d
push 0x1a4
push 0x403da72
push 6
call fcn.00449e4d
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
mov eax, 0x2e
call fcn.00449e53
cmp dword [ebp - 0x14], esp
je 0x40c64c
push 0x1e4
push 0x403da72
push 6
call fcn.00449e4d
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x40c654
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00449e3b
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00449e3b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4234ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4235d4
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4235d4
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x4235d4
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x42355a
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x4235d4
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42359f
test dl, dl
je 0x42359b
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42359f
add ecx, 2
add eax, 2
test dl, dl
jne 0x42357f
xor eax, eax
jmp 0x4235a4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4235b6
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x4235c1
inc esi
cmp esi, ebp
jae 0x4235d4
mov edx, dword [esp + 0x10]
jmp 0x423575
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x423838
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x423843
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x423857
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x42385b
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x423894
cmp dword [edi + ecx], 0x4550
jne 0x423894
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x423894
test byte [edi + ecx + 0x16], 2
je 0x423894
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x423899
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x4238d5
xor eax, eax
jmp 0x4238b8
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x4238de
inc edx
movzx eax, dx
cmp eax, edi
jl 0x4238b8
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x4238e4
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x42391c
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x42392a
add edx, 0x20
cmp eax, edx
jne 0x42393b
test bx, bx
je 0x423970
add esi, 2
add edi, 2
jmp 0x42390c
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x423949
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x423957
add edx, 0x20
sub ecx, edx
je 0x423970
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x423905
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4243e9
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 0x4244aa
test ecx, ecx
je 0x4244aa
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4244aa
test ebx, ebx
je 0x4244aa
mov ebx, eax
add ebx, edx
je 0x4244aa
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4244aa
cmp dword [edx + eax + 0x14], 0
je 0x4244aa
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 0x4244aa
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 0x42449a
test dl, dl
je 0x424496
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x42449a
add edi, 2
add esi, 2
test dl, dl
jne 0x42447a
xor eax, eax
jmp 0x42449f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4244b6
inc ebp
cmp ebp, dword [esp + 4]
jb 0x424467
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 0x42fb11
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x42fbe6
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x42fbe6
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x42fbe6
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x42fb6c
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x42fbe6
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42fbb1
test dl, dl
je 0x42fbad
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42fbb1
add ecx, 2
add eax, 2
test dl, dl
jne 0x42fb91
xor eax, eax
jmp 0x42fbb6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42fbc8
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x42fbd3
inc esi
cmp esi, ebp
jae 0x42fbe6
mov edx, dword [esp + 0x10]
jmp 0x42fb87
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x42fe4a
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x42fe55
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x42fe69
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x42fe6d
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x42fea6
cmp dword [edi + ecx], 0x4550
jne 0x42fea6
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x42fea6
test byte [edi + ecx + 0x16], 2
je 0x42fea6
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x42feab
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x42fee7
xor eax, eax
jmp 0x42feca
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x42fef0
inc edx
movzx eax, dx
cmp eax, edi
jl 0x42feca
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x42fef6
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x42ff2e
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x42ff3c
add edx, 0x20
cmp eax, edx
jne 0x42ff4d
test bx, bx
je 0x42ff82
add esi, 2
add edi, 2
jmp 0x42ff1e
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x42ff5b
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x42ff69
add edx, 0x20
sub ecx, edx
je 0x42ff82
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x42ff17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4309fb
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 0x430abc
test ecx, ecx
je 0x430abc
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x430abc
test ebx, ebx
je 0x430abc
mov ebx, eax
add ebx, edx
je 0x430abc
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x430abc
cmp dword [edx + eax + 0x14], 0
je 0x430abc
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 0x430abc
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 0x430aac
test dl, dl
je 0x430aa8
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x430aac
add edi, 2
add esi, 2
test dl, dl
jne 0x430a8c
xor eax, eax
jmp 0x430ab1
sbb eax, eax
or eax, 1
test eax, eax
je 0x430ac8
inc ebp
cmp ebp, dword [esp + 4]
jb 0x430a79
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 0x453e40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f85fb
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.004eb056
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x453ec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e88ff
mov eax, dword [eax]
push 0x8afd00
push eax
call fcn.004da444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004eb2e1
test bl, bl
je 0x453ec2
push 0x8afd00
lea ecx, [esp + 0xc]
call fcn.004eb6bd
push 0x8afd0c
lea ecx, [esp + 0xc]
call fcn.004eb6bd
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 0x453efe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004eb2e1
jmp 0x453fc9
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 0x453f82
lea edx, [esp + 0x7c]
push 0x8afd08
push edx
call fcn.004da444
add esp, 8
test eax, eax
je 0x453f82
lea eax, [esp + 0x7c]
push 0x8afd04
push eax
call fcn.004da444
add esp, 8
test eax, eax
je 0x453f82
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 0x453f12
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.004eb2e1
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 0x4547d0
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 0x454832
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 0x454840
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f867b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8c71b0]
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 0x454978
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4548a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004eb2e1
xor eax, eax
jmp 0x4549ef
push 0x8afd48
lea ecx, [esp + 0xc]
call fcn.004eb46a
push esi
lea ecx, [esp + 0xc]
call fcn.004eb6f9
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x8afd40
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4549cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x8afd38
push accept
call fcn.004547d0
test eax, eax
jne 0x4549cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x8afd24
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004547d0
test eax, eax
jne 0x4549cd
lea eax, [esp + 0x14]
push 0x8afd1c
push eax
call fcn.004db650
mov esi, eax
add esp, 8
test esi, esi
jne 0x4549ac
lea ecx, [esp + 0x14]
push 0x8afd18
push ecx
call fcn.004db5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4549ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4549af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004eb41a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4548be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004eb2e1
xor eax, eax
jmp 0x4549ef
mov byte [esi], 0
push 0x8afd14
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.004eb2e1
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

Function at 0x45c076
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x45c09e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret