joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d0c8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.0044f059
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41d12f
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41d12f
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d144
cmp byte [ebp + 8], bl
je 0x41d210
push esi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d1fb
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00451260
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0044f00e
add eax, eax
mov word [ebp - 0x816], ax
mov eax, dword [ebp - 0x816]
add eax, 2
mov word [ebp - 0x814], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0045158d
mov eax, dword [ebp - 0x816]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x81c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41d206
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x41d20f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41de3c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41de71
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x44]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41dec6
lea eax, [esp + 0x44]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41dec6
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41dee5
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41de77
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41def1
mov al, 1
jmp 0x41de68
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41de66
lea eax, [esp + 0x18]
push eax
push 0x46faa0
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41df73
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41df64
lea eax, [esp + 0x44]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41df64
lea eax, [esp + 0x44]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41df64
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041de3c
test al, al
je 0x41df77
push 0x46faa8
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41df0c
mov bl, 1
jmp 0x41df79
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41de68
Function at 0x41ea5e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040e30a
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e37d
push 0x46faa0
mov eax, edi
call fcn.0040e505
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41ebb1
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418c78
cmp eax, 1
je 0x41ebad
cmp eax, 0xb
jne 0x41ead1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41eab1
lea eax, [ebp - 0x244]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41eb93
lea eax, [ebp - 0x244]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41eb93
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e441
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e505
test byte [ebp - 0x270], 0x10
je 0x41eb6b
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41eb3a
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41eb93
push 0x46c388
lea eax, [ebp - 0xc]
call fcn.0040e505
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0041ea5e
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ebb1
jmp 0x41eb93
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x41eb93
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41eab1
jmp 0x41ebb1
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
push dword [ebp - 0xc]
call fcn.0044e722
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4271b1
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040df43
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044e722
cmp edi, 0xffffffff
pop ecx
jne 0x4271e2
xor ecx, ecx
push 0
inc ecx
jmp 0x427207
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x427202
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x427212
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a11e
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x427f88
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040e2de
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, connect
push edi
call esi
test eax, eax
je 0x427fe6
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4280b4
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040e46d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040e505
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x42809f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428096
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044e8b8
test eax, eax
pop ecx
pop ecx
jne 0x428096
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x4280b4
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x427fe6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x427fd6
Function at 0x4280c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e2de
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x42825c
push dword [ebp - 0xc]
call fcn.0040d6da
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e46d
push esi
lea eax, [ebp - 0x20]
call fcn.0040e505
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e505
push esi
call fcn.0044e722
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x42825c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x428253
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040d6da
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044e722
cmp esi, edi
pop ecx
jl 0x428253
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x4281fe
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00451654
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.004535c0
add esp, 0x10
call fcn.00465e16
fld qword [ebp - 0x28]
push eax
call fcn.00465e16
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x428253
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42826c
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040e2de
lea ecx, [ebp - 0x18]
call fcn.0040e2de
lea ecx, [ebp - 0x30]
call fcn.0040e2de
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e46d
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e505
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e505
push 0x46bf68
lea eax, [ebp - 0x18]
call fcn.0040e46d
cmp edi, esi
je 0x4282f3
cmp word [edi], 0x5c
je 0x4282f3
cmp word [edi + 2], 0x5c
je 0x4282f3
push 0x47060c
lea eax, [ebp - 0x18]
call fcn.0040e46d
push edi
lea eax, [ebp - 0x18]
call fcn.0040e505
cmp dword [ebp + 0x10], esi
je 0x428342
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00451260
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040e441
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e505
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x4283de
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x4283de
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4283d9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x4283d4
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040d6da
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044e722
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044e722
push dword [ebp - 0x18]
call fcn.0044e722
push dword [ebp - 0x24]
call fcn.0044e722
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dd83
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00453ed0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040e2de
lea ecx, [ebp - 0x18]
call fcn.0040e2de
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040fc41
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42deb1
inc edi
cmp ax, 0x25
jne 0x42de70
cmp word [esi + edi*2], ax
jne 0x42dde0
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e54c
inc edi
jmp 0x42de79
push 0x46bf68
lea eax, [ebp - 0x18]
call fcn.0040e46d
jmp 0x42de01
test ax, ax
je 0x42de0b
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040e54c
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42ddef
cmp word [esi + edi*2], 0
je 0x42de88
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42de47
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e505
mov bl, 1
jmp 0x42de79
push 0x471400
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e505
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4c9
push 0x471400
lea eax, [ebp - 0xc]
call fcn.0040e505
jmp 0x42de79
push eax
lea eax, [ebp - 0xc]
call fcn.0040e54c
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42ddbd
jmp 0x42dea2
push 0x471400
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e505
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4c9
test bl, bl
je 0x42deb1
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.004102f4
push dword [ebp - 0x18]
call fcn.0044e722
push dword [ebp - 0xc]
call fcn.0044e722
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430e75
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
call fcn.0040e30a
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x5c]
push ebx
inc esi
push eax
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.00451260
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x430ede
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax], bx
je 0x430ede
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
call fcn.0040d6da
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x430f00
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
call fcn.0040d6da
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x430f3b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax], bx
je 0x430f3b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc63
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e441
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x430f57
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405aa7
call fcn.0040fd19
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00451260
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
mov esi, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x430fb6
push edi
call fcn.0044e722
pop ecx
cmp esi, ebx
je 0x430fc1
push esi
call fcn.0044e722
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x43101f
mov esi, dword [ebp + 8]
cmp byte [esi + 0x290], 1
jne 0x431009
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418b7f
push dword [eax]
mov ebx, esi
push 0x87
call fcn.004189b9
push dword [ebp - 0x20]
call fcn.0044e722
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044e722
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
xor ecx, ecx
push ebx
inc ecx
mov eax, esi
call fcn.0041a11e
mov esi, dword [ebp + 0x18]
push ebx
call fcn.004101fc
jmp 0x430ff7
cmp byte [ebp + 0xc], bl
je 0x431032
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7e8], eax
jmp 0x430ff7
mov esi, dword [ebp + 0x18]
push 1
call fcn.004101fc
cmp dword [ebp - 0x24], ebx
je 0x430ff7
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430ff7
Function at 0x435523
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4355ab
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4355ab
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x43557f
cmp dword [ebp + 0x10], ebx
jbe 0x43557f
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x435577
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4355ad
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43559f
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x4355b5
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b00d
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48dd20
push edi
call fcn.00451260
push 0x10
push ebx
mov esi, 0x48dd10
push esi
call fcn.00451260
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48dd20], 0x44
mov dword [0x48dd4c], eax
mov word [0x48dd50], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43b070
push dword [0x48dd10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x44057e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x440686
push esi
push esi
push 3
push esi
push esi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4405b5
xor eax, eax
jmp 0x4406b2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x467900
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4405ae
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x44065d
cmp dword [eax], esi
jne 0x44065d
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x440665
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x440689
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x44069a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc