joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003052f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1003063f
test esi, esi
je 0x1003063f
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
cmp cx, ax
je 0x100305e5
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x100305e5
xor cl, dl
test cl, 0x10
jne 0x100305e5
mov al, byte [edi]
cmp al, byte [esi]
jne 0x100305e5
push dword [esi + 8]
push dword [edi + 8]
call fcn.1003052f
pop ecx
pop ecx
test eax, eax
jne 0x100305e5
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.1003052f
pop ecx
pop ecx
test eax, eax
jne 0x100305e5
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.1003064f
test eax, eax
jne 0x100305e5
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x100305e5
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x100305e5
movzx ecx, word [edi + 2]
mov eax, 0x400
and ecx, eax
cmp cx, ax
jne 0x100305ea
mov cx, word [esi + 2]
and cx, ax
cmp cx, ax
jne 0x100305e5
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x10030612
push 2
pop eax
jmp 0x1003064a
cmp byte [edi], 0x98
je 0x10030612
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10030612
mov dx, word [esi + 2]
and dx, ax
cmp dx, ax
je 0x100305e5
mov edx, dword [esi + 4]
test edx, edx
je 0x100305e5
call fcn.1001344d
test eax, eax
jne 0x100305e5
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x1003062e
xor eax, eax
inc eax
jmp 0x1003064a
test cx, cx
je 0x1003063b
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x100305e5
xor eax, eax
jmp 0x1003064a
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100541d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ba3c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0x270f
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
jne 0x10054231
mov eax, 0x1f40
jmp 0x100543bd
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100543b7
sub esp, 0x1c
mov ecx, esp
mov edi, 7
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x250], esp
mov dword [ebp - 0x240], ecx
mov word [ecx], dx
push 0x20
push str.963c9a77fb72e44820b8161a49038365
mov dword [ebp - 4], ebx
call fcn.1004dce6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x240], esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x240], ecx
mov word [ecx], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x100542b1
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.1004dce6
mov eax, dword [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.100556a0
cmp eax, ebx
jne 0x100543db
sub esp, 0x1c
mov ecx, esp
xor esi, esi
xor edx, edx
mov dword [ebp - 0x240], esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x240], ecx
mov word [ecx], dx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10054320
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1004dce6
mov edi, dword [ebp - 0x248]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10054a50
cmp eax, 0x270f
je 0x10054394
cmp dword [ebp - 0x244], 0x270f
jne 0x10054394
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054372
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [edi + 0xfc0]
call fcn.1004dce6
mov esi, dword [ebp - 0x24c]
lea edx, [ebp - 0x23c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10054251
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4
mov eax, 0x15b3
jmp 0x100543bd
Function at 0x100543f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b9e6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 0x238], 0x104
call fcn.10066c10
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10054520
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10054480
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.1004dce6
sub esp, 0x1c
mov dword [ebp - 4], 1
cmp dword [ebp - 0x220], 8
mov esi, dword [ebp - 0x234]
mov ebx, 3
mov dword [ebp - 0x23c], esp
mov ecx, esp
jae 0x100544ce
lea esi, [ebp - 0x234]
mov dword [ecx + 0x10], edi
xor edx, edx
mov eax, esi
mov dword [ecx + 0x14], 7
mov word [ecx], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x100544e2
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.1004dce6
mov edi, dword [ebp + 8]
mov ecx, ebx
call fcn.10054a50
cmp dword [ebp - 0x220], 8
mov esi, eax
jb 0x1005451c
mov eax, dword [ebp - 0x234]
push eax
call fcn.100660ce
add esp, 4
mov eax, esi
jmp 0x10054525
mov eax, 0x270f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4
Function at 0x10054610
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b99b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, edi
mov dword [ebp - 0x240], eax
cmp eax, edi
jbe 0x10054734
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10054734
lea eax, [ebp - 0x23c]
push eax
push ebx
mov dword [ebp - 0x23c], 0x22c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10054726
lea ebx, [ebx]
mov ecx, dword [ebp - 0x240]
cmp dword [ebp - 0x234], ecx
je 0x100546b2
lea edx, [ebp - 0x23c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10054690
jmp 0x1005471f
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x240], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
mov esi, 5
mov dword [ebp - 0x240], ecx
mov word [ecx], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x100546e3
sub eax, edi
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.1004dce6
mov edi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10054a50
cmp eax, 0x270f
jne 0x10054739
mov esi, dword [ebp - 0x224]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], esi
cmp esi, edi
ja 0x10054654
mov eax, 0x270f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4
Function at 0x10056700
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x10094610]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
lea edx, [esp + 8]
push edx
shr esi, 6
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
cmp esi, 0x3c
jae 0x1005675a
cmp eax, 0x320
jb 0x10056775
cmp esi, 0x64
jae 0x10056766
cmp eax, 0x100
jb 0x10056775
cmp esi, 0xc8
jae 0x1005678b
cmp eax, 0x80
jae 0x1005678b
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
Function at 0x10058ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10058f14
xor al, al
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp + 0xc]
push eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x10

Function at 0x10058f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
mov edx, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 8]
push edi
lea edi, [ebp - 4]
push edi
push 0
or ecx, 0x20006
push ecx
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10058fa3
cmp dword [ebp + 0x28], 8
jb 0x10058f99
mov edx, dword [ebp + 0x14]
push edx
call fcn.100660ce
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp + 0x14]
mov edi, 8
cmp dword [ebp + 0x28], edi
jae 0x10058fb3
lea eax, [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
push ebx
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x28], edi
jb 0x10058feb
mov edx, dword [ebp + 0x14]
push edx
call fcn.100660ce
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x28
Function at 0x10059000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0
push edi
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x9c40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
call fcn.1006555b
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
add ecx, 2
push ecx
push 0
push ebx
call fcn.10066c10
mov eax, dword [esi]
add esp, 0x10
lea edx, [ebp - 0x30]
push edx
push ebx
push 0
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100590a3
push ebx
call fcn.100660ce
add esp, 4
xor al, al
jmp 0x10059133
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x100590dd
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100590c4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1004dce6
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp ecx, edx
je 0x10059116
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x100590f6
mov esi, edx
mov eax, esi
lea edi, [eax + 2]
jmp 0x10059100
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10059100
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.1004dce6
cmp dword [ebp - 0x18], 8
jb 0x10059128
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100660ce
add esp, 4
push ebx
call fcn.100660ce
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059270
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x13880
mov ebx, ecx
call fcn.1006555b
mov edi, dword [ebp + 0x10]
add esp, 4
cmp dword [edi], 0
mov esi, eax
jne 0x100592ad
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
or eax, 8
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100592d8
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [edi]
push 0x9c3f
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x100592ee
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
test esi, esi
je 0x100592e5
push esi
call fcn.10066c8a
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x14
test eax, eax
jne 0x100592d8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100592f7
mov ecx, dword [ebp + 0x18]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.1004dce6
inc dword [ebx]
test esi, esi
je 0x1005931f
push esi
call fcn.10066c8a
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x14
Function at 0x10059570
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
or ecx, 0xf003f
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100595ad
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret 0xc

Function at 0x100595d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
mov edx, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
or ecx, 1
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1005966a
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea ecx, [ebp + 0xc]
push ecx
push eax
push eax
push edx
mov dword [ebp + 0xc], 0x9c40
call edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006555b
mov ecx, dword [ebp + 8]
add esp, 4
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push ecx
call edi
mov edx, dword [ebp + 0x10]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10059644
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.100660ce
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1005dbf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.1005d410
mov ebx, eax
cmp ebx, esi
je 0x1005dc6a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x1005dc55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1005dcec
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.1005dbf0
mov ebx, eax
cmp ebx, esi
jne 0x1005dc44
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1005dca0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x1005dd05
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.1005d2c0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x1005dd28
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4
Function at 0x1005fc80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079a66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x1005fcfd
call fcn.1005d140
mov edi, eax
jmp 0x1005fde2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1005fd16
call fcn.1005d140
jmp 0x1005fdd9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x1005fd34
call fcn.1005d140
jmp 0x1005fdd9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x1005fd55
mov edi, 0x8007000e
jmp 0x1005fddb
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1005ec90
mov dword [ebp - 4], 1
jmp 0x1005fd8d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1005fd9e
mov edi, 0x8007000e
jmp 0x1005fddb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005fdb7
call fcn.1005d140
jmp 0x1005fdd9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.1005fac0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x1005fe00
lea ecx, [ebp - 0x418]
call fcn.1005db70
jmp 0x1005fe00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100615f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
mov esi, 7
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10061751
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x10061716
mov eax, dword [ebp - 0x114]
cmp eax, 4
ja 0x10061658
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x100616b7
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x1006167d
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10061698
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10061751
mov esi, 6
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10061751
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x100616e0
mov esi, 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100616fb
mov esi, 0xa
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10061751
mov esi, 0xd
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10061751
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
cmp eax, 4
ja 0x10061746
jne 0x10061733
cmp ecx, 0xa
jae 0x10061746
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp ecx, 0x5a
sbb esi, esi
and esi, 0xfffffffd
add esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100660ff
mov esp, ebp
pop ebp
ret

Function at 0x10061770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100617cd
mov edx, dword [ebp + 0x10]
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100617c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret