joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57f89b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0057f91a
jae 0x57f8a7
xor ecx, ecx
call fcn.0057f91a
jae 0x57f8d1
xor eax, eax
call fcn.0057f91a
jae 0x57f8e2
mov al, 0x10
call fcn.0057f91a
adc al, al
jae 0x57f8c3
jne 0x57f90f
stosb byte es:[edi], al
jmp 0x57f8a8
call fcn.0057f926
dec ecx
loop 0x57f8ee
mov eax, ebp
call fcn.0057f924
jmp 0x57f910
lodsb al, byte [esi]
shr eax, 1
je 0x57f936
adc ecx, 2
mov ebp, eax
jmp 0x57f910
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0057f924
cmp eax, 0x7d00
jae 0x57f90e
cmp eax, 0x500
jae 0x57f90f
cmp eax, 0x7f
ja 0x57f910
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x57f8a8
pop ebp
ret 8
Function at 0x488430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c000]
push edi
jmp 0x48844a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x488451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488440
mov eax, 1
add ebx, ebx
jne 0x488463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x488458
jne 0x488474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x488458
xor ecx, ecx
sub eax, 3
jb 0x488488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4884fa
mov ebp, eax
add ebx, ebx
jne 0x488493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4884a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4884c4
inc ecx
add ebx, ebx
jne 0x4884b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4884a5
jne 0x4884c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4884a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4884e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4884d5
jmp 0x488446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4884e4
add edi, ecx
jmp 0x488446
pop esi
mov edi, esi
mov ecx, 0xd02
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x488502
cmp byte [edi], 0xc
jne 0x488502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x488507
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x488576
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x881b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x882d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x488534
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x882dc]
or eax, eax
je 0x488570
mov dword [ebx], eax
add ebx, 4
jmp 0x488551
call dword [esi + 0x882d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4885a7
cmp al, 0xef
ja 0x48859a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x48857c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x488589
mov ebp, dword [esi + 0x882e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4885db
sub esp, 0xffffff80
jmp 0x426597
Function at 0x40c040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43200c]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.0040fdd0
add esp, 0xc
push ebx
call fcn.00416709
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40c0ae
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.00416b82
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dec1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40c130
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov eax, dword [0x43200c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40c19c
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40c1d2
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x43379c
call fcn.00416b82
add esp, 0xc
mov esi, 0x43379c
mov word [0x4339a4], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040dec1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea ecx, [ebp - 0x258]
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40c160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00413fcc
cmp esi, 2
mov ecx, 9
cmove ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x40c187
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x40c187
call fcn.00413fcc
mov dword [eax], 2
jmp 0x40c187

Function at 0x41d389
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d5d4

Function at 0x41fba9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041fbb4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7e78615a
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x65e2125c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x30b810cd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0xcf521cf
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
mov ecx, 0x2db279da
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x10781a03
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x2e6eb40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.text
lea edi, [esi - 0x29d6000]
push edi
or ebp, 0xffffffff
jmp 0x2e6eb62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2e6eb69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2e6eb58
mov eax, 1
add ebx, ebx
jne 0x2e6eb7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x2e6eb8c
jne 0x2e6ebab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2e6ebab
dec eax
add ebx, ebx
jne 0x2e6eb98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x2e6eb70
add ebx, ebx
jne 0x2e6eba7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x2e6ebfd
xor ecx, ecx
sub eax, 3
jb 0x2e6ebc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2e6ec32
sar eax, 1
mov ebp, eax
jmp 0x2e6ebce
add ebx, ebx
jne 0x2e6ebce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2e6eb9c
inc ecx
add ebx, ebx
jne 0x2e6ebdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2e6eb9c
add ebx, ebx
jne 0x2e6ebe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x2e6ebde
jne 0x2e6ebfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2e6ebde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x2e6ec1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x2e6ec0e
jmp 0x2e6eb5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x2e6ec1c
add edi, ecx
jmp 0x2e6eb5e
pop esi
mov edi, esi
mov ecx, 0x5810
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x2e6ec3a
cmp byte [edi], 0x2a
jne 0x2e6ec3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x2e6ec3f
lea edi, [esi + 0x2a6a000]
mov eax, dword [edi]
or eax, eax
je 0x2e6ecae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a72d7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a72e6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x2e6ec6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a72e70]
or eax, eax
je 0x2e6eca8
mov dword [ebx], eax
add ebx, 4
jmp 0x2e6ec89
call dword [esi + 0x2a72e80]
mov ebp, dword [esi + 0x2a72e74]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x2e6ece2
sub esp, 0xffffff80
jmp 0x4b2370
Function at 0x401840
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0040ca90
add esp, 0x18
lea ecx, [ebp - 0x414]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
push 3
lea ecx, [ebp - 0x20c]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x4018f1
push 4
push 0
lea edx, [ebp - 0x20c]
push edx
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push eax
mov esi, ebx
or esi, 0xf003f
push esi
push eax
push eax
push eax
push edi
push 0x80000000
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4020a3
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push ecx
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x4020ab
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegDeleteKeyExW
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402097
push 0
push ebx
push edi
push 0x80000000
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0
push 0
push 0
push str.InProcServer32
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4020d9
mov edx, dword [ebp - 4]
push edx
jmp 0x402063
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push 0
push eax
call edi
test eax, eax
je 0x40213d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
push ebx
mov esi, str.InProcServer32
call fcn.00401fc0
mov edx, dword [ebp - 4]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push ebx
mov edi, 0x80000000
call fcn.00401fc0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push str.Apartment
call esi
mov ecx, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push str.Apartment
push 1
push 0
push str.ThreadingModel
push ecx
call edi
test eax, eax
je 0x40219f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
push ebx
mov esi, str.InProcServer32
call fcn.00401fc0
mov eax, dword [ebp - 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push ebx
mov edi, 0x80000000
call fcn.00401fc0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4021c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 6
mov esi, 0x412478
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [ebp - 0x1f2]
push 0
push eax
mov dword [ebp - 0x620], ebx
movsw word es:[edi], word [esi]
call fcn.0040ca90
push 2
call fcn.00401910
add esp, 0x10
test eax, eax
je 0x402225
push 0x411f9c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], dx
call fcn.0040ca90
movzx ecx, byte [ebp + 0x17]
movzx edx, byte [ebp + 0x16]
movzx eax, byte [ebp + 0x15]
push ecx
movzx ecx, byte [ebp + 0x14]
push edx
movzx edx, byte [ebp + 0x13]
push eax
movzx eax, byte [ebp + 0x12]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
movzx ecx, byte [ebp + 0x11]
push edx
movzx edx, byte [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xe]
push ecx
movzx ecx, word [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x61c]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call esi
add esp, 0x40
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0040ca90
lea eax, [ebp - 0x61c]
push eax
push str.CLSID
lea ecx, [ebp - 0x414]
push str._s_s
push ecx
call esi
push ebx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
mov ebx, 0x200
call fcn.00402000
add esp, 0x28
test eax, eax
je 0x402379
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40231d
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402310
lea ecx, [ebp - 0x644]
push ecx
call eax
jmp 0x40231d
lea edx, [ebp - 0x644]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x644]
cmp ax, 9
je 0x402330
cmp ax, 6
jne 0x402363
mov eax, dword [ebp - 0x620]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov ebx, 0x100
call fcn.00402000
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.CLSID_]
mov edx, dword [0x412334]
push esi
mov esi, ecx
mov ecx, dword [0x412330]
push 0x1fa
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], eax
mov ax, word [0x412338]
lea ecx, [ebp - 0x1fe]
push 0
push ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x204], edx
mov word [ebp - 0x200], ax
call fcn.0040ca90
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
or esi, 0x2001b
push esi
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
je 0x40242d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x210]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00408d89
mov esp, ebp
pop ebp
ret

Function at 0x402450
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov eax, dword [ebp + 0x14]
mov edx, eax
shr edx, 0x18
push edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [ebp + 0xc]
push edx
mov ecx, eax
shr ecx, 0x10
push ecx
movzx edx, ax
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x20c]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x40
xor ecx, ecx
lea edi, [ebp - 0x20c]
call fcn.00402390
test eax, eax
je 0x402571
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40252b
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40251e
lea edx, [ebp - 0x230]
push edx
call eax
jmp 0x40252b
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x230]
cmp ax, 9
je 0x40253e
cmp ax, 6
jne 0x40255d
mov ecx, 0x100
lea edi, [ebp - 0x20c]
call fcn.00402390
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov eax, dword [ebp + 0x28]
mov esi, 8
add esp, 0xc
cmp dword [ebp + 0x3c], esi
jae 0x403123
lea eax, [ebp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea edx, [ebp - 0x20c]
push edx
call edi
mov eax, dword [ebp + 0x44]
cmp dword [ebp + 0x58], esi
jae 0x40313e
lea eax, [ebp + 0x44]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403280
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call edi
push str.Skin
lea edx, [ebp - 0x414]
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x434], 0
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x412], cx
lea ecx, [ebp - 0x434]
lea edx, [ebp - 0x414]
mov eax, 0x614
push ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], 3
mov word [ebp - 0x424], ax
call edi
xor eax, eax
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x418], ax
call esi
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea ecx, [ebp - 0x434]
lea edx, [ebp - 0x20c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], 3
mov word [ebp - 0x424], ax
call edi
lea esi, [ebp + 8]
call fcn.00401720
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret