joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023352
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 0x1002329b
add ebx, 0
push ecx
call 0x100232b0
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, 0x6ccb0335
sub ebx, dword [0x6cccfb74]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6cccfb64
call fcn.1001ed7a
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001e288
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1002340e
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1002340e
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 0x100233c5
mov eax, 1
lock xchg dword [0x6cccfb70], eax
push 0x3dd1fc71
call 0x10023352
push esi
add esp, 8
cmp eax, 0
jne 0x1002333b
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10023361
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10023376
cmp ecx, edx
cmp eax, 0
je 0x1002339b
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 0x10023385
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100233b4
dec eax
loope 0x100233b7
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6cccfb70], 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 0x100233eb
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10023400
jmp 0x1002340b
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100232f9
Function at 0x1002a473
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 0x1002a749
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6ccbc7e8
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6ccb37ae
push 0xffffffffffffffff
call fcn.10021673
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 0x1002a4dd
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1002a4f5
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 0x1002a73d
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1002a711
Function at 0x10039f43
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 0x10039f65
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10039f65
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10039f65
ret
cmp word [ebx + 4], 0x14c
jne 0x10039f65
test word [ebx + 0x16], 2
je 0x10039f65
test word [ebx + 0x16], 0x100
je 0x10039f65
cmp word [ebx + 0x18], 0x10b
jne 0x10039f65
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10039f65
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10039ff1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10039f85
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10020ed0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10039f65
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 0x10039ff1
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 0x10039f65
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10039f65
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10039f65
ret
cmp word [ebx + 4], 0x14c
jne 0x10039f65
test word [ebx + 0x16], 2
je 0x10039f65
test word [ebx + 0x16], 0x100
je 0x10039f65
cmp word [ebx + 0x18], 0x10b
jne 0x10039f65
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10039f65
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10039ff1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10039f85
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10020ed0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10039f65
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 0x1003a0a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a101
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a0a8
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a0b7
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 0x1043fd5a
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 0x1003a108
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.10020f7e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a1a7
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0ed
call 0x1003a154
loope 0x1003a14a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a1a4
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 0x1003a1b5
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 0x1003a168
cmp eax, ecx
ja 0x1003a168
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1f2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1e8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002145d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003a0b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a101
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a0a8
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a0b7
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 0x1043fd5a
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 0x1003a108
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.10020f7e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a1a7
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0ed
call 0x1003a154
loope 0x1003a14a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a1a4
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 0x1003a1b5
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 0x1003a168
cmp eax, ecx
ja 0x1003a168
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1f2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1e8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002145d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x126e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x126e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x126e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x126e06a
add dl, dl
jne 0x126e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x126e0dc
xor eax, eax
add dl, dl
jne 0x126e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x126e17d
add dl, dl
jne 0x126e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x126e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x126e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x126e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x126e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x126e075
mov eax, 1
add dl, dl
jne 0x126e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x126e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x126e0e1
sub eax, ebx
mov ebx, 1
jne 0x126e128
mov ecx, 1
add dl, dl
jne 0x126e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x126e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x126e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x126e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x126e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x126e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x126e136
cmp eax, 0x7d00
jae 0x126e16d
cmp eax, 0x500
jb 0x126e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x126e075
cmp eax, 0x7f
ja 0x126e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x126e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x126e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x126e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10378058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103781a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1037807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1037806a
add dl, dl
jne 0x10378089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103780dc
xor eax, eax
add dl, dl
jne 0x10378096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1037817d
add dl, dl
jne 0x103780a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103780b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103780bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103780c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103780d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10378075
mov eax, 1
add dl, dl
jne 0x103780ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103780f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103780e1
sub eax, ebx
mov ebx, 1
jne 0x10378128
mov ecx, 1
add dl, dl
jne 0x1037810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10378119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10378105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10378075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1037813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1037814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10378136
cmp eax, 0x7d00
jae 0x1037816d
cmp eax, 0x500
jb 0x10378168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10378075
cmp eax, 0x7f
ja 0x10378170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10378075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1037819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10378075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6d3f378d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x6d410030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x6d3f3830
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d3f7544
pop ecx
pop ecx
test eax, eax
je 0x6d3f3819
test ebx, ebx
je 0x6d3f380d
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.6d3f7544
pop ecx
pop ecx
test eax, eax
jle 0x6d3f3819
push ebx
call fcn.6d3f5895
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.6d3f5874
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x6d3f37da
xor edi, edi
cmp ebx, edi
jne 0x6d3f3834
xor eax, eax
jmp 0x6d3f38a0
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x6d3f3863
call fcn.6d3f5895
pop ecx
cmp dword [ebp - 0x70], edi
je 0x6d3f3830
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x6d3f3830
call fcn.6d3f5895
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d3f3853
cmp dword [ebp - 0x70], edi
je 0x6d3f3896
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d3f5874
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d3f8259
add ebp, 0x9c
leave
ret
Function at 0x6d3f555d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x6d410030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.6d3f53ca
push 8
mov esi, eax
call fcn.6d3f582d
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x6d3f55c8
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x6d3f55cf
and dword [ebx + 4], 0
jmp 0x6d3f55e4
xor eax, eax
jmp 0x6d3f56af
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x6d3f5695
push edi
call fcn.6d3f7a10
pop ecx
cmp eax, 4
jl 0x6d3f55bb
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x6d3f55bb
add eax, 0xfffffffd
push 0x6d40982c
push eax
mov dword [ebp - 0x74], eax
call fcn.6d3f8270
pop ecx
pop ecx
test eax, eax
je 0x6d3f562a
push 0x6d409828
push dword [ebp - 0x74]
call fcn.6d3f8270
pop ecx
pop ecx
test eax, eax
jne 0x6d3f55bb
push 0x3b
push edi
call fcn.6d3f93f0
pop ecx
pop ecx
test eax, eax
jne 0x6d3f55bb
push dword [ebp - 0x78]
call fcn.6d3f7a10
push edi
mov ebx, eax
call fcn.6d3f7a10
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.6d3f582d
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.6d3f7544
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.6d3f7544
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.6d3f5420
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x6d3f55bb
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.6d3f5895
push ebx
call fcn.6d3f5895
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d3f8259
add ebp, 0x214
leave
ret
Function at 0x6d3f7544
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x6d3f7553
pop dword [ebp - 0x44]
mov eax, 0x6d3f7553
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfeee3ad9
sub dword [ebp - 0x54], 0xb09bf58e
mov dword [ebp - 0x50], 0xa7e6a66d
add dword [ebp - 0x50], 0x8a4ca5d8
mov dword [ebp - 0x4c], 0xae6d82bd
sub dword [ebp - 0x4c], 0x62213e8f
mov dword [ebp - 0x48], 0x39ff374f
add dword [ebp - 0x48], 0xc600c8b1
lea eax, [ebp - 0x54]
push eax
mov eax, 0x242a5d47
sub eax, 0xb6e9dcf7
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x280a0f3b
add dword [ebp - 0x54], 0x4c685a1b
mov dword [ebp - 0x50], 0x6081d638
sub dword [ebp - 0x50], 0x1f1574c3
mov dword [ebp - 0x4c], 0x2e4698d9
add dword [ebp - 0x4c], 0x3528d393
mov dword [ebp - 0x48], 0x4daac4c2
sub dword [ebp - 0x48], 0x4daac4c2
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x57f6f69a
add eax, 0x154989b2
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3d6c4
push 0
call eax
mov ecx, 0x3493717d
add ecx, 0xcb6cdf46
xor edi, edi
add edi, eax
mov esi, 0x58a425cc
sub esi, 0xeb62bdcc
add esi, dword [ebp - 0x44]
mov ebx, 0x40f3cae
sub ebx, 0x5475a6ef
sub dword [ebp - 0x1c], ecx
mov edx, dword [esi]
sub dword [ebp - 0x28], ecx
xor edx, ebx
xor dword [ebp - 0x1c], eax
mov dword [edi], edx
xor dword [ebp - 8], 0xd6eee0
add edi, 0x91f1730b
sub edi, 0x91f17307
add esi, 0x8904fbfd
add esi, 0x76fb0407
loop 0x6d3f7672
add eax, 0x135df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xaa9fb0e4
sub ecx, 0x3d60b0e4
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x6d3f8259
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d410030]
jne 0x6d3f8263
repz ret
jmp fcn.6d3fe721
Function at 0x45b210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004cdac0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4fe668]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004b1470
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b27f
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45b27f
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4fe668]
jmp 0x45b346
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b29c0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45b2c8
test esi, esi
jne 0x45b2c8
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b29c0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45b2a0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x45b2d0
test edx, edx
je 0x45b3ee
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004b1470
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b3ee
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45b3ee
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45b3bf
push 0x4ee600
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004b1470
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x45b3a8
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b3a8
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45b3c4
cmp esi, dword [0x4fe668]
jne 0x45b3bf
mov ebp, dword [0x4fe664]
lea eax, [esp + 0x428]
jmp 0x45b3c4
mov eax, 0x4cfc40
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4fdb78
call fcn.0044fb00
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x4cd451
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cd490
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cd490
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cd490
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cd490
cmp dword [ecx + 0x74], 0xe
jbe 0x4cd490
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret