joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6903f710
Capabilities:
Log keystrokes via input method manager

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
test bh, 1
push edi
je 0x6903f731
mov eax, dword [esp + 0x18]
push eax
call fcn.6903f960
mov edi, dword [esp + 0x20]
mov dword [edi + 4], eax
jmp 0x6903f735
mov edi, dword [esp + 0x20]
test bl, 0x10
je 0x6903f828
mov ecx, dword [esp + 0x18]
push ebp
push esi
xor ebx, ebx
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call sub.IMM32.dll_ImmGetContext
mov esi, eax
cmp esi, ebx
je 0x6903f814
xor ebp, ebp
push ebp
push ebp
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringA
test ax, ax
jbe 0x6903f814
mov edi, eax
and edi, 0xffff
lea edx, [edi + 1]
push edx
call sym.IML32.dll_Ordinal_1124
test eax, eax
mov dword [esp + 0x14], eax
je 0x6903f810
push edi
push eax
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringA
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x6903f7a9
lea eax, [esp + 0x14]
push eax
jmp 0x6903f80b
mov byte [edi + eax], 0
xor eax, eax
test edi, edi
jbe 0x6903f806
mov edx, dword [esp + 0x14]
test ebx, ebx
jne 0x6903f7d5
mov cl, byte [eax + edx]
cmp cl, 1
je 0x6903f7c8
cmp cl, 3
jne 0x6903f7f1
mov dword [esp + 0x18], eax
mov ebx, 1
movsx bp, cl
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x6903f7f1
movsx ecx, byte [eax + edx]
mov esi, ebp
and esi, 0xffff
cmp ecx, esi
je 0x6903f7f1
mov dword [esp + 0x10], eax
inc eax
cmp eax, edi
jb 0x6903f7b7
test ebx, ebx
je 0x6903f806
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6903f806
mov dword [esp + 0x10], edi
lea edx, [esp + 0x14]
push edx
call sym.IML32.dll_Ordinal_1125
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
pop esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
pop ebp
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x6903f844
test bl, 0x80
je 0x6903f844
mov edx, dword [esp + 0x18]
push edx
call fcn.6903f980
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
pop edi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x69040330
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 3
jne 0x6904034a
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
and al, 0xfe
jmp 0x6904034c
xor eax, eax
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.690400d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push edi
push ecx
push esi
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
ret 0x10

Function at 0x690403d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 8]
xor edi, edi
push eax
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
push esi
call fcn.69040290
cmp eax, 3
jne 0x69040428
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
and eax, 0xfffffffe
jne 0x6904042a
mov edi, 1
jmp 0x6904042a
xor eax, eax
push eax
push esi
call fcn.690400d0
test edi, edi
je 0x69040442
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 8
ret 0x10
Function at 0x690545c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x690545ec
mov eax, 0x80040006
pop esi
add esp, 0x104
ret 4
mov edx, dword [esp + 0x10c]
lea ecx, [esp + 4]
push ecx
push edx
call sym.IML32.dll_Ordinal_1233
mov eax, esi
pop esi
add esp, 0x104
ret 4

Function at 0x690580f0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [eax]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1c]
push ebx
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test esi, esi
jbe 0x69058146
cmp esi, 0xf000
mov eax, 0xf000
ja 0x69058127
mov eax, esi
push eax
push edi
push ebp
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x6905815c
test eax, eax
je 0x69058146
sub esi, eax
add edi, eax
add ebx, eax
test esi, esi
ja 0x69058118
mov ecx, dword [esp + 0x20]
cmp dword [ecx], ebx
je 0x6905816e
pop edi
pop esi
mov dword [ecx], ebx
pop ebp
mov eax, 0x80040054
pop ebx
ret 0x10
call fcn.69058a70
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ebx
pop ebx
ret 0x10
pop edi
pop esi
mov dword [ecx], ebx
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x69058180
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x690581ff
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push 0
push 0
mov dword [esi + 0x18], 1
call ebx
lea edi, [esi + 0x1c]
test eax, eax
mov dword [edi], eax
jne 0x690581bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x6905823e
push 0
push 1
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x20], eax
jne 0x690581d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x6905823e
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x69058290
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x690581ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x6905823e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], edx
lea edi, [esi + 0x1c]
lea edx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
push edx
push 1
push eax
mov dword [esi + 0xc], 0
mov dword [esi], ecx
mov dword [esi + 0x14], 0x80040057
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [esi + 0x14]
cmp ebx, 0x80040057
je 0x6905825c
mov dword [esi + 0x18], 0
add esi, 0x20
push esi
call fcn.69058270
push edi
call fcn.69058270
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 0x14
Function at 0x690589b0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea edx, [esp]
mov eax, dword [eax + 4]
push ebx
push ebp
push esi
mov eax, dword [eax + 0x18]
push edi
push 0x104
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov esi, eax
test esi, esi
jne 0x69058a1c
mov eax, dword [esp + 0x128]
mov edi, dword [esp + 0x124]
mov ebx, dword [esp + 0x120]
mov ebp, dword [esp + 0x11c]
push eax
push edi
push ebx
lea ecx, [esp + 0x1c]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x69058a1c
mov dword [ebx], 0x200
mov dword [ebp], 0x80
mov dword [edi], 0x8000
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x14
Function at 0x6905aaf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x6905ab22
push esi
call fcn.6905c4b0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x6905ab1b
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret 4
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x6905aba3
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x6905ab8d
mov eax, dword [esi + 8]
test eax, eax
je 0x6905ab43
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
test eax, eax
je 0x6905ab87
cmp eax, 2
je 0x6905ab8d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6905ab39
cmp eax, 3
je 0x6905ab66
cmp eax, 1
jne 0x6905ab39
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x6905ab39
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x6905ab39
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.6905abd0
pop esi
ret 4
cmp eax, 0xcc
je 0x6905abc0
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
push esi
call fcn.6905abd0
pop esi
ret 4
Function at 0x6905b660
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call sym.IML32.dll_Ordinal_1551
push 0x50
push edi
mov dword [esp + 0x14], eax
call fcn.6905c8b0
mov esi, eax
cmp esi, ebx
jne 0x6905b69e
push edi
call sym.IML32.dll_Ordinal_1020
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
mov dword [esi], fcn.6905b780
mov dword [esi + 4], fcn.6905b8d0
mov dword [esi + 8], fcn.6905b970
mov dword [esi + 0xc], fcn.6905ba20
mov dword [esi + 0x10], 0x6905bad0
mov dword [esi + 0x14], 0x6905bb40
mov dword [esi + 0x18], 0x6905bbb0
mov dword [esi + 0x1c], 0x6905bd30
mov dword [esi + 0x20], 0x6905bf00
mov dword [esi + 0x24], fcn.6905c0d0
mov dword [esi + 0x28], 0x6905c1c0
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x6905b6f9
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x6905b779
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x6905b779
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x6905b754
cmp al, 0x4d
jne 0x6905b766
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x6905b76a
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
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 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x76396d02
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x36cc4d5c
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push 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 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x45fda8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fda8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc
Function at 0x10018b5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x10018e1
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001936
lea eax, [ebp - 0x10]
push eax
push 0x1001254
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001920
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001936
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001940
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.010038cc
xor eax, eax
jmp 0x1001943
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1001946
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a2e0], 0
je 0x1001989
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001989
push 0x100a2e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100263f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002650
call fcn.01002613
cmp eax, 2
jne 0x100268e
test byte [esp + 4], 4
jne 0x1002673
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.010038cc
cmp eax, 6
jne 0x100268e
cmp word [0x100aa64], 0
jne 0x1002689
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100268e
call fcn.010018b5
ret 4

Function at 0x1002a34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1002a9d
cmp dword [ebp + 0xc], edi
je 0x1002a9d
cmp ebx, edi
je 0x1002a7d
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1002a81
xor eax, eax
jmp 0x1002a9f
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1002eaf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f03
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002ef2
cmp dword [0x100b490], ebp
jne 0x1002ef2
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 ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002ecd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f53
cmp dword [0x100b884], ebp
jne 0x1002f53
cmp dword [0x100b490], ebp
jne 0x1002f53
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f3e
lea eax, [esp + 0xc]
push eax
call fcn.01005b71
push 0x1001284
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01001c7f
cmp word [0x100aa64], 1
je 0x1002f6a
cmp dword [0x100b880], ebp
je 0x1002f6a
call fcn.01001946
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x10038cc
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10038c9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10038e7
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1003945
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100392c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1003935
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100393f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1003921
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10038ab
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1003992
dec eax
je 0x1003989
sub eax, 3
je 0x1003980
mov dword [ebp - 4], 0x40
jmp 0x10039af
mov dword [ebp - 4], 4
jmp 0x1003995
mov dword [ebp - 4], 0x20
jmp 0x1003995
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10039e1
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1003961
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.010031f2
js 0x10039f5
inc ecx
sar edi, 1
jne 0x10039ec
push 1
push esi
call edi
mov eax, esi
jmp 0x10039ed
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
sub esp, 0x7ec
push ebx
push esi
push edi
call fcn.010031d0
ret
Function at 0x1004560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call ebx
call fcn.010031f2
xlatb
cmp esp, eax
lea eax, [ebp - 0x6dc]
push eax
call fcn.01003202
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.010031b7
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x1005385
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.01003163
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x10045ff
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1004648
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x10045f2
call fcn.010031f2
adc al, 0x19
lfs eax, [eax - 0x72b5b]
invalid
Function at 0x1005bca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005bdd
xor eax, eax
jmp 0x1005be5
shr eax, 4
not eax
and eax, 1
ret 4

Function at 0x1005e13
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e4d
xor eax, eax
jmp 0x1005e63
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]
leave
ret 4

Function at 0x1007083
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070be
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100709b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070da
dec esi
je 0x10070d3
dec esi
jne 0x10070df
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc