joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e12d
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 0x1000e076
add ebx, 0
push ecx
call 0x1000e08b
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, 0x72ffe19d
sub ebx, dword [0x7301d9dc]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x7301d9cc
call fcn.10009b55
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10009063
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1000e1e9
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1000e1e9
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 0x1000e1a0
mov eax, 1
lock xchg dword [0x7301d9d8], eax
push 0x3dd1fc71
call 0x1000e12d
push esi
add esp, 8
cmp eax, 0
jne 0x1000e116
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1000e13c
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1000e151
cmp ecx, edx
cmp eax, 0
je 0x1000e176
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 0x1000e160
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1000e18f
dec eax
loope 0x1000e192
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x7301d9d8], 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 0x1000e1c6
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1000e1db
jmp 0x1000e1e6
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1000e0d4
Function at 0x1001524e
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 0x10015524
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7300a650
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73001616
push 0xffffffffffffffff
call fcn.1000c44e
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 0x100152b8
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100152d0
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 0x10015518
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100154ec
Function at 0x10024d1e
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 0x10024d40
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10024d40
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10024d40
ret
cmp word [ebx + 4], 0x14c
jne 0x10024d40
test word [ebx + 0x16], 2
je 0x10024d40
test word [ebx + 0x16], 0x100
je 0x10024d40
cmp word [ebx + 0x18], 0x10b
jne 0x10024d40
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10024d40
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10024dcc
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10024d60
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000bcab
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10024d40
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 0x10024dcc
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 0x10024d40
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10024d40
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10024d40
ret
cmp word [ebx + 4], 0x14c
jne 0x10024d40
test word [ebx + 0x16], 2
je 0x10024d40
test word [ebx + 0x16], 0x100
je 0x10024d40
cmp word [ebx + 0x18], 0x10b
jne 0x10024d40
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10024d40
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10024dcc
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10024d60
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000bcab
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10024d40
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 0x10024e83
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10024edc
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10024e83
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10024e92
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 0x1042ab35
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 0x10024ee3
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.1000bd59
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10024f82
add edi, 4
add eax, 2
dec ecx
jne 0x10024ec8
call 0x10024f2f
loope 0x10024f25
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10024f7f
mov dh, pe_nt_image_headers32
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 0x10024f90
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 0x10024f43
cmp eax, ecx
ja 0x10024f43
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10024fcd
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10024fc3
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000c238
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10024e92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10024edc
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10024e83
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10024e92
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 0x1042ab35
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 0x10024ee3
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.1000bd59
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10024f82
add edi, 4
add eax, 2
dec ecx
jne 0x10024ec8
call 0x10024f2f
loope 0x10024f25
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10024f7f
mov dh, pe_nt_image_headers32
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 0x10024f90
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 0x10024f43
cmp eax, ecx
ja 0x10024f43
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10024fcd
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10024fc3
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000c238
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

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 0x729b7939
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x729b791c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
push dword [ebx]
leave
mov edi, 0x60000000
jmp 0x729b793a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
invalid
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x729b7998
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x729b797f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x729b7988
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x729b7992
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x729b7974
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x729b78fe
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
add al, 7
sub eax, ecx
je 0x729b79e5
dec eax
je 0x729b79dc
sub eax, 3
je 0x729b79d3
mov dword [ebp - 4], 0x40
jmp 0x729b7a02
mov dword [ebp - 4], 4
jmp 0x729b79e8
mov dword [ebp - 4], 0x20
jmp 0x729b79e8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je fcn.729b7a34
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x729b79b4
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.729b7245
loop 0x729b79bc
invalid

Function at 0x729bc4e1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x729bc504
lea edx, [ecx + 1]
mov ecx, dword [esp + 4]
push esi
movzx esi, word [ecx]
rol eax, 0xd
xor eax, esi
inc ecx
inc ecx
dec edx
jne 0x729bc4f6
pop esi
ret 8
Function at 0x40388f
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, dword [esp + 0x234]
mov edi, dword [esp + 0x230]
mov esi, ebx
and esi, 0x300
lea eax, [esi + 9]
mov ecx, esp
push ecx
push eax
push edi
push dword [esp + 0x238]
call fcn.00407d16
test eax, eax
jne 0x40397e
mov dword [esp + 4], esi
test bl, 2
je 0x40390a
xor eax, eax
lea ecx, [esp + 8]
mov dword [ecx], eax
mov edx, dword [esp]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x2e]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x403960
lea ebp, [esp + 0xe]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
push ebp
push 0
push dword [esp + 0xc]
call esi
test eax, eax
jne 0x40393a
test bl, 1
jne 0x403960
push ebx
push ebp
push dword [esp + 8]
call fcn.0040388f
test eax, eax
je 0x403914
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406dd1
test eax, eax
je 0x403970
push 0
push dword [esp + 8]
push edi
push dword [esp + 0x238]
call eax
jmp 0x40397e
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40397e
push edi
push dword [esp + 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x403d6f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
test esi, esi
mov ebp, 0x8000
cmovne ebp, edi
mov ecx, 0x4381f0
cmovne ecx, esi
mov dword [esp + 4], ecx
test eax, eax
js 0x403dbf
add eax, dword [0x4341e8]
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esp
push 4
push eax
push dword [0x418010]
call fcn.004076db
test eax, eax
je 0x403fa5
mov ebx, dword [esp]
test ebx, ebx
js 0x403e07
test esi, esi
je 0x403f5c
cmp ebx, edi
cmovl edi, ebx
push edi
push esi
push dword [0x418010]
call fcn.004076db
test eax, eax
mov esi, 0xfffffffd
cmovne esi, edi
jmp 0x403faa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov byte [0x440200], 0xb
mov dword [0x440218], 0
mov edi, 0x7fffffff
and edi, dword [esp]
mov dword [esp], edi
je 0x403fb9
xor esi, esi
mov eax, 0x4000
mov dword [esp + 0x10], edi
cmp edi, eax
cmovge edi, eax
push edi
push 0x4341f0
push dword [0x418010]
call fcn.004076db
test eax, eax
je 0x403fa5
mov dword [0x4401f0], 0x4341f0
mov dword [0x4401f4], edi
sub dword [esp], edi
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
mov dword [0x4401f8], eax
mov dword [0x4401fc], ebp
push 0x4401f0
call fcn.00408314
test eax, eax
js 0x403fbd
mov ebx, eax
mov dword [esp + 0xc], ebp
mov edi, dword [0x4401f8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov eax, dword [0x40b054]
test byte [eax + 0x34], 1
je 0x403efe
mov ecx, ebp
sub ecx, dword [esp + 8]
mov eax, dword [esp]
cmp ecx, 0xc8
ja 0x403ec8
test eax, eax
jne 0x403efe
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, eax
push edx
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push str....__d__
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
call fcn.00406939
mov dword [esp + 8], ebp
mov eax, dword [esp + 4]
cmp edi, eax
je 0x403f46
sub edi, eax
cmp dword [esp + 0xb0], 0
mov ebp, dword [esp + 0xc]
je 0x403f1f
sub ebp, edi
mov eax, dword [0x4401f8]
jmp 0x403f39
push edi
push eax
push dword [esp + 0xb4]
call fcn.0040770d
test eax, eax
mov eax, dword [esp + 4]
je 0x403fc4
add esi, edi
cmp ebx, 4
jne 0x403e73
jmp 0x403faa
mov edi, dword [esp]
test edi, edi
mov ebp, dword [esp + 0xc]
mov eax, 0x4000
jg 0x403e3e
jmp 0x403faa
xor esi, esi
test ebx, ebx
je 0x403faa
mov edi, dword [esp + 0xac]
cmp ebx, ebp
cmovge ebx, ebp
push ebx
push 0x4341f0
push dword [0x418010]
call fcn.004076db
test eax, eax
je 0x403fa5
push ebx
push 0x4341f0
push edi
call fcn.0040770d
test eax, eax
je 0x403fc4
add esi, ebx
mov eax, dword [esp]
sub eax, ebx
mov dword [esp], eax
mov ebx, eax
test eax, eax
jg 0x403f69
jmp 0x403faa
mov esi, 0xfffffffd
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor esi, esi
jmp 0x403faa
mov esi, 0xfffffffc
jmp 0x403faa
mov esi, 0xfffffffe
jmp 0x403faa
Function at 0x406d1c
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
lea ebx, [esp + 0xc]
mov dword [ebx], 0x40001
mov eax, 0x40b480
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
xor esi, esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], 0x40b470
mov eax, esp
mov dword [eax], 0xc
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406d8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x406d8e
push ebx
push 0x80000007
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov esi, 0
test eax, eax
jne 0x406d8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret 4

Function at 0x406e0a
Capabilities:
Create process on windows

Disassembly:
push esi
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov dword [0x7eab50], 0x44
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x40b410]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x20], 0x7eab50
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x406e6a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov esi, dword [esp + 0x28]
mov eax, esi
add esp, 0x38
pop esi
ret 4

Function at 0x406e73
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x406f1f
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00406f70
xor esi, esi
cmp eax, 0xffffffff
je 0x406f67
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebp, eax
test al, 1
jne 0x406f49
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406f50
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406f59
xor esi, esi
inc esi
jmp 0x406f67
mov eax, ebp
test al, 4
jne 0x406f67
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x406f70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x406f91
mov eax, esi
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
ret 4
Function at 0x40722b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, 0x7eeb94
push 0x2000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.00407442
xor ebx, ebx
test eax, eax
je 0x4072bd
mov esi, eax
push eax
call fcn.004074b7
mov eax, dword [0x40b3f8]
test byte [eax], 0x80
je 0x40726e
movzx eax, word [esi]
test eax, eax
je 0x4072bd
cmp eax, 0x5c
je 0x4072bd
mov edi, 0x7eeb94
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, edi
sar esi, 1
cmp eax, esi
jle 0x4072a8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x7eeb94
call fcn.00407387
test eax, eax
je 0x40729b
test byte [eax], 0x10
je 0x4072bd
push edi
call fcn.004072e2
push edi
call ebp
cmp eax, esi
jg 0x407288
push edi
call fcn.004073af
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x407358
Capabilities:
Move file

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40737a
push edi
push esi
call fcn.004077e2
add esp, 8
mov eax, dword [0x40b054]
inc dword [eax + 0x10]
pop esi
pop edi
ret 8

Function at 0x40763b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
push ecx
push eax
push ebx
push ecx
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x40766d
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x1c]
mov ebx, 0xffffff9b
mov ebp, esp
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
inc ebx
je 0x4076c8
mov dword [esp + 4], 0x61
mov dword [esp], 0x73006e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x4ec4ec4f
mul edx
shr edx, 3
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
add eax, edx
sub ecx, eax
add word [esp + 4], cx
push esi
push 0
push ebp
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x407685
jmp 0x4076cf
mov word [esi], 0
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4076db
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc
Function at 0x40770d
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc

Function at 0x40773f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
inc esi
test eax, eax
jne 0x4077b1
lea eax, [esp + 4]
lea ecx, [esp + 2]
push 0
push eax
push 2
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40778d
cmp dword [esp + 4], 2
jne 0x40778d
movzx eax, word [esp + 2]
cmp eax, 0xfeff
jne 0x40778d
mov esi, ebx
jmp 0x4077b1
cmp dword [esp + 0x20], 0
je 0x4077a5
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4077bc
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret 8
lea esi, [esp + 8]
push ebx
push esi
push 2
push 0x40b690
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 2
mov ecx, 0x80004005
cmovne ebx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x407789