joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002754b
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 0x10027821
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7373c7b0
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73733776
push 0xffffffffffffffff
call fcn.1001e74b
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 0x100275b5
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100275cd
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 0x10027815
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100277e9
Function at 0x1003701b
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 0x1003703d
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1003703d
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1003703d
ret
cmp word [ebx + 4], 0x14c
jne 0x1003703d
test word [ebx + 0x16], 2
je 0x1003703d
test word [ebx + 0x16], 0x100
je 0x1003703d
cmp word [ebx + 0x18], 0x10b
jne 0x1003703d
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1003703d
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100370c9
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1003705d
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001dfa8
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1003703d
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 0x100370c9
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 0x1003703d
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1003703d
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1003703d
ret
cmp word [ebx + 4], 0x14c
jne 0x1003703d
test word [ebx + 0x16], 2
je 0x1003703d
test word [ebx + 0x16], 0x100
je 0x1003703d
cmp word [ebx + 0x18], 0x10b
jne 0x1003703d
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1003703d
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100370c9
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1003705d
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001dfa8
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1003703d
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 0x10037180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100371d9
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10037180
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003718f
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 0x1043ce32
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 0x100371e0
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.1001e056
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003727f
add edi, 4
add eax, 2
dec ecx
jne 0x100371c5
call 0x1003722c
loope 0x10037222
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003727c
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 0x1003728d
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 0x10037240
cmp eax, ecx
ja 0x10037240
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100372ca
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100372c0
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e535
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003718f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100371d9
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10037180
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003718f
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 0x1043ce32
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 0x100371e0
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.1001e056
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003727f
add edi, 4
add eax, 2
dec ecx
jne 0x100371c5
call 0x1003722c
loope 0x10037222
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003727c
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 0x1003728d
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 0x10037240
cmp eax, ecx
ja 0x10037240
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100372ca
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100372c0
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e535
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402b83
call fcn.00402b30
test eax, eax
je 0x402b83
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c24
call fcn.00402b30
cmp eax, 7
jb 0x402c24
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402c30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c63
call fcn.00402b30
test eax, eax
je 0x402c63
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402d60
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xb0108c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402da9
push str.SetDefaultDllDirectories
push 0xac26d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402da9
push 0xc00
call eax
test eax, eax
jne 0x402e3e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x402e3e
cmp ecx, 0x104
ja 0x402e3e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x402de2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x402e3d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402e05
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x402e02
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a489d2
mov esp, ebp
pop ebp
ret
Function at 0x408320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00a9a5d0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4083b7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0xac2700]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408400
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4083e4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4083e0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408450
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408440
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409420
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x40946b
cmp edx, 0x40
je 0x409457
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00a9a5d0
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409471
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00a9a5d0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4094b4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409520
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [section..data]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x409cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00a9dd43
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x409cfd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c940
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne byte [ebp + 0xb]
test eax, eax
je 0x40ca00
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40ca00
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], 0
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
lea ecx, [ebp + 0xc]
lea edi, [eax*2 + 2]
push edi
push 0x2002
call fcn.0040fc80
test al, al
jne 0x40c99f
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40c9bc
pop esi
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
push edi
push ebx
push eax
call fcn.00a9a050
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40c9eb
pop esi
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
pop esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov bl, 1
call fcn.0040fcb0
pop edi
jmp 0x40ca02
xor bl, bl
cmp byte [ebp + 0xb], 0
je 0x40ca0e
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x40d5f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabd5bd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0xb0108c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0040e730
cmp eax, 0xffffffff
je 0x40d640
test al, 0x10
je 0x40d640
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040f940
test al, al
je 0x40d660
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040f5b0
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.0040a790
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040b580
test eax, eax
js 0x40d6a7
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x40d6a7
cmp edx, 1
jne 0x40d69b
mov bl, dl
jmp 0x40d7e4
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a610
mov esi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d78f
call ebx
cmp eax, 0xb7
jne 0x40d72a
lea ecx, [ebp - 0x5c]
call fcn.0040dc50
lea ecx, [ebp - 0x34]
call fcn.0040a7f0
push 0
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0040e040
mov byte [ebp - 4], 1
push dword [ebp - 0x34]
test al, al
jne 0x40d711
call fcn.00a48bdc
add esp, 4
jmp 0x40d72a
mov ebx, dword [ebp - 0x3c]
shr ebx, 4
call fcn.00a48bdc
add esp, 4
and bl, 1
jne 0x40d78f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x40d805
lea ecx, [ebp - 0x18]
call fcn.0040b580
mov esi, eax
test esi, esi
js 0x40d805
je 0x40d805
mov edi, dword [ebp - 0x18]
cmp esi, 1
jne 0x40d76c
movzx eax, word [edi]
cmp eax, 0x5c
je 0x40d805
cmp eax, 0x2f
je 0x40d805
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x40d805
cmp esi, dword [ebp - 0x14]
jae 0x40d6c3
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [edi + esi*2], ax
jmp 0x40d6c0
cmp esi, dword [ebp - 0x20]
jge 0x40d7d7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop word [eax + eax]
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.0040f270
test eax, eax
jns 0x40d7b8
mov esi, dword [ebp - 0x20]
jmp 0x40d7bb
inc esi
add esi, eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0040b5b0
push 0
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40d805
cmp esi, dword [ebp - 0x20]
jl 0x40d7a0
mov bl, 1
push dword [ebp - 0x24]
call fcn.00a48bdc
add esp, 4
push dword [ebp - 0x18]
call fcn.00a48bdc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor bl, bl
jmp 0x40d7d9
Function at 0x40d830
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e730
cmp eax, 0xffffffff
je 0x40d859
test al, 0x10
jne 0x40d859
test al, 1
je 0x40d859
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d86b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d86b
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4

Function at 0x40d880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabd5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0xb0108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x40d997
cmp esi, 0x114
jae 0x40d906
xor eax, eax
mov ecx, edi
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x23c]
push eax
call fcn.0040a9a0
mov al, 1
jmp 0x40d999
lea ecx, [ebp - 0x248]
call fcn.0040a7f0
mov dword [ebp - 4], 0
cmp esi, dword [ebp - 0x240]
jbe 0x40d92c
push esi
lea ecx, [ebp - 0x248]
call fcn.0040b270
push dword [ebp - 0x248]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x40d989
mov ecx, dword [ebp - 0x248]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40d958
inc eax
cmp word [ecx + eax*2], 0
jne 0x40d950
mov dword [ebp - 0x244], eax
cmp eax, edx
jne 0x40d989
lea eax, [esi - 1]
cmp eax, edx
jne 0x40d989
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040a820
push dword [ebp - 0x248]
call fcn.00a48bdc
add esp, 4
mov al, 1
jmp 0x40d999
push dword [ebp - 0x248]
call fcn.00a48bdc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a489d2
mov esp, ebp
pop ebp
ret 4

Function at 0x40db60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret 8

Function at 0x40db80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
and ecx, 0x3fff
and eax, 0xf0000000
cmove ecx, edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret 8
Function at 0x40e790
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabd764
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0xb0108c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
test esi, esi
je 0x40e7e2
mov eax, dword [edi]
dec esi
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x40e7de
push dword [ebx]
call fcn.00a48bdc
push 0xc
push ebx
call fcn.00a48bc5
add esp, 0xc
test esi, esi
jne 0x40e7c2
push 0
push 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test ebx, ebx
jne 0x40e80f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a48bd3
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40e977
cmp eax, ebx
ja 0x40e977
lea ecx, [ebp - 0x38]
call fcn.0040a7f0
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x40e965
mov ebx, 2
mov dword [ebp - 0x18], 4
nop
cmp word [esi + ebx - 2], 0
jne 0x40e953
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a9a0
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
cmp dword [edi + 4], ecx
jne 0x40e912
cmp ecx, 0x7fffffff
jae 0x40e998
mov eax, ecx
mov edx, SysReAllocString
sub edx, ecx
shr eax, 2
inc eax
cmp eax, edx
cmovbe edx, eax
add edx, ecx
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x20], edx
mul dword [ebp - 0x18]
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a48bd3
mov ecx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x40e8fd
shl ecx, 2
push ecx
push dword [edi]
push eax
call fcn.00a9a050
add esp, 0xc
push dword [edi]
call fcn.00a48bdc
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
push 0xc
call fcn.00a48b95
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40e936
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0040a610
mov edx, eax
jmp 0x40e938
xor edx, edx
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
inc eax
add ebx, 2
mov dword [ebp + 8], eax
cmp eax, ecx
jb 0x40e880
mov edx, dword [ebp - 0x14]
push dword [ebp - 0x38]
cmp edx, ecx
sete bl
call fcn.00a48bdc
add esp, 4
jmp 0x40e979
xor bl, bl
push esi
call fcn.00a48bdc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xafa36c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x7e5
push eax
call fcn.00a9aa8c
int3