joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bdb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x403c17
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x403bf0
jmp 0x403c8a
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x403c4a
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x403c20
jmp 0x403c83
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401242
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x403ec5
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov dword [ebp - 0x534], 0
pushal
mov dword [ebp - 0x2c], 0x413108
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x411228
mov dword [ebp - 8], 0x42d3d9
mov dword [ebp - 0x10], 0
mov dword [0x40d357], 0
push 0
push 0x186a0
push 0x413108
call fcn.0040122d
push 0
push 0x1000
push 0x42d3d9
call fcn.0040122d
push 0
push 0x1000
push 0x40e104
call fcn.0040122d
push 0
push 0x400
lea edx, [ebp - 0x42c]
push edx
call fcn.0040122d
push 0x1c
call fcn.00401c84
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40405a
mov dword [ebp - 0x1c], 0x1c
push 0
push 5
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
cmp eax, 0x7a
jne 0x40405a
push dword [ebp - 0x20]
call fcn.00401ca1
push dword [ebp - 0x1c]
call fcn.00401c84
test eax, eax
je 0x40405a
mov dword [ebp - 0x20], eax
mov esi, eax
push 0
push 5
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
cmp eax, 0
jne 0x40405a
lodsd eax, dword [esi]
mov ecx, eax
lea edi, [ebp - 0x530]
push eax
push edi
call fcn.0040129a
push 0
push edi
push 0x405098
call fcn.004021bb
push ecx
mov eax, dword [esi + 0x14]
push eax
push 0
push 0x410
call dword [sym.imp.kernel32.dll_OpenProcess]
test eax, eax
je 0x404051
mov dword [ebp - 0x18], eax
push 0x104
push edi
push 0
push eax
push 2
call fcn.00403bbc
push eax
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop eax
test eax, eax
je 0x404051
push edi
push 0x413108
call fcn.0040115e
je 0x404051
push edi
lea edx, [ebp - 0x42c]
push edx
call fcn.0040115e
je 0x404051
push 0
push edi
push 0x4050a6
call fcn.004021bb
push edi
push dword [ebp - 0x2c]
call fcn.004010d7
push edi
call fcn.0040127a
inc eax
add dword [ebp - 0x2c], eax
add esi, 0x18
pop ecx
dec ecx
jecxz 0x40405a
jmp 0x403fdd
cmp dword [ebp - 0x20], 0
je 0x404068
push dword [ebp - 0x20]
call fcn.00401ca1
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x413108
lea esi, [ebp - 0x530]
cmp dword [0x42b938], 9
jne 0x40412f
push ecx
push 0x413108
push esi
call fcn.00401f39
dec eax
jne 0x40412f
push dword [ebp - 0x24]
push esi
call fcn.00403cf5
cmp eax, 1
jne 0x40412f
mov edx, 1
mov dword [ebp - 0xc], 0x40e104
mov ecx, dword [0x40d906]
mov esi, 0x411228
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push edx
push esi
call fcn.00403db4
cmp eax, 1
jne 0x404112
push esi
push 0x40e104
call fcn.0040266f
cmp eax, 1
je 0x404112
push esi
push 0x405153
call fcn.00401c15
push esi
call fcn.0040393d
cmp eax, 1
jne 0x404112
push esi
push dword [ebp - 0xc]
call fcn.004026d1
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jae 0x40412f
inc dword [ebp - 4]
push esi
call fcn.0040127a
lea esi, [esi + eax + 1]
loop 0x4040c7
jmp 0x40412f
popal
cmp dword [ebp - 0x10], 0
je 0x404145
call fcn.00402350
mov dword [ebp - 0x534], 1
mov eax, dword [ebp - 0x534]
leave
ret
Function at 0x40414d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.0040122d
push 0
push 0x10
push edi
call fcn.0040122d
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x4041cc
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.004010d7
lea edx, [ebp - 0x25c]
push edx
call fcn.0040127a
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.0040120e
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8
Function at 0x404230
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x404271
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x4043a1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x4042b5
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x404323
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x40438f
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x404380
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4042cf
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x404380
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404380
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404307
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404380
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404329
cmp dword [ebp - 8], 1
je 0x404380
cmp dword [ebp - 0xc], 0
je 0x40438f
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404380
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40435d
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x40438f
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4043a1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x10005e46
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10285850], 0x9dd
mov dword [ebp - 0x10], eax
call fcn.10006664
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10005e8c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x10285850], 0x5a7
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10005fb0
jmp 0x10005ed7
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10005f8d
jmp 0x10005f63
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov dword [ebp - 0x38], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
add ecx, dword [ecx + edx]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x31], cl
je 0x10005ec7
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x31]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10005f0d
jmp 0x10005ec7
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jb 0x10005ef3
jmp 0x10005fb0
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1028584c], 0x1fbc
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005fbb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10285854], 0
mov dword [0x10285858], 0
mov dword [0x10285860], 0
mov dword [0x1028584c], 0x1a14
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10006116
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10285854], edx
mov dword [0x1028584c], 0xfbe
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10285858], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1028585c], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1028584c], 0x1d46
mov cl, byte [0x1028585c]
mov edx, dword [0x10285858]
mov byte [edi + edx], cl
mov edx, dword [0x10285854]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10285858]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10285860], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
mov ecx, dword [0x10285850]
add ecx, 0x374
mov dword [0x10285850], ecx
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x10006116
mov eax, dword [0x10285854]
mov ecx, dword [0x10285858]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1000601e
mov dword [0x10285850], 0x20c0
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10006133
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10285850]
add eax, 0xffffe02f
mov dword [ebp - 4], eax
lea eax, [fcn.10006133]
mov ecx, dword [0x1028584c]
add ecx, 0xffffdbc5
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x10006187
mov eax, dword [ebp - 0x14]
mov dword [0x10285850], eax
mov eax, dword [ebp - 0x18]
add esp, 0x1c
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10006166
jmp 0x1000619a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
je 0x10006176
mov eax, dword [ebp - 0x18]
add eax, 0xfffff000
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xfffff000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jmp 0x10006187
Function at 0x1000645c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10285858], 0
mov byte [0x1028585c], 0
mov dword [0x1028584c], 0x21
mov dword [0x10285854], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10006556
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10285858]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
movzx esi, byte [edi + ebx]
mov edi, dword [ebp - 0x28]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov eax, esi
cdq
idiv ecx
mov dword [0x10285858], edx
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + ebx]
mov byte [0x1028585c], cl
mov esi, dword [ebp - 0x18]
mov cl, byte [esi + edx]
mov byte [esi + ebx], cl
mov cl, byte [0x1028585c]
mov edx, dword [0x10285858]
mov byte [esi + edx], cl
mov dword [0x1028584c], 0x2cc
mov edx, dword [0x10285854]
add edx, 1
mov dword [0x10285854], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x100064ae
jmp 0x100064a6
xor eax, eax
mov dword [0x10285854], 0
mov dword [ebp - 0x20], eax
jmp 0x100064ae
mov eax, dword [ebp - 0x1c]
mov dword [0x10285850], 0x10da
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10285854]
add eax, 1
mov dword [0x10285854], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10006556
jmp 0x10006542
Function at 0x10006cdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10285850], 0x1981
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10006daa
mov eax, dword [ebp - 0x30]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [0x1028584c], 0x886
mov eax, dword [ebp - 0x34]
add eax, 0x1809
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [ebp - 0x38], eax
call fcn.10006895
xor eax, eax
mov dword [0x10285850], 0x263c
mov ecx, dword [ebp - 0x34]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx], ecx
mov dword [0x1028584c], 0xf39
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x10006da2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x50
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x10008474]
mov dl, byte [eax + 0x10008445]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x10006daa
lea eax, [ebp - 0x20]
mov dword [0x1028584c], 0x1811
mov dword [ebp - 0x40], eax
call fcn.10006a81
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.10006b6f
cmp eax, 0
mov dword [ebp - 0x30], eax
jne 0x10006d02
xor eax, eax
add esp, 0x50
pop ebp
ret
Function at 0x10006e38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1028584c], 0xf5e
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xd4
mov ebx, esi
add ebx, edi
add ebx, 0xd0
mov edi, dword [ebx]
imul ebx, eax, 0xd4
add esi, ebx
add esi, 0x90
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x396
mov ecx, esi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x140], edx
jne 0x10006e67
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x10008474]
mov dl, byte [eax + 0x10008445]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x10006ec8
lea eax, [ebp - 0x2c]
mov dword [0x1028584c], 0xfffeb770
mov dword [ebp - 0x144], eax
call fcn.10006a81
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10006b6f
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [0x10285864], eax
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
imul esi, eax, 0xd4
mov edi, edx
add edi, esi
add edi, 0xd0
mov esi, dword [edi]
imul edi, eax, 0xd4
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0xd4
add edx, ebx
add edx, 0x90
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x14c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], edx
call fcn.100065b0
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x158]
add edx, 1
cmp edx, 0x396
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
jne 0x10006f69
lea eax, [0x10008453]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov dword [0x1028584c], 0x14c0
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.1000645c
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10005fbb
xor eax, eax
mov ecx, dword [0x10285850]
add ecx, 0x571
mov dword [0x10285850], ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0x15b37f
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x131600
mov dword [0x1028584c], 0x733
mov ecx, dword [ebp - 0x14c]
add ecx, 0x12b98f
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2000
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414bc9
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x414d10
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x414c6f
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x414c19
cmp ecx, 0x40010001
je 0x414c19
cmp ecx, 0x40020001
je 0x414c19
cmp ecx, 0x40030001
jne 0x414c24
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x414c36
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x414c69
dec ecx
je 0x414c63
dec ecx
je 0x414c5d
dec ecx
je 0x414c57
dec ecx
je 0x414c51
dec ecx
jne 0x414c7c
or dword [ebp - 4], 0xe
jmp 0x414c7c
or dword [ebp - 4], 0xc
jmp 0x414c7c
or dword [ebp - 4], 0xa
jmp 0x414c7c
or dword [ebp - 4], 8
jmp 0x414c7c
or dword [ebp - 4], 6
jmp 0x414c7c
or dword [ebp - 4], 2
jmp 0x414c7c
cmp ecx, 0x40030000
jne 0x414c7c
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x414c8c
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x414c9a
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x414ca8
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x414cb6
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x414ccb
push 3
jmp 0x414cf6
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x414cfc
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x414ce8
xor edx, edx
inc edx
jmp 0x414cf7
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x414d08
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x414cb9
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x414d1d
mov eax, 0x8876086c
jmp 0x414d27
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

Function at 0x41f415
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41f46d
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41f46d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x41f46d
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret