joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da56
Capabilities:
Persist via run registry key

Disassembly:
push 4
mov eax, 0x477811
call fcn.004696a8
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040df4a
and dword [ebp - 4], 0
mov edi, 0x49e1e8
lea ecx, [esi + 0x30]
push edi
call fcn.00401743
lea ecx, [esi + 0x34]
push edi
mov byte [ebp - 4], 1
call fcn.00401743
push edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00401743
lea ecx, [esi + 0x3c]
push edi
mov byte [ebp - 4], 3
call fcn.00401743
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
call fcn.00401743
lea ecx, [esi + 0x44]
push edi
mov byte [ebp - 4], 5
call fcn.00401743
lea ecx, [esi + 0x48]
push edi
mov byte [ebp - 4], 6
call fcn.00401743
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 7
call fcn.00401743
push edi
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 8
call fcn.00401743
mov ecx, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ecx + 0x30]
mov byte [ebp - 4], 9
call fcn.00401712
mov eax, esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
lea ecx, [eax + 0x34]
mov dword [eax + 0x54], 1
mov dword [eax + 0x28], reloc.WS2_32.dll_accept
mov dword [eax + 0x5c], 0xf003f
mov dword [eax + 0x2c], reloc.WS2_32.dll_bind
call fcn.00401712
mov eax, esi
push str.Control_PanelDesktop_
lea ecx, [esi + 0x38]
mov dword [eax + 0x58], 4
call fcn.00401712
push str.Control_PanelDesktopWallPaper_bak
lea ecx, [esi + 0x4c]
call fcn.00401712
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktopNoChangingWallPaper
lea ecx, [esi + 0x50]
call fcn.00401712
mov ebx, esi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktop
lea ecx, [ebx + 0x3c]
call fcn.00401712
mov eax, ebx
call fcn.00469676
ret
Function at 0x40dbd5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x49d2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xfe
lea eax, [ebp - 0x103]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x308], ebx
mov byte [ebp - 0x104], bl
call fcn.00423400
push 0xfe
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00423400
push 0xfe
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.00423400
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30c], ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.004202e3
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.004202e3
mov eax, dword [ebp + 0x14]
add esp, 0x44
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x304]
push 0xff
push eax
call fcn.004202e3
add esp, 0x10
lea eax, [ebp - 0x308]
push eax
push dword [esi + 0x5c]
lea eax, [ebp - 0x104]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dcf7
mov eax, dword [ebp - 0x30c]
inc eax
push eax
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x204]
push ebx
push eax
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x308]
test eax, eax
je 0x40dcef
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dcf7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041dde3
leave
ret 0x14
Function at 0x40dd2b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x310
mov eax, 0x477890
call fcn.004696db
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], eax
push 0xfe
xor ebx, ebx
lea eax, [ebp - 0x30f]
inc ebx
push 0
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x310], 0
call fcn.00423400
push 0xfe
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call fcn.00423400
push 0xfe
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00423400
mov eax, dword [ebp + 0xc]
mov ecx, 0xff
mov dword [ebp - 0x31c], ecx
push dword [eax - 0xc]
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.004202e3
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.004202e3
add esp, 0x44
lea eax, [ebp - 0x314]
push eax
push dword [esi + 0x5c]
lea eax, [ebp - 0x310]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40de3d
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40de3d
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x318]
lea eax, [ebp - 0x110]
push eax
call fcn.00401712
jmp 0x40de3f
xor bl, bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401253
mov al, bl
call fcn.0046968a
ret 0x14

Function at 0x40e2a8
Capabilities:
Get session user name

Disassembly:
push 0x10c
mov eax, 0x477a8c
call fcn.00469747
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423400
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x40e30f
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.00401712
mov al, 1
jmp 0x40e31d
push str.NULL
mov ecx, esi
call fcn.00401712
xor al, al
call fcn.00469699
ret

Function at 0x40e329
Capabilities:
Get hostname

Disassembly:
push 0x10c
mov eax, 0x477a49
call fcn.00469747
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423400
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp eax, 1
jne 0x40e391
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [esi + 4]
call fcn.00401712
mov al, 1
jmp 0x40e3a0
push str.NULL
lea ecx, [esi + 4]
call fcn.00401712
xor al, al
call fcn.00469699
ret
Function at 0x40e3ac
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x49d2e0]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov edi, 0xfe
xor ebx, ebx
push edi
lea eax, [esp + 0x2a5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2ac], bl
call fcn.00423400
push edi
lea eax, [esp + 0x1b1]
push ebx
push eax
mov byte [esp + 0x1b8], bl
call fcn.00423400
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc edi
push edi
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40e437
xor al, al
jmp 0x40e468
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1a4]
push edi
push eax
call fcn.0041ecc0
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esi + 8]
call fcn.00401712
mov al, 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dde3
mov esp, ebp
pop ebp
ret

Function at 0x40e47d
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0xc
mov eax, 0x477a71
call fcn.00469711
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, 0x288
push 1
xor edi, edi
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
call fcn.00421018
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e59d
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40e4e3
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420130
mov edi, eax
pop ecx
mov esi, edi
test edi, edi
je 0x40e59d
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40e592
test esi, esi
je 0x40e567
push 8
lea eax, [esi + 0x1b0]
push str.0.0.0.0
push eax
call fcn.00433169
add esp, 0xc
test eax, eax
jne 0x40e51a
mov esi, dword [esi]
test esi, esi
jne 0x40e4fa
test esi, esi
je 0x40e567
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
mov eax, edx
shr eax, 0x18
push eax
mov eax, edx
shr eax, 0x10
movzx eax, al
push eax
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
push str._0.2X__0.2X__0.2X__0.2X__0.2X__0.2X
push 0x14
push 0x4a2cf8
call fcn.0041ed97
add esp, 0x24
test edi, edi
je 0x40e572
push edi
call fcn.0041fa7d
pop ecx
or dword [ebp - 4], 0xffffffff
push 0x4a2cf8
lea ecx, [ebx + 0xc]
call fcn.00401712
mov al, 1
jmp 0x40e59f
test esi, esi
je 0x40e59d
push esi
call fcn.0041f113
pop ecx
xor al, al
call fcn.00469676
ret
Function at 0x40e691
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x40e6bc
or eax, 0xffffffff
jmp 0x40e784
push edi
push ebx
call fcn.00420130
push ebx
mov edi, eax
push esi
push edi
call fcn.00423400
add esp, 0x10
push edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x40e6f0
push edi
call fcn.0041fa7d
or eax, 0xffffffff
jmp 0x40e782
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x486e94
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x40e713
or esi, 0xffffffff
jmp 0x40e77a
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040e650
test al, al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebx + 0x18]
push 0x486ea0
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebx + 0x20]
push 0x486ea0
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebx + 0x1c]
push 0x486ea0
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebx + 0x24]
push 0x486ea0
push eax
call fcn.00403011
add esp, 0x30
push edi
call fcn.0041fa7d
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x412a10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebx, edx
push esi
mov dword [esp + 0x14], ebx
mov ebp, ecx
call fcn.004032a3
mov esi, eax
cmp esi, 1
je 0x412a7b
test esi, esi
je 0x412a39
lea edx, [esi - 1]
test esi, edx
jne 0x412a39
and edx, ebp
jmp 0x412a3f
mov eax, ebp
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
je 0x412a6b
cmp esi, 1
je 0x412a7b
test esi, esi
je 0x412a5c
lea edx, [esi - 1]
test esi, edx
jne 0x412a5c
and edx, ebx
jmp 0x412a62
mov eax, ebx
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x412a78
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x412b9a
cmp esi, 1
mov ecx, dword [esp + 0x24]
je 0x412aa8
test esi, esi
je 0x412a90
lea edx, [esi - 1]
test esi, edx
jne 0x412a90
and edx, ecx
jmp 0x412a96
mov eax, ecx
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x412aa8
mov edx, dword [esp + 0x28]
jmp 0x412b9a
mov edx, dword [esp + 0x28]
push edi
mov edi, edx
xor esi, esi
shr edi, 2
mov dword [esp + 0x10], esi
test edi, edi
je 0x412b8c
cmp edi, 4
jb 0x412b4a
lea eax, [ecx - 4]
mov dword [esp + 0x10], esi
lea eax, [eax + edi*4]
cmp ebp, eax
ja 0x412ae1
lea eax, [ebp - 4]
lea eax, [eax + edi*4]
cmp eax, ecx
jae 0x412b4a
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp ebp, eax
ja 0x412af5
lea eax, [ebp - 4]
lea eax, [eax + edi*4]
cmp eax, ebx
jae 0x412b4a
mov esi, ebp
sub esi, ebx
mov dword [esp + 0x1c], esi
mov eax, edi
and eax, 3
mov dword [esp + 0x14], edi
sub dword [esp + 0x14], eax
mov esi, ecx
sub esi, ebx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, ebx
mov ebx, dword [esp + 0x1c]
movdqu xmm1, xmmword [edx + eax]
movdqu xmm0, xmmword [eax]
add esi, 4
pxor xmm1, xmm0
movdqu xmmword [ebx + eax], xmm1
lea eax, [eax + 0x10]
cmp esi, dword [esp + 0x14]
jb 0x412b20
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp esi, edi
jae 0x412b8c
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
sub ebx, ecx
sub edi, eax
add eax, edi
mov dword [esp + 0x20], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
lea esi, [ecx + esi*4]
mov dword [esp + 0x10], eax
mov eax, dword [edx + esi]
xor eax, dword [esi]
lea esi, [esi + 4]
mov dword [ebx + esi - 4], eax
dec edi
jne 0x412b71
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
shl esi, 2
pop edi
sub edx, esi
je 0x412bb1
add ebp, esi
add ebx, esi
add ecx, esi
test edx, edx
je 0x412bb1
sub ebx, ecx
sub ebp, ecx
mov al, byte [ecx + ebx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + ebp - 1], al
dec edx
jne 0x412ba2
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412bc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
xor bl, bl
call fcn.004032a3
mov edi, eax
cmp edi, 1
je 0x412c20
test edi, edi
je 0x412be8
lea edx, [edi - 1]
test edi, edx
jne 0x412be8
and edx, ebp
jmp 0x412bee
mov eax, ebp
xor edx, edx
div edi
neg edx
sbb edx, edx
inc edx
test edx, edx
je 0x412c1a
cmp edi, 1
je 0x412c20
test edi, edi
je 0x412c0b
lea edx, [edi - 1]
test edi, edx
jne 0x412c0b
and edx, esi
jmp 0x412c11
mov eax, esi
xor edx, edx
div edi
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x412c20
mov ecx, dword [esp + 0x1c]
jmp 0x412c8a
mov ecx, dword [esp + 0x1c]
mov edi, ecx
xor ebx, ebx
shr edi, 2
xor eax, eax
mov dword [esp + 0x10], ebx
test edi, edi
je 0x412c59
mov ecx, ebp
mov edx, esi
sub ecx, esi
mov dword [esp + 0x14], edi
nop
mov eax, dword [ecx + edx]
xor eax, dword [edx]
lea edx, [edx + 4]
or ebx, eax
dec edi
jne 0x412c40
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
shl eax, 2
sub ecx, eax
jne 0x412c6f
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
add ebp, eax
add esi, eax
shr ebx, 0x18
mov eax, edx
shr eax, 0x10
or bl, al
mov eax, edx
shr eax, 8
or bl, al
or bl, dl
test ecx, ecx
je 0x412c9d
sub ebp, esi
mov al, byte [esi + ebp]
xor al, byte [esi]
lea esi, [esi + 1]
or bl, al
dec ecx
jne 0x412c90
pop edi
pop esi
xor eax, eax
test bl, bl
pop ebp
sete al
pop ebx
add esp, 8
ret

Function at 0x414010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00403566
push 0
and eax, 0xfffffffe
push eax
mov ecx, esi
call fcn.0040689b
push ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0040c06c
mov dword [esp + 0x38], 0
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040b4af
test al, al
jne 0x4140e8
mov ecx, esi
call fcn.00409b1f
movq xmm0, qword [ebp + 8]
mov edx, dword [eax]
push 1
sub esp, 0x18
mov ecx, esp
movq qword [ecx], xmm0
movq xmm0, qword [ebp + 0x10]
movq qword [ecx + 8], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [ecx + 0x10], xmm0
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00406d7f
cmp eax, dword [0x47e758]
jne 0x4140e8
cmp edx, dword [0x47e75c]
jne 0x4140e8
mov eax, dword [edi]
push 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00403566
or eax, 2
push eax
mov ecx, esi
call fcn.0040689b
lea ecx, [esp + 0xc]
call fcn.00409c30
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x414110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00403566
push 0
and eax, 0xfffffffe
push eax
mov ecx, esi
call fcn.0040689b
push ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0040c06c
mov dword [esp + 0x38], 0
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040b4af
test al, al
jne 0x4141cf
mov ecx, esi
call fcn.00409b1f
mov edx, dword [eax]
push 1
push dword [ebp + 0x10]
lea ecx, [esp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea ecx, [esp + 0x14]
call fcn.00406d7f
cmp eax, dword [0x47e758]
jne 0x4141cf
cmp edx, dword [0x47e75c]
jne 0x4141cf
mov eax, dword [edi]
push 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00403566
or eax, 2
push eax
mov ecx, esi
call fcn.0040689b
lea ecx, [esp + 0xc]
call fcn.00409c30
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478898
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00403ff5
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x13]
mov edx, dword [esi]
push ecx
push 0x49f0f4
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
movzx ecx, byte [esp + 0x13]
test al, al
mov ebx, 1
cmovne ebx, ecx
call fcn.00403ffb
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x49f83c
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
mov ecx, 0x48
cmovne ecx, dword [esp + 0x14]
mov eax, 0x486b73
test bl, bl
mov esi, 0x488578
cmove esi, eax
xor eax, eax
test bl, bl
cmovne eax, ecx
lea ecx, [edi + 0x44]
mov dword [esp + 0x18], 6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
call fcn.00405541
push ecx
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], eax
call fcn.00403b2f
mov ebx, eax
push ecx
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], 0
call fcn.00403b2f
mov edi, eax
push ecx
lea eax, [esp + 0x18]
push eax
mov edx, str.EncodingLookupArray
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 1
call fcn.00415340
add esp, 8
mov byte [esp + 0x78], 2
movzx ecx, byte [eax + 8]
push ecx
push ecx
push str.PaddingByte
mov ecx, eax
call fcn.004154c0
mov esi, eax
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00403fe9
push eax
push ebx
call fcn.00403fdd
push eax
push edi
call fcn.00403fd7
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00403fe3
push eax
mov ecx, esi
call fcn.0040769d
mov ecx, eax
call fcn.00407768
mov ecx, eax
call fcn.00407768
mov ecx, eax
call fcn.00407cca
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], vtable.CryptoPP::CombinedNameValuePairs.0
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push edx
call dword [eax + 0x28]
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 1
call fcn.00403e2a
lea ecx, [esp + 0x3c]
call fcn.00403e14
lea ecx, [esp + 0x54]
call fcn.00403e14
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415b20
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478a58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x49d2e0]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00415d20
push esi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x415ba0
push 0x48a380
lea ecx, [esp + 0xc]
call fcn.00401618
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0
call fcn.004159a0
push 0x49759c
lea eax, [esp + 0x24]
push eax
call fcn.004236e6
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041dde3
mov esp, ebp
pop ebp
ret 8

Function at 0x415f50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx edx, byte [eax + 0x489d98]
mov edi, edx
shr edi, 7
mov esi, edi
imul edi, edi, 0x11b
imul esi, esi, 0x1b000000
mov ecx, edx
shl ecx, 0x19
xor esi, ecx
mov ecx, edx
shl ecx, 8
or ecx, edx
shl ecx, 8
or esi, ecx
lea ecx, [edx + edx]
xor edi, ecx
xor edi, edx
xor ecx, ecx
or edi, esi
or ecx, esi
mov dword [eax*8 + 0x4a1a70], ecx
mov dword [eax*8 + 0x4a1a74], edi
inc eax
cmp eax, 0x100
jl 0x415f54
xorps xmm0, xmm0
pop edi
movlpd qword [0x4a2278], xmm0
movlpd qword [0x4a2270], xmm0
mov byte [0x4a1a6c], 1
pop esi
ret
Function at 0x415fd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x489e98]
mov eax, edi
shr eax, 5
mov edx, eax
mov ebx, eax
and eax, 1
mov dword [esp + 0x14], eax
and edx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
lea ecx, [edi + edi]
xor ecx, edi
mov edx, edi
lea ebp, [ecx + ecx]
xor ebp, dword [esp + 0x10]
shr edi, 7
mov eax, edi
imul edi, edi, 0x11b
imul eax, eax, 0x1b000000
shl ebp, 0x19
xor ebp, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x1b000000
xor ebp, eax
and ebx, 2
mov eax, ebx
imul eax, eax, 0x1b000000
xor ebp, eax
shr edx, 6
mov esi, edx
and edx, 1
mov eax, edx
imul edx, edx, 0x11b00
imul eax, eax, 0x1b000000
xor ebp, eax
and esi, 2
mov eax, esi
imul esi, esi, 0x11b00
imul eax, eax, 0x1b000000
xor ebp, eax
mov eax, dword [esp + 0x18]
imul eax, eax, 0x1b000000
xor ebp, eax
mov eax, dword [esp + 0x14]
shl ecx, 2
imul eax, eax, 0x11b00
xor ecx, dword [esp + 0x10]
shl ecx, 8
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b00
xor ecx, eax
xor ecx, edx
xor ecx, esi
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, esi
imul eax, eax, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
mov eax, edx
imul edx, edx, 0x11b
imul eax, eax, 0x11b0000
shl ecx, 0x10
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b0000
xor ecx, eax
mov eax, esi
imul eax, eax, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
add ecx, ecx
xor ecx, edi
xor ecx, edx
imul ebx, ebx, 0x11b
imul esi, esi, 0x11b
xor ecx, ebx
mov edx, eax
xor ecx, esi
xor ecx, edx
or edx, ebp
xor eax, eax
or eax, edx
mov edx, dword [esp + 0x1c]
or ecx, ebp
mov dword [edx*8 + 0x4a2468], eax
mov dword [edx*8 + 0x4a246c], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x415fe0
pop edi
pop esi
pop ebp
mov byte [0x4a1a6d], 1
pop ebx
add esp, 0x10
ret