joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [0x10023424], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], ecx
je 0x10004559
mov eax, dword [0x10023454]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0x7f7fffff
mov dword [ebp - 0x20], 0x7f7fffff
cmp eax, 1
jne 0x100043e6
mov cl, byte [ecx + 0x24]
and cl, al
jmp 0x10004402
test eax, eax
jne 0x100043f1
mov eax, 1
jmp 0x100043fd
push eax
call dword [sym.imp.USer32.dLl_GetAsyncKeyState]
and eax, 0x8000
test eax, eax
setne cl
mov eax, dword [0x100233fc]
sub eax, 0
jne 0x1000441c
movss xmm0, dword [0x100233b8]
movss dword [0x10023f30], xmm0
test cl, cl
je 0x10004559
push ecx
push ebx
call fcn.100038c0
test al, al
je 0x10004559
mov eax, dword [0x100233fc]
sub eax, 0
je 0x10004454
sub eax, 1
je 0x1000444b
mov dword [ebp - 0x18], 0
jmp 0x1000445b
mov dword [ebp - 0x18], 2
jmp 0x1000445b
mov dword [ebp - 0x18], 1
mov esi, dword [0x100243ec]
lea eax, [ebp - 0x18]
mov ecx, dword [0x100243e8]
sub esi, ecx
push eax
mov eax, 0x66666667
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x100243ec]
push eax
call fcn.100023e0
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
add esp, 8
push ecx
mov ecx, ebx
call dword [eax + 0x3b4]
mov eax, dword [0x100243ec]
mov esi, dword [0x100243e8]
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x10004559
lea edx, [esi + 8]
lea ecx, [ebp - 0x14]
call fcn.100036f0
test al, al
je 0x100044de
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
call dword [eax + 0x5ec]
cmp eax, 0x40
jne 0x100044f9
movss xmm0, dword [esi + 0x24]
comiss xmm0, dword [0x1001fcd4]
jbe 0x100044f9
add esi, 0x28
cmp esi, dword [ebp - 0x4c]
jne 0x100044b1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a168
mov esp, ebp
pop ebp
ret 0xc
cmp byte [0x100233cc], 0
mov edi, ebx
movups xmm0, xmmword [esi + 8]
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 4]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x40], eax
movups xmm0, xmmword [esi + 0x18]
movups xmmword [ebp - 0x2c], xmm0
je 0x1000452c
push 1
mov ecx, edi
call fcn.10001d50
test al, al
je 0x10004559
cmp dword [0x100233d4], 2
jne 0x1000453e
cmp byte [0x10023f36], 0
jne 0x10004559
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
push eax
push esi
push edi
call fcn.100040b0
cmp byte [0x10023444], 0
je 0x10004559
or dword [esi + 0x24], 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a168
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a4e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [0x100243f4], 0
cmp byte [0x1002339c], 0
push ebx
push esi
push edi
je 0x1000a6be
mov eax, dword [0x10023388]
sub eax, 0
jne 0x1000a517
movss xmm0, dword [0x10023364]
movss dword [0x10023f30], xmm0
mov eax, dword [0x10023454]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0x7f7fffff
mov dword [ebp - 8], 0x7f7fffff
cmp eax, 1
jne 0x1000a571
mov al, byte [esi + 0x24]
and al, 1
jmp 0x1000a58d
test eax, eax
jne 0x1000a57c
mov eax, 1
jmp 0x1000a588
push eax
call dword [sym.imp.USer32.dLl_GetAsyncKeyState]
and eax, 0x8000
test eax, eax
setne al
test al, al
je 0x1000a6be
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp + 8]
push eax
push esi
push edi
push ebx
call fcn.1000a200
test al, al
je 0x1000a6be
push ebx
mov ecx, edi
call fcn.100065b0
test al, al
jne 0x1000a5db
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x658]
call eax
test al, al
je 0x1000a5d7
mov ecx, edi
call fcn.10006470
cmp dword [eax], 0
jne 0x1000a5db
xor al, al
jmp 0x1000a5dd
mov al, 1
cmp byte [0x10023444], 0
mov byte [ebp + 0x13], al
je 0x1000a61f
test al, al
jne 0x1000a5f5
cmp byte [0x100243f4], al
je 0x1000a61f
or dword [esi + 0x24], 1
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x5ec]
cmp eax, 0x39
jne 0x1000a61f
mov ecx, edi
call fcn.10006510
xorps xmm1, xmm1
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1000a61f
and dword [esi + 0x24], 0xfffffffe
mov eax, dword [edi]
mov ecx, edi
xor bl, bl
call dword [eax + 0x5ec]
cmp eax, 0x39
jne 0x1000a665
mov ecx, edi
call fcn.10006510
xorps xmm1, xmm1
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1000a64c
mov al, 1
mov byte [0x1002402c], al
jmp 0x1000a651
mov al, byte [0x1002402c]
test byte [esi + 0x24], 1
jne 0x1000a67a
test al, al
je 0x1000a67a
mov byte [0x1002402c], bl
mov bl, 1
jmp 0x1000a67a
test byte [esi + 0x24], 1
je 0x1000a67a
cmp byte [ebp + 0x13], 0
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
cmp dword [0x1002333c], 1
jne 0x1000a6af
cmp byte [0x100243f4], 0
jne 0x1000a6af
test bl, bl
je 0x1000a6be
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push eax
call fcn.10007250
mov byte [0x10023f37], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push eax
call fcn.10007250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10016990
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x10023f40]
push ebx
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
test edi, edi
je 0x100169e5
mov ebx, dword [ebp + 8]
nop word [eax + eax]
mov ecx, dword [edi + 8]
mov esi, 0x1505
movsx edx, byte [ecx]
inc ecx
test edx, edx
je 0x100169d4
mov eax, esi
lea ecx, [ecx + 1]
shl esi, 5
add esi, edx
movsx edx, byte [ecx - 1]
add esi, eax
test edx, edx
jne 0x100169c0
push ebx
call fcn.10017250
cmp eax, esi
je 0x100169ee
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x100169b0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [edi + 0xc]
call fcn.10016a00
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10016a00
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
cmp dword [ecx + 4], edi
jle 0x10016aab
xor ebx, ebx
nop dword [eax]
mov eax, dword [ecx]
mov esi, 0x1505
add eax, ebx
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movd eax, xmm1
movq qword [ebp - 0x10], xmm0
movsx edx, byte [eax]
lea ecx, [eax + 1]
test edx, edx
je 0x10016a78
mov eax, esi
lea ecx, [ecx + 1]
shl esi, 5
add esi, edx
movsx edx, byte [ecx - 1]
add esi, eax
test edx, edx
jne 0x10016a64
push dword [ebp - 0x44]
call fcn.10017250
cmp esi, eax
je 0x10016ad8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10016a9f
push dword [ebp - 0x44]
mov ecx, 0x10023fbc
push eax
call fcn.10016a00
mov ecx, eax
test ecx, ecx
jne 0x10016ac0
mov ecx, dword [ebp - 0x48]
inc edi
add ebx, 0x3c
cmp edi, dword [ecx + 4]
jl 0x10016a30
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a168
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
add eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a168
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1001a168
mov esp, ebp
pop ebp
ret 8

