joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b51
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
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 ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405420
mov dword [ebp - 0x14], eax
cmp dword [0x417f64], esi
jne 0x407c44
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x407bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407d24
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x407d24
push 0x4114d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407d24
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x417f64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x417f68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x417f6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f74], eax
test eax, eax
je 0x407c41
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407c69
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407c5c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x407c7e
push 4
pop eax
jmp 0x407d26
cmp dword [ebp - 0x14], esi
je 0x407c7e
push dword [0x417f64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407c63
mov eax, dword [0x417f70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x407cdc
cmp dword [0x417f74], edi
je 0x407cdc
push eax
call ebx
push dword [0x417f74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407cdc
test eax, eax
je 0x407cdc
call ecx
test eax, eax
je 0x407cd1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x407cd1
test byte [ebp - 8], 1
jne 0x407cdc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x407d0c
mov eax, dword [0x417f68]
cmp eax, edi
je 0x407d09
push eax
call ebx
test eax, eax
je 0x407d09
call eax
mov esi, eax
test esi, esi
je 0x407d09
mov eax, dword [0x417f6c]
cmp eax, edi
je 0x407d09
push eax
call ebx
test eax, eax
je 0x407d09
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x417f64]
call ebx
test eax, eax
je 0x407d24
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x407d26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fe4
mov esp, ebp
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100012bd
push ebx
call fcn.10027225
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
cmp dword [ebp - 8], esp
je 0x100012f2
push 0x36
push 0x405eba1
push 6
call fcn.10027237
add esp, 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10001305
mov eax, 0x1003623d
push eax
push 1
mov ebx, 0x170
call fcn.10027a10
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10001323
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001334
push ebx
call fcn.10027225
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1000728b
Capabilities:
Execute syscall

Disassembly:
jne 0x10021cbb
mov eax, 1
jmp loc.1020b010
mov ebx, dword [0x101ea9c6]
cmc
lea ebx, [ebx + 0x1c]
cmp cl, 0x9c
cmp cl, cl
mov dword [ebp - 4], ebx
ror ebx, cl
add bx, di
cmp ebp, edi
mov ebx, dword [ebp - 4]
jmp 0x1001acfa
push ebp
cmove ebp, edx
movzx ebp, di
xor ebp, esi
mov ebp, esp
lea esp, [esp - 0x14]
stc
push eax
nop
stc
btc eax, 0x14
cmc
mov eax, 0xe8903459
rcr ah, cl
sal al, cl
ror ah, cl
nop
mov eax, 0x25fd853
add eax, esi
movsx ax, dh
sar al, 0x89
nop
bts ax, si
shld ax, cx, 0x19
pop eax
cmp sp, dx
cmp dword [ebp + 8], 0
jmp 0x10004fda
jge 0x10003d5c
mov eax, 0xfffffffd
jmp loc.10207d1e
jmp 0x100045b6
cmp dword [ebx], 0
jmp 0x100254be
mov eax, 0
jmp fcn.1002117e
je 0x10208fb7
mov ebx, dword [0x101ea9c6]
add ebx, 4
cmp sp, dx
test dx, bp
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10021cbb
mov ebx, dword [0x101ea9c6]
cmc
test esi, 0x4d020fa3
lea ebx, [ebx + 8]
mov dword [ebp - 0xc], ebx
bswap ebx
movzx ebx, cx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jmp 0x100013b9
mov ebx, dword [0x101ea9c6]
clc
cmp esi, 0x13d5e95
stc
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov bh, ch
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jmp loc.100194ae
Function at 0x10007b9d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007be2
push ebx
call fcn.10027225
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x1003623d
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.10001339
add esp, 8
cmp eax, 0
jne 0x10007c38
mov eax, dword [0x101ea9d2]
test eax, eax
je 0x10007c1f
push eax
mov ebx, eax
call fcn.10001000
inc eax
push eax
call fcn.1002722b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10007c32
push ebx
call fcn.10027225
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10007c73
push 0x1d5
push 0x405effd
push 6
call fcn.10027237
add esp, 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10007c86
mov eax, 0x1003623d
push eax
push 1
mov ebx, 0x170
call fcn.10027a10
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10007ca4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007cb5
push ebx
call fcn.10027225
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10007cbc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007d01
push ebx
call fcn.10027225
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10007d36
push 0x36
push 0x405eb9f
push 6
call fcn.10027237
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007d52
push eax
mov ebx, eax
call fcn.10001000
inc eax
push eax
call fcn.1002722b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10007d57
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007d68
push ebx
call fcn.10027225
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x100080d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10007519
test eax, eax
je 0x10008113
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10008113
cmp word [eax], 0x5a4d
jne 0x10008113
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10008113
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000762f
mov eax, dword [ebp + 8]
jmp 0x1000812c
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ce6d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.1002722b
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x101eaa0a], 0
jne 0x1000cf39
mov ebx, dword [0x101ea9b2]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x101e9d59
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002600
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000ceed
push ebx
call fcn.10027225
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.1000bc3e
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000cf0e
push ebx
call fcn.10027225
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x101eaa0a], eax
push 0x80000006
push 0
push 0x1000fbc1
push 1
mov ebx, 0x9dc
call fcn.100278f0
add esp, 0x10
mov dword [0x101eaa0e], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x101eaa0e]
push dword [0x101eaa0a]
call fcn.1000d021
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000cfa3
push 0x19d
push 0x405ee8f
push 6
call fcn.10027237
add esp, 0xc
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000f792
cmp dword [ebp - 8], 0
je 0x1000cffc
push 2
push dword [ebp - 8]
call fcn.1000f81f
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000cff3
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 8]
call fcn.1000f8fe
lea eax, [ebp - 8]
push eax
call fcn.1000b4c0
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1000d00d
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10027225
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10012087
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10007519
test eax, eax
je 0x100120f2
push ecx
push ebx
xor eax, eax
xchg dword [ebp + 0xc], eax
xchg dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
jle 0x100120f0
cmp word [ebx], 0x5a4d
jne 0x100120f0
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x100120f0
cmp dword [ebp + 0x10], 0
je 0x100120e4
movzx eax, word [ecx + 0x16]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x100120f0
cmp dword [ecx + 0x28], 0
je 0x100120f0
add ebx, dword [ecx + 0x28]
mov dword [ebp + 0xc], ebx
pop ebx
pop ecx
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000762f
mov eax, dword [ebp + 0xc]
jmp 0x1001210b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10020c82
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020cc2
push ebx
call fcn.10027225
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push 0xff
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
nop
nop
cmp dword [ebp - 4], esp
je 0x10020d01
push 0x48
push 0x405c5fc
push 6
call fcn.10027237
add esp, 0xc
jmp 0x10020d06
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10027850
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.1002ae74
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x100278ba
push esi
lea edi, [eax + 0x400]
call fcn.1002ae69
push edi
call fcn.1002ae74
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x1002788a
push esi
xor edi, edi
call dword [0x101eb170]
add esp, 4
test eax, eax
je 0x100278d6
push eax
push esi
call fcn.10029ab0
add esp, 8
mov edi, eax
push esi
call fcn.1002ae69
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10028320
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10028389
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.100275f0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100292a0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x100292c5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1002932f
jmp 0x100292e5
mov esi, dword [esp + 0x120]
push esi
call dword [0x101eb170]
add esp, 4
test eax, eax
je 0x1002932f
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1002932f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret
Function at 0x10029c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10029c71
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x10029ccb
inc edi
cmp edi, esi
jl 0x10029c65
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10029d00
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x10029cba
cmp byte [eax], bl
je 0x10029cd5
cmp byte [eax + 1], bl
je 0x10029cde
cmp byte [eax + 2], bl
je 0x10029ce8
cmp byte [eax + 3], bl
je 0x10029cf4
add eax, 4
cmp eax, edi
jb 0x10029c91
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x1020869f
Capabilities:
Check for software breakpoints
Copy file
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
push ebp
cmc
sbb bp, bx
btr ebp, 0x1f
mov ebp, esp
cmp si, 0x4a2e
sub esp, 0x64
jmp loc.10003c1c
Function at 0x10001520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10434540], 0
je 0x10001539
mov eax, dword [0x10434540]
jmp 0x100016d6
mov dword [0x10434540], 0x10434518
push 0x28
push 0
push 0x10434518
call fcn.1003be00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10434518], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1043451c], eax
cmp dword [0x1043451c], 0
jne 0x1000157f
xor eax, eax
jmp 0x100016d6
push str.ImagehlpApiVersionEx
mov eax, dword [0x1043451c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434520], eax
push str.SymInitialize
mov ecx, dword [0x1043451c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434524], eax
push str.SymSetOptions
mov edx, dword [0x1043451c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434528], eax
push str.SymGetOptions
mov eax, dword [0x1043451c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043452c], eax
push str.SymLoadModule
mov ecx, dword [0x1043451c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434530], eax
push str.SymGetModuleInfo
mov edx, dword [0x1043451c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434534], eax
push str.SymGetSymFromName
mov eax, dword [0x1043451c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10434538], eax
push str.BindImage
mov ecx, dword [0x1043451c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043453c], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.1003be00
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x10434520], 0
je 0x1000165d
lea eax, [ebp - 8]
push eax
call dword [0x10434520]
cmp dword [0x10434520], 0
je 0x1000166f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1000168a
mov edx, dword [0x1043451c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1043451c], 0
xor eax, eax
jmp 0x100016d6
cmp dword [0x10434524], 0
je 0x100016a3
push 0
push 0
mov eax, dword [0x10434518]
push eax
call dword [0x10434524]
cmp dword [0x1043452c], 0
je 0x100016d1
cmp dword [0x10434528], 0
je 0x100016d1
call dword [0x1043452c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x10434528]
mov eax, dword [0x10434540]
mov esp, ebp
pop ebp
ret
Function at 0x100048d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x15
mov dword [ebp - 4], 0
jmp 0x100048f2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 9
jge 0x10004931
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 0x7b022d98]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x1000492c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x100048e9
mov eax, 1
imul ecx, eax, 9
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10004950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x1d
mov dword [ebp - 4], 0
jmp 0x10004972
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 9
jge 0x100049b1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 0x699538fb]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x100049ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10004969
mov eax, 1
imul ecx, eax, 9
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x100049d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x29
mov dword [ebp - 4], 0
jmp 0x100049f2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xb
jge 0x10004a31
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0xd1b7ed6]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10004a2c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x100049e9
mov eax, 1
imul ecx, eax, 0xb
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10004a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x38
mov dword [ebp - 4], 0
jmp 0x10004a72
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x17
jge 0x10004ab1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x367eff0a]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10004aac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10004a69
mov eax, 1
imul ecx, eax, 0x17
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10004ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], 0
jmp 0x10004af2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 9
jge 0x10004b31
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 0x1106d2ab]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10004b2c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10004ae9
mov eax, 1
imul ecx, eax, 9
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10004b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x79
mov dword [ebp - 4], 0
jmp 0x10004b72
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x10004bb1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4c7b1004]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10004bac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10004b69
mov eax, 1
imul ecx, eax, 0x12
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4