joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65726d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65e3b8
cmp edx, dword [eax]
je 0x65728f
add eax, 8
inc ecx
cmp eax, 0x65e448
jl 0x657280
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65e3b8]
jne 0x6573bd
mov eax, dword [0xa63d28]
cmp eax, 1
je 0x657397
test eax, eax
jne 0x6572c0
cmp dword [0x65e2e4], 1
je 0x657397
cmp edx, 0xfc
je 0x6573bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6572f7
lea eax, [ebp - 0x1a4]
push 0x65c630
push eax
call fcn.00657c50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006580e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65733a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006580e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c62c
push edi
call fcn.00659fb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c610
push eax
call fcn.00657c50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00657c60
lea eax, [ebp - 0xa0]
push 0x65c60c
push eax
call fcn.00657c60
push dword [esi + 0x65e3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00657c60
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c5e4
push eax
call fcn.00659f24
add esp, 0x2c
pop edi
jmp 0x6573bd
lea eax, [ebp + 8]
lea esi, [esi + 0x65e3bc]
push 0
push eax
push dword [esi]
call fcn.006580e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push eax
push 0x105
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x401352
xor ecx, ecx
jmp 0x40136f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x401360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401360
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00401930
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f87b
mov esp, ebp
pop ebp
ret

Function at 0x4014a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43574c]
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 dword [ebp - 4], 0
xor ecx, ecx
mov esi, dword [ebp + 0x18]
mov edx, 2
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f03c
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov edi, eax
mov edx, edi
cmovae ecx, dword [ebp + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x401500
xor eax, eax
mov dword [edi + esi*2], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov eax, 0x14
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1e], 0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x1a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov esi, eax
call fcn.00410014
add esp, 4
test esi, esi
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x40156f
push dword [ebp + 8]
call fcn.0041003b
add esp, 4
mov al, bl
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.0040f87b
mov esp, ebp
pop ebp
ret
Function at 0x401590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x3c
jb 0x4015b6
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], 0x240
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x42dc10
jb 0x4015d6
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], edx
jb 0x4015e1
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x1d
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0x401611
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f87b
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0040f87b
mov esp, ebp
pop ebp
ret

Function at 0x402500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42650a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040f42d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4025a6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00410113
push 0x433fb4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00412b7b
push edi
push esi
call fcn.0040f25c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f87b
mov esp, ebp
pop ebp
ret 4
Function at 0x403080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42662b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.gzstreambase.0
call fcn.00403370
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x3c]
mov dword [esi], vtable.gzstreambuf.0
mov ecx, esi
mov byte [esi + 0x16b], 0
sub ecx, edx
add ecx, 0x16a
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov dword [eax], edx
lea edx, [esi + 0x40]
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov ecx, esi
mov eax, dword [esi + 0xc]
sub ecx, edx
add ecx, 0x40
mov dword [eax], edx
mov eax, dword [esi + 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov dword [ebp - 4], 1
mov eax, dword [edi]
push ecx
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004032b0
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.004031e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4045e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426848
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0x6d
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.http:__download.microsoft.com_download_7_B_6_7B629E05_399A_4A92_B5BC_484C74B5124B_dotNetFx40_Client_setup.exe
mov word [ecx], ax
call fcn.00401930
lea ecx, [ebp - 0x58]
call fcn.00403bd0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00401300
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x5c], esp
xor eax, eax
push 0x1b
push str.dotNetFx40_Client_setup.exe
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00401930
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00401810
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401390
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x60], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00401810
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004016e0
mov byte [ebp - 4], 3
call fcn.00405e90
add esp, 0x30
mov dword [ebp - 0x64], 7
xor eax, eax
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x78]
mov word [ebp - 0x78], ax
push 0x13
push str._passive__norestart
call fcn.00401930
push 5
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x28]
call fcn.00401590
add esp, 8
cmp dword [ebp - 0x64], 8
jb 0x404745
push dword [ebp - 0x78]
call fcn.0041003b
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
jb 0x404768
push dword [ebp - 0x28]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40478d
push dword [ebp - 0x40]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4047b2
push dword [ebp - 0x58]
call fcn.0041003b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f87b
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40483a
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.Install
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40482d
cmp dword [ebp - 0xc], eax
setne bl
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40483f
call fcn.004045e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f87b
mov esp, ebp
pop ebp
ret
Function at 0x405cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426a48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
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 esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push eax
mov byte [ebx], 0
call fcn.00401a30
cmp dword [ebp + 0x1c], 8
jb 0x405d86
push dword [ebp + 8]
call fcn.0041003b
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426bb2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x42dfe4
mov dword [esi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea edi, [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
push edi
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004032b0
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.00403370
lea eax, [edi + 4]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov byte [edi + 0x4c], 0
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov byte [edi + 0x45], 0
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x437b5c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x48], eax
mov dword [edi + 0x40], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x406567
mov eax, dword [eax]
sub esp, 8
mov ecx, edi
push eax
call fcn.00406fd0
test eax, eax
jne 0x40659f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40658d
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40659f
push 0
call fcn.00402bf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4071e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43574c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x43574c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x407334
cmp byte [ebx + 0x45], 0
je 0x407334
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407240
xor al, al
jmp 0x407336
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x407280
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4072c1
dec eax
je 0x4072c5
sub eax, 2
je 0x40731b
xor bl, bl
jmp 0x40731d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4072fc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00410eac
add esp, 0x10
cmp esi, eax
jne 0x4072bd
cmp byte [ebx + 0x45], 0
je 0x40731b
test esi, esi
jne 0x407280
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405a80
jmp 0x407280
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x407330
push dword [esp + 0x18]
call fcn.0041003b
add esp, 4
mov al, bl
jmp 0x407336
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040f87b
mov esp, ebp
pop ebp
ret
Function at 0x407b20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x407b2b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00407b40
Function at 0x40a2f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], edx
mov edi, ecx
mov dword [esi], 0
mov eax, ebx
sub eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
add eax, dword [esi]
push eax
push dword [edi + 0x14]
call fcn.0041ae97
add esp, 0xc
test eax, eax
jle 0x40a32a
add dword [esi], eax
cmp dword [esi], ebx
jb 0x40a308
test eax, eax
jns 0x40a410
call fcn.004120b1
push dword [eax]
call fcn.00411f60
mov ecx, dword [edi + 0x60]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x40a35e
cmp dword [edi + 0x5c], 0xfffffffc
je 0x40a357
push ecx
call fcn.00410240
add esp, 4
mov dword [edi + 0x60], 0
mov dword [edi], 0
mov dword [edi + 0x5c], 0xffffffff
test esi, esi
je 0x40a406
mov eax, dword [edi + 0x18]
mov ecx, eax
mov dword [ebp + 0xc], eax
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a380
sub ecx, edx
mov edx, esi
lea ebx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x40a390
sub edx, ebx
lea eax, [edx + ecx]
xor ecx, ecx
add eax, 3
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00411a42
mov ebx, eax
add esp, 4
mov dword [edi + 0x60], ebx
test ebx, ebx
jne 0x40a3cb
mov dword [edi + 0x5c], 0xfffffffc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a3d1
sub ecx, edx
mov edx, esi
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40a3e0
push esi
push 0x42dc58
push dword [ebp + 0xc]
sub edx, edi
lea eax, [ecx + 3]
push str._s_s_s
add eax, edx
push eax
push ebx
call fcn.00411ad4
add esp, 0x18
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a41b
mov dword [edi + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d45
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414f95
mov dword [ebp - 0x14], eax
cmp dword [0x437b18], esi
jne 0x420e38
push 0x800
push esi
push 0x42cd6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x420dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x420f18
push esi
push esi
push 0x42cd6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x420f18
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420f18
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x437b18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437b1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437b20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437b28], eax
test eax, eax
je 0x420e35
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437b24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x420e5d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420e50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x420e72
push 4
pop eax
jmp 0x420f1a
cmp dword [ebp - 0x14], esi
je 0x420e72
push dword [0x437b18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x420e57
mov eax, dword [0x437b24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x420ed0
cmp dword [0x437b28], edi
je 0x420ed0
push eax
call ebx
push dword [0x437b28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x420ed0
test eax, eax
je 0x420ed0
call ecx
test eax, eax
je 0x420ec5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x420ec5
test byte [ebp - 8], 1
jne 0x420ed0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x420f00
mov eax, dword [0x437b1c]
cmp eax, edi
je 0x420efd
push eax
call ebx
test eax, eax
je 0x420efd
call eax
mov esi, eax
test esi, esi
je 0x420efd
mov eax, dword [0x437b20]
cmp eax, edi
je 0x420efd
push eax
call ebx
test eax, eax
je 0x420efd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x437b18]
call ebx
test eax, eax
je 0x420f18
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x420f1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f87b
mov esp, ebp
pop ebp
ret