joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x423538
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403190
mov eax, dword [0x435a58]
add eax, ecx
push eax
call fcn.00403131
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40b010]
call fcn.00406955
test eax, eax
je 0x403379
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x40331b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40dea4], esi
and dword [0x40dea0], esi
mov dword [esp + 0x14], eax
mov eax, 0x40f528
mov dword [0x417530], eax
mov dword [0x41752c], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov dword [0x40d988], 8
mov ecx, eax
mov dword [0x417528], 0x417528
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x403313
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x41f538
call fcn.0040311b
test eax, eax
je 0x403379
sub dword [esp + 0x10], ebp
mov dword [0x40d97c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x40d978], 0x41f538
push 0x40d978
mov dword [0x40d980], ebp
mov dword [0x40d984], ebx
call fcn.0040729b
mov dword [esp + 0x28], eax
test eax, eax
js 0x403317
mov eax, dword [0x40d980]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x435af4], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4032cc
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x403290
test ecx, ecx
jne 0x4032cc
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405d35
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40330b
test edi, edi
jne 0x4032f0
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00406a18
test eax, eax
je 0x40335e
mov eax, dword [esp + 0x18]
jmp 0x4032fc
mov ebp, dword [0x40d980]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x40323d
jmp 0x403313
test ecx, ecx
jg 0x403208
mov eax, esi
jmp 0x40337c
push 0xfffffffffffffffc
jmp 0x40337b
test edi, edi
jne 0x403362
test eax, eax
jle 0x403313
mov ebp, 0x41f538
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.0040311b
test eax, eax
je 0x403379
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00406a18
test eax, eax
je 0x40335e
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403328
jmp 0x403313
push 0xfffffffffffffffe
jmp 0x40337b
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.0040311b
test eax, eax
jne 0x403313
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403389
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x4033a8
mov eax, dword [0x40d970]
test eax, eax
je 0x4033a0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40d970], 0
ret
cmp dword [0x40d970], 0
je 0x4033b9
push 0
call fcn.0040621c
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x435a00]
jbe 0x4033ec
push 0
push 0x40364f
push 0
push 0x6f
push dword [0x4349f4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40d970], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405e19
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405e39
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x409760
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x409750
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405eb1
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405eab
xor eax, eax
jmp 0x405eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x4061ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4061e5
test eax, eax
je 0x4061e5
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4061e7
mov ecx, 0x4092b0
jmp 0x4061ec
xor eax, eax
mov ecx, 0x4092b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40624a
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40626d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406313
pop ecx
pop ecx
inc dword [0x435ad0]
ret 8

Function at 0x406313
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x4319c0], 0x55004e
mov ebp, 0x4319c0
mov dword [0x4319c4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406369
push 1
push 0
push esi
call fcn.00406928
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406449
cmp eax, ebx
jg 0x406449
push ebx
mov esi, 0x4311c0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406449
cmp eax, ebx
jg 0x406449
push esi
push ebp
push str._ls_ls_r_n
push 0x430dc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x435a10]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405eb5
push 4
push 0xc0000000
push esi
call fcn.00406928
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406449
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406442
push esi
push edi
push ebx
call fcn.00406955
test eax, eax
je 0x406442
push str._Rename__r_n
push edi
call fcn.00406b43
test eax, eax
jne 0x40644e
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x430dc0
lea eax, [ecx + edi]
push eax
call fcn.004066c1
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406a18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x409984
add eax, 0xa
push eax
call fcn.00406b43
mov ecx, eax
test ecx, ecx
je 0x406413
lea edx, [edi + esi]
jmp 0x40646d
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406467
sub ecx, edi
inc ecx
jmp 0x406415
Function at 0x406592
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406baa
mov edi, eax
cmp edi, 0xffffffff
je 0x4065d5
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4065b6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4065bc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4065c5
xor eax, eax
inc eax
jmp 0x4065d7
test byte [ebp + 0xc], 4
jne 0x4065d5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x4305c0
push ebx
call fcn.00406b27
push ebx
call fcn.00406bd2
mov esi, eax
test esi, esi
je 0x4066ba
push esi
call fcn.00406d4a
test byte [0x435a0c], 0x80
je 0x40667e
movzx eax, word [esi]
test ax, ax
je 0x4066ba
cmp eax, 0x5c
je 0x4066ba
sub esi, ebx
sar esi, 1
jmp 0x406698
call fcn.004065dc
test eax, eax
je 0x406692
test byte [eax], 0x10
je 0x4066ba
push ebx
call fcn.00406d1d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406684
call fcn.00406563
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4066ba
xor eax, eax
inc eax
jmp 0x4066bc
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4066e3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42fd78], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42fd78
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406722
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406726
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406645
mov dword [esp + 0x14], eax
test bl, 8
je 0x406768
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x435ac8], eax
jmp 0x4068e7
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406785
test eax, eax
je 0x4068d6
test bl, 2
je 0x40689f
push esi
push 0x42fdc0
call fcn.00406b27
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067a8
push str..
push 0x42fdc0
call ebp
jmp 0x4067ae
push esi
call fcn.00406d1d
xor eax, eax
cmp word [esi], ax
jne 0x4067bf
cmp word [0x42fdc0], 0x5c
jne 0x4067c7
push 0x4092b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x42fdc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406888
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406811
cmp word [esp + 0x4a], 0
je 0x40686a
cmp word [esp + 0x4a], ax
jne 0x406811
cmp word [esp + 0x4c], 0
je 0x40686a
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b27
test byte [esp + 0x1c], 0x10
je 0x406838
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40686a
push ebx
push esi
call fcn.00406726
jmp 0x40686a
push edi
push esi
call fcn.00406592
test eax, eax
jne 0x406862
test edi, edi
je 0x40685a
push esi
push 0xfffffffffffffff1
call fcn.00405d35
xor eax, eax
push eax
push esi
call fcn.0040624a
jmp 0x40686a
inc dword [0x435ac8]
jmp 0x40686a
push esi
push 0xfffffffffffffff2
call fcn.00405d35
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067f3
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068e6
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068d6
push esi
call fcn.004065dc
test eax, eax
je 0x4068e6
push esi
call fcn.00406563
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406592
test eax, eax
jne 0x4068de
test edi, edi
je 0x4068d6
push esi
push 0xfffffffffffffff1
call fcn.00405d35
xor eax, eax
push eax
push esi
call fcn.0040624a
jmp 0x4068e6
inc dword [0x435ac8]
jmp 0x4068e6
push esi
push 0xffffffffffffffe5
call fcn.00405d35
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406984
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062e5
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069f6
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069f6
cmp dword [ebp + 0x18], 1
je 0x4069fb
cmp dword [ebp + 0x18], 2
je 0x4069fb
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406a00
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406a63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406aad
test edi, edi
jne 0x406a70
mov word [esi], ax
jmp 0x406aaf
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406baa
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bcc
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406e49
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x432414], 0
push esi
jne 0x406e83
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e5a
mov dword [ecx*4 + 0x432410], edx
inc ecx
cmp ecx, 0x100
jl 0x406e55
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406ead
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x432410]
inc esi
sub edx, 1
jne 0x406e95
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x407180
Capabilities:
Enumerate pe sections

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

Function at 0x4072a0
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 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x4a779c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7b65026d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100010a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x40
push 0x3000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_VirtualAllocExNuma
push dword [ebp + 0xc]
mov ecx, dword [0x10017070]
mov edi, eax
push dword [ebp + 8]
xor eax, eax
test edi, edi
push edi
cmovne ecx, eax
mov dword [0x10017070], ecx
call fcn.100037b0
add esp, 0xc
mov eax, edi
pop edi
pop ebp
ret

Function at 0x10001850
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 0x10]
mov al, byte [esi]
mov cl, byte [esi + 1]
jle 0x10001928
push ebx
movzx ecx, cl
mov ebx, 0xdc
push edi
movzx eax, al
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov edi, edi
inc eax
mov ecx, dword [0x10018410]
cdq
idiv ebx
mov al, dl
movzx ebx, al
mov byte [ebp - 1], al
movzx eax, byte [ebx + ecx]
add eax, dword [ebp - 8]
lea edi, [ebx + ecx]
cdq
idiv dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov al, dl
mov byte [ebp - 2], al
movzx eax, al
mov dword [ebp - 8], eax
add eax, ecx
push eax
push edi
call fcn.10001940
mov ecx, dword [0x10018410]
add esp, 8
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
movzx eax, byte [eax + ecx]
movzx ecx, byte [ebx + ecx]
add eax, ecx
mov ecx, 0xdc
cdq
idiv ecx
push 0
mov bl, dl
call edi
push 0
push 0
call edi
mov eax, dword [0x10018410]
mov edi, esi
sub edi, dword [0x10017070]
inc esi
add edi, dword [ebp + 8]
movzx ecx, bl
mov ebx, 0xdc
mov al, byte [ecx + eax]
xor byte [edi], al
mov eax, dword [ebp - 0x10]
cmp esi, dword [ebp + 0xc]
jl 0x10001880
mov esi, dword [ebp + 0x10]
mov al, byte [ebp - 1]
pop edi
pop ebx
mov byte [esi], al
mov al, byte [ebp - 2]
mov byte [esi + 1], al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi], al
mov byte [esi + 1], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

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

Function at 0x4072a0
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 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
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 eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x407180
Capabilities:
Enumerate pe sections

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

Function at 0x4072a0
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 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x70657b9b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x73133a94
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219