joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017124
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1036a44]
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
call fcn.01004490
mov eax, dword [0x1036b08]
mov esi, dword [eax + 4]
and dword [ebp - 0x78], 0
cmp dword [esi + 4], 0
jle 0x1017160
push ebx
push edi
mov eax, dword [esi]
mov ecx, dword [ebp - 0x78]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x94]
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x1017153
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x30]
cmp ecx, 3
je 0x1017128
cmp ecx, 4
jne 0x1017147
mov ecx, dword [eax + 0x38]
or ecx, dword [eax + 0x3c]
jne 0x1017147
cmp dword [eax + 0x40], 0
je 0x1017147
mov ecx, dword [ebp - 0x7c]
push 3
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0101703c
mov eax, dword [edi + 0x94]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x1017116
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
cmp eax, dword [esi + 4]
jl 0x1017101
pop edi
pop ebx
mov eax, dword [0x1036b10]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [eax + 4], esi
jle 0x1017199
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x3c], 0
je 0x101718b
mov ecx, dword [ebp - 0x7c]
push 3
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01017019
mov eax, dword [0x1036b10]
mov eax, dword [eax + 4]
inc esi
cmp esi, dword [eax + 4]
jl 0x101716f
or dword [ebp - 0x80], 0xffffffff
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01028c0c
pop esi
jmp 0x10171dd
mov ecx, dword [ebp - 0x7c]
push 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push dword [ebp + 8]
push eax
call fcn.01016ff6
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.01028cba
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01028c0c
cmp al, 1
je 0x10171ad
call fcn.010044a1
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret 8
Function at 0x10177ab
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x204]
push 0x1002278
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x25c], eax
je 0x1017927
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x100226c
push eax
call esi
push 0x1002234
push dword [ebp - 0x25c]
mov edi, eax
call esi
test edi, edi
je 0x1017919
test eax, eax
je 0x1017919
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x260]
push eax
push 1
call edi
test al, al
je 0x1017919
cmp dword [ebp - 0x260], 1
jne 0x1017919
cmp word [ebp - 0x228], 0
je 0x1017919
cmp dword [ebp - 0x210], 0
jl 0x1017919
cmp dword [ebp - 0x20c], 0
jl 0x1017919
push 0xb
xor eax, eax
pop ecx
lea edi, [ebp - 0x258]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.01003305
test eax, eax
mov dword [ebp - 0x230], eax
je 0x1017919
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcsncpy]
push 7
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x254]
push eax
call esi
mov eax, dword [ebp - 0x218]
and eax, 0x1ffff
or eax, 0x20000
add esp, 0x14
mov dword [ebp - 0x244], eax
call fcn.010160bc
sub eax, 0x7fffffff
test byte [ebp - 0x218], 1
mov dword [ebp - 0x258], eax
je 0x1017891
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x240], eax
test byte [ebp - 0x218], 2
je 0x1017907
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x1017907
mov eax, 0x100
cmp ecx, eax
mov dword [ebp - 0x23c], ecx
jl 0x10178b9
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x101790e
cmp dword [ebp - 0x208], 0
je 0x101790e
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x238], eax
call fcn.01003305
test eax, eax
mov dword [ebp - 0x234], eax
jne 0x10178f3
push dword [ebp - 0x230]
call fcn.01003336
jmp 0x1017919
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
push eax
call esi
add esp, 0xc
jmp 0x101790e
and dword [ebp - 0x218], 0xfffffffd
lea ecx, [ebp - 0x258]
call fcn.0101771f
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret 8
Function at 0x10179e9
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x1002298
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1017971
xor eax, eax
jmp 0x1017a18
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov ebx, 0x1002280
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x10179f6
push dword [ebp - 8]
call fcn.01003305
mov esi, eax
test esi, esi
jne 0x10179ac
mov dword [ebp - 0x10], 0x8007000e
jmp 0x10179f6
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10179ef
cmp dword [ebp - 0x14], 7
jne 0x10179ef
xor edi, edi
mov dword [ebp - 0xc], esi
jmp 0x10179e8
push edi
push esi
call fcn.01017735
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10179da
sub eax, ecx
lea esi, [esi + eax + 1]
inc edi
cmp byte [esi], 0
jne 0x10179ce
jmp 0x10179f6
mov dword [ebp - 0x10], 0x8000ffff
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1017a07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x1017a15
push dword [ebp - 0xc]
call fcn.01003336
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x101a567
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1f48
call fcn.0102ec00
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x3e8
call fcn.01004490
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1f48]
push eax
push dword [ebp - 4]
call fcn.0102f17d
test eax, eax
jne 0x101a571
call fcn.010044a1
jmp 0x101a60f
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [eax + 4]
push esi
jmp 0x101a601
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x101a601
push 0xa0
call fcn.0102ec4e
xor edi, edi
cmp eax, edi
pop ecx
je 0x101a5ab
push edi
push dword [esi + 0x14]
mov ecx, eax
push dword [esi + 0x10]
call fcn.01019523
mov edi, eax
test edi, edi
je 0x101a608
mov ecx, edi
call fcn.01019575
test al, al
je 0x101a608
mov ecx, edi
call fcn.01019b89
push edi
mov ecx, esi
call fcn.0101929a
test al, al
jne 0x101a5f5
mov ecx, dword [0x1036b14]
push 3
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.01017019
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 3
push 4
push esi
call fcn.01011c24
push 1
mov ecx, edi
call fcn.01019ebb
mov edi, dword [ebp - 8]
dec ebx
jns 0x101a57e
call fcn.010044a1
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x101d6e3
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x18]
push eax
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0101c25b
test eax, eax
je 0x101d6b0
mov byte [ebp - 1], 0
jmp 0x101d707
cmp dword [esi + 8], 0
jne 0x101d6c4
mov ecx, esi
call fcn.0101d54d
test al, al
mov byte [ebp - 1], al
je 0x101d707
push edi
mov ecx, esi
call fcn.0101c29b
mov edx, eax
xor eax, eax
push 8
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 4], ebx
mov dword [edx + 0x18], 1
mov ecx, dword [eax]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0x14], eax
dec dword [esi + 8]
inc dword [esi + 0xc]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x14
Function at 0x101d8eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x101d8de
mov al, 1
jmp 0x101da96
push ebx
lea ebx, [eax + 4]
mov eax, dword [ebx]
cmp eax, 1
je 0x101d8f0
xor al, al
jmp 0x101da95
push esi
push edi
push 0x2a
add ebx, 4
mov eax, dword [ebx]
pop ecx
mov dword [ebp + 8], eax
xor eax, eax
push 0x1e
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
pop ecx
lea eax, [ebp - 0x13c]
push eax
add ebx, 4
lea eax, [ebp - 0xb4]
mov esi, ebx
lea edi, [ebp - 0xb4]
push eax
rep movsd dword es:[edi], dword [esi]
add ebx, 0x78
call fcn.0101baff
mov esi, dword [ebx]
push 4
pop edi
add ebx, edi
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
add ebx, edi
mov eax, dword [ebx]
add ebx, edi
mov ecx, dword [ebx]
add ebx, edi
mov edx, dword [ebx]
mov dword [ebp - 0x2c], edx
add edx, ecx
add edx, dword [ebp - 0x38]
add ebx, 8
add edx, esi
mov dword [ebp - 0x3c], esi
lea esi, [eax + edx*2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0xc], esi
add esi, 0x80
add eax, esi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
mov dword [ebp - 0x30], ecx
call fcn.0102e41a
test eax, eax
je 0x101da63
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebx]
add eax, ecx
add ecx, esi
mov dword [ebx], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov edx, dword [ebp - 0x38]
add eax, edi
mov dword [eax], 1
add eax, edi
mov dword [eax], ecx
add eax, edi
push 0x18
mov edi, eax
pop ecx
add eax, 0x60
lea esi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov esi, dword [ebp - 4]
push 4
pop ecx
add eax, ecx
mov dword [eax], edx
mov edx, dword [ebp - 0x34]
add eax, ecx
mov dword [eax], edx
mov edx, dword [ebp - 0x30]
add eax, ecx
mov dword [eax], edx
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
lea edi, [eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xb0]
and ecx, 3
push dword [ebp - 0xb4]
rep movsb byte es:[edi], byte [esi]
mov esi, 0x1036c0c
mov ecx, esi
call fcn.0101d501
push 2
pop ecx
cmp dword [ebp - 0x70], ecx
jne 0x101da26
xor edi, edi
inc edi
cmp dword [ebp + 8], edi
je 0x101da41
cmp dword [ebp + 8], 3
je 0x101da41
cmp dword [ebp + 8], ecx
jne 0x101da91
test al, al
je 0x101da91
push dword [ebp - 0xb0]
mov edi, ecx
push dword [ebp - 0xb4]
mov ecx, esi
call fcn.0101d4b6
jmp 0x101da8b
test al, al
je 0x101da67
push 3
pop edi
push dword [ebp + 0x10]
lea eax, [ebp - 0xb4]
push ebx
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.0101c036
test al, al
jne 0x101da91
xor al, al
jmp 0x101da93
call fcn.01018efd
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push dword [ebp - 0xb0]
mov ecx, esi
push dword [ebp - 0xb4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call fcn.0101d67c
test al, al
jne 0x101da48
jmp 0x101da63
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101db49
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x101db3e
xor eax, eax
jmp 0x101dbac
cmp dword [ebp + 8], ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
jbe 0x101db6b
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.0101da9f
test al, al
je 0x101db6f
add ebx, edi
add esi, edi
cmp ebx, dword [ebp + 8]
jb 0x101db48
cmp dword [ebp - 8], 0
jne 0x101db89
xor eax, eax
jmp 0x101dbaa
cmp dword [ebp - 4], 0
je 0x101db7d
push dword [ebp - 4]
call fcn.0102e42b
push 0x8007000e
call fcn.01004264
jmp 0x101dbaa
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push dword [ebp - 4]
mov esi, eax
call fcn.0102e42b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101dc8e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
call fcn.0101dbd8
test eax, eax
je 0x101dcb8
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x101dc9d
inc dword [esi + 0x20]
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x101dcaa
mov ecx, dword [eax + 4]
cmp ecx, edi
je 0x101dcad
inc dword [esi + 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax], ebx
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x101dd04
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [0x10361c0]
xor edx, edx
test eax, eax
push edi
je 0x101dcf8
mov ecx, dword [esi + 0x24]
shl ecx, 1
cmp eax, ecx
ja 0x101dcf8
mov eax, dword [edx*4 + 0x10361c4]
inc edx
test eax, eax
jne 0x101dce8
mov eax, dword [edx*4 + 0x10361c0]
mov dword [esi + 0x1c], eax
shl eax, 4
push eax
call fcn.0102ec4e
mov edi, eax
test edi, edi
pop ecx
mov dword [esi + 0x28], edi
jne 0x101dd20
mov eax, dword [ebp - 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x1c], ebx
jmp 0x101dd74
mov ecx, dword [esi + 0x1c]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
shl ecx, 4
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
jbe 0x101dd6b
mov edi, dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x101dd65
cmp ecx, 1
jne 0x101dd59
test eax, eax
je 0x101dd65
push dword [edi + 8]
push eax
push ecx
mov ecx, esi
call fcn.0101dc78
add edi, 0x10
dec ebx
jne 0x101dd45
push dword [ebp - 4]
call fcn.0102ec42
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101e1ea
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x101e1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x101e1ea
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x101e1f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
pop esi
cmp dword [ebp - 4], 0
jne 0x101e1fa
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x10

Function at 0x101e342
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0102ed20
or ecx, ebx
pop ebx
jne 0x101e347
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x101e354
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push eax
call fcn.0102ece0
pop ebp
ret 0x10

Function at 0x101e52f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x100289c
mov dword [ebp - 0x18], 0xa
call fcn.0101e0ff
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
je 0x101e56a
push 0x1002890
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5db
push 0x1002884
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x1002854
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101e5db
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1002848
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e5db
cmp dword [ebp - 0x1c], 1
jne 0x101e5db
push 0x100283c
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
push reloc.msvcrt.dll__c_exit
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x101e5db
mov al, 1
jmp 0x101e5dd
xor al, al
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x1021a55
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1036a44]
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0xa4]
add eax, 0x26e
cmp byte [eax], 0
je 0x1021a58
push eax
call fcn.0102150b
test eax, eax
je 0x1021a58
push eax
push edi
call fcn.01021645
test al, al
je 0x1021a58
mov dword [esi], 1
cmp dword [edi + 0x98], 0
jne 0x1021a41
mov dword [esi], 0x41
jmp 0x1021a5e
mov eax, dword [edi + 0xa4]
test byte [eax + 0x2e0], 4
je 0x1021a5e
mov dword [esi], 0x81
jmp 0x1021a5e
mov dword [esi], 0x20
mov ecx, dword [ebp - 4]
pop edi
mov al, 1
pop esi
call fcn.0102e95a
leave
ret 8
Function at 0x1028be3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x102fb77
call fcn.0102ec68
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1036740]
xor edx, edx
test eax, eax
je 0x1028b2c
mov ecx, dword [ebx + 4]
shl ecx, 1
cmp eax, ecx
jae 0x1028b2c
mov eax, dword [edx*4 + 0x1036744]
inc edx
test eax, eax
jne 0x1028b1c
lea eax, [edx*4 + 0x1036740]
cmp dword [eax], 0
mov dword [ebp - 0x18], eax
jne 0x1028b45
inc dword [ebx + 0x14]
xor al, al
jmp 0x1028bda
push esi
mov esi, dword [eax]
push edi
mov eax, esi
shl eax, 6
mov edi, esi
push eax
shl edi, 6
call fcn.0102ec4e
pop ecx
mov dword [ebp - 0x14], eax
xor edx, edx
cmp eax, edx
mov dword [ebp - 4], edx
je 0x1028b77
push 0x101fa54
push esi
push 0x40
push eax
call fcn.01016063
mov edx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test edx, edx
mov dword [ebx], edx
jne 0x1028b8d
mov eax, dword [ebp - 0x10]
inc dword [ebx + 0x14]
mov dword [ebx], eax
xor al, al
jmp 0x1028bd8
mov esi, dword [ebp - 0x10]
mov ecx, edi
xor eax, eax
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
shl ecx, 6
mov eax, ecx
push dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
sub ecx, dword [ebx + 4]
mov dword [ebx + 8], ecx
mov eax, dword [eax]
inc dword [ebx + 0x10]
mov dword [ebx + 4], eax
call fcn.0102ec42
pop ecx
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x102900f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
lea eax, [ebx + 0x18]
push esi
push eax
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
mov ecx, ebx
call fcn.01028199
test eax, eax
je 0x1029007
mov byte [ebp - 1], 0
jmp 0x102905b
cmp dword [ebx + 8], 0
jne 0x102901b
mov ecx, ebx
call fcn.010289fc
test al, al
mov byte [ebp - 1], al
je 0x102905b
push edi
mov ecx, ebx
call fcn.010281d9
mov edx, eax
push 0x12
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], esi
mov esi, dword [ebp + 0x18]
push 0xc
mov dword [edx + 0x40], 1
mov dword [edx + 0xc], eax
pop ecx
lea edi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
dec dword [ebx + 8]
inc dword [ebx + 0xc]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x14
Function at 0x102edaa
Capabilities:
Check if file exists

Disassembly:
push edi
push esi
push ebp
xor edi, edi
xor ebp, ebp
mov eax, dword [esp + 0x14]
or eax, eax
jge 0x102ed44
inc edi
inc ebp
mov edx, dword [esp + 0x10]
neg eax
neg edx
sbb eax, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
or eax, eax
jge 0x102ed60
inc edi
mov edx, dword [esp + 0x18]
neg eax
neg edx
sbb eax, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
or eax, eax
jne 0x102ed8c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
div ecx
mov esi, eax
mov eax, ebx
mul dword [esp + 0x18]
mov ecx, eax
mov eax, esi
mul dword [esp + 0x18]
add edx, ecx
jmp 0x102edd3
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ebx, 1
rcr ecx, 1
shr edx, 1
rcr eax, 1
or ebx, ebx
jne 0x102ed9a
div ecx
mov esi, eax
mul dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x18]
mul esi
add edx, ecx
jb 0x102edc8
cmp edx, dword [esp + 0x14]
ja 0x102edc8
jb 0x102edd1
cmp eax, dword [esp + 0x10]
jbe 0x102edd1
dec esi
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
xor ebx, ebx
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
dec ebp
jns 0x102ede5
neg edx
neg eax
sbb edx, 0
mov ecx, edx
mov edx, ebx
mov ebx, ecx
mov ecx, eax
mov eax, esi
dec edi
jne 0x102edf9
neg edx
neg eax
sbb edx, 0
pop ebp
pop esi
pop edi
ret 0x10
Function at 0x402ab8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404528
test esi, esi
jne 0x402aee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404618
jmp 0x402b0c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029cc
mov edi, eax
test esi, esi
je 0x402b0c
cmp dword [ebx], 0
je 0x402b0c
dec esi
jmp 0x402af5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403648
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036c0
xor eax, eax
push ebp
push 0x4036b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x477020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x40440d
cmp word [0x479220], 0xd7b2
jne 0x4043d5
cmp dword [0x479228], 0
jbe 0x4043d5
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x477090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404434
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x404429
push 0
push 0x477088
push 0x477090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret