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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x1000e16f
push edi
mov edi, dword [esp + 0xc]
mov ecx, eax
lea edi, [edi + 1]
shr ecx, 8
shl eax, 8
movzx edx, byte [ecx + 0x100013c0]
movzx ecx, byte [edi - 1]
add ecx, eax
mov eax, edx
shl eax, 0xd
xor ecx, edx
xor eax, edx
shl eax, 2
xor eax, ecx
and eax, 0xffff
dec esi
jne 0x1000e140
pop edi
pop esi
ret 8
Function at 0x10017450
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x60
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [esp + 0x74]
mov esi, ecx
mov dword [esp + 0x14], eax
call ebp
mov dword [esp + 0x10], eax
mov dword [esi + 0x6c], 1
jmp 0x10017490
push dword [esi + 0x6c]
mov ecx, edi
mov dword [esp + 0x1c], 1
call fcn.1001b970
cmp eax, 0x100
jb 0x100175a6
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x6c]
push 1
add eax, 0x10000000
push eax
call fcn.10021dd0
mov eax, dword [esp + 0x18]
test al, 1
jne 0x100174db
cmp dword [esp + 0x1c], 0xfffffbff
je 0x100175aa
test eax, 0xfffffffe
je 0x100174eb
lea ecx, [esp + 0x18]
call fcn.1001c3c0
cmp dword [esi + 0x6c], 0x100
jb 0x10017525
call ebp
mov ecx, dword [esp + 0x10]
sub ecx, eax
add ecx, 0x1388
cmp ecx, 0x80000000
jb 0x10017480
cmp dword [esi + 0x6c], 0x100
jb 0x10017525
push 1
push 0xfffffbdd
mov ecx, ebx
call fcn.1001c540
test byte [ebx], 8
jne 0x100175dd
push 0x40
lea eax, [esp + 0x30]
push 0x20
push eax
call fcn.10045430
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, 0x10053c48
push ebx
push 0x20
push eax
call fcn.10039820
test byte [ebx], 8
jne 0x100175dd
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
call fcn.10043f00
test eax, eax
js 0x100175cf
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x2c]
push ebx
push 0x40
push eax
mov eax, dword [esi + 0x6c]
dec eax
shl eax, 6
push eax
call fcn.100224f0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100454c0
add esp, 0x60
ret 0xc
mov eax, dword [esp + 0x18]
test eax, 0xfffffffe
je 0x100175ba
lea ecx, [esp + 0x18]
call fcn.1001c3c0
inc dword [esi + 0x6c]
cmp dword [esi + 0x6c], 0x100
jb 0x10017490
jmp 0x100174eb
push 1
push 0xfffffc15
mov ecx, ebx
call fcn.1001c540
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100454c0
add esp, 0x60
ret 0xc
Function at 0x100189a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x10018ac9
mov eax, dword [esi + 0x3c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 1
push edi
mov edi, dword [eax + 0x38]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x10], eax
call ebp
mov ebx, eax
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.100187a0
mov ecx, dword [esp + 0x14]
test cl, 8
je 0x10018a39
nop
mov eax, edi
dec edi
test eax, eax
je 0x10018a39
lea ecx, [esp + 0x14]
call fcn.1001c480
call ebp
sub ebx, eax
mov eax, dword [esp + 0x10]
add eax, ebx
cmp eax, 0x80000000
jae 0x10018a18
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
mov ebx, eax
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.100187a0
mov ecx, dword [esp + 0x14]
test cl, 8
jne 0x100189f0
pop edi
pop ebp
pop ebx
test cl, 1
jne 0x10018aa8
mov eax, dword [esp + 0xc]
cmp eax, 0xfffffbae
jl 0x10018aa8
cmp eax, 0xfffffbaf
jle 0x10018a5a
cmp eax, 0xfffffbb2
jne 0x10018aa8
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.100192e0
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x10018a82
test byte [esp + 8], 1
mov edx, 0
mov ecx, dword [esp + 0xc]
cmovne ecx, edx
test eax, eax
je 0x10018a9a
cmp eax, dword [esi + 0x6c]
je 0x10018a9a
push dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.10019ac0
jmp 0x10018ab6
push 1
push ecx
mov ecx, dword [esp + 0x34]
call fcn.1001c540
jmp 0x10018ab6
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 8]
push eax
call fcn.1001c2f0
test dword [esp + 8], 0xfffffffe
je 0x10018ac9
lea ecx, [esp + 8]
call fcn.1001c3c0
pop esi
add esp, 0x18
ret 0x10
Function at 0x1001adc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [ecx + 4]
mov ecx, 0xff
movzx eax, word [edi + 8]
cmp ax, cx
ja 0x1001aea2
movzx ecx, word [edi + eax*2 + 8]
push ebx
mov ebx, dword [esp + 0x14]
and ecx, 0x3fff
cmp dword [esp + 0x10], 0
push esi
mov esi, dword [esp + 0x10]
jne 0x1001adfe
movzx eax, word [edi + esi*2 + 0xa]
and eax, 0x3fff
jmp 0x1001ae30
test ebx, ebx
jle 0x1001ae19
test esi, esi
jne 0x1001ae0d
mov eax, 0x800
jmp 0x1001ae30
movzx eax, word [edi + esi*2 + 8]
and eax, 0x3fff
jmp 0x1001ae30
test esi, esi
jne 0x1001ae24
mov eax, 0x800
jmp 0x1001ae2e
movzx eax, word [edi + esi*2 + 8]
and eax, 0x3fff
add eax, ebx
test ebx, ebx
js 0x1001ae38
cmp ecx, ebx
jb 0x1001aea0
cmp eax, ecx
jb 0x1001aea0
sub eax, ecx
push eax
lea eax, [ecx + edi]
sub ecx, ebx
push eax
add ecx, edi
push ecx
call fcn.10045d90
movzx eax, word [edi + 8]
add esp, 0xc
cmp esi, eax
jae 0x1001ae81
lea edx, [edi + 0xa]
lea edx, [edx + esi*2]
mov edi, edi
movzx eax, word [edx]
lea edx, [edx + 2]
mov ecx, eax
inc esi
sub ecx, ebx
xor ecx, eax
and ecx, 0x3fff
xor ecx, eax
mov word [edx - 2], cx
movzx eax, word [edi + 8]
cmp esi, eax
jb 0x1001ae60
movzx ecx, word [edi + 8]
mov eax, 0x3fff
mov dx, word [edi + ecx*2 + 8]
and dx, ax
lea eax, [ecx + ecx]
sub dx, ax
sub dx, 0xa
mov word [edi + 2], dx
pop esi
pop ebx
pop edi
ret 0xc

Function at 0x1001c210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x1001c263
lea esi, [ecx + 6]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov bl, byte [ecx + 4]
mov dl, byte [ecx + 5]
inc bl
push ebp
xor eax, eax
mov ebp, dword [ebp + 0xc]
mov cl, byte [esi + ebx]
add dl, cl
mov ch, byte [edi]
inc edi
mov al, byte [esi + edx]
mov byte [esi + edx], cl
mov byte [esi + ebx], al
add al, cl
inc bl
xor ch, byte [esi + eax]
dec ebp
mov byte [edi - 1], ch
mov cl, byte [esi + ebx]
jne 0x1001c23b
pop ebp
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], dh
mov byte [ecx + 5], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x10], 0x80
jne 0x100221bf
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100221a5
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10053c48
call fcn.100393f0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1002217f
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1002217f
or dword [edi + 0x10], 0x80
jmp 0x10022193
test al, 8
je 0x10022193
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1001c2f0
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x100221b9
lea ecx, [esp + 0xc]
call fcn.1001c3c0
jmp 0x100221b9
cmp dword [esp + 0x44], ebx
je 0x100221b9
push 1
push 0xfffffc06
mov ecx, esi
call fcn.1001c540
test byte [edi + 0x10], 0x80
je 0x1002222d
push ebp
lea ebp, [edi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100221ec
push esi
mov ecx, 0x10053c48
call fcn.100393f0
jmp 0x10022225
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10022211
push esi
mov ecx, 0x10053c48
call fcn.100393f0
jmp 0x10022225
cmp dword [esp + 0x48], ebx
je 0x10022225
push 1
push 0xfffffc06
mov ecx, esi
call fcn.1001c540
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
test byte [esi], 8
je 0x1002223c
push 0
push esi
mov ecx, edi
call fcn.100223e0
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x100224f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x10], 0x80
jne 0x100225af
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10022595
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10053c48
call fcn.100393f0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1002256f
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1002256f
or dword [edi + 0x10], 0x80
jmp 0x10022583
test al, 8
je 0x10022583
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1001c2f0
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x100225a9
lea ecx, [esp + 0xc]
call fcn.1001c3c0
jmp 0x100225a9
cmp dword [esp + 0x44], ebx
je 0x100225a9
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c540
test byte [edi + 0x10], 0x80
je 0x1002261d
push ebp
lea ebp, [edi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100225dc
push esi
mov ecx, 0x10053c48
call fcn.100393f0
jmp 0x10022615
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10022601
push esi
mov ecx, 0x10053c48
call fcn.100393f0
jmp 0x10022615
cmp dword [esp + 0x48], ebx
je 0x10022615
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c540
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
test byte [esi], 8
je 0x1002262c
push 0
push esi
mov ecx, edi
call fcn.100223e0
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x10029250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, ecx
lea eax, [edx + 7]
mov dword [esp + 8], ebp
shr eax, 3
push esi
mov ecx, dword [ebp]
push edi
mov edi, dword [esp + 0x28]
lea ebx, [eax*8 + 1]
add ebx, eax
mov dword [esp + 0x14], ebx
lea eax, [ecx + ebx]
cmp eax, dword [ebp + 0xc]
ja 0x1002928a
mov esi, dword [ebp + 4]
add esi, ecx
jmp 0x10029299
push edi
push ebx
mov ecx, ebp
call fcn.10029dc0
mov edx, dword [esp + 0x24]
mov esi, eax
test byte [edi], 8
jne 0x100293d9
cmp dword [esp + 0x1c], 0
jne 0x100292b1
mov byte [esi], 0x7f
inc esi
xor bl, bl
jmp 0x100292b8
mov byte [esi], 0x80
inc esi
or bl, 0xff
mov ecx, dword [esp + 0x20]
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp edx, 8
jbe 0x1002933a
lea edi, [edx - 9]
shr edi, 3
inc edi
lea esp, [esp]
movzx eax, byte [ecx]
sub edx, 8
xor al, bl
mov byte [esi], al
movzx eax, byte [ecx + 1]
xor al, bl
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
xor al, bl
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
xor al, bl
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
xor al, bl
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
xor al, bl
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
xor al, bl
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
add ecx, 8
xor al, bl
mov byte [esi + 7], al
mov byte [esi + 8], 9
add esi, 9
dec edi
jne 0x100292e0
mov dword [esp + 0x24], edx
test edx, edx
je 0x100293d2
xor ebp, ebp
test edx, edx
je 0x100293ac
cmp edx, 0x20
jb 0x10029397
lea eax, [ecx - 1]
lea edi, [esi - 1]
add eax, edx
add edi, edx
cmp esi, eax
ja 0x1002935f
cmp edi, ecx
jae 0x10029397
mov eax, edx
mov edi, edx
and eax, 0x1f
sub edi, eax
jmp 0x10029370
movdqu xmm0, xmmword [ecx]
add ebp, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp ebp, edi
jb 0x10029370
cmp ebp, edx
jae 0x100293ac
mov edi, edx
sub ecx, esi
sub edi, ebp
mov al, byte [ecx + esi]
xor al, bl
mov byte [esi], al
inc esi
dec edi
jne 0x100293a1
mov eax, 8
sub eax, edx
push eax
movzx eax, bl
push eax
push esi
call fcn.10045430
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov al, cl
xor al, bl
sub esi, ecx
mov byte [esi + 8], al
mov eax, dword [esp + 0x14]
add dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x10029730
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
push edi
push eax
push 8
xor ebx, ebx
mov esi, ecx
push ebp
xor edi, edi
mov dword [esp + 0x1c], ebx
call fcn.10044230
test eax, eax
je 0x1002975c
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
jae 0x10029778
mov eax, dword [esi + 4]
movzx eax, byte [eax + ebp]
sub eax, 0
je 0x10029778
sub eax, 0x80
je 0x10029863
sub eax, 0x7f
jne 0x10029786
mov ecx, dword [esp + 0x24]
push 0x3ec
call fcn.1001c5a0
mov eax, dword [esp + 0x24]
test byte [eax], 4
jne 0x1002987d
lea ecx, [ebp + 1]
mov ebp, 8
add ecx, dword [esi + 4]
neg ebx
mov esi, dword [esp + 0x1c]
sbb bl, bl
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movzx eax, bl
pshufd xmm1, xmm0, 0
mov dword [esp + 0x10], eax
movzx edx, byte [ecx + 8]
xor edx, eax
cmp edx, 8
cmova edx, ebp
lea ebp, [edx + edi]
mov dword [esp + 0x18], ebp
cmp ebp, dword [esp + 0x20]
ja 0x1002986d
xor edi, edi
test edx, edx
je 0x10029840
cmp edx, 0x20
jb 0x1002982f
lea eax, [ecx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x100297fb
cmp ebp, ecx
jae 0x1002982b
mov eax, edx
mov ebp, edx
and eax, 0x1f
sub ebp, eax
movdqu xmm0, xmmword [ecx]
add edi, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp edi, ebp
jb 0x10029804
mov ebp, dword [esp + 0x18]
cmp edi, edx
jae 0x10029840
sub edx, edi
mov al, byte [ecx]
inc ecx
xor al, bl
mov byte [esi], al
inc esi
dec edx
jne 0x10029835
mov dl, byte [ecx]
mov edi, ebp
mov eax, dword [esp + 0x10]
xor dl, bl
inc ecx
mov ebp, 8
cmp dl, 8
ja 0x100297c1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, 1
jmp 0x10029786
mov ecx, dword [esp + 0x24]
push 1
push 0xfffffbf2
call fcn.1001c540
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x10029f50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 9
push dword [esp + 0x20]
mov ebp, ecx
mov dword [esp + 0x1c], ebx
mov esi, 1
call fcn.10044230
mov edi, dword [esp + 0x24]
test eax, eax
je 0x10029f83
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp]
jae 0x10029f9f
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
movzx eax, byte [eax + ecx]
sub eax, 0
je 0x10029f9f
sub eax, 0x80
je 0x10029fda
sub eax, 0x7f
jne 0x10029faf
push 0x3ec
mov ecx, edi
call fcn.1001c5a0
mov ecx, dword [esp + 0x18]
test byte [edi], 4
jne 0x10029fd0
mov eax, dword [ebp + 4]
inc eax
add ecx, eax
neg ebx
sbb bl, bl
mov edi, edi
mov dl, byte [ecx + 8]
lea ecx, [ecx + 9]
xor dl, bl
add esi, 9
cmp dl, 8
ja 0x10029fc0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, esi
jmp 0x10029faf
Function at 0x10039820
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10039849
push dword [esp + 0x10]
mov ecx, esi
call fcn.100393f0
pop esi
ret 0xc

Function at 0x10039880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
mov ecx, reloc.mswstr10.dll_Ordinal_2
push 0x20019
mov ebp, dword [edi]
test eax, eax
push 0
push dword [esp + 0x1c]
cmovne ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100398f3
push ebx
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push esi
push edi
push ebx
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [edi]
cmp eax, ebp
jae 0x100398e5
cmp dword [esp + 0x18], 1
jne 0x100398e5
test esi, esi
jne 0x100398e5
mov byte [eax + ebx], 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 0x18

Function at 0x10039900
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x18], 0
jne 0x100399c3
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100455c2
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1003994c
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c540
pop edi
pop esi
pop ebp
pop ebx
ret 8
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jbe 0x100399c3
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
push 4
call fcn.100455c2
add esp, 4
test eax, eax
je 0x10039980
push edi
push esi
push 0x10039c30
mov ecx, eax
call fcn.10043510
mov ecx, eax
jmp 0x10039982
xor ecx, ecx
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], ecx
mov eax, dword [esi + 0x18]
cmp dword [eax + ebx*4], 0
jne 0x1003999f
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c540
test byte [edi], 8
jne 0x100399f3
lea eax, [esi + 0xd4]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax]
call ebp
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x10039960
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
test eax, eax
je 0x10039a30
push eax
lea ecx, [esi + 0xa4]
call fcn.1000e2c0
test eax, eax
jne 0x10039a30
push 1
push 0xfffffc0e
mov ecx, edi
call fcn.1001c540
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x10039a0d
mov ecx, edi
call fcn.100435f0
push edi
call fcn.10045638
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], 0
test ebx, ebx
jne 0x10039a3a
push dword [esi + 0x18]
call fcn.10045638
add esp, 4
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8
push edi
push ebx
lea ecx, [esi + 0x1c]
call fcn.10043620
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1003cd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x32c
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x328], eax
mov eax, dword [esp + 0x334]
push ebx
mov ebx, dword [esp + 0x33c]
push ebp
mov ebp, dword [esp + 0x338]
push esi
push edi
mov edi, dword [esp + 0x350]
mov esi, ecx
mov ecx, dword [esp + 0x34c]
push 0
push edi
push 0
push 1
push eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1e0]
push ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], 1
call fcn.10012b20
push 0
push edi
push 0
push 1
push esi
push ebp
lea ecx, [esp + 0x78]
call fcn.10012b20
test byte [edi], 8
jne 0x1003cf2f
push edi
push dword [ebx]
lea ecx, [esp + 0x1d4]
call fcn.10015ac0
test byte [edi], 8
jne 0x1003cf2f
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x60]
push edi
push dword [eax]
call fcn.10015ac0
test byte [edi], 8
jne 0x1003cf2f
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x40]
lea edx, [esp + 0x10]
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x20
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 8]
test byte [esp + 0x10], 8
jne 0x1003cf09
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
lea ebx, [ebx]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [edi + 8]
lea ecx, [esp + 0x70]
call fcn.10012fc0
test byte [esp + 0x10], 8
mov bl, al
jne 0x1003cf05
mov ecx, dword [esp + 0x1f0]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
test byte [esp + 0x10], 8
jne 0x1003cf05
mov ecx, dword [esp + 0x1f0]
lea edx, [esp + 0x10]
push edx
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
test byte [esp + 0x10], 1
jne 0x1003cede
cmp dword [esp + 0x14], 0xfffff9bf
jne 0x1003cede
cmp bl, 1
je 0x1003ced5
push 1
push 0
push ebp
mov ecx, esi
call fcn.1003f4b0
push eax
push 0xffffe01b
push 0xfffff9b3
lea ecx, [esp + 0x24]
call fcn.1001c4d0
jmp 0x1003cede
lea ecx, [esp + 0x10]
call fcn.1001c480
test byte [esp + 0x10], 8
jne 0x1003cf05
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
push 4
push 1
mov eax, dword [ecx]
call dword [eax + 8]
test byte [esp + 0x10], 8
je 0x1003ce30
mov edi, dword [esp + 0x28]
test byte [esp + 0x10], 1
jne 0x1003cf1a
cmp dword [esp + 0x14], 0xfffff9bd
je 0x1003cf26
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1001c2f0
lea ecx, [esp + 0x30]
call fcn.10028d20
lea ecx, [esp + 0x60]
call fcn.10012d60
lea ecx, [esp + 0x1cc]
call fcn.10012d60
test dword [esp + 0x10], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x1003cf5a
lea ecx, [esp]
call fcn.1001c3c0
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.100454c0
add esp, 0x32c
ret 0x14
Function at 0x10043510
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 4
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x10043543
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x18]
mov ecx, 0x10053c48
push edi
call fcn.100393f0
test byte [edi], 1
jne 0x10043578
cmp dword [edi + 4], 0xffffea84
jne 0x10043578
push 1
push 0
push 0
push 0xffffdf30
push 0xffffea84
mov ecx, edi
call fcn.1001c4d0
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x10044650
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10053d2c], 0
mov eax, dword [esp + 0x21c]
je 0x10044692
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100454c0
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10044450
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100446e0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100446e0
cmp dword [esp + 4], 0xffffffff
je 0x100446e0
push eax
call fcn.10045cc6
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100454c0
add esp, 0x218
ret 4