joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027e30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebx], 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10027e68
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x40c], 0
push eax
push 0x20008
mov word [ebp - 0x408], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10027f9e
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 2
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, eax
mov dword [ebp - 0x410], 2
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x410]
push eax
push 0x12
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [ebp - 0x410]
test eax, eax
push dword [ebp - 0x414]
mov edx, 2
cmove ecx, edx
mov dword [ebp - 0x410], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10027f9e
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10027f9e
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x404], esi
jbe 0x10027f77
nop dword [eax]
push dword [ebp + esi*8 - 0x400]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10027f72
inc esi
cmp esi, dword [ebp - 0x404]
jb 0x10027f50
jmp 0x10027f77
mov edi, 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov cl, byte [ebp - 0x410]
mov eax, edi
pop edi
pop esi
mov byte [ebx], cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret
Function at 0x10028000
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x80000000
mov dword [ebp - 0x90], eax
xor esi, esi
mov dword [eax], 0
call fcn.10027fe0
add esp, 4
mov edi, eax
mov dword [ebp - 0x8c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x10028064
push eax
lea eax, [ebp - 0x84]
push str.OpenNTServiceManager_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1002813a
push 1
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x10028095
push eax
lea eax, [ebp - 0x84]
push str.OpenService_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x10028133
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], esi
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x1002812c
add eax, 0x400
push eax
call fcn.10029ea7
mov edi, eax
add esp, 4
test edi, edi
je 0x10028126
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x88]
push eax
add ecx, 0x400
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x1002810b
push eax
lea eax, [ebp - 0x84]
push str.QueryServiceConfig_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1002811b
mov ecx, dword [ebp - 0x90]
mov esi, 1
mov eax, dword [edi + 4]
mov dword [ecx], eax
push 0x24
push edi
call fcn.10029e99
add esp, 8
mov edi, dword [ebp - 0x8c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret 8

Function at 0x100282a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100285a0
test eax, eax
je 0x100282bb
mov eax, 1
pop esi
pop ebp
ret 0x18
push edi
push 0xf003f
call fcn.10027fe0
add esp, 4
mov edi, eax
push 0
test edi, edi
jne 0x100282e6
push esi
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
push 0
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp + 0x10]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push 0xf01ff
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x1002832d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push esi
push str.Couldnt_create_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x18
Function at 0x10028a90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x10008
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10028b19
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x10028b2e
test eax, eax
jne 0x10028b2e
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.10028a90
cmp eax, 1
je 0x10028ac8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10028b19
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10028d10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
xor edi, edi
push ebx
push esi
call fcn.100288f0
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10028df4
lea eax, [ebp - 0x110]
push eax
push 0x20019
push dword [ebp + 0x18]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10028e1b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10028e1b
push dword [ebp + 0x18]
push dword [ebp - 0x10c]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push dword [ebp - 0x110]
call fcn.10028d10
add esp, 0x14
cmp eax, 1
jne 0x10028e13
push dword [ebp - 0x10c]
inc edi
push dword [ebp + 0x10]
push ebx
push esi
call fcn.100288f0
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10028d61
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x110]
jmp 0x10028df9
xor edi, edi
jmp 0x10028df9
Function at 0x10029440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.1002b060
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002949d
cmp dword [ebp - 0x9c], 6
jb 0x1002949d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret

Function at 0x10029502
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100295c6
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100295b5
cmp dword [ebp - 0x110], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x100295a6
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x100295b5
push eax
push edi
push esi
call fcn.100295da
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x100295c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret 4

Function at 0x1002a598
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
mov byte [ebp - 0x44], 0x2b
mov byte [ebp - 0x43], 0x36
mov byte [ebp - 0x42], 0x64
mov byte [ebp - 0x41], 0x4c
mov byte [ebp - 0x40], 0x25
mov byte [ebp - 0x3f], 0x25
mov byte [ebp - 0x3e], 0x5f
mov byte [ebp - 0x3d], 0x4e
mov byte [ebp - 0x3c], 0x21
invalid
inc ebp

Function at 0x1002a7b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x50]
jae fcn.1002a7c2
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + resource.2]
mov eax, dword [ebp - 0x1c]
xor edx, edx
xor ecx, edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov byte [eax], cl
jmp 0x1002a78a
Function at 0x1002a7f3
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push 0
call dword [ebp - 0x54]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002a809
xor eax, eax
jmp 0x1002abba
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1002ada8
add esp, 0xc
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x78]
mov eax, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x78]
mov ecx, dword [edx + ecx + 0x7c]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x28], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002ac58
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 0x78], 0
jne 0x1002ac89
xor eax, eax
jmp 0x1002ad1d
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], 0
jmp 0x1002acb9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jge 0x1002ad1b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
add edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ax, word [ecx + edx*2]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 4]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1002abc8
add esp, 8
test eax, eax
jne 0x1002ad19
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
jmp 0x1002ad1d
jmp 0x1002acb0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002afd8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x1002b03b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jae 0x1002b07d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1002af38
add esp, 4
add al, 0x3b
inc ebp
or al, 0x75
invalid
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
jmp 0x1002b032
xor eax, eax

Function at 0x10062cf8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100628ec

Function at 0x10062d03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10062a6d

Function at 0x10066bab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10066390

Function at 0x10066bb6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100665cb

Function at 0x10073306
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007308d
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x4644a0
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x4644c8
jl 0x401115
mov dword [0x4638a0], 0x63
mov dword [0x466a6c], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x4638a0], eax
mov dword [eax*4 + 0x4668e0], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x4638a0]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x4664e0], eax
ror eax, 8
mov dword [ecx + 0x4660e0], eax
ror eax, 8
mov dword [ecx + 0x465ce0], eax
ror eax, 8
mov dword [ecx + 0x4658e0], eax
mov al, byte [ecx + 0x4668e0]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x4654e0], eax
ror eax, 8
mov dword [ecx + 0x4650e0], eax
ror eax, 8
mov dword [ecx + 0x4640a0], eax
ror eax, 8
mov dword [ecx + 0x463ca0], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041071c
mov esp, ebp
pop ebp
ret
Function at 0x406e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4617a0
call fcn.0040f67b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x406f44
test esi, esi
jne 0x406f44
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x406f28
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406f22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406f22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x406f11
cmp esi, eax
jae 0x406f15
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406f03
cmp esi, eax
jb 0x406f19
xor eax, eax
jmp 0x406f22
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x406f4d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4617a0
call fcn.0040f67b
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x406eb5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407068
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40709a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407096
cmp esi, eax
jae 0x40709a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407088
cmp esi, eax
jb 0x4070a0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x409300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x4612f0
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097a0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409406
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094e0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x4093f9
test ebx, ebx
je 0x409404
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s_
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406df0
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093b0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409404
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40944c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret