joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f3f
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x409600]
push edi
jmp 0x404f97
cmp dword [0x408d24], 0
jne 0x404f85
cmp dword [0x409e50], 0
jne 0x404f85
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, esi
test esi, esi
jne 0x404f5e
mov eax, dword [0x408d20]
test eax, eax
je 0x404ffd
cmp dword [0x408d24], 0
jne 0x404ffd
cmp dword [0x409e50], 0
jne 0x404ffd
mov edx, 0x409604
mov eax, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040151d
test byte [0x409e54], 0x20
je 0x404fe1
lea edi, [ebp - 0x108]
call fcn.00406265
push 0x40118c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.00402163
mov eax, dword [0x408d20]
cmp word [0x409e60], 1
pop edi
pop esi
je 0x405012
test eax, eax
je 0x405012
call fcn.00401d9a
mov ecx, dword [ebp - 4]
and dword [0x408d20], 0
xor ecx, ebp
call fcn.00406935
leave
ret

Function at 0x40502a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10c], eax
xor edi, edi
push esi
push 0x401308
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004014b5
mov edx, dword [ebp - 0x10c]
add esp, 0x10
inc esi
mov dword [ebp - 0x110], esi
mov esi, 0x104
mov ecx, ebx
call fcn.00401425
push esi
lea eax, [ebp - 0x108]
mov ecx, ebx
call fcn.00406206
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4050ed
mov esi, dword [ebp - 0x110]
cmp esi, 0x190
jl 0x40504e
push ebx
push 0
push 0x401314
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4050db
xor edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edi, edi
test eax, eax
je 0x4050b0
inc edi
mov dword [0x408d20], edi
jmp 0x4050db
Function at 0x40510a
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
push edi
je 0x4051b6
push ebx
push edx
lea ebx, [ebp - 0x108]
call fcn.0040502a
pop ebx
test eax, eax
je 0x405211
mov edi, 0x104
mov esi, 0x409604
lea edx, [ebp - 0x108]
mov eax, edi
mov ecx, esi
call fcn.0040151d
test byte [0x409e54], 0x20
je 0x4051a7
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, 0
je 0x40519a
dec eax
je 0x405193
dec eax
je 0x40518c
dec eax
jne 0x4051a7
mov eax, 0x401330
jmp 0x40519f
mov eax, 0x401328
jmp 0x40519f
mov eax, 0x401320
jmp 0x40519f
mov eax, 0x401318
push edi
mov ecx, esi
call fcn.00406206
push edi
mov eax, 0x4010d1
mov ecx, esi
call fcn.00406206
jmp 0x4051c7
mov esi, 0x409604
mov eax, 0x104
mov ecx, esi
call fcn.0040151d
push esi
call fcn.0040554d
xor edi, edi
inc edi
test eax, eax
jne 0x4051e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405215
mov dword [0x408d20], edi
cmp dword [ebp + 0xc], 0
je 0x405221
push 0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040560f
test eax, eax
jne 0x405221
cmp dword [0x408d20], eax
je 0x405211
and dword [0x408d20], eax
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x40522a
call fcn.00405e78
mov dword [0x409e68], eax
jmp 0x405211
and dword [0x409e68], 0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret 8
Function at 0x40554d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405558
push esi
sub ecx, edx
push edi
lea esi, [ecx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x405595
xor esi, esi
push esi
push 0x10
push esi
push esi
push 0x4b5
push esi
call fcn.00404172
call fcn.00405e78
mov dword [0x409e68], eax
xor eax, eax
jmp 0x405604
mov edx, dword [ebp + 8]
push ebx
mov ecx, edi
call fcn.00401425
push esi
mov eax, 0x401348
mov ecx, edi
call fcn.00406206
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, 0xffffffff
je 0x4055f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055f7
test al, 0x10
je 0x4055f7
xor eax, eax
mov dword [0x409e68], esi
inc eax
jmp 0x405603
call fcn.00405e78
mov dword [0x409e68], eax
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x40560f
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x314], 0
push ebx
push esi
lea eax, [ebp - 0x310]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebx
test eax, eax
jne 0x40566f
push eax
push 0x10
push eax
push eax
push 0x4bc
push eax
call fcn.00404172
call fcn.00405e78
mov dword [0x409e68], eax
xor eax, eax
jmp 0x40583f
push edi
lea edi, [ebp - 0x314]
call fcn.004065be
mov edi, eax
test edi, edi
jne 0x4056d9
push 0x1ff
push eax
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x20b]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.00405e78
push edi
mov dword [0x409e68], eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x4b0
jmp 0x405751
xor ecx, ecx
push ecx
push ecx
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x31c]
push eax
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x405762
push 0x1ff
push eax
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x20b]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.00405e78
xor edi, edi
push edi
mov dword [0x409e68], eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x4f9
push edi
call fcn.00404172
lea eax, [ebp - 0x310]
push eax
call ebx
jmp 0x4057c1
lea eax, [ebp - 0x310]
push eax
call ebx
lea ecx, [ebp - 0xc]
push 6
mov eax, ecx
pop edx
sub esi, eax
lea eax, [edx - 4]
test eax, eax
je 0x405789
mov al, byte [esi + ecx]
test al, al
je 0x405789
mov byte [ecx], al
inc ecx
dec edx
jne 0x405775
test edx, edx
jne 0x40578e
dec ecx
xor edx, edx
push 8
mov byte [ecx], dl
mov ecx, 0x200
mov eax, edx
pop esi
cmp dword [ebp - 0x314], ecx
je 0x4057ac
add ecx, ecx
inc eax
cmp ax, si
jb 0x40579c
cmp ax, si
jne 0x4057c5
push edx
push 0x10
push edx
push edx
push 0x4c5
push edx
call fcn.00404172
xor eax, eax
jmp 0x40583e
test byte [0x409e54], 8
je 0x4057f4
test dword [ebp - 0x318], 0x8000
je 0x4057f4
movzx eax, ax
mov esi, dword [eax*4 + 0x408ce0]
mov eax, dword [0x409e58]
mov ecx, eax
shr ecx, 2
add esi, esi
add ecx, eax
jmp 0x405804
mov ecx, dword [0x409e58]
movzx eax, ax
mov esi, dword [eax*4 + 0x408ce0]
mov eax, dword [ebp + 8]
and eax, 1
je 0x405819
test byte [ebp + 8], 2
je 0x405819
lea eax, [ecx + esi]
cmp eax, edi
jmp 0x405823
test eax, eax
je 0x405821
cmp esi, edi
jmp 0x405823
cmp ecx, edi
jbe 0x405835
push ecx
push dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.0040247b
jmp 0x40583e
xor eax, eax
mov dword [0x409e68], edx
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret 8
Function at 0x405e0f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x405e58
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.00404172
call fcn.00405e78
mov dword [0x409e68], eax
xor eax, eax
jmp 0x405e67
push 2
push 2
lea ecx, [ebp - 0x108]
call fcn.0040560f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406935
leave
ret

Function at 0x405e92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x401364
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
xor esi, esi
push 0x14
push eax
inc esi
mov dword [ebp - 0x1c], edi
call fcn.004014b5
jmp 0x405f25
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f45
lea edx, [edi + 8]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ee7
sub ecx, dword [ebp - 0x20]
lea eax, [edx + 1]
add eax, ecx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [ebp - 0x24]
push edi
test eax, eax
je 0x405f3b
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 0x401364
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004014b5
xor edi, edi
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x405ec7
jmp 0x405f51
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x405f51
mov dword [0x409e68], 0x80070714
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
mov edx, 0x409604
mov eax, esi
lea ecx, [ebp - 0x108]
call fcn.0040151d
push esi
mov esi, 0x401168
mov eax, esi
lea ecx, [ebp - 0x108]
call fcn.00406206
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4060e5
test al, 0x10
jne 0x4060e5
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4060ec
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4061f5
xor eax, eax
jmp 0x4061fd
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x406425
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4085e8]
push esi
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xa8], esi
cmp ebx, 0xfffffffe
jne 0x406550
lea eax, [ebp - 0xa4]
push eax
mov dword [0x4085e8], esi
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40654a
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x94], ebx
jne 0x40654a
cmp dword [ebp - 0xa0], 4
jne 0x40654a
cmp dword [ebp - 0x9c], 0xa
jae 0x40654a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40654a
lea eax, [ebp - 0xac]
push eax
push 0x20019
push esi
push 0x401370
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40654a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x4010d1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406519
mov eax, dword [0x4085e8]
jmp 0x406552
push edi
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0xa8]
call fcn.0040630c
pop edi
test eax, eax
je 0x40654a
mov eax, dword [ebp - 0xa8]
and eax, 0x3ff
cmp eax, ebx
je 0x406542
cmp eax, 0xd
jne 0x40654a
mov dword [0x4085e8], ebx
jmp 0x406550
mov ebx, dword [0x4085e8]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret

Function at 0x406565
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [eax], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4065b4
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4065b4
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x406926
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4073c0
call fcn.004071fc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x408ccc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40679d
cmp eax, edi
jne 0x406790
xor edi, edi
inc edi
mov esi, edi
jmp 0x4067a0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406774
xor edi, edi
inc edi
cmp dword [0x408cd0], edi
jne 0x4067b2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4067e0
cmp dword [0x408cd0], ebx
jne 0x4067da
mov dword [0x408cd0], edi
push 0x401018
push 0x40100c
call fcn.00406714
pop ecx
pop ecx
test eax, eax
je 0x4067e0
jmp 0x40690f
mov dword [0x408604], edi
cmp dword [0x408cd0], edi
jne 0x406803
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x408cd0], 2
test esi, esi
jne 0x406813
push ebx
push 0x408ccc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408cd8], 0
je 0x406835
push 0x408cd8
call fcn.00407070
pop ecx
test eax, eax
je 0x406835
push ebx
push 2
push ebx
call dword [0x408cd8]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406892
test cl, cl
je 0x406851
test edi, edi
jne 0x406892
mov al, byte [esi]
test al, al
je 0x406861
cmp al, 0x20
ja 0x406861
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406851
test byte [ebp - 0x3c], 1
je 0x40686d
movzx eax, word [ebp - 0x38]
jmp 0x406870
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x408600], eax
cmp dword [0x408618], 0
jne 0x4068eb
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x4068a3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4068b6
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406842
cmp dword [0x408604], 0
jne 0x4068ff
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x408600]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40691b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00407241
ret
call fcn.00407131
jmp 0x40673d

Function at 0x406fe0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x406ff6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x407011
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x407020
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40705e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x446cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29000]
push edi
or ebp, 0xffffffff
jmp 0x446d12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x446d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x446d08
mov eax, 1
add ebx, ebx
jne 0x446d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x446d3c
jne 0x446d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x446d5b
dec eax
add ebx, ebx
jne 0x446d48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x446d20
add ebx, ebx
jne 0x446d57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x446dad
xor ecx, ecx
sub eax, 3
jb 0x446d73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x446de2
sar eax, 1
mov ebp, eax
jmp 0x446d7e
add ebx, ebx
jne 0x446d7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x446d4c
inc ecx
add ebx, ebx
jne 0x446d8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x446d4c
add ebx, ebx
jne 0x446d99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x446d8e
jne 0x446daa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x446d8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x446dcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x446dbe
jmp 0x446d0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x446dcc
add edi, ecx
jmp 0x446d0e
pop esi
mov edi, esi
mov ecx, 0x1384
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x446dea
cmp byte [edi], 0xa
jne 0x446dea
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 0x446def
lea edi, [esi + 0x43000]
mov eax, dword [edi]
or eax, eax
je 0x446e67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46aa4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46bd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x446e1c
mov ecx, edi
jns 0x446e4b
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 + 0x46bd4]
or eax, eax
je 0x446e61
mov dword [ebx], eax
add ebx, 4
jmp 0x446e39
call dword [esi + 0x46bdc]
mov ebp, dword [esi + 0x46bd8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x446e9b
sub esp, 0xffffff80
jmp 0x40c670
Function at 0x100293f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10029b1
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x10029b0
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10029a9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001208
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10029a9
cmp dword [ebp - 8], ebx
je 0x10029a9
mov ecx, dword [ebp - 0xc]
mov eax, 0x6ffff
cmp eax, dword [ecx + 8]
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x10001260
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x10025478
call fcn.100050e0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x1000128b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x10001296
bts eax, 6
shr ecx, 1
test cl, 1
je 0x100012a1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x100012ac
bts eax, 4
shr ecx, 1
test cl, 1
je 0x100012b7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100012c2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100012cd
bts eax, 1
test cl, 2
je 0x100012d6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x1000136f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10001360
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x10025478], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x10001280
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100013a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1002400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x10020cb4
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
or ebx, 0xffffffff
call fcn.1000a634
add esp, 0xc
test eax, eax
jne 0x100013f1
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100035c0
mov esp, ebp
pop ebp
ret 4
push esi
push edi
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1000a863
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov edx, edi
test edi, edi
je 0x1000143a
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10025478]
sub edx, 1
jne 0x10001420
cmp edi, 0x400
je 0x100013f3
push dword [ebp - 0x408]
call fcn.10007651
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.100035c0
mov esp, ebp
pop ebp
ret 4