joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x10051d80
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.10062cdf
add esp, 8
test eax, eax
je 0x10051d0f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x10051d79
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x10051d79
lea edx, [esp + 0xc]
test edx, edx
je 0x10051d79
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x10051d56
push eax
lea eax, [esp + 0x10]
push eax
push 0x10140804
push ebx
push edi
call fcn.10062ebc
add esp, 0x14
xor esi, esi
jmp 0x10051d88
lea ecx, [esp + 0xc]
push ecx
call fcn.10062cc2
add esp, 4
cmp ebx, eax
jbe 0x10051d88
lea edx, [esp + 0xc]
push edx
push edi
call fcn.10062d49
add esp, 8
xor esi, esi
jmp 0x10051d88
mov esi, 0x57
jmp 0x10051d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10170c34], esi
je 0x10051d99
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x10051fa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101228b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x10127994]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100520b3
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.10062cdf
add esp, 8
cmp eax, ebx
je 0x10052034
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x100520ac
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x100520ac
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x1005207d
lea edx, [esp + 0x14]
push eax
push edx
push 0x10140804
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.10062ebc
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100520b9
lea ecx, [esp + 0x14]
push ecx
call fcn.10062cc2
add esp, 4
cmp eax, 0x104
jae 0x100520a8
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.10062d49
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100520b9
mov eax, 0x57
jmp 0x100520b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x10170c34], eax
je 0x100520cb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100520dc
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.1002dca0
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.1002d020
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.1002da20
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x100521e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x10052284
mov edi, dword [esp + 0x218]
test edi, edi
je 0x1005227d
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x1005227d
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x1005227d
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x1005225a
lea edx, [esp + 0xc]
push eax
push edx
push 0x10140804
push ebx
push edi
call fcn.10062ebc
add esp, 0x14
xor esi, esi
jmp 0x1005228c
lea eax, [esp + 0xc]
push eax
call fcn.10062cc2
add esp, 4
cmp ebx, eax
jbe 0x1005228c
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.10062d49
add esp, 8
xor esi, esi
jmp 0x1005228c
mov esi, 0x57
jmp 0x1005228c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10170c34], esi
je 0x1005229d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100541f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x208
push eax
push 0x10143140
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebp
jne 0x10054269
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push 0x10143120
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x100542c4
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push str.c:program_filescommom_files
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10062d49
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [esp + 0x220]
mov word [esp + 0x18], dx
jmp 0x100542e9
lea eax, [esp + 0x18]
mov word [esp + 0x21e], bp
push eax
call fcn.10062cc2
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x18], 0x5c
lea eax, [esp + eax*2 + 0x18]
jne 0x100542e9
mov word [eax], bp
mov edi, dword [esp + 0x42c]
push ebx
cmp edi, ebp
je 0x10054354
mov ebx, dword [esp + 0x434]
cmp ebx, ebp
je 0x10054354
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10054354
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebp
je 0x10054331
lea edx, [esp + 0x1c]
push eax
push edx
push 0x10140804
push ebx
push edi
call fcn.10062ebc
add esp, 0x14
xor esi, esi
jmp 0x10054359
lea eax, [esp + 0x1c]
push eax
call fcn.10062cc2
add esp, 4
cmp ebx, eax
jbe 0x10054359
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10062d49
add esp, 8
xor esi, esi
jmp 0x10054359
mov esi, 0x57
cmp esi, ebp
mov dword [0x10170c34], esi
pop ebx
je 0x1005436b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
sete al
pop ebp
add esp, 0x41c
ret
Function at 0x10055120
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x420
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push ebp
push 0x20119
push ebp
push ebp
push ebp
push 0x10143140
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x100551ab
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push 0x10143120
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x10055206
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
push str.c:program_filescommom_files
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10062d49
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], bp
rep stosd dword es:[edi], eax
add esp, 8
lea edx, [esp + 0x224]
stosw word es:[edi], ax
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 0x224]
mov word [esp + 0x1c], ax
jmp 0x1005522b
lea ecx, [esp + 0x1c]
mov word [esp + 0x222], bp
push ecx
call fcn.10062cc2
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x1c], 0x5c
lea eax, [esp + eax*2 + 0x1c]
jne 0x1005522b
mov word [eax], bp
mov edi, dword [esp + 0x430]
push ebx
cmp edi, ebp
je 0x10055296
mov ebx, dword [esp + 0x438]
cmp ebx, ebp
je 0x10055296
lea edx, [esp + 0x20]
test edx, edx
je 0x10055296
mov eax, dword [esp + 0x43c]
mov esi, 0x7a
cmp eax, ebp
je 0x10055273
push eax
lea eax, [esp + 0x24]
push eax
push 0x10140804
push ebx
push edi
call fcn.10062ebc
add esp, 0x14
xor esi, esi
jmp 0x1005529b
lea ecx, [esp + 0x20]
push ecx
call fcn.10062cc2
add esp, 4
cmp ebx, eax
jbe 0x1005529b
lea edx, [esp + 0x20]
push edx
push edi
call fcn.10062d49
add esp, 8
xor esi, esi
jmp 0x1005529b
mov esi, 0x57
cmp esi, ebp
mov dword [0x10170c34], esi
pop ebx
je 0x100552ad
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
sete al
pop ebp
add esp, 0x420
ret
Function at 0x1005a070
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x1005a08c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.100633c0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.10063500
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x1005a110
cmp byte [esp + 0x10], 0x5c
jne 0x1005a110
cmp byte [esp + 0x11], 0x5c
jne 0x1005a110
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.10063500
add esp, 8
test eax, eax
je 0x1005a18e
inc eax
push 0x5c
push eax
call fcn.10063500
add esp, 8
mov esi, eax
test esi, esi
je 0x1005a18e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1005a152
test bl, 1
je 0x1005a141
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1005a1c4
cmp ebx, 0xffffffff
je 0x1005a15b
test edi, edi
jne 0x1005a16a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1005a1c4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.10063500
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005a114
test ebp, ebp
je 0x1005a1c4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005a1b9
test al, 0x10
jne 0x1005a1c4
test al, 1
je 0x1005a1ac
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1005a1c4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x1005a1e0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x1005a1fc
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10062c85
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.10063640
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10062cc2
add esp, 0x18
cmp eax, 2
jbe 0x1005a281
cmp word [esp + 0x10], di
jne 0x1005a281
cmp word [esp + 0x12], di
jne 0x1005a281
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10063640
add esp, 8
test eax, eax
je 0x1005a309
add eax, 2
push edi
push eax
call fcn.10063640
add esp, 8
mov esi, eax
test esi, esi
je 0x1005a309
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1005a2c9
test bl, 1
je 0x1005a2b8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1005a33f
cmp ebx, 0xffffffff
je 0x1005a2d2
test edi, edi
jne 0x1005a2e1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1005a33f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.10063640
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005a289
test ebp, ebp
je 0x1005a33f
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005a334
test al, 0x10
jne 0x1005a33f
test al, 1
je 0x1005a327
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1005a33f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x1005f720
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10122ff8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x1005f752
call fcn.1007db30
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x1005f763
mov ecx, closesocket
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x1005f7b8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x1005f79e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x1005f8e4
cmp dword [esp + 0x18], ebx
jne 0x1005f7b8
cmp dword [esp + 0x14], ebx
je 0x1005f8e4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x1005f7c9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.1002d020
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x1005f80f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x1005f80f
call fcn.10075af0
test eax, eax
je 0x1005f80f
push 0x1014521c
lea ecx, [esp + 0x14]
call fcn.1002dca0
push ebx
lea ecx, [esp + 0x14]
call fcn.1002e6d0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x1005f8be
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x1005f84b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x1005f8be
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x1005f899
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1005f89c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x1005f894
mov dword [esi + 0x10], ebx
jmp 0x1005f89c
mov dword [esi + 0x10], ecx
jmp 0x1005f89c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.1002da20
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.1002da20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10061c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x10140804
push ecx
call fcn.10062d6e
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10061d1a
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x10061d00
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.100629b7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10061d00
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x10061d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x10140804
push ecx
call fcn.10062d6e
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10061dc9
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x10061ff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1006208a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x10062074
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.100629b7
mov esi, eax
add esp, 4
test esi, esi
je 0x10062074
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x10075280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1007528b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x1007538d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10128dd8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10128dd8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10128dd8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10128dd8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10128dd8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10128dd8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10128dd8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10128dd8]
xor eax, edx
inc ecx
dec edi
jne 0x100752a6
test esi, esi
je 0x100753af
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10128dd8]
xor eax, edx
inc ecx
dec esi
jne 0x10075391
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x100753d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10171db8]
sub esp, 0x114
test eax, eax
jne 0x1007551d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x10171b50
mov dword [0x10171db8], 1
mov dword [0x10171b50], 0x114
call esi
mov edx, dword [0x10171b60]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1014f738], eax
je 0x100754f8
push ebx
push 0x10171c68
mov dword [0x10171c68], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10142c6c
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 [0x10171dac], eax
call edi
mov dword [0x10171db0], eax
mov eax, dword [0x10171dac]
test eax, eax
push 0x10171d88
je 0x10075474
call eax
jmp 0x1007547a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10171c6c]
cmp eax, 6
jae 0x10075492
cmp eax, 5
jne 0x100754a6
cmp dword [0x10171c70], 2
jb 0x100754a6
cmp word [0x10171d88], 9
jne 0x100754a6
mov dword [0x10171b44], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100754c4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x10171db4], edx
jmp 0x100754ca
mov edx, dword [0x10171db4]
test edx, edx
je 0x100754f8
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 0x100754f8
mov ecx, dword [esp + 0x14]
mov dword [0x10171b5c], ecx
push 0x10171b58
push 0x10171b54
call fcn.100758c0
add esp, 8
call fcn.10075530
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret