joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1e8
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.0040e2e3
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e356
push 0x46ea18
mov eax, edi
call fcn.0040e4de
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 0x41f33b
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00419372
cmp eax, 1
je 0x41f337
cmp eax, 0xb
jne 0x41f25b
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41f23b
lea eax, [ebp - 0x244]
push 0x46bd14
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x41f31d
lea eax, [ebp - 0x244]
push 0x46ea20
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x41f31d
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e41a
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e4de
test byte [ebp - 0x270], 0x10
je 0x41f2f5
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41f2c4
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41f31d
push 0x46b370
lea eax, [ebp - 0xc]
call fcn.0040e4de
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.0041f1e8
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41f33b
jmp 0x41f31d
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 0x41f31d
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 0x41f23b
jmp 0x41f33b
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044e346
pop ecx
push dword [ebp - 0xc]
call fcn.0044e346
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x427994
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040df1c
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044e346
cmp edi, 0xffffffff
pop ecx
jne 0x4279c5
xor ecx, ecx
push 0
inc ecx
jmp 0x4279ea
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x4279e5
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x4279f5
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a88b
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x428614
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.0040e2b7
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, closesocket
push edi
call esi
test eax, eax
je 0x428672
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044e346
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 0x428740
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.0040e446
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040e4de
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x42872b
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 0x428722
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.0044e1a7
test eax, eax
pop ecx
pop ecx
jne 0x428722
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 0x428740
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x428672
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x428662
Function at 0x428751
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.0040e2b7
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 0x4288e8
push dword [ebp - 0xc]
call fcn.0040d6b8
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e446
push esi
lea eax, [ebp - 0x20]
call fcn.0040e4de
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e4de
push esi
call fcn.0044e346
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x4288e8
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 0x4288df
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.0040d6b8
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.0044e346
cmp esi, edi
pop ecx
jl 0x4288df
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 0x42888a
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.00450f44
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.00452eb0
add esp, 0x10
call fcn.00465706
fld qword [ebp - 0x28]
push eax
call fcn.00465706
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4288df
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.0044e346
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4288f8
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.0040e2b7
lea ecx, [ebp - 0x18]
call fcn.0040e2b7
lea ecx, [ebp - 0x30]
call fcn.0040e2b7
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e446
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e4de
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e4de
push 0x46af60
lea eax, [ebp - 0x18]
call fcn.0040e446
cmp edi, esi
je 0x42897f
cmp word [edi], 0x5c
je 0x42897f
cmp word [edi + 2], 0x5c
je 0x42897f
push 0x46f4c8
lea eax, [ebp - 0x18]
call fcn.0040e446
push edi
lea eax, [ebp - 0x18]
call fcn.0040e4de
cmp dword [ebp + 0x10], esi
je 0x4289ce
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00450e40
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040e41a
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e4de
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 0x428a6a
lea eax, [ebp - 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x428a6a
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 0x428a65
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 0x428a60
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.0040d6b8
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.0044e346
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044e346
push dword [ebp - 0x18]
call fcn.0044e346
push dword [ebp - 0x24]
call fcn.0044e346
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e42e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004537c0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040e2b7
lea ecx, [ebp - 0x18]
call fcn.0040e2b7
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040fc1a
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42e55c
inc edi
cmp ax, 0x25
jne 0x42e51b
cmp word [esi + edi*2], ax
jne 0x42e48b
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e525
inc edi
jmp 0x42e524
push 0x46af60
lea eax, [ebp - 0x18]
call fcn.0040e446
jmp 0x42e4ac
test ax, ax
je 0x42e4b6
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040e525
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42e49a
cmp word [esi + edi*2], 0
je 0x42e533
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 0x42e4f2
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e4de
mov bl, 1
jmp 0x42e524
push 0x4702a4
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e4de
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4a2
push 0x4702a4
lea eax, [ebp - 0xc]
call fcn.0040e4de
jmp 0x42e524
push eax
lea eax, [ebp - 0xc]
call fcn.0040e525
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42e468
jmp 0x42e54d
push 0x4702a4
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e4de
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4a2
test bl, bl
je 0x42e55c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.004102cd
push dword [ebp - 0x18]
call fcn.0044e346
push dword [ebp - 0xc]
call fcn.0044e346
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4314c9
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.0040e2e3
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.00450e40
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x431532
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
cmp word [eax], bx
je 0x431532
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push eax
call fcn.0040d6b8
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x431554
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push eax
call fcn.0040d6b8
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x43158f
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
cmp word [eax], bx
je 0x43158f
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc3c
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e41a
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x4315ab
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.004059bd
call fcn.0040fcf2
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00450e40
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.004059bd
mov esi, eax
call fcn.0040fc1a
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 0x43160a
push edi
call fcn.0044e346
pop ecx
cmp esi, ebx
je 0x431615
push esi
call fcn.0044e346
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x431673
mov esi, dword [ebp + 8]
cmp byte [esi + 0x29c], 1
jne 0x43165d
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00419279
push dword [eax]
mov ebx, esi
push 0x87
call fcn.004190b3
push dword [ebp - 0x20]
call fcn.0044e346
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044e346
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.0041a88b
mov esi, dword [ebp + 0x18]
push ebx
call fcn.004101d5
jmp 0x43164b
cmp byte [ebp + 0xc], bl
je 0x431686
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d8], eax
jmp 0x43164b
mov esi, dword [ebp + 0x18]
push 1
call fcn.004101d5
cmp dword [ebp - 0x24], ebx
je 0x43164b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x43164b
Function at 0x4350aa
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 0x435132
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x435132
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 0x435106
cmp dword [ebp + 0x10], ebx
jbe 0x435106
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 0x4350fe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x435134
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x435126
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 0x43513c
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43ab30
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48cd08
push edi
call fcn.00450e40
push 0x10
push ebx
mov esi, 0x48ccf8
push esi
call fcn.00450e40
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 [0x48cd08], 0x44
mov dword [0x48cd34], eax
mov word [0x48cd38], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43ab93
push dword [0x48ccf8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x440085
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 0x44018d
push esi
push esi
push 3
push esi
push esi
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4400bc
xor eax, eax
jmp 0x4401b9
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 0x466900
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 0x4400b5
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 0x440164
cmp dword [eax], esi
jne 0x440164
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x44016c
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 0x440190
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x4401a1
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
Function at 0x451a22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x451a5f
cmp dword [ebp + 0x14], edi
je 0x451a5f
cmp ecx, edi
jne 0x451a66
call fcn.0045496c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045490d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x451a7a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x451a9b
cmp ebx, 0xffffffff
je 0x451a8a
push ebx
push edi
push ecx
call fcn.00450e40
add esp, 0xc
cmp esi, edi
je 0x451a47
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x451a47
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x451ab7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x451abe
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x451baf
test word [esi + 0xc], 0x10c
je 0x451b12
mov eax, dword [esi + 4]
test eax, eax
je 0x451b12
jl 0x451c10
cmp ebx, eax
mov edi, ebx
jb 0x451ae3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x451bb7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045a948
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x451ba7
cmp ebx, dword [ebp - 0xc]
jb 0x451b7f
cmp dword [ebp - 0xc], 0
je 0x451b3c
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x451b31
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x451b38
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x451b47
mov eax, closesocket
cmp ebx, eax
ja 0x451b47
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x451be3
push eax
push dword [ebp - 8]
push esi
call fcn.0045238a
pop ecx
push eax
call fcn.0045a84b
add esp, 0xc
test eax, eax
je 0x451c22
cmp eax, 0xffffffff
je 0x451c10
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x451ba7
push esi
call fcn.0045a16a
cmp eax, 0xffffffff
pop ecx
je 0x451c14
cmp dword [ebp - 4], 0
je 0x451be3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x451ac6
mov eax, dword [ebp + 0x14]
jmp 0x451a61
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bce
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00450e40
add esp, 0xc
call fcn.0045496c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x451a57
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bf9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00450e40
add esp, 0xc
call fcn.0045496c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x451a57
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x451a61
or dword [esi + 0xc], 0x10
jmp 0x451c14
Function at 0x454ad3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x475b50]
je 0x454aee
inc edi
cmp edi, 0x17
jb 0x454adf
cmp edi, 0x17
jae 0x454c6e
push ebp
push 3
call fcn.00460115
cmp eax, 1
pop ecx
je 0x454c3a
push 3
call fcn.00460115
test eax, eax
pop ecx
jne 0x454b22
cmp dword [0x475388], 1
je 0x454c3a
cmp ebx, 0xfc
je 0x454c6d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x477a90
push ebp
call fcn.0045fe39
add esp, 0xc
test eax, eax
je 0x454b58
push esi
push esi
push esi
push esi
push esi
call fcn.00454811
add esp, 0x14
push 0x104
mov esi, 0x477aa9
push esi
push 0
mov byte [0x477bad], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x454b9c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045fe39
add esp, 0xc
test eax, eax
je 0x454b9c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00454811
add esp, 0x14
push esi
call fcn.00450420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x454be1
push esi
call fcn.00450420
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x477da4
push 0x4686d4
sub ecx, eax
push ecx
push eax
call fcn.0045fd86
add esp, 0x14
test eax, eax
je 0x454be1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00454811
add esp, 0x14
jmp 0x454be3
xor esi, esi
push 0x4686d0
push ebx
push ebp
call fcn.0045fcc5
add esp, 0xc
test eax, eax
je 0x454c03
push esi
push esi
push esi
push esi
push esi
call fcn.00454811
add esp, 0x14
push dword [edi*8 + 0x475b54]
push ebx
push ebp
call fcn.0045fcc5
add esp, 0xc
test eax, eax
je 0x454c25
push esi
push esi
push esi
push esi
push esi
call fcn.00454811
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045ff58
add esp, 0xc
jmp 0x454c6d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x454c6d
cmp ebp, 0xffffffff
je 0x454c6d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x475b54]
push dword [esi]
call fcn.00450420
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret