joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046e4
test esi, esi
jne 0x402d7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047d4
jmp 0x402d98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402bf8
mov edi, eax
test esi, esi
je 0x402d98
cmp dword [ebx], 0
je 0x402d98
dec esi
jmp 0x402d81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43000c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403830
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403810
xor eax, eax
push ebp
push 0x403809
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40384c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403810
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43000c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43000c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x434044], 0
je 0x404545
cmp word [0x434218], 0xd7b2
jne 0x40450d
cmp dword [0x434220], 0
jbe 0x40450d
mov eax, 0x434214
call dword [0x434230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x430054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43001c], 0
jne 0x404561
push 0
push 0x430074
push 0x430054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404698
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402974
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x434045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404660
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x408b60
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x408c32
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x408ba0
mov word [ebx + 0x20], 0
mov word [ebx + 0x22], 0
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x24], ax
mov ax, word [ebx + 6]
dec eax
mov word [ebx + 0x26], ax
jmp 0x408ba6
cmp byte [ebx + 0x28], 0
je 0x408c1c
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x24], ax
mov ax, word [ebx + 0x20]
mov word [ebp - 4], ax
mov ax, word [ebx + 0x22]
mov word [ebp - 2], ax
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 4]
push dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_WriteConsoleOutputA
test eax, eax
jne 0x408bf9
lea eax, [ebp - 8]
call fcn.0040878c
mov edx, dword [ebp - 8]
mov eax, dword [0x433b04]
call fcn.00404d28
call fcn.0040341c
call fcn.00402b24
lea eax, [ebx + 0x20]
mov edx, 8
call fcn.00406dac
mov ax, word [ebx + 6]
dec eax
mov word [ebx + 0x22], ax
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x20], ax
mov byte [ebx + 0x28], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c39
lea eax, [ebp - 8]
call fcn.004046e4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b94
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a3bd
test al, 0x10
jne 0x40a3c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d0a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d0d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047d4
jmp 0x40d0e2
mov eax, ebx
mov edx, esi
call fcn.00404738
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d0ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d10d
mov al, byte [esp]
jmp 0x40d10f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d794
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d60c
mov eax, dword [0x433c0c]
cmp byte [eax], 0
je 0x40d801
mov eax, dword [0x433b04]
call fcn.00403100
call fcn.00402b24
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a86c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d848
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d837
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x433adc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x434710]
call fcn.00405da4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e524
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e588
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040494c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a000
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e58f
lea eax, [ebp - 0xc]
call fcn.004046e4
ret

Function at 0x423138
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422fbc
dec esi
jne 0x42315a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x423bc8
Capabilities:
Create http request

Disassembly:
cmp byte [0x430d6c], 0
jne 0x423c2b
mov byte [0x430d6c], 1
push 0
push 0
push 0
push 0
push 0x423c2c
call sub.wininet.dll_InternetOpenA
mov dword [0x430d68], eax
push 4
push 0x430d74
push 6
mov eax, dword [0x430d68]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
push 0x430d74
push 5
mov eax, dword [0x430d68]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
push 0x430d74
push 2
mov eax, dword [0x430d68]
push eax
call sub.wininet.dll_InternetSetOptionA
ret
Function at 0x4246e8
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4248c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046e4
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x54], eax
cmp dword [0x430d68], 0
jne 0x424735
call fcn.00423bc8
cmp dword [0x430d68], 0
jne 0x42474f
mov eax, esi
mov edx, 0x4248dc
call fcn.00404738
jmp 0x4248a6
cmp dword [0x430d68], 0
je 0x4248a6
push 0
mov eax, dword [0x430d70]
push eax
push 0
push 0
mov eax, edi
call fcn.00404b94
push eax
mov eax, dword [0x430d68]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x424889
xor eax, eax
push ebp
push 0x424882
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, 0x13
mov eax, dword [ebp - 4]
call fcn.00423ce8
test al, al
jne 0x4247af
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc8
je 0x4247e6
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x114]
call fcn.00409f54
mov ecx, dword [ebp - 0x114]
mov eax, esi
mov edx, 0x42490c
call fcn.004049e8
call fcn.0040416c
jmp 0x4248a6
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41ad80]
call fcn.0041e18c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424864
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x42481e
lea edx, [ebp - 0x110]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
add dword [ebx + 0x54], eax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x424841
cmp dword [ebp - 8], 0
jne 0x424807
mov eax, esi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
call fcn.00404738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42486b
mov eax, dword [ebp - 0x10]
call fcn.00403928
ret
lea eax, [ebp - 0x118]
call fcn.00423d28
mov ecx, dword [ebp - 0x118]
mov eax, esi
mov edx, 0x42491c
call fcn.004049e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4248cb
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00404708
ret
Function at 0x42c764
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b84
mov eax, dword [ebp - 0xc]
call fcn.00404b84
xor eax, eax
push ebp
push 0x42c81f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x42c804
inc esi
xor ebx, ebx
push 0
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0042c6f0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004049e8
mov eax, dword [ebp - 0x10]
call fcn.00404b94
push eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00404b94
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec esi
jne 0x42c7b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c826
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404708
ret

Function at 0x42d1a8
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42d2c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100c]
mov edx, 0x1000
call fcn.00406dac
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
call sub.psapi.dll_EnumProcesses
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebp - 4], eax
lea edx, [ebp - 0x1014]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x1014]
lea edx, [ebp - 0x1010]
call fcn.0040a6d0
mov eax, dword [ebp - 0x1010]
lea edx, [ebp - 0xc]
call fcn.00409c7c
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x42d296
inc esi
lea ebx, [ebp - 0x100c]
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0042b04c
mov edx, dword [ebp - 8]
mov eax, 0x42d2dc
call fcn.00404c7c
test eax, eax
jg 0x42d290
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 8]
call fcn.0040a6d0
mov edx, dword [ebp - 0x1018]
lea eax, [ebp - 8]
call fcn.0040477c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404ae0
jne 0x42d290
mov bl, 1
jmp 0x42d298
add ebx, 4
dec esi
jne 0x42d248
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d2ca
lea eax, [ebp - 0x1018]
mov edx, 3
call fcn.00404708
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404708
ret
Function at 0x42d690
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b84
xor eax, eax
push ebp
push 0x42d7ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004046e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b94
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d7ab
mov eax, dword [ebp - 0xc]
call fcn.00409c20
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x42d7dc
push ebx
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x42d7fc
call fcn.0040ae8c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d810
push dword [ebp - 8]
push 0x42d828
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404a5c
mov eax, dword [ebp - 0x2c]
call fcn.00404b94
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x42d780
mov eax, edi
mov edx, dword [ebp - 0x14]
call fcn.004048d4
jmp 0x42d7a1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d838
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x42d7a1
mov eax, edi
mov edx, dword [ebp - 0x14]
call fcn.004048d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00402994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d7d5
lea eax, [ebp - 0x2c]
call fcn.004046e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404708
ret
Function at 0x42ee4c
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x42ef87
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402ce4
dec eax
jl 0x42ef6c
lea edx, [ebp - 8]
mov eax, 1
call fcn.00402d44
mov eax, dword [ebp - 8]
mov edx, 0x42ef9c
call fcn.00404ae0
jne 0x42ee99
push 0x3e8
call sub.kernel32.dll_Sleep_1
call fcn.00402ce4
cmp eax, 2
jl 0x42ef6c
lea edx, [ebp - 0xc]
mov eax, 2
call fcn.00402d44
mov eax, dword [ebp - 0xc]
mov edx, 0x42efa8
call fcn.00404ae0
jne 0x42ef6c
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0042edc8
cmp dword [ebp - 4], 0
je 0x42eefe
lea eax, [ebp - 0x14]
mov ecx, 0x42efb4
mov edx, dword [ebp - 4]
call fcn.004049e8
mov eax, dword [ebp - 0x14]
call fcn.0040a394
test al, al
jne 0x42ef03
call fcn.00404570
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x42efc8
mov edx, dword [ebp - 4]
call fcn.004049e8
mov eax, dword [ebp - 0x18]
call fcn.00404b94
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x1c]
call fcn.00404b94
push eax
call sub.kernel32.dll_CopyFileA
push 0x64
call sub.kernel32.dll_Sleep_1
push 1
push 0x42efe0
push dword [ebp - 4]
push 0x42efec
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404a5c
mov eax, dword [ebp - 0x20]
call fcn.00404b94
push eax
call sub.kernel32.dll_WinExec
call fcn.00404570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ef8e
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404708
ret
Function at 0x404e80
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 9], 1
push 0
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x14], ebx
nop dword [eax + eax]
cmp dword [esi + 0x46fa70], edi
jne 0x404f78
movzx eax, word [esi + 0x46fa74]
push 0x464e04
push eax
push ebx
mov byte [ebp - 0xa], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x404f71
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x404f71
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404f64
mov eax, dword [esi + 0x46fa78]
cmp dword [eax + 0x14], 8
jb 0x404f0d
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x404f61
cmp edi, 0xffffffff
je 0x404f61
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f5a
push edi
mov byte [ebp - 0xa], 1
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp - 0xa], 0
jne 0x404f78
xor al, al
mov byte [ebp - 9], al
jmp 0x404f7b
mov al, byte [ebp - 9]
mov ebx, dword [ebp - 0x14]
add esi, 0xc
cmp esi, 0x60
jb 0x404eb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d21a
mov esp, ebp
pop ebp
ret
Function at 0x406010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4526f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x1f
push str.SoftwareAVAST_SoftwareBrowser
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.0040b560
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push ecx
cmovae edx, dword [ebp - 0x28]
push eax
push ecx
call fcn.00417520
add esp, 0xc
test al, al
je 0x4060b8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4060b8
test al, 0x10
je 0x4060b8
mov dword [esi], 2
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [esi], ebx
sete bl
cmp eax, 8
jb 0x4060d4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca00
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4060fd
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040ca00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d21a
mov esp, ebp
pop ebp
ret
Function at 0x406120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x46f074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x40613c
mov dword [esi], edi
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00437410
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x808440
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x464fcc
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4061c7
test esi, esi
je 0x4061bc
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4061bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4061cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4061e4
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040ca00
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x40620d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040ca00
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d21a
mov esp, ebp
pop ebp
ret
Function at 0x40c0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c22b
cmp byte [ebx + 0x3e], 0
je 0x40c22b
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4562d4]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x40c140
xor al, al
jmp 0x40c22d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040baa0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x4562d4]
mov ecx, edi
call esi
sub eax, 0
je 0x40c1ba
sub eax, 1
je 0x40c1be
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x40c211
xor bl, bl
jmp 0x40c213
mov byte [ebx + 0x3e], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x40c1f3
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0043aeac
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40c1b6
cmp byte [ebx + 0x3e], 0
je 0x40c211
test esi, esi
jne 0x40c170
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040bc80
jmp 0x40c165
mov bl, 1
cmp edi, 0x10
jb 0x40c227
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040ca60
mov al, bl
jmp 0x40c22d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d21a
mov esp, ebp
pop ebp
ret