joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x414578]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [0x41457c]
sub eax, ecx
mov dword [ebp - 0x68], 0x18
cdq
idiv dword [ebp - 0x68]
push ebx
push esi
push edi
push 7
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ebx
pop esi
mov dword [ebp - 8], esi
test eax, eax
je 0x404cfd
mov esi, ebx
push 0x410ba0
push ecx
lea edx, [esi + ecx]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040675d
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040b7e4
add esp, 0xc
lea ecx, [ebp - 0x34]
mov edx, eax
call fcn.0040b886
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ad32
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004091f1
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004091f1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004091f1
mov eax, dword [0x41457c]
inc edi
mov ecx, dword [0x414578]
sub eax, ecx
cdq
idiv dword [ebp - 0x68]
add esi, dword [ebp - 0x68]
cmp edi, eax
jb 0x404c8b
mov esi, dword [ebp - 8]
push 0x44
pop edi
push edi
lea eax, [ebp - 0xc0]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0xc0], edi
inc eax
lea edi, [ebp - 0x78]
add esp, 0xc
mov dword [ebp - 0x94], eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x78]
xor eax, eax
cmp esi, 8
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp - 0xc0]
push ecx
stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404d67
push dword [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x74]
call esi
xor eax, eax
lea ecx, [ebp - 0x1c]
push ebx
inc eax
push eax
call fcn.004091f1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
Function at 0x40536c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e8
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1f5
lea eax, [ebp - 0x7dc]
mov dword [ebp - 0x7e8], edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x7e4]
push eax
push 0xb0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x7e0]
xor esi, esi
mov ecx, dword [ebp - 0x7e4]
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, ecx
je 0x405428
push eax
lea eax, [ebp - 0x7dc]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x3f0]
push 0x1f5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [ebp - 0x7e0]
add esp, 0x10
sub eax, dword [ebp - 0x7e4]
add eax, eax
cmp eax, 0x3ea
jae 0x40546c
push esi
push esi
push esi
push esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp + eax - 0x3f0], cx
lea eax, [ebp - 0x3f0]
push eax
push esi
push 0xfde9
call ebx
lea edi, [eax - 1]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x7dc]
push eax
push esi
push 0xfde9
call ebx
lea esi, [eax - 1]
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x7e8]
push eax
push 0xfde9
call ebx
mov ecx, dword [ebp - 4]
sub esi, edi
dec esi
xor ecx, ebp
pop edi
add eax, esi
pop esi
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
call fcn.0040e3a1
int3
Function at 0x405701
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
mov dword [ebp - 0x808], edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push edi
mov dword [ebp - 0x80c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x405749
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
mov edi, eax
lea eax, [ebp - 0x804]
push 0x400
push eax
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x81c]
push ecx
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x405810
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x80c]
jne 0x405793
sub ecx, edx
lea eax, [ebp - 0x814]
push eax
sar ecx, 1
lea eax, [ebp - 0x804]
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x405810
mov ecx, dword [ebp - 0x81c]
sub ecx, dword [ebp - 0x814]
js 0x405810
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x4057e0
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, dword [ebp - 0x814]
cmp byte [ebp + 0x20], 0
lea edi, [eax + ecx]
je 0x4057ed
sub dword [esi], edi
jmp 0x4057f0
add dword [esi + 8], edi
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 1
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
lea ecx, [ebp + 8]
push eax
push 1
call fcn.004091f1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
Function at 0x405985
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4144e0], 0
mov eax, edx
push edi
mov dword [ebp - 4], eax
je 0x405a16
push ebx
push esi
push 5
movzx eax, cx
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
or dword [edi + 8], 0x400000
add esp, 0xc
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push edi
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, dword [ebp - 8]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
jmp 0x405a2a
push 0
push dword [ebp + 8]
push eax
movzx eax, cx
push eax
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edi, eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406f89
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push esi
push esi
push 0x1a
push esi
mov ebx, edx
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x407036
lea eax, [ebp - 0x248]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406fe3
xor al, al
jmp 0x407122
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push str.AppData
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x248]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406fdc
cmp dword [ebp - 0x250], 1
jne 0x406fdc
cmp dword [ebp - 0x24c], esi
je 0x406fdc
test byte [ebp - 0x24c], 1
jne 0x406fdc
cmp dword [edi + 0x10], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x407074
push ecx
mov edx, edi
lea ecx, [ebp - 0x22c]
call fcn.0040675d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x407058
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
xor edi, edi
lea ecx, [ebp - 0x22c]
push edi
push 1
call fcn.004091f1
jmp 0x407076
xor edi, edi
push ecx
mov edx, ebx
lea ecx, [ebp - 0x22c]
call fcn.0040675d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40708d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x22c]
call fcn.004091f1
push str.Crash_Reports
lea eax, [ebp - 0x214]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
lea ecx, [ebp - 0x244]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x234], edi
push eax
call fcn.0040943b
push ecx
push ecx
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x22c]
call fcn.0040681c
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
mov ecx, 0x414040
push eax
call fcn.00407d65
push edi
push 1
lea ecx, [ebp - 0x22c]
call fcn.004095c8
push edi
push 1
lea ecx, [ebp - 0x244]
call fcn.004091f1
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret

Function at 0x407133
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0040675d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x407158
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.004091f1
add bl, 1
je 0x407189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407189
xor al, al
jmp 0x40718b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
Function at 0x40719a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0040675d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4071bf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004091f1
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
call fcn.0040e268
mov esp, ebp
pop ebp
ret

Function at 0x407276
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0040675d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40729b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004091f1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
Function at 0x40850b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x414008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
mov edi, ecx
cmp ebx, esi
jne 0x408535
xor eax, eax
jmp 0x408689
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x408557
mov edx, dword [edi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x408557
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x408689
cmp dword [edi + 0x4c], 0
je 0x408687
call fcn.00409c48
cmp dword [edi + 0x38], 0
jne 0x408585
push dword [edi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
pop ecx
pop ecx
cmovne esi, ebx
jmp 0x408687
push ecx
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x17], bl
call fcn.00407dad
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x20]
cmovae edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
cmovae ecx, dword [esp + 0x20]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40867a
cmp eax, 1
jg 0x40865f
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x1c]
cmp ecx, 0x10
mov ebx, dword [esp + 0x14]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 8]
je 0x408629
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
push dword [esp + 0x14]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x40867a
jmp 0x40862d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xf]
mov byte [edi + 0x3d], 1
cmp dword [esp + 0x18], eax
jne 0x40865b
test ecx, ecx
jne 0x408594
cmp dword [esp + 0x2c], 0x20
jae 0x40867a
push ecx
push 8
lea ecx, [esp + 0x24]
call fcn.00409a65
jmp 0x408594
mov esi, ebx
jmp 0x40867a
cmp eax, 3
jne 0x40867a
push dword [edi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
pop ecx
pop ecx
cmovne esi, ebx
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.004095c8
mov eax, esi
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e268
mov esp, ebp
pop ebp
ret 4
Function at 0x409c6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x414008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x409d7b
cmp byte [esi + 0x3d], 0
je 0x409d7b
push 0xffffffffffffffff
call fcn.0040850b
cmp eax, 0xffffffff
jne 0x409cab
xor al, al
jmp 0x409d7d
push ecx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407dad
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
cmp edi, 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
cmovae edx, ebx
lea ecx, [esp + 0x18]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x409cfd
sub eax, 1
je 0x409d01
dec eax
sub eax, 1
je 0x409d68
xor bl, bl
jmp 0x409d6a
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov ebx, dword [esp + 0x14]
cmp edi, 0x10
mov ecx, dword [esp + 0xc]
cmovae eax, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x409d49
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [esp + 0x18]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x409cf9
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x3d], 0
je 0x409d68
test ecx, ecx
jne 0x409cbe
push ecx
push 8
lea ecx, [esp + 0x1c]
call fcn.00409a65
jmp 0x409cb6
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.004095c8
mov al, bl
jmp 0x409d7d
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e268
mov esp, ebp
pop ebp
ret
Function at 0x40d844
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x90], edx
push edi
push eax
mov byte [ebp - 0x79], al
mov edi, eax
mov dword [ebp - 0x68], eax
mov ebx, ecx
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x88], 0x40
push eax
push 5
push ebx
mov dword [ebp - 0x64], 0xf
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d8b8
push 0xa
lea eax, [ebp - 0x48]
mov byte [ebp - 0x79], 1
push edi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
add esp, 0xc
lea ecx, [ebp - 0x78]
mov edi, eax
push edi
call fcn.0040ba32
xor eax, eax
push eax
mov dword [ebp - 0x84], eax
push eax
jmp 0x40d91b
cmp dword [ebp - 0x80], 0
jbe 0x40d955
push dword [ebp - 0x80]
lea ecx, [ebp - 0x54]
call fcn.0040e023
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x40d94d
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x40d94d
add dword [ebp - 0x84], eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x54]
call fcn.00409ac5
lea ecx, [ebp - 0x54]
call fcn.0040d10f
push 0
push 0
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov esi, eax
test esi, esi
jne 0x40d8c4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.004095c8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.0040d10f
test esi, esi
je 0x40d92c
cmp byte [ebp - 0x79], 0
je 0x40d967
cmp dword [ebp - 0x84], edi
jne 0x40d92c
mov esi, dword [ebp - 0x90]
mov bl, 1
test esi, esi
je 0x40d92e
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.0040de85
push eax
mov ecx, esi
call fcn.00407acc
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.004091f1
jmp 0x40d92e
Function at 0xcb1370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xcb138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xcda074
push ecx
mov edi, eax
call fcn.00cc5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcb13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cc502e
push esi
call fcn.00cc4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcb4850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xcb48ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xcdf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcb48ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00cc51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xcb48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcdf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcb492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00cc6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcb4957
mov word [eax], si
add eax, 2
push eax
call fcn.00cc6030
add esp, 4
jmp 0xcb4959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xcb48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcb48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xcb4ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xcb5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xcb50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcda458
push ecx
call fcn.00cc51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cc51e1
add esp, 0x10
jmp 0xcb50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cc520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cc4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00cb5050
mov eax, dword [0xcdf728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xcb513b
push esi
call fcn.00cb4fb0
add esp, 4
mov dword [0xcdf728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xcb514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00cb4ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xcb8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcb84b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xcb848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcb8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcb847e
add edx, ecx
cmp ebx, edx
jb 0xcb848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcb8467
xor ecx, ecx
jmp 0xcb84a2
test eax, eax
jne 0xcb8492
xor ecx, ecx
jmp 0xcb84a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00cb83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xcb88f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xcb8921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xcb8946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xcb896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xcb8993
push ecx
push esi
call fcn.00cb84c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret