joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471cfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x471d68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x471d59
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x471d98
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x471d46
cmp byte [esp + 4], 1
sete bl
jmp 0x471d4d
call fcn.00471c38
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x471d60
call fcn.00471c38
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret

Function at 0x472190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048d4
xor eax, eax
push ebp
push 0x472251
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x472268
call fcn.00404a28
test eax, eax
jne 0x4721d8
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x472274
call fcn.00404738
test bl, bl
je 0x472217
lea edx, [ebp - 8]
mov eax, 0x472284
call fcn.00471e10
cmp dword [ebp - 8], 0
je 0x472217
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004048e4
push eax
mov eax, dword [ebp - 8]
call fcn.004048e4
push eax
push 0x47228c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x472236
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004048e4
push eax
push 0x47228c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472258
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404458
ret

Function at 0x472294
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47234a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040912c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040c020
mov eax, dword [ebx]
call fcn.00472358
test al, al
jne 0x47232c
lea edx, [ebp - 0x114]
mov eax, dword [0x47e960]
mov eax, dword [eax]
call fcn.00457a74
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00408d7c
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040c020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472351
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404458
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004048e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x472371
test al, 0x10
jne 0x472375
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4728cc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048d4
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x472a53
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x472a70
call fcn.00404a28
test eax, eax
jne 0x472917
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x472a7c
call fcn.00404738
mov eax, esi
mov edx, 0x3c
call fcn.004738d4
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.0040272c
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.0040272c
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.0040272c
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.0040272c
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.0040272c
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.0040272c
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004046ec
push eax
mov eax, dword [ebp - 4]
call fcn.004048e4
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x472a0d
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404624
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404624
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404624
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404624
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404624
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404624
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 4]
call fcn.0040274c
mov eax, dword [esi + 0x10]
call fcn.0040274c
mov eax, dword [esi + 0x1c]
call fcn.0040274c
mov eax, dword [esi + 0x24]
call fcn.0040274c
mov eax, dword [esi + 0x2c]
call fcn.0040274c
mov eax, dword [esi + 0x34]
call fcn.0040274c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a5a
lea eax, [ebp - 4]
call fcn.00404434
ret
Function at 0x4736b0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.004048e4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x47376a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x473774]
fnstsw ax
sahf
je 0x473714
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.0047365c
fld qword [ebp + 8]
fcomp dword [0x473774]
fnstsw ax
sahf
je 0x473730
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.0047365c
fld qword [ebp + 0x10]
fcomp dword [0x473774]
fnstsw ax
sahf
je 0x47374c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.0047365c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4737b4
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.004048e4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47380f
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00473778
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x47381c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x47389f
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x47389f
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x47389f
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x47389f
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x47389f
xor edx, edx
push ebp
push 0x473895
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00417c58
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47389f
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x474440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x474459
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x474466
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x474484
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4744a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4744ef
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404690
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474a80
Capabilities:
Read data from internet
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax - 0x1009], 0
je 0x474ad1
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x168]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x164]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x4795d0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479725
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x47fcd0]
call fcn.004048e4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x479698
mov dl, 1
mov eax, dword [0x413720]
call fcn.00403614
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x479688
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x479734
mov edx, 0x479734
mov eax, dword [0x47f714]
call fcn.0047381c
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00417a28
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47968f
mov eax, dword [ebp - 0x10]
call fcn.00403644
ret
push 1
push dword [0x47fcd0]
push 0x479744
lea edx, [ebp - 0x1c]
mov eax, dword [0x47e960]
mov eax, dword [eax]
call fcn.00457a74
push dword [ebp - 0x1c]
push 0x479744
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004047ac
mov eax, dword [ebp - 0x18]
call fcn.004048e4
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1d2], 0
je 0x479705
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1d4]
call dword [ebx + 0x1d0]
jmp 0x47970a
call fcn.004738ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47972c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404458
ret
Function at 0x401ad5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x18], eax
je 0x401bc0
cmp dword [ebp - 4], esi
je 0x401bc0
cmp dword [ebp - 0xc], esi
je 0x401bc0
cmp dword [ebp - 8], esi
je 0x401bc0
cmp dword [ebp - 0x10], esi
je 0x401bc0
cmp dword [ebp - 0x14], esi
je 0x401bc0
cmp eax, esi
je 0x401bc0
push str.__builtin__
call ebx
mov edi, eax
cmp edi, esi
pop ecx
je 0x401ba4
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x40da5c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x40dbe4], eax
mov esi, 0x40c0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401b8e
mov eax, dword [ebp - 0x10]
mov dword [0x40dad0], eax
mov eax, dword [ebp - 0x14]
mov dword [0x40ca24], eax
mov eax, dword [ebp - 0x18]
mov dword [0x40ca28], eax
xor eax, eax
jmp 0x401bc3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 8], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x401de7
cmp dword [ebp - 4], eax
je 0x401de7
cmp dword [ebp - 0xc], eax
je 0x401de7
cmp dword [ebp - 8], eax
je 0x401de7
cmp esi, eax
je 0x401de7
push 0x40c800
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401ad5
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x401de0
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x401dea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x11d5054b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3e5570d8
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
test esi, esi
push edi
jne 0x10001194
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1000124f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x20]
push edi
push esi
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000124f
cmp dword [ebp], 0
jbe 0x1000124f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000124f
mov edx, dword [ebp]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000124f
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, ebx
je 0x1000121b
test eax, eax
je 0x10001212
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 1
mov dword [edi], ebx
mov ecx, dword [ebp]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x100012c0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x34]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x34]
push 0x1000c018
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov byte [eax + 1], bl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], bl
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x140]
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x134]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000136a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x10001384
cmp eax, 2
je 0x10001384
mov dword [ebp + 8], ebx
jmp 0x100013bf
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 0x20
push ecx
push ebx
push ebx
push 0x560000
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100013bf
mov edx, dword [esp + 0x1c]
mov dword [ebp + 8], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x10001550
Capabilities:
Create thread
Delete file
Get common file path
Move file

Disassembly:
mov ecx, dword [0x1000c2f8]
sub esp, 0x400
mov eax, 1
push ebx
push ebp
cmp ecx, eax
push edi
je 0x1000169f
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10c]
push 0xff
push eax
push ebx
call ebp
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbslwr]
lea edx, [esp + 0x110]
push str.rundll32.exe
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 0xc
test eax, eax
jne 0x100015d1
pop edi
pop ebp
pop ebx
add esp, 0x400
ret 0x10
push esi
push ebx
push ebx
push ebx
push 0x100016b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x210]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x1000c2f4]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x311]
mov byte [esp + 0x310], bl
push 0xff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x314]
push ecx
push edx
stosw word es:[edi], ax
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x210]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x310]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp esi, ebx
je 0x10001699
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x400
ret 0x10
Function at 0x10001700
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x120]
push 0xff
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
lea edx, [esp + 0x20]
push ecx
push str._skdcom.dll
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push ebx
push 4
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000183a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100017ad
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call ebp
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [esp + 0x24], eax
call ebp
mov ebp, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10001809
cmp ebp, ebx
je 0x10001809
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
call eax
test eax, eax
je 0x1000181d
push ebx
push 4
push 3
push ebx
push 3
lea edx, [esp + 0x34]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
jne 0x1000181d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, 0xffffffff
jne 0x10001836
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ebp, dword [esp + 0x18]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ebx
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x228]
push 0x200
push edx
push esi
mov dword [esp + 0x28], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0x200
jne 0x10001893
lea eax, [esp + 0x220]
push 0x200
push eax
call fcn.100016c0
add esp, 8
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret