joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10030014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov edx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], edx
lea eax, [edi - 0x30]
mov dword [ebp - 0x110], edi
cmp eax, 0x9fffd0
ja 0x100036f7
test edx, edx
je 0x100035f1
mov ecx, 0x40
lea edi, [ebp - 0x108]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x110]
test esi, esi
jne 0x10003658
test edx, edx
je 0x1000362c
lea eax, [ebp - 0x108]
mov edx, edi
push eax
mov ecx, ebx
call fcn.100038f0
add esp, 4
test edi, edi
je 0x1000362c
lea ecx, [edi - 1]
test ecx, ecx
je 0x1000362c
nop word [eax + eax]
mov al, byte [ebx + ecx - 1]
xor byte [ebx + ecx], al
sub ecx, 1
jne 0x10003620
cmp dword [ebx + 0x14], edi
ja 0x10003701
mov ecx, ebx
call fcn.10002ef0
test al, al
je 0x10003701
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011dc1
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10003663
mov dword [esi], edi
jmp 0x100036f7
lea eax, [edi + 4]
push eax
push 8
push dword [0x10031d24]
call dword [0x10031a10]
mov dword [esi], eax
test eax, eax
je 0x100036f7
push edi
push ebx
push eax
call fcn.100135b0
add esp, 0xc
cmp dword [ebp - 0x114], 0
je 0x100036bc
mov ecx, dword [esi]
lea eax, [ebp - 0x108]
push eax
mov edx, edi
call fcn.100038f0
mov edx, dword [esi]
lea ecx, [edi - 1]
add esp, 4
test ecx, ecx
je 0x100036bc
nop dword [eax + eax]
mov al, byte [ecx + edx - 1]
xor byte [ecx + edx], al
sub ecx, 1
jne 0x100036b0
mov ecx, dword [esi]
cmp dword [ecx + 0x14], edi
ja 0x100036e2
call fcn.10002ef0
test al, al
je 0x100036e2
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011dc1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x100036f7
push eax
push 0
push dword [0x10031d24]
call dword [0x10031a20]
test esi, esi
je 0x10003701
mov dword [esi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011dc1
mov esp, ebp
pop ebp
ret
Function at 0x10003720
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
call dword [0x10031a24]
cmp eax, dword [0x100326e8]
je 0x10003768
mov dword [0x100326e8], eax
mov edx, 1
mov dword [0x10031d28], eax
nop dword [eax]
mov eax, dword [edx*4 + 0x10031d24]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x10031d28], eax
inc edx
cmp edx, 0x270
jl 0x10003740
jmp 0x10003778
mov eax, dword [0x100326ec]
cmp eax, 0x270
jl 0x1000383a
xor edx, edx
nop word [eax + eax]
mov ecx, dword [edx*4 + 0x10031d2c]
xor ecx, dword [edx*4 + 0x10031d28]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x10031d28]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x1002bd00]
xor ecx, dword [edx*4 + 0x1003235c]
mov dword [edx*4 + 0x10031d28], ecx
inc edx
cmp edx, 0xe3
jl 0x10003780
mov eax, dword [edx*4 + 0x10031d28]
push esi
push edi
lea edi, [edx*4 + 0x10031d28]
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x1002bd00]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, edx
mov eax, dword [edx]
cmp edi, 0x100326e4
jl 0x100037d0
mov ecx, dword [0x100326e4]
xor ecx, dword [0x10031d28]
and ecx, 0x7fffffff
xor ecx, dword [0x100326e4]
mov eax, ecx
shr ecx, 1
and eax, 1
pop edi
pop esi
xor ecx, dword [eax*4 + 0x1002bd00]
xor ecx, dword [0x10032358]
xor eax, eax
mov dword [0x100326e4], ecx
mov ecx, dword [eax*4 + 0x10031d28]
inc eax
mov dword [0x100326ec], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push edi
xor edi, edi
mov dword [ebp - 8], esi
test esi, esi
je 0x10003964
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx edx, byte [esi + eax]
movzx ecx, bl
add edx, ecx
movzx ecx, dl
mov edx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0xb]
cmp edi, dword [ebp - 8]
jb 0x10003916
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e210
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x10030014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.100140b0
add esp, 0xc
mov word [ebp - 0x20], 0
xorps xmm0, xmm0
mov byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x40]
movaps xmmword [ebp - 0x40], xmm0
movaps xmmword [ebp - 0x30], xmm0
call fcn.10004f00
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push 0x1a
push 0
call dword [0x100319b0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x148]
push 0x1002c4c0
push eax
call esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call esi
push 0
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x1002c4c0
lea eax, [ebp - 0x148]
push eax
call esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call esi
push str..exe
lea eax, [ebp - 0x148]
push eax
call esi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10031aa4], eax
pop esi
call fcn.10011dc1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1000e310
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x10030014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.100140b0
add esp, 0xc
mov word [ebp - 0x20], 0
xorps xmm0, xmm0
mov byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x40]
movaps xmmword [ebp - 0x40], xmm0
movaps xmmword [ebp - 0x30], xmm0
call fcn.10004f00
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push 0x1a
push 0
call dword [0x100319b0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x148]
push 0x1002c4c0
push eax
call esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call esi
push 0
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x1002c4c0
lea eax, [ebp - 0x148]
push eax
call esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call esi
xor eax, eax
cmp byte [ebp - 0x148], al
je 0x1000e3df
inc eax
cmp byte [ebp + eax - 0x148], 0
jne 0x1000e3d4
push 0x104
lea ecx, [ebp - 0x350]
push ecx
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
call dword [0x10031a3c]
xor ecx, ecx
cmp eax, 0x104
cmovge eax, ecx
mov word [ebp + eax*2 - 0x350], cx
lea eax, [ebp - 0x350]
push eax
call dword [0x10031980]
cmp eax, 0xffffffff
je 0x1000e446
test al, 0x10
jne 0x1000e446
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10031aa8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10011dc1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10016cad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10016cec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016cec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016cec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10016cec
cmp dword [ecx + 0x74], 0xe
jbe 0x10016cec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001876b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100264b0
push 0x100264a8
push str.FlsAlloc
push 0x1f
call fcn.10018687
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001879f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022150]
call esi
jmp 0x100187a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100187e9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100264c0
push 0x100264b8
push str.FlsGetValue
push 0x21
call fcn.10018687
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018820
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10018828
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100264c8
push 0x100264c0
push str.FlsSetValue
push 0x22
call fcn.10018687
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018862
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10022150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c1e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001c282
push ebx
push esi
call fcn.1001c1ae
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100183f3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c22f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c281
push edi
push eax
call fcn.10018315
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c24f
call fcn.100182db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c280
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100183f3
add esp, 0x20
test eax, eax
jne 0x1001c26e
push edi
call fcn.100182db
jmp 0x1001c276
push ebx
call fcn.100182db
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40176f
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov byte [ebp - 4], dl
mov dword [ebp - 8], ecx
cmp byte [0x4c2899], dl
je 0x401853
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x418
push ecx
call esi
cmp byte [ebp - 4], bl
je 0x40181c
mov eax, dword [0x4c81e4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x401850
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
xor eax, eax
push 0x44
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x419
push dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0x13
mov byte [ebp - 0x18], 4
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push ebx
mov edi, 0x443
push edi
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
mov byte [0x4c2899], 1
jmp 0x401850
push ebx
push 0x13
push 0x419
push dword [ebp - 8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40184a
push ebx
push eax
mov edi, 0x416
push edi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push eax
push edi
push dword [ebp - 8]
call esi
mov byte [0x4c2899], bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.00401dea
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x401e8a
mov eax, 0x48e94c
push edi
push str.VirusGuard.exe
push eax
push 0x48ef58
call fcn.0043c727
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x60], esi
pop edi
cmp dword [ebp - 0xc], ebx
jne 0x401ec9
mov eax, 0x48e94c
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push ebx
push 8
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x401eef
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x1c]
cmp byte [ebp - 8], bl
je 0x401eff
mov ecx, dword [ebp - 0xc]
call fcn.00444521
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402433
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x40247b
push esi
push 0x7c
call fcn.00444d68
pop ecx
test eax, eax
je 0x402458
push dword [esp + 0xc]
mov ecx, eax
call fcn.00401f3f
mov esi, eax
jmp 0x40245a
xor esi, esi
mov eax, dword [esi + 0x24]
push dword [eax + 4]
mov ecx, esi
push 0x418
call fcn.0044f9fd
push 0
mov dword [edi + 0x14], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop edi
ret 4
Function at 0x4033ed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
jbe 0x4034a3
push ebx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x30]
push dword [ebp + 8]
shl edi, 2
mov ebx, dword [edi + eax]
lea ecx, [ebx + 8]
call fcn.00402d50
test al, al
jne 0x40345e
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x40342b
mov ebx, 0x48e94c
push 0x28
push dword [ebp + 8]
push ebx
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x403492
mov eax, dword [esi + 0x30]
mov eax, dword [edi + eax]
add eax, 8
mov eax, dword [eax]
test eax, eax
jne 0x403451
mov eax, 0x48e94c
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi + 0x30]
mov ebx, dword [edi + eax]
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
sub eax, dword [ebp - 4]
mov ecx, dword [esi + 0x30]
shl eax, 2
push eax
add ecx, edi
lea eax, [ecx + 4]
push eax
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
test ebx, ebx
je 0x40348f
mov ecx, ebx
call fcn.00410e75
push ebx
call fcn.004445ee
pop ecx
dec dword [ebp - 4]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x38]
jb 0x403404
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x410ea9
Capabilities:
Create directory

Disassembly:
push ebx
push esi
call fcn.00410cbc
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x410ebd
mov eax, 0x48e94c
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x410ed6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x410ed8
mov bl, 1
mov ecx, esi
call fcn.00444521
pop esi
mov al, bl
pop ebx
ret

Function at 0x410fa2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ebx, 0x48e94c
test eax, eax
jne 0x410fbc
mov eax, ebx
mov ecx, dword [0x4c2a18]
push eax
call fcn.00402f35
mov dword [ebp - 4], eax
test eax, eax
jne 0x410ff1
mov ecx, dword [0x4c2a18]
call fcn.004198e8
mov eax, dword [esi]
test eax, eax
jne 0x410fe2
mov eax, ebx
mov ecx, dword [0x4c2a18]
push eax
call fcn.00402f35
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
jne 0x410ff9
mov eax, ebx
push edi
mov ecx, eax
call fcn.004139a8
mov eax, dword [esi + 8]
mov edi, eax
test eax, eax
jne 0x41100c
mov edi, ebx
mov ecx, dword [0x4c2a18]
push 2
lea eax, [ebp - 8]
push eax
call fcn.00450da4
push eax
push edi
lea ecx, [ebp - 0xa8]
call fcn.00452f27
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x84]
test ecx, ecx
je 0x411062
push 0x43
call fcn.0043ad70
push eax
lea ecx, [ebp - 0x30]
call fcn.00452dd3
lea ecx, [ebp - 0x30]
call fcn.00452b46
lea ecx, [ebp - 0x30]
test eax, eax
je 0x41105d
call fcn.00452ae7
jmp 0x4110b4
call fcn.00452ae7
lea ecx, [ebp - 0xa8]
call fcn.004530f6
mov edi, eax
test edi, edi
je 0x4110b4
push 0x100
lea edx, [ebp - 0x2a8]
mov ecx, edi
call fcn.00468c87
mov eax, dword [esi]
test eax, eax
jne 0x41108d
mov eax, ebx
push 0
push 0
push edi
lea ecx, [ebp - 0x2a8]
push ecx
push eax
push str.The_install_of__s_failed._n__s__d_.
call fcn.0043c727
add esp, 0x10
push eax
push dword [0x4c8074]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 8]
pop edi
test eax, eax
jne 0x4110be
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, esi
call fcn.00410e54
push esi
call fcn.004445ee
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.00452d4d
xor ecx, ecx
call fcn.00444521
pop esi
pop ebx
leave
ret
Function at 0x4123ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
lea eax, [ebp - 0x410]
push eax
mov esi, 0x104
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x618]
push eax
push 0
push 0x4906e4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x41242e
call sub.MSVCRT.dll_rand
push eax
call sub.MSVCRT.dll_rand
push eax
push str.c:_u_u.tmp
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0043c65e
add esp, 0x14
test edi, edi
je 0x412499
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x412437
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x208]
call fcn.00411c90
mov eax, edi
mov edx, edi
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x412462
sub eax, edx
lea edi, [ebp - 0x208]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x412476
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
jmp 0x41249f
lea ecx, [ebp - 0x618]
call fcn.00444d11
pop edi
pop esi
leave
ret

Function at 0x4124a8
Capabilities:
Create directory

Disassembly:
push esi
call fcn.00410cbc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0x40
call fcn.00444d68
pop ecx
test eax, eax
je 0x4124d0
mov ecx, eax
call fcn.00411cea
mov ecx, eax
jmp 0x4124d2
xor ecx, ecx
push esi
mov dword [0x4c2a18], ecx
call fcn.004197fc
mov ecx, 0x4c2a78
pop esi
jmp fcn.00411a7b

Function at 0x414931
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, ecx
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x414967
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x414967
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call edi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x41677d
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x416785
xor al, al
jmp 0x4167a0
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov edx, eax
xor edx, 3
mov dl, byte [edx + ecx]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x14
jne 0x416788
mov al, 1
pop esi
ret 4

Function at 0x4167a3
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov edx, dword [esp + 8]
mov ecx, eax
xor ecx, 3
mov cl, byte [ecx + edx]
mov edx, dword [esp + 4]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x14
jne 0x4167a5
ret 8
Function at 0x419c17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x419c61
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
test eax, eax
je 0x419c5d
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x184
call esi
push eax
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.00488f98
add esp, 0x20
call esi
jmp 0x419c91
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x419c8f
push eax
push dword [ebp + 0xc]
mov esi, 0x490
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x188
push esi
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.00488f98
add esp, 0x20
mov eax, esi
jmp 0x419c91
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x41c0f9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [edi + 0x10]
push ebx
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [eax], ebx
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
cmp dword [ecx + 8], ebx
je 0x41c203
mov dword [ebp - 8], ebx
mov esi, dword [ecx]
add esi, dword [ebp - 8]
test byte [esi + 0x21], 4
je 0x41c19f
cmp byte [esi + 0x20], bl
je 0x41c1dd
push dword [esi + 4]
mov ecx, dword [edi + 0x10]
push dword [esi]
add ecx, 0x2c
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call fcn.0041bf7c
cmp eax, 0xffffffff
jne 0x41c191
push ebx
push 1
push ebx
push dword [ebp - 0x10]
mov eax, esi
push dword [edi + 0x10]
push 1
call fcn.00419dd0
cmp eax, 0xffffffff
je 0x41c21d
push dword [esi + 4]
mov eax, dword [0x4c492c]
push dword [esi]
mov dword [esi + 0x14], eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x30]
push dword [esi + 8]
mov ecx, dword [edi + 0x10]
add ecx, 0x2c
push eax
call fcn.0041bf7c
cmp eax, ebx
jne 0x41c221
and byte [esi + 0x21], 0xfb
jmp 0x41c1dd
cmp byte [esi + 0x20], bl
jne 0x41c1dd
cmp byte [0x4c2fb2], bl
je 0x41c1dd
push ebx
push 1
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x10]
mov eax, esi
push ebx
call fcn.00419dd0
cmp eax, 0xffffffff
jne 0x41c1e8
mov eax, dword [ebp - 0x14]
cmp eax, 0xdf
je 0x41c1d9
cmp eax, 2
je 0x41c1d9
cmp eax, 3
jne 0x41c221
or byte [esi + 0x21], 4
mov al, byte [esi + 0x21]
shr al, 2
and al, 1
or byte [ebp - 1], al
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x34
cmp eax, dword [ecx + 8]
jne 0x41c123
cmp byte [ebp - 1], bl
jne 0x41c21d
mov ecx, dword [edi + 0x10]
add ecx, 0x2c
call fcn.00445577
mov ecx, dword [edi + 0x10]
call fcn.0041e967
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x41c21d