joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a2eb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4673ac], 0
push esi
jne 0x43a25e
call fcn.0043a184
test eax, eax
je 0x43a2a1
mov eax, dword [0x4673ac]
cmp eax, 1
jne 0x43a27f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43a2a1
pop esi
ret
push eax
call dword [0x4673b4]
test eax, eax
jne 0x43a2e9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43a2a5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4673ac]
call dword [0x4673b4]
mov edi, eax
test edi, edi
je 0x43a2ca
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43a2e6
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4673ac]
call dword [0x4673b0]
add edi, 0x10
cmp edi, esi
jb 0x43a2d2
mov eax, edi
pop edi
pop esi
ret
jmp 0x43a24b

Function at 0x43a91c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4656fc]
jne 0x43a926
repz ret
jmp fcn.0043e0ec

Function at 0x447a90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043dad1
and dword [ebp - 4], 0
cmp dword [0x467f98], 0
mov ebx, eax
jne 0x447b41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x447bf2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x447bf2
push eax
call fcn.0043da5f
mov dword [esp], 0x457854
push edi
mov dword [0x467f98], eax
call esi
push eax
call fcn.0043da5f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467f9c], eax
call esi
push eax
call fcn.0043da5f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467fa0], eax
call esi
push eax
call fcn.0043da5f
pop ecx
mov dword [0x467fa8], eax
test eax, eax
je 0x447b41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043da5f
pop ecx
mov dword [0x467fa4], eax
mov eax, dword [0x467fa4]
cmp eax, ebx
je 0x447b99
cmp dword [0x467fa8], ebx
je 0x447b99
push eax
call fcn.0043dada
push dword [0x467fa8]
mov esi, eax
call fcn.0043dada
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x447b99
test edi, edi
je 0x447b99
call esi
test eax, eax
je 0x447b90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x447b90
test byte [ebp - 0xc], 1
jne 0x447b99
or dword [ebp + 0x10], 0x200000
jmp 0x447bd2
mov eax, dword [0x467f9c]
cmp eax, ebx
je 0x447bd2
push eax
call fcn.0043dada
pop ecx
test eax, eax
je 0x447bd2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x447bd2
mov eax, dword [0x467fa0]
cmp eax, ebx
je 0x447bd2
push eax
call fcn.0043dada
pop ecx
test eax, eax
je 0x447bd2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467f98]
call fcn.0043dada
pop ecx
test eax, eax
je 0x447bf2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x447bf4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x228]
push ebx
sub esp, 0x23c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00407ff8
sub esp, 0x10
test eax, eax
jne 0x4015ae
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401564
cmp dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x228]
je 0x40154a
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015ae
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014f4
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408d5e
push edx
test eax, eax
je 0x40159f
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015ae
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403c47
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a880]
cmp dword [ebp + 8], 0
je 0x403c72
test eax, eax
je 0x403c66
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x42a880], 0
jmp 0x403cdc
test eax, eax
je 0x403c85
mov dword [esp], 0
call fcn.00408dd0
push edx
jmp 0x403cdc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x43cac0]
jbe 0x403cdc
mov eax, dword [0x43caec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403b8c
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x42a880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x4078dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], SetClassLongW
mov dword [ebp - 0x28], 0x40c890
mov dword [ebp - 0x24], 0x40c890
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c880
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
test eax, eax
je 0x407939
xor eax, eax
jmp 0x407966
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x407966
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407935
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x40799e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x43b3c0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x43b3c0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407a1c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407c98
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407cc6
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407cd1
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407c98
push ecx
cmp eax, 0xffffffff
jne 0x407cf2
xor edi, edi
jmp 0x407d2f
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x407d27
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407d20
and edi, 4
jne 0x407cee
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407d2f
mov edi, 1
jmp 0x407d2f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407d05
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407d3b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407d56
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407d93
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407def
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407da3
jmp 0x407df6
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407e01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407e40
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407e47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407e86
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4080bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x800
test eax, eax
je 0x4080da
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407ff8
sub esp, 0x10
test eax, eax
je 0x40810a
mov word [ebx], 0
jmp 0x40815f
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov word [ebx + 0x7fe], 0
test esi, esi
jne 0x408103
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408103
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x4086c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x439bc0], 0x55004e
mov dword [0x439bc4], 0x4c
test esi, esi
jne 0x40871d
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4393c0
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x408911
cmp eax, 0x400
jle 0x40876e
jmp 0x408911
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407d3b
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x439bc0
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x408911
cmp eax, 0x400
jle 0x4086ee
jmp 0x408911
mov dword [esp + 0xc], 0x4393c0
mov dword [esp + 8], 0x439bc0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x438fc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43ca60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4393c0
mov dword [esp + 4], eax
call fcn.004083a4
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4393c0
call fcn.00407d3b
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408911
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x408907
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407e01
sub esp, 0xc
test eax, eax
je 0x408907
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407c10
push edx
push edx
lea edx, [ebx + esi]
test eax, eax
jne 0x408868
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
push eax
push eax
jmp 0x4088a7
add eax, 0xa
mov dword [esp + 4], 0x40c68b
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.00407c10
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, esi
test eax, eax
je 0x4088a7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, ebx
cmp dword [ebp - 0x20], edx
jae 0x40889f
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x408891
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
mov dword [esp + 4], 0x438fc0
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00407c7b
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407e47
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408996
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x43a3c0
mov dword [esp + 4], eax
call fcn.0040824c
push ebx
push ebx
mov dword [esp], 0x43a3c0
call fcn.00407b7c
push edx
test eax, eax
jne 0x4089c7
xor eax, eax
jmp 0x408a43
mov dword [esp], eax
mov ebx, eax
call fcn.004082c7
push ecx
test byte [0x43cac4], 0x80
je 0x4089e9
mov ax, word [ebx]
test ax, ax
je 0x4089c3
cmp ax, 0x5c
je 0x4089c3
sub ebx, 0x43a3c0
sar ebx, 1
mov dword [esp], 0x43a3c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x43a3c0
cmp ebx, eax
jge 0x408a28
call fcn.0040895e
push edx
test eax, eax
je 0x408a19
test byte [eax], 0x10
je 0x4089c3
mov dword [esp], 0x43a3c0
call fcn.00407b0a
push eax
jmp 0x4089f1
call fcn.00408280
push eax
mov dword [esp], 0x43a3c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408cce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408d0c
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408d13
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408ee0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43b424], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f1d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f08
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408efa
mov dword [ecx*4 + 0x43b420], eax
inc ecx
cmp ecx, 0x100
jne 0x408ef3
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f3f
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43b420]
jmp 0x408f27
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x4032c0
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x435068]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c0], 3
mov dword [ebp - 0x1bc], 0x402c60
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0x1e
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x1ac], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], 6
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], str.Window
lea edx, [ebp - 0x1c0]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.DNS
push str.Window
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x198], eax
push 0xa
mov ecx, dword [ebp - 0x198]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x198]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4033f7
lea ecx, [ebp - 0x1dc]
push ecx
mov edx, dword [ebp - 0x198]
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4033f5
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1dc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4033ac
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410e6d
mov esp, ebp
pop ebp
ret 0x10