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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi], ecx
je 0x40ef29
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x40eee5
sub eax, 1
je 0x40eece
sub eax, 1
je 0x40eeba
lea ecx, [ebp + 0xf]
call fcn.00403eb4
push 0x44bb18
jmp 0x40ef36
mov edx, dword [ebp + 0xc]
mov ecx, edx
push 2
pop esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eec5
jmp 0x40eee0
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, edx
inc esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eed9
sub ecx, ebx
inc ecx
jmp 0x40eef9
push dword [ebp + 0xc]
call fcn.0042bffd
pop ecx
push 4
pop esi
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, esi
push ecx
push edx
push esi
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40ef23
push eax
lea ecx, [ebp + 0xc]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 0xc]
jmp 0x40ef39
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp + 0xf]
call fcn.0040e04e
push 0x44cc00
lea eax, [ebp + 0xf]
push eax
call fcn.00425e44
int3

Function at 0x40f905
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x40fe52
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
jne 0x40fecc
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40fe8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
jmp 0x40fedc
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40f0d7
push edi
push edi
mov dword [ebp - 4], edi
call fcn.0042c448
add esp, 0x18
mov dword [esi + 8], eax
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 0xb]
call fcn.0040e028
push 0x44cbc8
lea eax, [ebp + 0xb]
push eax
call fcn.00425e44
int3

Function at 0x4135f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413606
sub ecx, edx
lea eax, [ebp - 4]
push esi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
je 0x413635
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 0xc]
push eax
call fcn.00425e44
int3
Function at 0x415344
Capabilities:
Query environment variable

Disassembly:
push 0xc4
mov eax, 0x43956b
call fcn.00423b6c
mov dword [ebp - 0xc8], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
push 7
mov dword [ebp - 0xc4], ebx
pop edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xcc], edi
jb 0x415380
mov eax, dword [edi]
jmp 0x415382
mov eax, edi
xor ecx, ecx
mov word [eax], cx
inc ecx
mov dword [ebp - 0x2c], edx
xor eax, eax
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
push 2
pop eax
push 0x104
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004130f8
jmp 0x415460
movzx edx, word [esi]
cmp edx, 0x24
je 0x4153ef
cmp dword [edi + 0x14], 8
jb 0x4153d0
mov ecx, dword [edi]
jmp 0x4153d2
mov ecx, edi
mov eax, dword [edi + 0x10]
push edx
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0041624e
push 2
pop eax
add esi, eax
jmp 0x415460
push 2
pop eax
add esi, eax
cmp word [esi], bx
je 0x41546d
add esi, eax
cmp word [esi], bx
je 0x41546d
push 0x29
push esi
call fcn.00428009
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41546b
sub eax, esi
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
push esi
call fcn.00402136
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0xc8]
push eax
call fcn.00415514
test al, al
je 0x41545b
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push esi
call fcn.00402b0e
pop ecx
push eax
push esi
push dword [edi + 0x10]
mov ecx, edi
call fcn.0041633a
lea esi, [ebx + 2]
xor ebx, ebx
cmp word [esi], bx
jne 0x4153be
jmp 0x41546d
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x415477
mov eax, dword [edi]
jmp 0x415479
mov eax, edi
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x4154ad
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004016a0
push 0x44b37c
lea eax, [ebp - 0xc0]
push eax
call fcn.00425e44
xor ecx, ecx
mov eax, ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423c6a
cmp dword [edi + 0x14], 8
mov esi, eax
pop ecx
jb 0x4154d0
mov eax, dword [edi]
jmp 0x4154d2
mov eax, edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.00402b0e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402136
push esi
call fcn.0042ea16
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401f44
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401f44
mov eax, edi
call fcn.00423b1e
ret 8
Function at 0x418906
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x418984
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x418984
lea eax, [esi + 1]
push eax
call fcn.00423c6a
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x418959
push 0x44dd78
lea eax, [ebp + 0xb]
jmp 0x41899b
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418984
mov eax, dword [ebx]
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
push eax
call fcn.00425e44
int3
Function at 0x41e673
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
cmp ecx, esi
jae 0x41e6d3
mov edx, dword [ebp + 0xc]
lea eax, [ecx + edx]
cmp eax, esi
jbe 0x41e699
sub esi, ecx
jmp 0x41e69b
mov esi, edx
mov eax, dword [edi + 8]
push ebx
push ebx
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41e6d3
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e6d3
cmp dword [ebp - 4], esi
jb 0x41e6d3
add dword [edi + 0x10], esi
mov eax, esi
jmp 0x41e6d5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ebe5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x451334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ec01
sub ecx, edx
cmp ecx, 2
je 0x41ec8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41ec8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41ec8b
cmp eax, 3
jne 0x41ec9c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042b5d7
add esp, 0x10
cmp eax, 0x50
jne 0x41ec4e
push 0x7b
jmp 0x41ec9d
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00426754
pop ecx
pop ecx
test eax, eax
je 0x41ec4a
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0041ebe5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41ec8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ec9c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423afa
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp - 0x10c]
push eax
call fcn.00425e44
int3
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x423a05
pop dword [ebp - 0x34]
mov eax, 0x423a05
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3b6d5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4b05
xor edx, edx
add edx, eax
mov esi, 0x66c3d6be
sub esi, 0x667f10be
add esi, dword [ebp - 0x34]
mov ebx, 0x86710827
add dword [ebp - 0x28], ebx
mov edi, dword [esi]
xor dword [ebp - 0x10], esi
sub edi, ebx
mov dword [edx], edi
sub dword [ebp - 0x30], edx
add edx, 0x36d53d64
add edx, 0xc92ac2a0
add esi, 4
loop 0x423a50
add eax, 0x69c31888
add eax, 0x963e065f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x79ca9114
sub ecx, 0x798a9114
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10008130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bc57
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101165dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [eax], vtable.IWebLoginHandler.0
mov dword [eax + 4], 3
mov dword [eax + 8], ecx
mov edx, 7
xor esi, esi
mov dword [eax + 0x20], edx
mov dword [eax + 0x1c], ecx
mov word [eax + 0xc], si
mov dword [ebp - 4], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov byte [ebp - 4], 1
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov byte [ebp - 4], 2
mov dword [eax + 0x5c], edx
mov dword [eax + 0x58], ecx
mov word [eax + 0x48], si
mov byte [ebp - 4], 3
mov dword [eax + 0x78], edx
mov dword [eax + 0x74], ecx
mov word [eax + 0x64], cx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012b90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
push eax
push edx
lea ecx, [ebp - 0x21c]
call fcn.100122b0
mov ebx, eax
cmp ebx, esi
je 0x10012c24
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x10012c1d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov eax, ebx
jmp 0x10012d0a
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x21c]
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x210]
push edx
push esi
push eax
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10012cac
jmp 0x10012c60
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.10012b90
mov ebx, eax
cmp ebx, esi
jne 0x10012bff
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [ebp - 0x21c]
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push edx
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10012c60
mov eax, dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x10012cc5
push eax
call ebx
mov dword [ebp - 0x21c], esi
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x218], esi
push eax
cmp ecx, esi
je 0x10012ce3
mov edx, dword [edi]
push edx
call fcn.100120f0
jmp 0x10012cec
mov ecx, dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x10012d08
push eax
call ebx
mov dword [ebp - 0x21c], esi
mov eax, edi
mov dword [ebp - 0x218], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10027df5
mov esp, ebp
pop ebp
ret 4
Function at 0x100151f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003dcd6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
mov byte [ebp - 4], 1
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x1001526d
call fcn.10012030
mov edi, eax
jmp 0x10015352
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10015286
call fcn.10012030
jmp 0x10015349
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x100152a4
call fcn.10012030
jmp 0x10015349
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x100152c5
mov edi, 0x8007000e
jmp 0x1001534b
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.100138c0
mov dword [ebp - 4], 1
jmp 0x100152fd
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1001530e
mov edi, 0x8007000e
jmp 0x1001534b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10015327
call fcn.10012030
jmp 0x10015349
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.10014ec0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x1001536f
lea ecx, [ebp - 0x418]
call fcn.10012a40
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10027df5
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10018b87
test al, 0x10
jne 0x10018b87
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10018b8b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10018be1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x10018bd8
push 5
push 0
push edi
call esi
push 5
push edi
push ebx
call esi
pop esi
jmp 0x10018bf3
push str.wininit.ini
push edi
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10027df5
leave
ret

Function at 0x10018ce9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10018d14
mov eax, dword [ecx + 4]
test eax, eax
je 0x10018d14
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1002b7b2
sub eax, dword [ebp + 0xc]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x10018d16
xor eax, eax
pop ebp
ret 8
Function at 0x10018d51
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1890
call fcn.10028aa0
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1890], ebx
mov dword [ebp - 0x1888], esi
test ebx, ebx
je 0x10018fbc
and dword [ebp - 0x188c], 0
test esi, esi
jne 0x10018dc2
push 0x800
lea eax, [ebp - 0x1884]
push esi
push eax
call fcn.10027e60
lea eax, [ebp - 0x1884]
push eax
call fcn.1001905b
lea eax, [ebp - 0x1884]
add esp, 0x10
mov dword [ebp - 0x1888], eax
mov esi, eax
push esi
call fcn.1002b508
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
jne 0x10018ddb
mov dword [ebp - 0x188c], 1
push ebx
call fcn.10018b6d
pop ecx
test eax, eax
je 0x10018fbc
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
jne 0x10018dfd
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10018e03
push 0xb
push edi
push ebx
call esi
test eax, eax
jne 0x10018fbc
mov ebx, 0x7fe
push ebx
push eax
mov word [ebp - 0x1084], ax
lea eax, [ebp - 0x1082]
push eax
call fcn.10027e60
xor eax, eax
push ebx
mov word [ebp - 0x884], ax
xor ebx, ebx
lea eax, [ebp - 0x882]
push ebx
push eax
call fcn.10027e60
add esp, 0x18
cmp edi, ebx
je 0x10018eac
push edi
call fcn.10018b6d
pop ecx
test eax, eax
je 0x10018ea1
push edi
lea eax, [ebp - 0x884]
push str._s.bak
push eax
call fcn.10002050
add esp, 0xc
push 0x5c
push edi
call fcn.10029811
pop ecx
pop ecx
cmp dword [ebp - 0x188c], ebx
je 0x10018e7a
add eax, 2
push eax
push dword [ebp - 0x1888]
lea eax, [ebp - 0x1084]
push str._s_s.bak
push eax
call fcn.10002050
add esp, 0x10
push 0xb
lea eax, [ebp - 0x884]
push eax
push edi
call esi
push 0xb
push edi
push dword [ebp - 0x1890]
jmp 0x10018f01
mov edi, dword [ebp - 0x1890]
push edi
lea eax, [ebp - 0x884]
push str._s.bak
push eax
call fcn.10002050
add esp, 0xc
push 0x5c
push edi
call fcn.10029811
pop ecx
pop ecx
cmp dword [ebp - 0x188c], ebx
je 0x10018edc
add eax, 2
push eax
push dword [ebp - 0x1888]
lea eax, [ebp - 0x1084]
push str._s_s.bak
push eax
call fcn.10002050
add esp, 0x10
push 0xb
lea eax, [ebp - 0x884]
push eax
push edi
call esi
cmp word [ebp - 0x1084], bx
je 0x10018fbc
cmp word [ebp - 0x884], bx
je 0x10018fbc
lea eax, [ebp - 0x884]
push eax
call fcn.10018b6d
pop ecx
test eax, eax
je 0x10018fbc
push 0
call fcn.10028c8f
mov edi, eax
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.10027e60
push edi
lea eax, [ebp - 0x84]
push 0x1003ff64
push eax
call fcn.10002050
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1084]
push eax
call fcn.1002baa0
add esp, 0x24
push 0xb
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x884]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x1084]
jne 0x10018fb2
push str..bak
push eax
call fcn.1002baa0
mov eax, ebx
pop ecx
inc ebx
pop ecx
cmp eax, 0xa
jl 0x10018f7b
lea eax, [ebp - 0x884]
push 0
push eax
call fcn.10018b8b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027df5
leave
ret
Function at 0x1001905b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x10019097
test eax, eax
je 0x10019097
lea eax, [ebp - 0x804]
push eax
jmp 0x1001909c
push str.c:_temp
push edi
call fcn.1002bad1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10027df5
leave
ret

Function at 0x10019629
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10019655
mov dword [ecx], eax
jmp 0x10019665
cmp eax, 0xffffffff
je 0x10019665
test eax, eax
je 0x10019665
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x1001988d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x100]
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 1], cl
je 0x100198ec
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x10]
inc byte [ebp + 0xb]
movzx esi, byte [ebp + 0xb]
mov dl, byte [esi + eax]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
mov bl, byte [ecx + eax]
mov byte [ecx + eax], dl
movzx ecx, bl
movzx edx, dl
add ecx, edx
and ecx, 0xff
mov byte [esi + eax], bl
mov cl, byte [ecx + eax]
xor byte [edi], cl
inc edi
cmp dword [ebp + 0x10], 0
jne 0x100198b2
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 1]
mov byte [eax + 0x101], cl
leave
ret

Function at 0x10027df5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101165dc]
jne 0x10027dff
repz ret
jmp fcn.1002d5fc