joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505cd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x505e8c
cmp dword [edi + 0x18], 0
je 0x505e8c
cmp dword [edi + 0x7c], 0
je 0x505cf9
call fcn.00506180
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00505a60
add esp, 8
test eax, eax
je 0x505d1d
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.00715ee8
mov esi, eax
add esp, 4
test esi, esi
je 0x505d60
push 0x4000
call fcn.00715ee8
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x505d6c
push esi
call fcn.00715cee
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x505dc7
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00504ba0
test eax, eax
jne 0x505dc7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x505dea
mov al, byte [edi + 0x39]
jmp 0x505ded
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x505e6d
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x505e6d
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x8018e8]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x505e20
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5061f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x50639d
cmp dword [ebx + 4], 0xffffffff
jne 0x50639d
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506230
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x506267
cmp eax, 0x2f
je 0x506267
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x506254
mov eax, dword [0x801170]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x506291
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5062ac
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x5062a9
cmp edi, 3
je 0x5062a9
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x5062f2
cmp edi, 2
jne 0x50630e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5062ec
mov eax, 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x5062f8
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.006f4f3d
add esp, 4
mov esi, eax
cmp edi, 1
je 0x506349
cmp edi, 2
je 0x506349
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x50637a
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x50637a
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00505450
mov ecx, dword [ebp - 8]
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x506aa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x506ad2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x506ad2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x506bbc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x506af1
cmp dx, 0x5c
jne 0x506af3
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x506ae5
cmp edi, ebx
je 0x506b3e
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0070d1d0
add esp, 0xc
cmp edi, 0x208
jae 0x506bcc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.00506aa0
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x506b63
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x506b53
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x506b65
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x506b80
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x506bbc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
call fcn.006f56f9
int3
Function at 0x50f750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
push eax
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x50f79f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0x200
push 0
push eax
mov dword [ebp - 0x40c], 1
call fcn.0070dcd0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
push esi
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50f81e
lea edx, [ebp - 0x404]
mov bl, 1
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x50f800
sub edx, esi
lea eax, [ebp - 0x404]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0044bdc0
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x50f9c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7433d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x10]
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
call fcn.00517b49
add esp, 4
test eax, eax
je 0x50fa0f
push eax
call fcn.00517c42
add esp, 4
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x58]
and ecx, eax
mov eax, dword [ebx + 0x4c]
mov ebx, dword [eax + ecx*8]
lea ecx, [ecx*8 + 4]
mov dword [ebp - 0x14], ecx
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x44]
nop
cmp ebx, edx
jne 0x50fa68
mov ecx, edx
jmp 0x50fa7c
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [edi + ecx]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x50faf9
mov ecx, dword [eax + 8]
cmp ecx, dword [esi]
je 0x50fa8b
mov eax, dword [eax]
jmp 0x50fa60
cmp eax, edx
je 0x50faf9
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx]
cmp esi, ecx
je 0x50faf9
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
nop dword [eax]
cmp dword [esi + 8], edx
je 0x50faad
mov esi, dword [esi]
cmp esi, ecx
jne 0x50faa0
jmp 0x50faf9
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [edx], ecx
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
dec dword [eax + 0x10]
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x50faee
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x50faee
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x50faee
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0x14
push esi
call fcn.006f4f2f
add esp, 8
push edi
mov dword [ebp - 4], 2
call fcn.00517b6e
add esp, 4
test eax, eax
je 0x50fb16
push eax
call fcn.00517c42
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x512b00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748969
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x512cbe
mov al, byte [edx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc edx
mov ah, byte [ebp - 0x12]
inc esi
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0xb], ch
mov byte [ebp - 0xd], cl
cmp esi, 3
jne 0x512bf5
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop word [eax + eax]
cmp dword [0x831e88], 0x10
mov ecx, 0x831e74
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x831e74]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004b6570
inc esi
cmp esi, 4
jl 0x512bc0
mov edx, dword [ebp - 0x20]
xor esi, esi
mov ch, byte [ebp + 0xb]
mov cl, byte [ebp - 0xd]
test ebx, ebx
jne 0x512b60
mov dword [ebp + 8], esi
test esi, esi
je 0x512cbe
mov eax, esi
cmp esi, 3
jge 0x512c2e
cmp eax, 3
jae 0x512cd2
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x512c12
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x512c31
mov dl, byte [ebp - 0xe]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x512c9c
mov esi, eax
nop dword [eax]
cmp dword [0x831e88], 0x10
mov ecx, 0x831e74
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x831e74]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004b6570
inc ebx
cmp ebx, esi
jl 0x512c70
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x512cbe
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.004b6570
sub ebx, 1
jne 0x512cb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006f56f9
int3
Function at 0x514200
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x50]
test eax, eax
je 0x514317
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.stat_init
push eax
call esi
push str.stat_proxy
push dword [edi + 0x50]
mov dword [edi], eax
call esi
push str.stat_dispatch_addr
push dword [edi + 0x50]
mov dword [edi + 4], eax
call esi
push str.stat_online_addr
push dword [edi + 0x50]
mov dword [edi + 8], eax
call esi
push str.stat_action_addr
push dword [edi + 0x50]
mov dword [edi + 0xc], eax
call esi
push str.stat_install_addr
push dword [edi + 0x50]
mov dword [edi + 0x10], eax
call esi
push str.stat_loginout_addr
push dword [edi + 0x50]
mov dword [edi + 0x14], eax
call esi
push str.stat_unionid
push dword [edi + 0x50]
mov dword [edi + 0x18], eax
call esi
push str.stat_appid
push dword [edi + 0x50]
mov dword [edi + 0x1c], eax
call esi
push str.stat_level
push dword [edi + 0x50]
mov dword [edi + 0x20], eax
call esi
push str.stat_version
push dword [edi + 0x50]
mov dword [edi + 0x24], eax
call esi
push str.stat_version_ex
push dword [edi + 0x50]
mov dword [edi + 0x28], eax
call esi
push str.stat_online
push dword [edi + 0x50]
mov dword [edi + 0x2c], eax
call esi
push str.stat_offline
push dword [edi + 0x50]
mov dword [edi + 0x30], eax
call esi
push str.stat_action
push dword [edi + 0x50]
mov dword [edi + 0x34], eax
call esi
push str.stat_mutilaction
push dword [edi + 0x50]
mov dword [edi + 0x38], eax
call esi
push str.stat_install
push dword [edi + 0x50]
mov dword [edi + 0x3c], eax
call esi
push str.stat_close
push dword [edi + 0x50]
mov dword [edi + 0x40], eax
call esi
push str.stat_app_install
push dword [edi + 0x50]
mov dword [edi + 0x44], eax
call esi
push str.stat_http_post
push dword [edi + 0x50]
mov dword [edi + 0x48], eax
call esi
mov dword [edi + 0x4c], eax
pop esi
pop edi
ret
Function at 0x5150d0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x8312b0]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
call esi
cmp eax, 0x6f
jne 0x5151a8
push dword [esp + 0x14]
call fcn.006f4f6d
mov edi, eax
add esp, 4
test edi, edi
je 0x51519a
lea eax, [esp + 0x14]
push eax
push edi
call esi
test eax, eax
jne 0x51519a
mov esi, edi
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x190]
cmp eax, 0x400
jae 0x515173
test eax, eax
jne 0x515159
mov esi, dword [esi]
test esi, esi
jne 0x515140
jmp 0x515173
push eax
lea eax, [esi + 0x194]
push eax
push dword [esp + 0x18]
call fcn.0070d1d0
mov ebx, dword [esi + 0x190]
add esp, 0xc
push 0x288
push edi
call fcn.006f4f2f
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 8
push 0x288
push edi
call fcn.006f4f2f
add esp, 8
mov ecx, dword [esp + 0x2a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 8
Function at 0x516010
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
cmp esi, 0x1a
jle 0x516193
mov edi, dword [ebp + 8]
movzx eax, byte [edi]
mov byte [ebx], al
mov dl, byte [edi + 1]
mov byte [ebx + 1], dl
movzx ecx, byte [edi + 3]
shl cx, 8
mov word [ebx + 2], cx
movzx eax, byte [edi + 2]
add ax, cx
mov word [ebx + 2], ax
movzx ecx, byte [edi + 5]
shl cx, 8
mov word [ebx + 4], cx
movzx eax, byte [edi + 4]
add ax, cx
mov word [ebx + 4], ax
movzx ecx, byte [edi + 7]
shl cx, 8
mov word [ebx + 6], cx
movzx eax, byte [edi + 6]
add ax, cx
mov word [ebx + 6], ax
movzx ecx, byte [edi + 9]
shl cx, 8
mov word [ebx + 8], cx
movzx eax, byte [edi + 8]
add ax, cx
mov word [ebx + 8], ax
movzx ecx, byte [edi + 0xb]
shl cx, 8
mov word [ebx + 0xa], cx
movzx eax, byte [edi + 0xa]
add ax, cx
mov word [ebx + 0xa], ax
movzx ecx, byte [edi + 0xd]
shl cx, 8
mov word [ebx + 0xc], cx
movzx eax, byte [edi + 0xc]
add ax, cx
mov word [ebx + 0xc], ax
movzx eax, byte [edi + 0xe]
mov byte [ebx + 0xe], al
movzx eax, byte [edi + 0xf]
mov byte [ebx + 0xf], al
movzx eax, byte [edi + 0x10]
mov byte [ebx + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [ebx + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [ebx + 0x12], al
movzx ecx, byte [edi + 0x14]
shl cx, 8
mov word [ebx + 0x14], cx
movzx eax, byte [edi + 0x13]
add ax, cx
mov word [ebx + 0x14], ax
movzx ecx, byte [edi + 0x16]
shl cx, 8
mov word [ebx + 0x16], cx
movzx eax, byte [edi + 0x15]
add ax, cx
mov word [ebx + 0x16], ax
mov cl, byte [edi + 0x17]
mov byte [ebx + 0x18], cl
movzx eax, byte [edi + 0x18]
mov byte [ebx + 0x19], al
movzx eax, byte [edi + 0x19]
mov byte [ebx + 0x1a], al
movzx eax, byte [edi + 0x1a]
mov byte [ebx + 0x1b], al
movzx eax, dl
sub esi, eax
movzx eax, dl
push ecx
push esi
add eax, edi
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.00515d30
movzx eax, byte [ebx + 0x19]
lea esi, [ebx + 0x68]
movzx ecx, byte [ebx + 1]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push esi
call fcn.00515d30
movzx eax, byte [ebx + 0x1a]
movzx ecx, byte [ebx + 1]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
lea eax, [ebx + 0x50]
push eax
call fcn.00515d30
movzx eax, byte [ebx + 0x1b]
movzx ecx, byte [ebx + 1]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push esi
call fcn.00515d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x516250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x83d0a8]
test ax, ax
jne 0x5164a7
push ebx
push esi
xor eax, eax
push edi
mov word [0x83d0a8], ax
call fcn.005161e0
push 0x8097b4
mov bl, al
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x51649e
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5162d3
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
call eax
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x51649e
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x51631b
mov eax, dword [ebp - 8]
test eax, eax
je 0x5162ff
cmp eax, 0xa
je 0x5162ff
cmp eax, 0x5a
jne 0x51649e
pop edi
mov eax, 1
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x5163b6
mov eax, dword [ebp - 8]
test eax, eax
jne 0x516347
pop edi
mov eax, 2
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x516371
xor eax, eax
test bl, bl
pop edi
setne al
pop esi
pop ebx
lea eax, [eax*4 + 4]
mov word [0x83d0a8], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x51649e
test bl, bl
jne 0x51639a
pop edi
mov eax, 0x10
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x20
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x516476
mov eax, dword [ebp - 8]
test eax, eax
jne 0x51644b
push 0x118
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [ebp - 0x12], 3
jne 0x516425
test bl, bl
mov eax, 0x200
mov ecx, 0x100
pop edi
cmove eax, ecx
movzx eax, ax
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
test bl, bl
mov eax, 0x80
pop edi
mov ecx, 0x40
cmove eax, ecx
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x516478
test bl, bl
mov eax, 0x800
pop edi
mov ecx, 0x400
cmove eax, ecx
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
jb 0x51649e
test bl, bl
mov eax, 0x1000
pop edi
mov ecx, 0x2000
cmovne eax, ecx
pop esi
mov word [0x83d0a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
mov ax, word [0x83d0a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x548160
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x5481a9
mov al, byte [esi]
push eax
call fcn.00556260
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x548187
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret