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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1018ae52
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1018ae63
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1018aea4
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1018d210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1018d159
add ebx, 0
push ecx
call 0x1018d16e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x703761ec
sub ebx, dword [0x70395a2b]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x70395a1b
call fcn.10188c38
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10188146
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1018d2cc
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1018d2cc
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1018d283
mov eax, 1
lock xchg dword [0x70395a27], eax
push 0x3dd1fc71
call 0x1018d210
push esi
add esp, 8
cmp eax, 0
jne 0x1018d1f9
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1018d21f
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1018d234
cmp ecx, edx
cmp eax, 0
je 0x1018d259
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1018d243
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1018d272
dec eax
loope 0x1018d275
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x70395a27], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1018d2a9
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1018d2be
jmp 0x1018d2c9
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1018d1b7
Function at 0x10194331
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10194607
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7038269f
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x70379665
push 0xffffffffffffffff
call fcn.1018b531
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1019439b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.101943b3
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x101945fb
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x101945cf
Function at 0x101a3e01
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x101a3e23
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x101a3e23
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x101a3e23
ret
cmp word [ebx + 4], 0x14c
jne 0x101a3e23
test word [ebx + 0x16], 2
je 0x101a3e23
test word [ebx + 0x16], 0x100
je 0x101a3e23
cmp word [ebx + 0x18], 0x10b
jne 0x101a3e23
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x101a3e23
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x101a3eaf
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x101a3e43
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1018ad8e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x101a3e23
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x101a3eaf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x101a3e23
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x101a3e23
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x101a3e23
ret
cmp word [ebx + 4], 0x14c
jne 0x101a3e23
test word [ebx + 0x16], 2
je 0x101a3e23
test word [ebx + 0x16], 0x100
je 0x101a3e23
cmp word [ebx + 0x18], 0x10b
jne 0x101a3e23
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x101a3e23
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x101a3eaf
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x101a3e43
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1018ad8e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x101a3e23
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x101a3f66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x101a3fbf
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x101a3f66
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x101a3f75
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x105a9c18
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x101a3fc6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1018ae3c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x101a4065
add edi, 4
add eax, 2
dec ecx
jne 0x101a3fab
call 0x101a4012
loope 0x101a4008
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x101a4062
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x101a4073
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x101a4026
cmp eax, ecx
ja 0x101a4026
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x101a40b0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x101a40a6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1018b31b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x101a3f75
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x101a3fbf
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x101a3f66
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x101a3f75
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x105a9c18
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x101a3fc6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1018ae3c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x101a4065
add edi, 4
add eax, 2
dec ecx
jne 0x101a3fab
call 0x101a4012
loope 0x101a4008
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x101a4062
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x101a4073
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x101a4026
cmp eax, ecx
ja 0x101a4026
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x101a40b0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x101a40a6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1018b31b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401783
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp edi, ebx
je 0x401833
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x401833
push 0xff
lea eax, [ebp - 0x6f]
push ebx
push eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x70], bl
call fcn.00470280
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 0x100
mov dword [ebp - 0x7c], 8
call esi
cmp dword [ebp - 0x78], ebx
je 0x40182e
push dword [ebp - 0x78]
call fcn.0046d27a
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push edi
push ebx
mov dword [ebp - 0x74], eax
call esi
test eax, eax
jne 0x40182e
push dword [ebp - 0x74]
call fcn.0046f68b
pop ecx
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0x74]
jmp 0x401835
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop esi
xor ecx, ebp
pop ebx
call fcn.00470483
add ebp, 0x94
leave
ret

Function at 0x4018f3
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, 0x104
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x110], ecx
test eax, eax
jne 0x401935
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x401946
push ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00470a10
add esp, 0xc
mov ecx, edi
lea edi, [ebp - 0x10c]
call fcn.00401783
mov edi, eax
test edi, edi
je 0x401977
push dword [esi + 0x24]
call fcn.0046f68b
pop ecx
push 0
mov dword [esi + 0x24], edi
push edi
add esi, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
xor eax, eax
inc eax
jmp 0x401979
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00470483
leave
ret 8
Function at 0x401ac2
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x10
mov eax, 0x492fbb
call fcn.00470906
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
xor ebx, ebx
cmp byte [ebp + 0x14], bl
lea ecx, [ebp - 0x10]
setne al
push ecx
dec eax
and eax, 0xffffff00
add eax, 0x20119
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x401b08
xor eax, eax
jmp 0x401bab
mov dword [ebp + 0x14], ebx
lea ecx, [ebp - 0x1c]
call fcn.0044e010
push 0x104
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0044ec10
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc dword [ebp + 0x14]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.0044eca0
cmp edi, ebx
jne 0x401b8b
lea ecx, [ebp - 0x1c]
call fcn.00401219
test al, al
jne 0x401b8b
push 8
call fcn.004702fa
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x401b72
call fcn.0044e010
mov esi, eax
jmp 0x401b74
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0044e310
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0044f450
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044e260
cmp edi, ebx
je 0x401b0b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.004709de
ret

Function at 0x401bb1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00470280
mov ax, word [ebp + 0xc]
push 0x10
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call fcn.00470280
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044ec10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401c1f
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x401c1a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x401c21
xor eax, eax
pop esi
leave
ret
Function at 0x401ce8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
push ebx
push esi
mov esi, dword [ebp + 0x1c0]
push edi
push str.Shell32.dll
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov edi, 0x207
cmp eax, ebx
je 0x401e0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push eax
call esi
push 0x4a0954
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
call esi
push str.SHGetMalloc
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
call esi
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x68], ebx
je 0x401e01
cmp dword [ebp - 0x74], ebx
je 0x401e01
cmp eax, ebx
je 0x401e01
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x1b4]
mov dword [ebp - 0x70], ebx
push ebx
call dword [ebp - 0x68]
test eax, eax
jne 0x401e01
push 0x104
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
push esi
push dword [ebp - 0x70]
call dword [ebp - 0x74]
push edi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00470280
add esp, 0xc
push ebx
push ebx
push 0x208
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push eax
call fcn.0044e3b0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x80]
test eax, eax
js 0x401e01
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x78]
mov ecx, esi
call fcn.00401219
test al, al
je 0x401e4c
push edi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00470280
add esp, 0xc
push ebx
push dword [ebp + 0x1b4]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401e4c
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0044e3b0
mov ecx, esi
call fcn.00401219
test al, al
jne 0x401e80
mov ecx, esi
call fcn.0044e020
cmp byte [esi + 7], 0xff
mov ecx, esi
jne 0x401e68
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0x5c
je 0x401e7b
push 0x4a0930
mov ecx, esi
call fcn.0044e6e0
xor eax, eax
inc eax
jmp 0x401e82
xor eax, eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470483
add ebp, 0x1a8
leave
ret
Function at 0x402095
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3e4]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0xc9]
push ebx
push eax
mov byte [ebp + 0xc8], bl
call fcn.00470280
add esp, 0xc
push esi
lea eax, [ebp + 0xc8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec esi
push esi
lea eax, [ebp + 0x2d5]
push ebx
push eax
mov byte [ebp + 0x2d4], bl
call fcn.00470280
push esi
lea eax, [ebp + 0x1d1]
push ebx
push eax
mov byte [ebp + 0x1d0], bl
call fcn.00470280
push edi
call fcn.00470de0
add esp, 0x1c
cmp byte [eax + edi - 1], 0x5c
push edi
lea eax, [ebp + 0x1d0]
push eax
je 0x402151
call fcn.00470ce0
lea eax, [ebp + 0x1d0]
push 0x4a09a0
push eax
call fcn.00470cf0
lea eax, [ebp + 0x2d4]
push edi
push eax
call fcn.00470ce0
push 0x4a0930
jmp 0x402179
call fcn.00470ce0
lea eax, [ebp + 0x1d0]
push 0x4a099c
push eax
call fcn.00470cf0
lea eax, [ebp + 0x2d4]
push edi
push eax
call fcn.00470ce0
push 0x4a099a
lea eax, [ebp + 0x2d4]
push eax
call fcn.00470cf0
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x4021a8
xor eax, eax
jmp 0x4022c3
lea eax, [ebp + 0x2d4]
push eax
lea eax, [ebp + 0x1d0]
push eax
mov dword [ebp - 0x80], 1
call fcn.00470ce0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40229c
lea eax, [ebp - 0x4c]
push 0x4a0998
push eax
call fcn.0046ffd0
pop ecx
pop ecx
test eax, eax
je 0x4022aa
lea eax, [ebp - 0x4c]
push 0x4a0994
push eax
call fcn.0046ffd0
pop ecx
pop ecx
test eax, eax
je 0x4022aa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.00470cf0
test byte [ebp - 0x78], 0x10
pop ecx
pop ecx
je 0x402236
lea eax, [ebp + 0x2d4]
push eax
call fcn.00402095
pop ecx
jmp 0x402275
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.00470c2d
pop ecx
pop ecx
test eax, eax
je 0x4022aa
test byte [ebp - 0x78], 1
je 0x402268
lea eax, [ebp + 0x2d4]
push 0x80
push eax
call fcn.00470c74
pop ecx
pop ecx
lea eax, [ebp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402285
push 4
push ebx
lea eax, [ebp + 0x2d4]
push eax
call esi
lea eax, [ebp + 0x1d0]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.00470ce0
pop ecx
pop ecx
jmp 0x4022aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4022db
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], ebx
jne 0x4021ca
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x3d8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470483
add ebp, 0x3dc
leave
ret
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4021a1
Function at 0x402780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493100
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c1c50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 0
push 0x38
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00470280
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x440
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x4a09d8
lea ecx, [ebp + 8]
call fcn.0040123d
mov dword [ebp - 0x3c], eax
lea ecx, [ebp + 0x10]
call fcn.0040123d
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402820
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0044e260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0044e260
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x403a88
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x4932f1
call fcn.00470906
mov eax, dword [ebp + 8]
xor esi, esi
inc esi
cmp eax, esi
jne 0x403afe
lea ecx, [ebp - 0x14]
call fcn.0044e010
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call fcn.00401ce8
add esp, 0x14
test eax, eax
jne 0x403ac8
lea ecx, [ebp - 0x14]
jmp 0x403b7a
push str.Real_setup_
lea ecx, [ebp - 0x14]
call fcn.0044e6e0
push str.config.ini
lea ecx, [ebp - 0x14]
call fcn.0044e6e0
cmp dword [ebp + 0xc], esi
jne 0x403ac0
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x403af3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
jmp 0x403ac0
mov edi, SysReAllocString
cmp eax, 3
jne 0x403b09
inc edi
cmp dword [ebp + 0xc], 0
push eax
jne 0x403b34
lea eax, [ebp - 0x14]
push eax
call fcn.0040184c
pop ecx
pop ecx
cmp byte [eax + 7], 0xff
mov dword [ebp - 4], esi
jne 0x403b26
mov eax, dword [eax]
push eax
push edi
call fcn.00401a08
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x403b78
lea eax, [ebp - 0x24]
push eax
call fcn.0040184c
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044eb40
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0044e260
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x403b6c
mov eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.00401a08
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
or dword [ebp - 4], 0xffffffff
call fcn.0044e260
mov eax, esi
call fcn.004709de
ret