Function at 0x10017250
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
push esi
movsx esi, byte [edx]
inc edx
test esi, esi
je 0x10017278
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx - 1]
add eax, ecx
test esi, esi
jne 0x10017264
pop esi
pop ebp
ret 4
Function at 0x10017bb0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.kernEl32.dlL_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10017cc3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.kernEl32.dlL_Thread32First]
test eax, eax
je 0x10017cbc
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10017c7f
call dword [sym.imp.kernEl32.dlL_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10017c7f
call dword [sym.imp.kernEl32.dlL_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10017c7f
mov edx, dword [esi]
test edx, edx
jne 0x10017c48
push 0x200
push edx
push dword [0x100241e4]
mov dword [esi + 4], 0x80
call dword [sym.imp.kernEl32.dlL_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10017ca4
lea edi, [esi + 8]
jmp 0x10017c72
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10017c72
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100241e4]
call dword [sym.imp.kernEl32.dlL_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10017cd6
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.kernEl32.dlL_Thread32Next]
test eax, eax
jne 0x10017c00
call dword [sym.imp.kernEl32.dlL_GetLastError]
cmp eax, 0x12
je 0x10017cbc
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10017cbc
push eax
push ebx
push dword [0x100241e4]
call dword [sym.imp.kernEl32.dlL_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.kernEl32.dlL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a168
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10017ca4

Function at 0x10017ce0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10017bb0
test eax, eax
jne 0x10017d11
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10017d62
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10017d5a
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.kernEl32.dlL_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10017d53
push ebx
call dword [sym.imp.kernEl32.dlL_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10017a40
add esp, 4
push ebx
call dword [sym.imp.kernEl32.dlL_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10017d20
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10017d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10025420]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push pe_nt_image_headers32
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernEl32.dlL_VirtualProtect]
test eax, eax
jne 0x10017dd1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a168
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10017df2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10017e13
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10017e13
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10017e0d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10017e13
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.kernEl32.dlL_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.kernEl32.dlL_GetCurrentProcess]
push eax
call dword [sym.imp.kernEl32.dlL_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1001a168
mov esp, ebp
pop ebp
ret
Function at 0x10017e70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10025428]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x10017ea4
mov eax, dword [0x10025420]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10017eac
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10017e90
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x10017f62
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.10017ce0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017f62
mov ecx, dword [0x10025428]
push edi
cmp esi, ecx
jae 0x10017f1a
imul edi, esi, 0x2c
mov eax, dword [0x10025420]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10017f0f
mov edx, ebx
mov ecx, esi
call fcn.10017d70
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017f1a
mov ecx, dword [0x10025428]
jmp 0x10017f12
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10017ee4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10017f61
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10017f4f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.kernEl32.dlL_OpenThread]
mov edi, eax
test edi, edi
je 0x10017f49
push edi
call dword [sym.imp.kernEl32.dlL_ResumeThread]
push edi
call dword [sym.imp.kernEl32.dlL_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10017f28
push ebx
push 0
push dword [0x100241e4]
call dword [sym.imp.kernEl32.dlL_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcf2bc0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0xcf2c57
test ebp, ebp
je 0xcf2c57
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xcf2be0
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.00cf374f
mov esi, eax
add esp, 4
test esi, esi
je 0xcf2c52
push edi
push 0
push esi
call fcn.00cf6370
push esi
push ebp
mov eax, ebx
call fcn.00cf20d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0xcf2c2b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0xcf2c23
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0xcff018]
push esi
mov bl, 1
call fcn.00cf574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
mov eax, 0x411234
call fcn.00410d60
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
xor ebx, ebx
push 0x4123d0
push 1
push ebx
push 0x4123c0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x4123e0
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x40111b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x40111b
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebx
je 0x40111b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x4150b8
lea eax, [ebp - 0x21c]
push edi
push eax
call esi
cmp dword [ebp + 0x10], 0x17
je 0x4010bc
cmp dword [ebp + 0x10], 2
jne 0x4010d4
lea eax, [ebp - 0x21c]
push 0x41d010
push eax
call esi
lea eax, [ebp - 0x21c]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x4150b0
push eax
call fcn.00406275
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
lea edx, [ebp - 0x21c]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x21c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401128
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401135
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4028de
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x411258
call fcn.00410d60
sub esp, 0x214
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDownloadManager
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40291c
or eax, 0xffffffff
jmp 0x40297a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x208
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push str.TempPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40296f
lea eax, [ebp - 0x220]
push str.DwnlData
push eax
lea eax, [ebp - 0x220]
push 0x4160bc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x220]
push eax
call fcn.00410983
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4039d1
Capabilities:
Check os version

Disassembly:
mov eax, 0x411270
call fcn.00410d60
sub esp, 0x320
push ebx
push esi
push edi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403a74
cmp dword [ebp - 0x114], 2
jne 0x403a74
cmp dword [ebp - 0x120], 6
jb 0x403a1e
push 1
pop esi
cmp dword [ebp + 8], edi
jne 0x403a2c
push edi
push edi
call fcn.0040314e
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403a74
push esi
lea eax, [ebp - 0x32c]
push dword [ebp + 8]
push eax
call fcn.004036a0
add esp, 0xc
cmp eax, edi
je 0x403a74
cmp dword [ebp + 8], edi
je 0x403a69
push edi
push 1
call fcn.0040314e
pop ecx
pop ecx
push 1
pop eax
jmp 0x403a76
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x403ae1
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
xor esi, esi
push eax
mov dword [edi], esi
xor ebx, ebx
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403be1
cmp dword [ebp - 0x10c], 2
jne 0x403be1
cmp dword [ebp - 0x118], 6
jb 0x403b41
push 1
pop ebx
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMWFP
jmp 0x403b52
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x403b6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
mov dword [edi], eax
jmp 0x403be3
call fcn.00403110
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
and eax, 0x100
push ecx
add eax, 0x20019
cmp ebx, esi
push eax
mov dword [edi], esi
push esi
je 0x403b91
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x403b96
push str.SYSTEMCurrentControlSetServicesIDMTDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x403be1
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Start
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403bd8
push 1
pop eax
cmp dword [ebp - 4], eax
je 0x403bd8
cmp dword [ebp - 4], 2
je 0x403bd8
mov dword [edi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d3b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4112c4
call fcn.00410d60
sub esp, 0x210
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push edi
call esi
cmp eax, 0xffffffff
jne 0x405dfd
lea eax, [edi + 6]
push 0x5c
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
test ebx, ebx
je 0x405d9f
mov eax, ebx
sub eax, edi
sar eax, 1
jmp 0x405da6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MSVCRT.dll_wcsncpy
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x405dee
lea eax, [ebp - 0x21c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push edi
call esi
cmp eax, 0xffffffff
jne 0x405dfd
mov eax, dword [ebp - 0x14]
jmp 0x405e17
test ebx, ebx
je 0x405de1
add ebx, 2
push 0x5c
push ebx
jmp 0x405d74
push 0x4150b0
push edi
call fcn.00406275
pop ecx
xor eax, eax
pop ecx
jmp 0x405e17
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x405e26
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov esi, 0x41d424
push esi
lea eax, [ebp - 0x464]
push 0x417374
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405ee8
lea ecx, [ebp - 0x25c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ecx
push eax
call edi
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x405ec4
lea eax, [ebp - 0x230]
push eax
push esi
lea eax, [ebp - 0x66c]
push 0x4156e4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00405ef6
jmp 0x405e83
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
jne 0x405ee8
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.00405ef6
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
xor eax, eax
pop ebx
leave
ret