joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410760
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c7468
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
mov dword [esp + 0x24], 2
mov edi, dword [esp + 0x2c]
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410833
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41081e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov ebp, dword [esp + 0x2c]
mov esi, dword [ebp - 0xc]
push esi
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41084b
jmp fcn.00401e70
mov edx, dword [esp + 0x10]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x28]
push ecx
push eax
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410890
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x41c4b0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x274]
test eax, eax
je 0x41c20c
mov ecx, dword [esi + 0x278]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41c211
call fcn.004a79fe
mov ecx, dword [esi + 0x274]
lea eax, [edi*8]
sub eax, edi
mov edx, dword [ecx + eax*4 + 0x18]
cmp dword [edx - 0xc], 0
lea eax, [ecx + eax*4]
je 0x41c255
mov eax, dword [eax + 0x10]
sub eax, 1
je 0x41c257
sub eax, 1
jne 0x41c255
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x41c255
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41c255
mov esi, dword [esi + 0x38]
push esi
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov ecx, esi
pop esi
jmp 0x41c4b0
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x130]
test eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x7c], edi
je 0x41c4f0
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [esi + 0x130], 0
push esi
call fcn.00421990
push 5
push 0
push 0
push edi
push 0x4d9900
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
mov dword [ebp - 0x80], ebx
ja 0x41c629
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str..htm
push 0x80000000
call esi
test eax, eax
jne 0x41c629
lea ecx, [ebp - 0x78]
push ecx
lea edi, [ebp - 0x74]
call fcn.00407560
test eax, eax
jne 0x41c629
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
mov edx, edi
push edx
call ebx
lea eax, [ebp - 0x78]
push eax
push 1
push 0
mov ecx, edi
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x41c624
lea edx, [ebp - 0x78]
push edx
call fcn.00407560
test eax, eax
jne 0x41c624
mov eax, edi
push str.__1_
push eax
call fcn.004a84f5
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c5c4
mov ecx, edi
push 0x4d994c
push ecx
call fcn.004a84f5
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c5c4
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x76]
jmp 0x41c5c9
mov word [esi], 0
push 0x4d8e7c
push esi
call ebx
mov eax, dword [ebp - 0x7c]
push eax
push esi
call ebx
call dword [0x501c04]
lea ecx, [ebp - 0x74]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x41c601
xor eax, eax
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x41c62b
lea esi, [eax + eax]
mov eax, esi
call fcn.004aedf0
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.00406c70
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x41c62b
mov eax, dword [ebp - 0x80]
jmp 0x41c62b
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.004a74b2
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret
Function at 0x4c4792
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004c4727
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ac850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4c47e1
cmp dword [ebp - 0x1c], 5
jb 0x4c47f9
jmp 0x4c47f5
cmp dword [ebp - 0x10], 1
jne 0x4c47f9
cmp dword [ebp - 0x1c], 4
ja 0x4c47f5
jne 0x4c47f9
cmp dword [ebp - 0x18], 0
jbe 0x4c47f9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d8d98
call fcn.004c45fb
test eax, eax
jge 0x4c481a
mov byte [0x507278], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a74b2
add ebp, 0x78
leave
ret

Function at 0x5e0261
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov esi, dword [eax + 0x20]
add esi, edi
xor ecx, ecx
push esi
mov esi, dword [esi]
add esi, edi
push eax
call fcn.005e02a8
pop eax
pop esi
cmp ebx, edx
je 0x5e028b
add esi, 4
inc ecx
cmp ecx, dword [eax + 0x18]
jb 0x5e0271
cmp ebx, edx
jne 0x5e02a5
mov esi, dword [eax + 0x24]
add esi, edi
movzx ecx, word [esi + ecx*2]
mov esi, dword [eax + 0x1c]
add esi, edi
mov esi, dword [esi + ecx*4]
add esi, edi
xchg esi, eax
jmp 0x5e02a7
xor eax, eax
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001200
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
and byte [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x498], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x497]
cmp dword [ebp + 0x18], 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x1000130a
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi + 0xc]
call edi
lea eax, [ebp - 0x290]
push 0x4000
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x10001320
call fcn.100029ed
push eax
lea eax, [ebp - 0x208]
push 0x100150f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.10001c1a
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x498]
push eax
push dword [esi + 0xc]
call fcn.100035ff
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
call fcn.1000a6f0
pop ecx
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov eax, dword [esi + 0x20]
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
push dword [esi + 0x24]
call fcn.10001803
add esp, 0x10
test eax, eax
jne 0x1000130e
push 1
mov word [esi + 0x38], 3
call fcn.1000a5a0
pop ecx
xor eax, eax
jmp 0x10001323
push 0
lea eax, [ebp - 0x208]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x100024a4
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
mov byte [ebp - 0x424], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x423]
mov esi, str.DllRegisterServer
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x14]
push 0x8000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
jge 0x1000250d
push 2
pop eax
jmp 0x100025b6
lea eax, [ebp - 0x21c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x1000252e
push str.Failed_getting_curdir
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
sub eax, 0x40
push eax
call fcn.1000b820
pop ecx
lea eax, [ebp - 0x424]
push eax
push esi
call fcn.1000363b
pop ecx
lea eax, [ebp - 0x424]
pop ecx
push eax
call fcn.1000b730
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x1000256c
push 3
pop ebx
jmp 0x100025ae
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x10002580
push 4
pop ebx
jmp 0x100025a7
call eax
test eax, eax
jge 0x10002589
push 5
pop ebx
movsx eax, byte [ebp - 0x21c]
sub eax, 0x40
push eax
call fcn.1000b820
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.1000b730
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000271b
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
or dword [ebp - 4], 0xffffffff
push edi
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100027b5
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x100027b5
push ebx
push edi
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x100027b1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor ecx, ecx
cmp eax, ebx
setne cl
dec ecx
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100027b5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002824
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1450
call fcn.1000b8a0
and byte [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x618], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x617]
and byte [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
push dword [ebp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
stosb byte es:[edi], al
mov edi, 0x100150f4
push edi
push 0x1001aa60
call esi
add esp, 0xc
lea eax, [ebp - 0xa28]
push dword [ebp + 0x10]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xc30]
push dword [ebp + 8]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1248]
push dword [ebp + 0xc]
push edi
push eax
call esi
add esp, 0xc
push str.vb6stkit.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
mov dword [ebp + 0x18], eax
call fcn.10002654
pop ecx
lea eax, [ebp - 0x208]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x208]
push eax
call fcn.1000357b
pop ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 8]
call fcn.100035ff
pop ecx
lea eax, [ebp - 0x618]
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1248]
push eax
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.100035ff
pop ecx
lea eax, [ebp - 0x820]
pop ecx
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.1000363b
pop ecx
lea eax, [ebp - 0x1450]
pop ecx
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.1000363b
pop ecx
pop ecx
call fcn.10002a05
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push dword [ebp + 0x14]
push 1
push eax
push 0
call fcn.10001327
add esp, 0x28
mov esi, eax
call fcn.10002a05
call fcn.100026b5
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp si, 0xe
setne al
pop edi
dec eax
pop esi
leave
ret 0x14
Function at 0x100033b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1000341f
xor eax, eax
lea ecx, [ebp - 4]
cmp dword [ebp + 0xc], eax
push ecx
je 0x100033db
push 2
jmp 0x100033dd
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1000341f
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x1000341f
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp byte [eax + edi - 2], 0x5c
je 0x1000342f
push edi
call esi
cmp eax, 0x103
jl 0x10003423
xor eax, eax
jmp 0x10003432
push 0x1001511c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x100034b5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1000b8d0
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
or dword [ebp - 0x2c], 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
je 0x10003512
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x10003517
cmp eax, 0x102
je 0x10003512
xor eax, eax
pop esi
leave
ret
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x10003512
xor eax, eax
cmp dword [ebp - 4], esi
setne al
dec eax
jmp 0x10003514

Function at 0x10004eac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x10004ef3
cmp edx, 0x10
jl 0x10004edf
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x10004ecc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x10004ef3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x10004eeb
and edx, 3
cmp edx, 3
jne 0x10004f07
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x10004f0c
cmp edx, 2
jne 0x10004f18
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x10004f1d
cmp edx, 1
jne 0x10004f23
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x1000a050
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000a067
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000a069
xor eax, eax
test eax, eax
je 0x1000a07a
push eax
call fcn.10009bf0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000a0ba
test byte [esp + 0xc], 0x80
je 0x1000a0ac
and al, 0xfe
jmp 0x1000a0ae
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1000a0ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10009bf0
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1000a5f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1000a6b0
mov eax, dword [0x1001a4f0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1000a614
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1001a4ec], 1
mov byte [0x1001a4e8], bl
jne 0x1000a66e
mov ecx, dword [0x1001d1b0]
test ecx, ecx
je 0x1000a65c
mov esi, dword [0x1001d1ac]
sub esi, 4
cmp esi, ecx
jb 0x1000a65c
mov eax, dword [esi]
test eax, eax
je 0x1000a655
call eax
mov ecx, dword [0x1001d1b0]
sub esi, 4
cmp esi, ecx
jae 0x1000a647
push 0x10015020
push 0x10015014
call fcn.1000a6d0
add esp, 8
push 0x10015028
push 0x10015024
call fcn.1000a6d0
add esp, 8
test ebx, ebx
je 0x1000a68d
call fcn.1000a6c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1001a4f0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000b230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x1000b25c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x1001d0a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x1000b297
push 2
push ebp
push ecx
call fcn.1000b5c0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000b3f9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x1000b341
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x1000b2f2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x1000b2df
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x1000b2c2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b3ea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1000b33d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x1000b2be
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000b3d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000b395
cmp eax, 5
jne 0x1000b37e
call fcn.10009c70
mov dword [eax], 9
call fcn.10009c80
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.10009bf0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x1000b3b5
cmp byte [ebp], 0x1a
jne 0x1000b3b5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10009c70
mov dword [eax], 0x1c
call fcn.10009c80
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1000b33d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b42a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x1000b341
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1000b341