joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1313e68d
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x131f67ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, ecx
call fcn.1313ea30
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x1313e7d0
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x680]
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push eax
push ecx
mov ecx, esi
call fcn.1313ec30
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x268]
stosw word es:[edi], ax
push edx
push ebx
lea eax, [esp + 0x470]
push 0x1321fb30
push eax
call fcn.1314d81b
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1313e7c6
mov esi, dword [esp + 0x684]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x44]
push 0x1321b5f0
push eax
call ebx
test eax, eax
je 0x1313e7ab
lea ecx, [esp + 0x44]
push 0x1321b5ec
push ecx
call ebx
test eax, eax
je 0x1313e7ab
test byte [esp + 0x18], 0x10
jne 0x1313e7ab
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.131e791b
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x680], ebp
call fcn.131e5f9e
lea ecx, [esp + 0x10]
mov dword [esp + 0x678], 0xffffffff
call fcn.131e78a7
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1313e74b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.131e7f99
add esp, 4
pop edi
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x66c
ret 8
Function at 0x13140d60
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 0x8000
ja 0x13140f39
je 0x13140f33
cmp ecx, 0x80
ja 0x13140e92
je 0x13140e8c
dec ecx
cmp ecx, 0x3f
ja case.0x13140d9c.8
xor edx, edx
mov dl, byte [ecx + 0x13141048]
jmp dword [edx*4 + 0x13141028]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10004
jne 0x13140dbe
cmp ecx, 0x10
jne 0x13140dbe
mov eax, 1
ret
cmp edx, 0x10008
jne 0x13140dd1
cmp ecx, 0x10
jne 0x13140dd1
mov eax, 0x1000
ret
cmp edx, 0x10010
jne 0x13140de4
cmp ecx, 0x10
jne 0x13140de4
mov eax, 0x1000000
ret
cmp edx, 0x10020
jne case.0x13140d9c.8
cmp ecx, 0x10
jne case.0x13140d9c.8
mov eax, 0x20000000
ret
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10003
jne 0x13140e1a
cmp ecx, 1
jne 0x13140e1a
mov eax, 2
ret
cmp edx, 0x10004
jne 0x13140e2d
cmp ecx, 1
jne 0x13140e2d
mov eax, 0x800
ret
cmp edx, 0x10005
jne 0x13140e40
cmp ecx, 1
jne 0x13140e40
mov eax, 0x80000
ret
cmp edx, 0x10006
jne 0x13140e53
cmp ecx, 1
jne 0x13140e53
mov eax, 0x10000000
ret
cmp edx, 0x10001
jne case.0x13140d9c.8
cmp ecx, 0x11
jne case.0x13140d9c.8
mov eax, 0x22
ret
mov eax, 0x33
ret
mov eax, 0x100
ret
mov eax, 0x35
ret
mov eax, 0x29
ret
mov eax, 0x28
ret
mov eax, 4
ret
cmp ecx, 0x800
ja 0x13140ef9
je 0x13140ef3
cmp ecx, 0x100
je 0x13140eed
cmp ecx, 0x200
je 0x13140ee7
cmp ecx, 0x400
jne case.0x13140d9c.8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp eax, 0x10001
jne 0x13140ecc
cmp ecx, 0x12
je 0x13140ee1
cmp eax, 0x2010008
jne 0x13140edb
cmp ecx, 0x400
je 0x13140ee1
mov eax, 0x80
ret
mov eax, 0x24
ret
mov eax, 0x8000
ret
mov eax, 0x20
ret
mov eax, 0x40
ret
cmp ecx, 0x2000
je 0x13140f13
cmp ecx, 0x4000
jne case.0x13140d9c.8
mov eax, 0x2000000
ret
cmp dword [esp + 8], 0x10002
jne 0x13140f2d
cmp dword [esp + 0xc], 0x2000
jne 0x13140f2d
mov eax, 0x34
ret
mov eax, 8
ret
mov eax, 0x4000
ret
cmp ecx, 0x2000000
ja 0x13140fd1
je 0x13140fcb
cmp ecx, 0x100000
ja 0x13140f86
je 0x13140f80
cmp ecx, 0x10000
je 0x13140f7a
cmp ecx, 0x20000
je 0x13140f74
cmp ecx, 0x40000
jne case.0x13140d9c.8
mov eax, ecx
ret
mov eax, 0x32
ret
mov eax, 0x10000
ret
mov eax, 0x100000
ret
cmp ecx, 0x400000
je 0x13140fc5
cmp ecx, 0x800000
je 0x13140fa8
cmp ecx, 0x1000000
jne case.0x13140d9c.8
mov eax, 0x8000000
ret
cmp dword [esp + 8], 0x10002
jne 0x13140fbf
cmp dword [esp + 0xc], 0x21
jne 0x13140fbf
mov eax, 0x31
ret
mov eax, 0x30
ret
mov eax, 0x400000
ret
mov eax, 0x40000000
ret
cmp ecx, 0x20000000
ja 0x1314100b
je 0x13141005
cmp ecx, 0x4000000
je 0x13140fff
cmp ecx, 0x8000000
je 0x13140ff9
cmp ecx, 0x10000000
jne case.0x13140d9c.8
mov eax, 0x12
ret
mov eax, 0x11
ret
mov eax, SysReAllocStringLen
ret
mov eax, 0x14
ret
cmp ecx, 0x40000000
je 0x13141021
cmp ecx, 0x80000000
jne case.0x13140d9c.8
mov eax, 0x21
ret
mov eax, 0x18
ret
Function at 0x13141090
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 0x40
ja 0x13141110
je 0x1314110a
dec ecx
cmp ecx, 0x34
ja case.0x131410af.18
xor edx, edx
mov dl, byte [ecx + 0x13141260]
jmp dword [edx*4 + 0x13141218]
mov eax, 0x40000000
ret
mov eax, 0x20000000
ret
mov eax, 0x10000000
ret
mov eax, 0x8000000
ret
mov eax, SysReAllocStringLen
ret
mov eax, 0x80
ret
mov eax, 0x2000
ret
mov eax, 8
ret
mov eax, 0x100
ret
mov eax, 0x20
ret
mov eax, 4
ret
mov eax, 0x20000
ret
mov eax, 0x800000
ret
mov eax, 0x40
ret
mov eax, 0x800
ret
cmp ecx, 0x100000
ja 0x131411a9
je 0x131411a3
cmp ecx, 0x4000
ja 0x1314116d
je 0x13141167
cmp ecx, 0x800
ja 0x1314115a
je case.0x131410af.2
cmp ecx, 0x80
je case.0x131410af.11
cmp ecx, 0x100
jne case.0x131410af.18
mov eax, 2
ret
mov eax, 0x400
ret
cmp ecx, 0x1000
je case.0x131410af.1
ret
mov eax, 0x8000
ret
cmp ecx, 0x40000
ja 0x1314119a
je 0x13141194
cmp ecx, 0x8000
je 0x1314118e
cmp ecx, 0x10000
jne case.0x131410af.18
mov eax, ecx
ret
mov eax, 0x200
ret
mov eax, 0x40000
ret
cmp ecx, 0x80000
je case.0x131410af.2
ret
mov eax, 0x100000
ret
cmp ecx, 0x10000000
ja 0x131411ee
je case.0x131410af.2
cmp ecx, 0x2000000
ja 0x131411da
je 0x131411d4
cmp ecx, 0x400000
je 0x131411ce
cmp ecx, 0x1000000
je case.0x131410af.1
ret
mov eax, 0x400000
ret
mov eax, 0x4000
ret
cmp ecx, 0x8000000
jne case.0x131410af.18
mov eax, 0x1000000
ret
mov eax, 1
ret
cmp ecx, 0x20000000
je case.0x131410af.1
cmp ecx, 0x40000000
je 0x1314120c
cmp ecx, 0x80000000
jne case.0x131410af.18
mov eax, 0x4000000
ret
mov eax, 0x2000000
ret
mov eax, 0x10
ret
Function at 0x13141630
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x131f6beb
push eax
mov eax, dword [0x13234bb8]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x13141878
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x13234bb8], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.131215b0
push eax
lea eax, [esp + 0x41c]
push 0x132181e4
push eax
call fcn.1314d81b
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x13233438
push 0x131fcfd8
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1314172a
cmp word [esp + 0xe1a], bx
jne 0x1314172a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.131a1940
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1314172e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x13141842
push esi
lea ecx, [esp + 0x10]
call fcn.1319db40
mov dword [esp + 0xe28], ebx
mov esi, 0x20019
call fcn.13178100
test eax, eax
je 0x1314175a
mov esi, 0x20219
push esi
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
call fcn.1319dcb0
test eax, eax
je 0x131417b8
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
push 0x131fd06c
call fcn.1319e0d0
cmp eax, ebx
je 0x131417b8
mov ecx, dword [esp + 0xc]
cmp ecx, 0x400
jae 0x131417ab
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x131417af
mov dword [esp + 0xc], ebx
push eax
call fcn.131e7f99
add esp, 4
lea ecx, [esp + 0x10]
call fcn.1319dd00
lea ecx, [esp + 0x10]
mov dword [esp + 0xe28], 0xffffffff
call fcn.1319dc30
mov eax, dword [esp + 0xc]
pop esi
cmp eax, ebx
jne 0x13141842
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x13233438
push 0x131fd06c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1314183a
cmp word [esp + 0xe1a], bx
jne 0x1314183a
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.131a1940
add esp, 0xc
jmp 0x1314183e
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x13141878
cmp eax, 4
jbe 0x13141878
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x13141878
cmp dword [esp + 0x14], 1
je 0x13141878
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x13141878
add eax, 0xfffffffc
cmp ecx, eax
ja 0x13141878
mov eax, dword [esp + 0x1c]
mov dword [0x13234bb4], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x13147a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x131f76d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.13143cd0
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.131479f0
mov eax, dword [0x13220c40]
mov byte [esp + 0x14], 1
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], 3
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x13164100
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x13164159
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13164159
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x13164160
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x1316413d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1316415b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x13169c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x13169c80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13169c80
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x13169c85
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x13169c6b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x13169c92
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x13174970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x131749b1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x131749b3
mov esi, edi
test esi, esi
je 0x13174a28
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13174a1d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x13174a1d
cmp dword [esp + 0x1c], eax
jbe 0x131749ee
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13174a1d
cmp esi, edi
je 0x13174a0f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x13174a28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x13174a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x13174aa5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13174aa5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x13174aa5
cmp dword [esp + 0x18], eax
jbe 0x13174a8b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x13174aa9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x13174d40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x131f8c4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x13220c40]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x13174dab
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13174dad
mov esi, edi
test esi, esi
je 0x13174e77
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x13174e6c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x13174def
cmp eax, 2
je 0x13174def
cmp eax, 6
je 0x13174def
cmp eax, 7
jne 0x13174e6c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.131e7f70
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x13174e52
lea ecx, [esp + 0x14]
call fcn.131e7a3e
cmp esi, dword [esp + 0x14]
je 0x13174e47
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.131e7f99
add esp, 4
jmp 0x13174e89
call fcn.131e7f99
add esp, 4
lea ecx, [esp + 0x10]
push 0x13233438
call fcn.131e7a3e
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x13174e77
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x13174e89
push eax
lea ecx, [esp + 0x14]
call fcn.131e7a3e
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.131e7614
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.131e78a7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x13174fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x13175007
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1317500a
mov esi, dword [ebp + 8]
test esi, esi
je 0x131751bd
call fcn.131d70c0
test eax, eax
je 0x131750b5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x131751b1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x13175059
cmp eax, 2
je 0x13175059
cmp eax, 6
je 0x13175059
cmp eax, 7
jne 0x131751b1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.131e7f70
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
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 [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x1317519c
mov ecx, dword [ebp + 0x18]
call fcn.13165ef0
cmp esi, dword [ebp + 8]
je 0x13175186
jmp 0x1317517f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x131750c1
mov dword [ebp + 0x10], eax
jmp 0x131750f6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1314d090
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x131751b1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x13175130
cmp eax, 2
je 0x13175130
cmp eax, 6
je 0x13175130
cmp eax, 7
jne 0x131751b1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.131e7f70
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x1317519c
mov ecx, dword [ebp + 0x18]
call fcn.13165fc0
cmp esi, dword [ebp + 8]
je 0x13175186
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.131e7f99
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.131e7f99
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x13233438
call fcn.13165ef0
cmp esi, dword [ebp + 8]
je 0x131751bd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x13175c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x131f8d18
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x13175c56
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13175c5b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x13175d4a
call fcn.131d70c0
test eax, eax
je 0x13175caa
mov edi, dword [ebp + 0x18]
push edi
call fcn.1314cebe
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x13175d3f
cmp esi, ebx
je 0x13175ca0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x13175d4c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x13175cb5
xor edi, edi
jmp 0x13175cea
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1314d090
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.1315fc70
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x13175d30
cmp esi, ebx
je 0x13175d1a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.13160480
mov eax, 1
jmp 0x13175d4c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.13160480
cmp esi, ebx
je 0x13175d4a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13177aa0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x13237630]
sub esp, 0x114
test eax, eax
jne 0x13177bed
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x132373c8
mov dword [0x13237630], 1
mov dword [0x132373c8], 0x114
call esi
mov edx, dword [0x132373d8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x13224d90], eax
je 0x13177bc8
push ebx
push 0x132374e0
mov dword [0x132374e0], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x13237624], eax
call edi
mov dword [0x13237628], eax
mov eax, dword [0x13237624]
test eax, eax
push 0x13237600
je 0x13177b44
call eax
jmp 0x13177b4a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x132374e4]
cmp eax, 6
jae 0x13177b62
cmp eax, 5
jne 0x13177b76
cmp dword [0x132374e8], 2
jb 0x13177b76
cmp word [0x13237600], 9
jne 0x13177b76
mov dword [0x132373bc], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x13177b94
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1323762c], edx
jmp 0x13177b9a
mov edx, dword [0x1323762c]
test edx, edx
je 0x13177bc8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x13177bc8
mov ecx, dword [esp + 0x14]
mov dword [0x132373d4], ecx
push 0x132373d0
push 0x132373cc
call fcn.13177f90
add esp, 8
call fcn.13177c00
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret