joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4647d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004641c8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b28
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46482e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49bfd4]
mov dl, 1
mov eax, dword [0x4640c0]
call fcn.0040c4b0
call fcn.004040d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x464838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b28
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x464890
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49c1e0]
mov dl, 1
mov eax, dword [0x4640c0]
call fcn.0040c4b0
call fcn.004040d8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004641f8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46bb60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46bc38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49dcb0], 0
jne 0x46bc1c
lea eax, [ebp - 4]
mov edx, 0x46bc50
call fcn.00404710
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46bc1c
mov eax, ebx
call fcn.00402734
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46bc15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46bbff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46bc60
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46bbff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49dcb0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bc1c
mov eax, dword [ebp - 0xc]
call fcn.00402754
ret
mov ebx, dword [0x49dcb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bc3f
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x47b0c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47b0f2
mov eax, ebx
call fcn.0047bb7c
cmp dword [ebx + 0x3c], 0
je 0x47b0eb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47b163
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x47b155
cmp dword [ebx + 8], 0
je 0x47b114
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47b126
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47b155
cmp dword [ebx + 8], 0
je 0x47b107
cmp eax, 3
je 0x47b139
dec eax
jne 0x47b107
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47b107
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47b107
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47b181
cmp dword [ebx + 0x10], 0xcc
je 0x47b181
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047b18c
pop ebx
ret

Function at 0x490260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
shr ecx, 1
jb 0x4902b4
je 0x4902ac
mov edx, eax
shr eax, 8
and eax, 0xffffff
mov bx, word [esi]
xor dl, bl
and edx, 0xff
mov edx, dword [edx*4 + 0x49b8e4]
xor edx, eax
mov eax, edx
shr edx, 8
and edx, 0xffffff
xor al, bh
and eax, 0xff
mov eax, dword [eax*4 + 0x49b8e4]
xor eax, edx
add esi, 2
dec ecx
jne 0x49026d
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret
mov edx, eax
shr edx, 8
and edx, 0xffffff
mov bl, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + 0x49b8e4]
xor eax, edx
inc esi
or ecx, ecx
jne 0x49026d
jmp 0x4902ac
Function at 0x490b74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x490cce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0xc
call fcn.004030c8
test edi, edi
je 0x490bba
mov eax, edi
call fcn.00404b28
mov dword [ebp - 0x34], eax
cmp dword [esi], 0
je 0x490bc9
mov eax, dword [esi]
call fcn.00404b28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 4], 0
jne 0x490bd9
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x490be7
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x139]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
call fcn.00490ad8
mov ebx, eax
mov dx, 0x47
mov ax, 4
call fcn.00490acc
cmp ebx, eax
jb 0x490c18
or dword [ebp - 0x18], 0x30
cmp byte [ebp + 0x10], 0
je 0x490c31
xor edx, edx
mov ax, 5
call fcn.00490acc
cmp ebx, eax
jb 0x490c31
or dword [ebp - 0x18], 0x40
mov al, byte [ebp + 0xc]
mov byte [0x49dcf8], al
mov eax, fcn.004907c0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov edi, eax
test edi, edi
setne bl
test bl, bl
je 0x490c87
lea eax, [ebp - 0x23e]
push eax
push edi
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x490c75
mov eax, esi
call fcn.00404678
jmp 0x490c87
mov eax, esi
lea edx, [ebp - 0x23e]
mov ecx, 0x105
call fcn.004048e0
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x490ca1
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test edi, edi
je 0x490caf
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490cd5
lea eax, [ebp - 8]
call fcn.004063d8
ret

Function at 0x490e2c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push esi
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x490e83
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x490e73
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, edi
call fcn.00404768
jmp 0x490e7a
mov eax, edi
call fcn.00404678
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x490e90
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jne 0x490eb5
mov eax, ebx
call fcn.00404678
jmp 0x490ebf
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.00404768
add esp, 0x108
pop ebx
ret

Function at 0x490eec
Capabilities:
Query environment variable

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
push 0x490f28
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x490f16
mov eax, ebx
call fcn.00404678
jmp 0x490f20
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.00404768
add esp, 0x108
pop ebx
ret

Function at 0x490f38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef0
mov ebx, eax
mov eax, ebx
call fcn.00404678
push esp
push 0x20019
push 0
push 0x490fb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x490fac
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x490fe0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x490fa3
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ecx, eax
lea edx, [esp + 8]
mov eax, ebx
call fcn.00404768
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x110
pop ebx
ret

Function at 0x4964d8
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404b28
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x496516
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x49650f
xor esi, esi
mov eax, ebx
call fcn.00409010
mov eax, esi
pop esi
pop ebx
ret
Function at 0x497158
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov al, byte [ebx]
sub al, 1
jb 0x4972a9
sub al, 0x21
je 0x49717f
sub al, 0xb
je 0x49719a
sub al, 2
je 0x49719a
jmp 0x4972a3
inc ebx
mov al, byte [ebx]
mov edx, eax
test dl, dl
je 0x49718d
sub dl, 0x22
jne 0x49717f
test al, al
je 0x4972a9
jmp 0x4972a3
mov al, byte [ebx + 1]
sub al, 0x50
je 0x4971a9
sub al, 0x20
jne 0x49722a
mov al, byte [ebx + 2]
sub al, 0x41
je 0x4971b4
sub al, 0x20
jne 0x49722a
mov al, byte [ebx + 3]
sub al, 0x47
je 0x4971bf
sub al, 0x20
jne 0x49722a
mov al, byte [ebx + 4]
sub al, 0x45
je 0x4971ca
sub al, 0x20
jne 0x49722a
cmp byte [ebx + 5], 0x20
jne 0x49722a
add ebx, 5
jmp 0x4971d6
inc ebx
cmp byte [ebx], 0x20
je 0x4971d5
mov al, byte [ebx]
mov edx, eax
add dl, 0xcf
sub dl, 9
jae 0x4972a9
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov esi, dword [edx + 0x2f0]
xor edx, edx
mov dl, al
sub edx, 0x31
mov eax, esi
call fcn.0046e0b4
mov eax, dword [esi + 0x26c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
cmp eax, dword [edx + 0x310]
jne 0x4972a9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00498f98
jmp 0x4972a9
mov al, byte [ebx + 1]
sub al, 0x55
je 0x497235
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 2]
sub al, 0x4e
je 0x497240
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 3]
sub al, 0x49
je 0x49724b
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 4]
sub al, 0x4e
je 0x497256
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 5]
sub al, 0x53
je 0x497261
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 6]
sub al, 0x54
je 0x49726c
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 7]
sub al, 0x41
je 0x497277
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 8]
sub al, 0x4c
je 0x497282
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 9]
sub al, 0x4c
je 0x49728d
sub al, 0x20
jne 0x4972a3
mov al, byte [ebx + 0xa]
test al, al
je 0x497298
sub al, 0x20
jne 0x4972a3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00499600
inc ebx
jmp 0x497164
pop esi
pop ebx
pop ebp
ret

Function at 0x498310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4983b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00497f14
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x4983c8
call fcn.0040497c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404930
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x498393
push 0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4983d4
call fcn.00490d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4983b8
lea eax, [ebp - 0xc]
call fcn.00404678
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x498554
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4985d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x300]
call fcn.00475320
test eax, eax
je 0x4985bc
mov eax, dword [ebx + 0x300]
call fcn.00475320
mov ebx, eax
push 5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebx + 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
push 0
mov eax, dword [ebx + 0x24]
call fcn.00404b28
push eax
push 0
mov eax, dword [0x49c048]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4985d9
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401270
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebp, [edi + 4]
stosb byte es:[edi], al
outsd dx, dword [esi]
add al, 0xaa
add byte [sym.imp.KERNEL32.dll_EnterCriticalSection], dl
mov edi, dword [edi]
test edi, edi
je 0x4012b9
lodsb al, byte [esi]
je 0x401291
mov ecx, edi
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x401278
je 0x4012e3
and al, 0x14
mov eax, dword [ebx + 0x14]
cmp eax, ecx
jne 0x4012b1
push 0xfffffffffffffff7
pop ss
not dword [edi]
test eax, 0x89000152
xor byte [ebx + 0x588904c4], al
sti
je 0x4012a1
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x401288
pop ebx
push ebp
invalid
outsd dx, dword [esi]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
outsd dx, dword [esi]

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebx + ebx*8 - 9]
mov ecx, dword [esp + 4]
push 0x401c0000
push 0
scasd eax, dword es:[edi]
scasb al, byte es:[edi]
call fcn.00407e50
fadd qword [0x4985b0]
and ah, bl
and al, 0xe8
lodsb al, byte [esi]
mov ebx, 0xc4830000
adc al, ch
adc al, 0xd
cli
add byte [ebp - 0x7cfc8240], al
rol byte [edi], 0xc3
nop
nop
outsd dx, dword [esi]
outsd dx, dword [esi]
nop
nop
Function at 0x422810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x844
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
cmp dword [esi], 4
jne 0x422831
mov edi, dword [esi + 0x7c]
sar edi, 2
mov dword [esp + 0x30], edi
jmp 0x42283c
mov eax, dword [esi + 0x7c]
sar eax, 1
mov dword [esp + 0x30], eax
mov edi, eax
push edi
mov ecx, esi
call fcn.00423040
mov ebx, dword [esi + 0x80]
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0xffff8300
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x80], ecx
je 0x422e12
jmp 0x422878
Function at 0x4399e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
mov ebx, dword [esp + 0x524]
cmp ebp, 4
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], ebp
jb 0x439a4b
xor eax, eax
xor ecx, ecx
mov ah, byte [esi]
mov cl, byte [esi + 2]
mov al, byte [esi + 1]
xor edx, edx
mov dl, byte [esi + 3]
shl eax, 8
or eax, ecx
lea ecx, [esp + 0x78]
shl eax, 8
or eax, edx
push eax
call fcn.00491f10
test eax, eax
jne 0x439a3d
sub edi, 4
add esi, 4
cmp edi, 4
jae 0x439a07
jmp 0x439a4b
mov eax, esi
sub eax, ebx
sub ebp, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0xbc]
mov ebx, dword [esp + 0xb8]
xor ebp, ebp
cmp edi, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ecx
jb 0x439ac8
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 3]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea ecx, [esp + 0x78]
push edx
call fcn.00491f10
test eax, eax
je 0x439ac8
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0x78]
cdq
and edx, 7
add eax, edx
mov edx, 0xfffffffc
sar eax, 3
sub eax, 4
sub edx, eax
lea esi, [esi + eax + 4]
add edi, edx
call fcn.00492020
add ebp, eax
cmp edi, 4
jae 0x439a6f
mov eax, 0x14
xor esi, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
call fcn.0043a3e0
push 0xc00
lea ecx, [esp + 0x14]
call fcn.004387f0
push 1
lea ecx, [esp + 0x14]
call fcn.004387f0
push 1
push 0xe
lea ecx, [esp + 0x18]
call fcn.00439db0
push 1
lea ecx, [esp + 0x14]
call fcn.004387f0
push 4
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], esi
call fcn.0043a2a0
mov ecx, ebx
mov eax, 3
dec ecx
je 0x439b5b
dec ecx
jne 0x439b72
mov ecx, dword [esp + 0x38]
sub ecx, esi
je 0x439b54
dec ecx
je 0x439b6d
dec ecx
jne 0x439b72
jmp 0x439b72
mov eax, 1
jmp 0x439b72
mov ecx, dword [esp + 0x38]
sub ecx, esi
je 0x439b6d
dec ecx
jne 0x439b72
mov eax, 3
jmp 0x439b72
mov eax, 2
push 2
push eax
lea ecx, [esp + 0x18]
call fcn.0043a2a0
push 1
push 1
lea ecx, [esp + 0x18]
call fcn.0043a2a0
mov edx, dword [esp + 0x54]
xor ecx, ecx
cmp edx, 1
push 1
setne cl
push ecx
lea ecx, [esp + 0x18]
call fcn.0043a2a0
lea ecx, [esp + 0x10]
call fcn.0043a1f0
push ebp
lea ecx, [esp + 0x14]
call fcn.004388a0
push esi
lea ecx, [esp + 0x14]
call fcn.004387f0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x524]
mov edx, dword [esp + 0x34]
add eax, ecx
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00439c60
lea ecx, [esp + 0x10]
call fcn.00439f20
lea ecx, [esp + 0x78]
call fcn.00491f00
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x20], 4
call fcn.004388a0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push esi
push edx
call fcn.0043b2d0
lea ecx, [esp + 0x10]
call fcn.00439c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret 0xc
Function at 0x45cf20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45cf9b
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push esi
push ecx
call edi
test eax, eax
jne 0x45cf9b
mov edx, dword [esp + 0x14]
mov ecx, 0x4afb50
push edx
call fcn.00416190
mov ecx, dword [esp + 8]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push 0
push ecx
call edi
test eax, eax
je 0x45cf9b
push esi
mov ecx, 0x4afb50
call fcn.004161f0
xor esi, esi
mov eax, dword [esp + 8]
test eax, eax
je 0x45cfaa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x45d084
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str._shellopencommand
push eax
xor ebp, ebp
xor esi, esi
xor edi, edi
call fcn.004143e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45d0ef
push ebx
push 0x80000000
call fcn.0045cf20
mov esi, eax
add esp, 8
test esi, esi
je 0x45d0ef
mov ecx, dword [esp + 0x6c]
push ecx
push esi
call fcn.0045cfb0
mov edi, eax
add esp, 8
test edi, edi
je 0x45d0ef
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x45d0ef
mov edx, dword [esp + 0x10]
mov ebp, 1
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ecx, 0x4afb50
call fcn.004161f0
push esi
mov ecx, 0x4afb50
call fcn.004161f0
push edi
mov ecx, 0x4afb50
call fcn.004161f0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x45e5e5
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [esi + ebx], 0x5c
jne 0x45e5fc
test esi, esi
je 0x45e5fc
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi + ebx]
lea ecx, [esp + 0xc]
push eax
call fcn.00413e80
inc esi
cmp esi, edi
jl fcn.0045e5e5
test edi, edi
je 0x45e622
cmp byte [edi + ebx - 1], 0x5c
je 0x45e622
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0xc]
cmp eax, 0x10
push ecx
mov ecx, 0x4afb50
sete bl
call fcn.004161f0
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret