joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101f792
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x10c], esi
je 0x101f890
mov ecx, dword [ebx + 0x110]
cmp ecx, esi
je 0x101f890
mov edx, dword [ebx + 0x114]
cmp edx, esi
je 0x101f890
lea eax, [ebx + 0x7c]
push edi
mov edi, dword [eax + 8]
sub edi, dword [eax]
cmp edi, ecx
jne 0x101f88f
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
cmp ecx, edx
jne 0x101f88f
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [ebx + 0x124], esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
jle 0x101f853
push dword [ebp - 4]
lea ecx, [ebx + 0x120]
call fcn.01012156
mov esi, eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push dword [ebx + 0x10c]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x124]
jl 0x101f7fe
xor esi, esi
push dword [ebp - 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebx + 0x124], esi
jle 0x101f884
call fcn.0101a55c
test al, al
je 0x101f884
mov eax, dword [ebx + 0x98]
cmp eax, esi
je 0x101f884
push esi
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebx + 0x120]
call fcn.010121eb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1020203
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 0x48], 0
je 0x1020227
and dword [esi + 0x48], 0
push 0x800a
call fcn.01020115
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x102cf4f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push esi
push edi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jge 0x102cf6e
lea edx, [edi - 1]
imul edx, eax
add ecx, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
imul esi, edi
add esi, ecx
cmp ecx, esi
jae 0x102cfb9
mov edi, 0xff
push ebx
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx]
imul eax, edx
mov dword [ebp + 8], edx
cdq
mov ebx, edi
idiv ebx
mov byte [ecx], al
inc ecx
movzx eax, byte [ecx]
imul eax, dword [ebp + 8]
cdq
idiv ebx
mov byte [ecx], al
inc ecx
movzx eax, byte [ecx]
imul eax, dword [ebp + 8]
cdq
idiv ebx
mov byte [ecx], al
inc ecx
inc ecx
cmp ecx, esi
jb 0x102cf84
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x103347e
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], eax
cmp eax, edi
jne 0x10334a7
mov eax, 0x80004005
jmp 0x1033553
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x1033537
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x1c], eax
cmp eax, edi
je 0x1033537
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x20], eax
cmp eax, edi
je 0x1033537
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x2c], eax
cmp eax, edi
je 0x1033537
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x1033450
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x1033537
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x1033537
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x30], eax
cmp eax, edi
je 0x1033537
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x24], eax
cmp eax, edi
jne 0x103353e
mov eax, 0x80004005
jmp 0x1033552
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x28], eax
cmp eax, edi
mov eax, 0x80004005
je 0x1033552
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x103c739
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xfffffff8
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x68]
test esi, esi
je 0x103c760
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x103d521
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x40]
push eax
mov ebx, 0x1004d88
xor esi, esi
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x103d595
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x103c417
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call edi
push 0x7f00
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push 5
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push esi
call edi
push eax
push esi
push 0xfffffffffffffffd
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0xdc], eax
cmp eax, esi
je 0x103d5fa
push edi
push 0x1004dd0
push eax
call dword [sym.imp.USER32.dll_SetPropW]
push 1
lea ecx, [edi + 0x114]
push 0x64
call fcn.01042a3c
push 0xa
push 0x5209
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x103d606
mov dword [ebp - 0xc], 0x80004005
jmp 0x103d6a2
mov dword [ebp - 0xc], 0x80004005
jmp 0x103d6c6
push eax
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0x64
shr ebx, 2
pop eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
jl 0x103d627
mov dword [ebp - 0x14], eax
mov ebx, eax
push dword [ebp - 8]
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x103d6a2
cmp ebx, esi
je 0x103d6a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x103d696
cmp ebx, esi
mov dword [ebp - 8], esi
jle 0x103d696
mov eax, dword [ebp - 8]
movzx ebx, word [edi + eax*4]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ebx
add ecx, 0x114
call fcn.0103cd5a
test al, al
jne 0x103d68b
mov eax, dword [ebp - 8]
movzx eax, word [edi + eax*4 + 2]
mov ecx, dword [ebp - 0x10]
push eax
push ebx
add ecx, 0x114
call fcn.0103d3a6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x103d655
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x118], esi
jne 0x103d6b1
mov dword [ebp - 0xc], 0x80004005
cmp dword [ebp - 0xc], esi
jl 0x103d6c6
push 0x4e22
lea ecx, [edi + 0xb8]
call fcn.010125ae
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103fa8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10c55bc], 0
push esi
mov esi, ecx
mov dword [ebp - 4], esi
je 0x103fac4
mov al, byte [0x10c55c0]
cmp al, 4
jae 0x103faae
test al, al
jne 0x103fac4
push 0x1001d20
push dword [0x10c5594]
push dword [0x10c5590]
call fcn.0100d81a
cmp dword [esi + 0xc], 0
jne 0x103fb9c
push ebx
push 0xa
push 0x7724
push dword [0x10c568c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x103fb63
push edi
push ebx
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
shr edi, 2
mov eax, 0xc8
cmp edi, eax
jl 0x103fb06
mov edi, eax
push ebx
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x103fb62
test edi, edi
je 0x103fb62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x103fb59
xor ebx, ebx
test edi, edi
jle 0x103fb59
mov esi, eax
cmp word [esi], 0
je 0x103fb56
movzx eax, word [esi + 2]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
add ecx, 4
call fcn.0103f99e
inc ebx
add esi, 4
cmp ebx, edi
jl 0x103fb31
mov esi, dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
cmp dword [esi + 0xc], 0
pop ebx
jle 0x103fb70
mov dword [esi], 1
cmp dword [0x10c55bc], 0
je 0x103fb9c
mov al, byte [0x10c55c0]
cmp al, 4
jae 0x103fb86
test al, al
jne 0x103fb9c
push 0x1001d30
push dword [0x10c5594]
push dword [0x10c5590]
call fcn.0100d81a
pop esi
leave
ret
Function at 0x104d675
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10bbf70]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
inc eax
push eax
push 0
push 0x10066cc
push 0x80000001
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x104d750
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x10066c0
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 4
call esi
test eax, eax
jne 0x104d6e2
cmp dword [ebp - 0x10], 4
ja 0x104d6e2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x10066b0
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 8
call esi
test eax, eax
jne 0x104d73c
cmp dword [ebp - 0x10], 8
ja 0x104d73c
xor ecx, ecx
xor edx, edx
cmp dword [ebp - 0x10], ecx
jbe 0x104d732
movzx eax, byte [ebp + ecx - 0xc]
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x104d72e
imul edx, edx, 0xa
inc ecx
lea edx, [edx + eax - 0x30]
cmp ecx, dword [ebp - 0x10]
jb 0x104d714
test edx, edx
jne 0x104d735
or edx, 0xffffffff
push edx
call dword [sym.imp.USER32.dll_SetCaretBlinkTime]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xff
cmp dword [ebp - 0x14], eax
pop esi
jge 0x104d753
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101def4
leave
ret

Function at 0x104f855
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor bl, bl
call fcn.0104d2ee
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
test al, al
jne 0x104f88b
push dword [0x10c6210]
call fcn.0104df89
test al, al
jne 0x104f8fc
call esi
push eax
call fcn.0104de99
test eax, eax
je 0x104f8fc
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x10067cc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x104f8fc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10067c0
push dword [ebp - 8]
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104f8e0
mov al, byte [ebp - 4]
cmp al, 0x2f
jbe 0x104f8e0
sub al, 0x2f
mov bl, al
cmp bl, 3
jbe 0x104f8e0
mov bl, 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp bl, 2
je 0x104f8fc
test bl, bl
je 0x104f8fc
call esi
push eax
call fcn.0104e78c
jmp 0x104f903
call esi
and eax, 0x3ff
mov dword [0x10c6134], eax
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x1052975
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3f0
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
movzx esi, byte [ebx + 0x11]
push edi
call fcn.010521f6
mov ecx, ebx
mov edi, eax
call fcn.010521f6
mov ecx, dword [ebp + 0xc]
and dword [ecx], 0
and dword [ebp + 0xc], 0
test esi, esi
jle 0x10529da
mov edx, dword [eax]
xor edx, dword [edi]
test edx, 0xff000000
jne 0x10529e3
mov edx, dword [eax + 4]
cmp edx, dword [edi + 4]
jne 0x10529e3
mov edx, dword [eax + 8]
cmp edx, dword [edi + 8]
jne 0x10529e3
mov dl, byte [eax + 0xc]
cmp dl, byte [edi + 0xc]
jne 0x10529e3
inc dword [ebp + 0xc]
add edi, 0x10
add eax, 0x10
cmp dword [ebp + 0xc], esi
jl 0x10529a8
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x12]
jmp 0x1052a41
mov eax, esi
shl eax, 4
mov dword [ecx], 1
push eax
mov ecx, ebx
call fcn.010521f6
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.0104bf7d
mov ecx, dword [ebp + 8]
call fcn.010521f6
lea ecx, [ebp - 0x3f0]
mov edx, esi
mov edi, dword [eax]
xor edi, dword [ecx]
add eax, 0x10
and edi, 0xffffff
xor dword [ecx], edi
add ecx, 0x10
dec edx
jne 0x1052a13
call fcn.0105eb4c
mov edx, dword [eax]
mov ecx, esi
shl ecx, 2
push ecx
lea ecx, [ebp - 0x3f0]
push ecx
mov ecx, eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10a13cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [esi + 0x48], 0x40
push ebx
movzx ebx, word [esi + 0x52]
push edi
mov edi, eax
je 0x10a13e0
inc ebx
mov eax, dword [esi]
test eax, eax
je 0x10a13f0
push eax
push ebx
push dword [edi + 0x3c]
call fcn.0109df61
mov eax, dword [esi + 4]
test eax, eax
je 0x10a1401
push eax
push ebx
push dword [edi + 0x70]
call fcn.0109df61
mov eax, dword [esi + 8]
test eax, eax
je 0x10a1412
push eax
push ebx
push dword [edi + 0x40]
call fcn.0109df61
test byte [esi + 0x48], 2
je 0x10a1431
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10a1485
call fcn.010a0e31
push dword [esi + 0xc]
push dword [edi + 0x20]
call fcn.01081dee
jmp 0x10a1485
movzx ebx, word [esi + 0x18]
test ebx, ebx
jle 0x10a146c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10a144a
push eax
push ebx
push dword [edi + 0x7c]
call fcn.0109df61
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10a145b
push eax
push ebx
push dword [edi + 0x78]
call fcn.0109df61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10a146c
push eax
push ebx
push dword [edi + 0x74]
call fcn.0109df61
movzx eax, word [esi + 0x30]
test eax, eax
jle 0x10a1485
push eax
push dword [edi + 0xdc]
lea eax, [esi + 0x1c]
push eax
push edi
call fcn.010a7c89
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10a1495
push eax
push dword [edi + 0x34]
call fcn.01081dee
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10a14a5
push eax
push dword [edi + 0x38]
call fcn.01081dee
push esi
push dword [edi + 0x18]
call fcn.01081dee
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10a14bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x10a14d8
push eax
movzx eax, word [esi + 0x4c]
push eax
push dword [edi + 0x3c]
call fcn.0109df61
mov eax, dword [esi + 4]
test eax, eax
je 0x10a14ed
push eax
movzx eax, word [esi + 0x4c]
push eax
push dword [edi + 0x70]
call fcn.0109df61
mov eax, dword [esi + 8]
test eax, eax
je 0x10a1502
push eax
movzx eax, word [esi + 0x4c]
push eax
push dword [edi + 0x40]
call fcn.0109df61
test byte [esi + 0x48], 2
je 0x10a1521
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10a1577
call fcn.010a0e31
push dword [esi + 0xc]
push dword [edi + 0x20]
call fcn.01081dee
jmp 0x10a1577
push ebx
movzx ebx, word [esi + 0x18]
test ebx, ebx
jle 0x10a155d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10a153b
push eax
push ebx
push dword [edi + 0x7c]
call fcn.0109df61
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10a154c
push eax
push ebx
push dword [edi + 0x78]
call fcn.0109df61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10a155d
push eax
push ebx
push dword [edi + 0x74]
call fcn.0109df61
movzx eax, word [esi + 0x30]
pop ebx
test eax, eax
jle 0x10a1577
push eax
push dword [edi + 0xdc]
lea eax, [esi + 0x1c]
push eax
push edi
call fcn.010a7c89
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10a1587
push eax
push dword [edi + 0x34]
call fcn.01081dee
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10a1597
push eax
push dword [edi + 0x38]
call fcn.01081dee
push esi
push dword [edi + 0x1c]
call fcn.01081dee
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
Function at 0x10b0e90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x10b0ea2
mov eax, 1
pop ecx
ret 8
movzx cx, byte [eax]
mov edx, 0x100
imul cx, dx
movzx dx, byte [eax + 1]
add cx, dx
movzx ecx, cx
sub ecx, 1
push esi
push edi
je 0x10b0f5d
sub ecx, 1
jne 0x10b0f9c
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], esi
test ecx, ecx
je 0x10b0ee9
add eax, 2
cmp eax, ecx
jbe 0x10b0ee9
xor esi, esi
mov dword [esp + 8], esi
mov edi, dword [esp + 0x14]
movzx eax, word [edi]
push ecx
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.010afa20
mov ecx, eax
call fcn.010af3a0
movzx eax, ax
test ax, ax
jl 0x10b0f9c
movzx dx, byte [esi + 4]
mov ecx, 0x100
imul dx, cx
movzx cx, byte [esi + 5]
add dx, cx
movzx edx, dx
movsx ecx, ax
cmp ecx, edx
jg 0x10b0f9c
movzx edx, ax
movzx cx, byte [esi + edx*2 + 6]
lea eax, [esi + edx*2 + 6]
movzx ax, byte [eax + 1]
mov edx, 0x100
imul cx, dx
add cx, ax
mov word [edi], cx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], esi
test ecx, ecx
je 0x10b0f78
add eax, 2
cmp eax, ecx
jbe 0x10b0f78
xor esi, esi
mov dword [esp + 8], esi
mov edi, dword [esp + 0x14]
movzx edx, word [edi]
push ecx
push edx
push ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.010afa20
mov ecx, eax
call fcn.010af3a0
test ax, ax
jge 0x10b0fa7
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
movzx cx, byte [esi + 4]
movzx ax, byte [esi + 5]
mov edx, 0x100
imul cx, dx
add cx, ax
add word [edi], cx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x1025350
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1036011
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x103b444]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01023950
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x1002564
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.01027180
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.01027240
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.01027240
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0101a8a0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov edx, dword [0x1002554]
mov dword [ecx], edx
mov eax, dword [0x1002558]
mov dword [ecx + 4], eax
mov edx, dword [0x100255c]
mov dword [ecx + 8], edx
mov eax, dword [0x1002560]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], 1
push 0x103b7f4
call dword [fcn.0100113c]
cmp dword [0x103b7e4], 0
jne 0x1025499
push 0x103b7e4
call dword [fcn.010015f0]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x1026810
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10360cb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x103b444]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01023950
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.01023950
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x10025ac
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1002598
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.01027240
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0101a8a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.010246e0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 1
push 0x103b7f8
call dword [fcn.0100113c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x401910
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401920
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401950
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4019ca
xor eax, eax
cmp ecx, ebp
je 0x4019b2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4019d8
cmp ecx, ebp
je 0x401a6b
push ecx
jmp 0x401a65
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x401a3a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00401950
mov ebx, eax
cmp ebx, ebp
jne 0x401a88
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x401a00
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401a4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00401840
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401a6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046b4eb
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401a97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401a6d