joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x600029
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x28], esi
mov ecx, ebp
mov dword [esp + 0x14], esi
call fcn.00472830
mov dword [esp + 0x28], esi
or edi, 0xffffffff
mov eax, 0x6c5788
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 1
call fcn.004728f0
mov esi, eax
mov dword [esp + 0x28], 1
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
call fcn.004fcdf0
mov byte [esp + 0x2c], 2
push esi
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00480b80
add esp, 0x10
mov byte [esp + 0x28], 3
push eax
mov edi, ebp
call fcn.00472a90
mov byte [esp + 0x28], 2
lea ecx, [esp + 0x34]
call fcn.004740c0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x18]
call fcn.004740c0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x1c]
call fcn.004740c0
push 0x74561c
call fcn.00472a90
lea ecx, [esp + 0x34]
call fcn.00472830
mov dword [esp + 0x28], 4
or edi, 0xffffffff
mov eax, 0x6c5788
lea esi, [esp + 0x18]
call fcn.004728f0
mov byte [esp + 0x28], 5
push eax
lea edx, [ebx + 8]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00480b80
add esp, 0xc
mov byte [esp + 0x28], 6
lea edi, [esp + 0x34]
call fcn.00472a50
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x1c]
call fcn.004740c0
mov byte [esp + 0x28], 4
mov ecx, esi
call fcn.004740c0
push 0x6de080
push 0x6b6de4
mov ecx, edi
push ecx
call fcn.004733c0
mov edx, edi
push edx
mov edi, ebp
call fcn.00472a90
push 0x74561c
call fcn.00472a90
or edi, 0xffffffff
mov eax, 0x6c5788
lea esi, [esp + 0x18]
call fcn.004728f0
mov byte [esp + 0x28], 7
push eax
lea eax, [ebx + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00480b80
add esp, 0xc
mov byte [esp + 0x28], 8
push eax
mov edi, ebp
call fcn.00472a90
mov byte [esp + 0x28], 7
lea ecx, [esp + 0x1c]
call fcn.004740c0
mov byte [esp + 0x28], 4
mov ecx, esi
call fcn.004740c0
push 0x74561c
call fcn.00472a90
or edi, 0xffffffff
mov eax, 0x6c5788
lea esi, [esp + 0x18]
call fcn.004728f0
mov byte [esp + 0x28], 9
push eax
add ebx, 0x10
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.00480b80
add esp, 0xc
mov byte [esp + 0x28], 0xa
push eax
mov edi, ebp
call fcn.00472a90
mov byte [esp + 0x28], 9
lea ecx, [esp + 0x1c]
call fcn.004740c0
mov byte [esp + 0x28], 4
mov ecx, esi
call fcn.004740c0
push 0x74561c
call fcn.00472a90
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.004740c0
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x505900
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5ff55c
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x72d630]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x190]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp dword [esp + 0x68], 6
jb 0x505a2b
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], str.SHGetKnownFolderPath
mov byte [esp + 0x5c], 1
mov byte [esp + 0x5d], 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x68], 1
mov byte [esp + 0x69], bl
call fcn.004a3330
add esp, 8
mov dword [esp + 0x188], ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov esi, eax
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00475600
cmp esi, ebx
jne 0x505a2b
mov eax, 0x72dd6c
cmp byte [esp + 0x194], bl
jne 0x5059e0
mov eax, 0x72dd7c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x5c], ecx
push ebx
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x68], edx
call dword [esp + 0x28]
cmp eax, ebx
jne 0x505a2b
mov edx, dword [esp + 0x14]
push edx
mov eax, ebp
call fcn.00472a30
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x505add
call fcn.00480050
test al, al
je 0x505a5a
push ebx
or edi, 0xffffffff
mov eax, 0x6c0550
lea esi, [esp + 0x18]
call fcn.004728e0
mov dword [esp + 0x188], 1
mov edi, ebp
call fcn.00472a50
jmp 0x505ac9
mov esi, ebp
call fcn.0048ce80
test al, al
jne 0x505add
lea ecx, [esp + 0x14]
push ecx
call fcn.0047bab0
add esp, 4
mov dword [esp + 0x188], 2
mov edi, ebp
call fcn.00472a50
or edi, 0xffffffff
mov dword [esp + 0x188], edi
lea ecx, [esp + 0x14]
call fcn.004740c0
mov eax, str.download
cmp byte [esp + 0x194], bl
jne 0x505aaa
mov eax, str.upload
push ebx
lea esi, [esp + 0x18]
call fcn.004728e0
mov dword [esp + 0x188], 3
mov edx, esi
push edx
mov edi, ebp
call fcn.00472a90
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004740c0
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.005e038a
add esp, 0x178
ret 8
Function at 0x505d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f47c3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ecx, edi
mov dword [esp + 0xc], ebx
call fcn.00472830
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 1
call fcn.0041e730
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
call fcn.004299d0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
call fcn.0041ea70
test al, al
je 0x505df4
xor edx, edx
cmp byte [esp + 0x10], bl
setne dl
add edx, 0x30
push edx
call fcn.00472b20
push 0x1f
call fcn.00472b20
lea eax, [esp + 0x14]
push eax
call fcn.00472a90
push 0x1f
call fcn.00472b20
lea ecx, [esp + 0x18]
push ecx
call fcn.00472a90
push 0x1f
call fcn.00472b20
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
call fcn.0041ea70
test al, al
jne 0x505da7
mov byte [esp + 0x30], bl
lea eax, [esp + 0x10]
push eax
call fcn.0041e790
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x28
ret 8
Function at 0x50e900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6035d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x88]
mov eax, edi
call fcn.00473170
test al, al
je 0x50ea04
lea eax, [esi + 0xa8]
mov dword [esp + 0x18], eax
call fcn.00473170
test al, al
je 0x50ea04
push esi
call fcn.0050e7a0
shl eax, 4
cmp byte [eax + 0x72db94], 0
je 0x50ea04
lea eax, [esp + 0x1c]
push eax
call fcn.00473810
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0xb0]
push ecx
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x23], 0
call sub.ClientConfigUI62U.dll_bool___cdecl_LaunchFirewallUsernameDialog_class_IString___bool___class_IParentable__
add esp, 0xc
cmp byte [esp + 0x17], 0
mov bl, al
lea eax, [esp + 0x20]
je 0x50e9bd
lea ecx, [esi + 0x7c]
call fcn.0040e5c0
push esi
call fcn.004fb4f0
jmp 0x50e9c6
mov edi, dword [esp + 0x18]
call fcn.00472a50
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x24]
call fcn.004221b0
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004738f0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0xa8]
mov eax, ecx
call fcn.00473170
test al, al
je 0x50ea20
lea eax, [esi + 0x7c]
neg eax
sbb eax, eax
and eax, edi
jmp 0x50ea22
mov eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
call fcn.004221b0
push eax
mov eax, dword [edx + 0xc]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50ea50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6035d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x9c]
mov eax, edi
call fcn.00473170
test al, al
je 0x50eb5d
lea eax, [esi + 0xac]
mov dword [esp + 0x18], eax
call fcn.00473170
test al, al
je 0x50eb5d
push esi
call fcn.0050e7a0
shl eax, 4
cmp byte [eax + 0x72db94], 0
je 0x50eb5d
lea eax, [esp + 0x1c]
push eax
call fcn.00473810
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0xb0]
push ecx
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x23], 0
call sub.ClientConfigUI62U.dll_bool___cdecl_LaunchFirewallPasswordDialog_class_IString___bool___class_IParentable__
add esp, 0xc
cmp byte [esp + 0x17], 0
mov bl, al
lea eax, [esp + 0x20]
je 0x50eb16
call fcn.004221b0
lea ecx, [esi + 0x90]
push ecx
call fcn.00512c00
push esi
call fcn.004fb4f0
jmp 0x50eb1f
mov edi, dword [esp + 0x18]
call fcn.00472a50
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x24]
call fcn.004221b0
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004738f0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0xac]
mov eax, ecx
call fcn.00473170
test al, al
je 0x50eb7c
lea eax, [esi + 0x90]
neg eax
sbb eax, eax
and eax, edi
jmp 0x50eb7e
mov eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
call fcn.004221b0
push eax
mov eax, dword [edx + 0xc]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x510820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f4590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov edi, ecx
lea esi, [edi + 0xc]
test esi, esi
je 0x510859
lea eax, [edi + 0x18]
jmp 0x51085b
xor eax, eax
mov edx, ebx
call fcn.00473ae0
test al, al
jne 0x510925
mov eax, ebx
mov ecx, esi
call fcn.0040e5c0
mov eax, dword [edi + 0x20]
test eax, eax
jl 0x51088d
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [edi + 0x30]
push ecx
mov ecx, eax
call edx
mov dword [edi + 0x20], 0xffffffff
call sub.ClientConfigUI62U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
mov eax, dword [eax + 4]
xor ebp, ebp
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x510925
xor ebx, ebx
call sub.ClientConfigUI62U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
test ebx, ebx
jl 0x51098d
cmp ebp, dword [eax + 4]
jge 0x51098d
mov eax, dword [eax + 8]
add eax, ebx
lea esi, [esp + 0x18]
call fcn.00472850
mov dword [esp + 0x28], 0
lea eax, [edi + 0xc]
test eax, eax
je 0x5108e0
lea eax, [edi + 0x18]
jmp 0x5108e2
xor eax, eax
lea esi, [esp + 0x14]
call fcn.00472850
mov byte [esp + 0x28], 1
mov edx, esi
lea eax, [esp + 0x18]
call fcn.00473ae0
test al, al
jne 0x51093b
mov byte [esp + 0x28], al
mov ecx, esi
call fcn.004740c0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004740c0
inc ebp
add ebx, 0x54
cmp ebp, dword [esp + 0x1c]
jl 0x5108a8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], ebp
cmp dword [eax + ebp*4], 0
jne 0x51095b
mov ecx, dword [esp + 0x34]
push ecx
push 0
mov esi, ebp
call fcn.005109b0
mov edx, dword [edi + 0x28]
mov dword [edx + ebp*4], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
add edi, 0x30
push edi
call eax
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.004740c0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004740c0
jmp 0x510925
push 0x703ea8
lea ecx, [esp + 0x34]
xor al, al
push ecx
mov byte [esp + 0x38], al
call sub.MSVCR90.dll__CxxThrowException
int3

Function at 0x512ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
cmp dword [ecx + 8], 0
je 0x512adb
xor al, al
ret 8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push eax
mov eax, dword [ecx + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x512b00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push eax
mov eax, dword [ecx + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
ret 8
Function at 0x512e30
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5f9544
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x34]
or edi, 0xffffffff
lea esi, [esp + 0x34]
call fcn.004740a0
mov ebx, 1
mov dword [esp + 0x28], ebx
push 0x18
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 2
test eax, eax
je 0x512ea2
push 0
push eax
mov edi, 0x400
call fcn.0047c360
jmp 0x512ea4
xor eax, eax
mov byte [esp + 0x28], bl
mov ecx, eax
lea eax, [esp + 0x18]
call fcn.0040e590
mov byte [esp + 0x28], 3
lea eax, [esp + 0x18]
call fcn.0044d900
mov ecx, eax
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x38]
call fcn.004748c0
push eax
lea eax, [esp + 0x3c]
call fcn.004221b0
push eax
mov eax, dword [edx + 0x30]
call eax
lea eax, [esp + 0x18]
call fcn.0044d900
push eax
push ebp
call fcn.005156a0
add esp, 8
mov dword [esp + 0x14], ebx
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x18]
call fcn.0040e5a0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.004740c0
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x5134c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fec12
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x10]
call fcn.004772e0
lea eax, [esp + 0xc]
push eax
call fcn.0047b3f0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x34]
push edi
call fcn.00488000
mov edx, dword [edi]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0x3c]
push eax
mov ecx, edi
call edx
test al, al
je 0x513521
xor cl, cl
jmp 0x51352f
lea eax, [esp + 0xc]
push eax
mov eax, esi
call fcn.0047b4c0
mov cl, 1
mov eax, edi
call fcn.00488010
push esi
lea eax, [edi + 0x24]
call fcn.0047b4c0
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0xc]
call fcn.00429b10
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x514330
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0xffffffffffffffff
push 0x603521
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 0x14]
lea esi, [ebx + 0x14]
push 0
mov ecx, esi
call edx
mov eax, edi
call fcn.00473170
test al, al
je 0x51439f
mov ecx, ebp
call fcn.00472830
mov dword [esp + 0x64], 0
mov dword [esp + 0x14], 1
jmp 0x51451a
mov eax, edi
call fcn.004221b0
mov ecx, eax
mov eax, edi
call fcn.00473120
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push 0
push 0
push str.VProfileCapiString
lea edx, [esp + 0x3c]
lea eax, [eax + eax + 2]
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x51446d
mov eax, dword [0x741af8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00475440
mov dword [esp + 0x64], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0xe1040045
mov ecx, esi
call eax
mov edx, dword [esi]
lea eax, [ebx + 4]
call fcn.004221b0
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [esp + 0x2c]
add edi, 0x20
call fcn.00475a00
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
push 0x6cc558
call fcn.0048c8d0
add esp, 8
mov ecx, ebp
call fcn.00472830
mov dword [esp + 0x14], 1
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x2c]
call fcn.00475600
jmp 0x51451a
mov eax, 0x745630
lea esi, [esp + 0x6c]
call fcn.00472850
mov ebx, 2
mov dword [esp + 0x64], ebx
mov eax, esi
call fcn.00473120
mov ecx, dword [esp + 0x1c]
mov edx, esi
lea eax, [eax + ecx*2 + 1]
push edx
call fcn.00472970
lea ecx, [esp + 0x18]
call fcn.00472830
mov byte [esp + 0x64], 3
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x5144e1
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + esi]
push ecx
lea edx, [esp + 0x1c]
push str._1_02X_
push edx
call fcn.00473260
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x70]
call fcn.00472a90
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x5144b1
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x6c]
mov esi, ebp
call fcn.00472850
mov dword [esp + 0x14], 1
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x18]
call fcn.004740c0
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x6c]
call fcn.004740c0
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
Function at 0x515ec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
lea edi, [edx + 4]
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [edi]
add edi, 4
mov eax, ecx
shr eax, 8
movzx ebx, cl
mov dword [esp + 0x14], ecx
movzx ebp, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [edx + ecx*4 + 0x4c]
movzx eax, al
add ecx, dword [edx + eax*4 + 0x44c]
movzx eax, bp
xor ecx, dword [edx + eax*4 + 0x84c]
movzx eax, bx
add ecx, dword [edx + eax*4 + 0xc4c]
xor ecx, esi
sub dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jne 0x515ee0
mov eax, dword [edx + 0x44]
xor eax, ecx
mov ecx, dword [edx + 0x48]
mov edx, dword [esp + 0x1c]
pop edi
xor ecx, esi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 8
ret 8

Function at 0x515f60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
lea edi, [edx + 0x48]
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [edi]
sub edi, 4
mov eax, ecx
shr eax, 8
movzx ebx, cl
mov dword [esp + 0x14], ecx
movzx ebp, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [edx + ecx*4 + 0x4c]
movzx eax, al
add ecx, dword [edx + eax*4 + 0x44c]
movzx eax, bp
xor ecx, dword [edx + eax*4 + 0x84c]
movzx eax, bx
add ecx, dword [edx + eax*4 + 0xc4c]
xor ecx, esi
sub dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jne 0x515f80
mov eax, dword [edx + 8]
xor eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x1c]
pop edi
xor ecx, esi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 8
ret 8
Function at 0x516000
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, eax
mov edi, ecx
mov eax, 0x6b7278
lea ecx, [ebp + 0x4c]
mov edx, 0x100
lea esp, [esp]
mov ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
add ecx, 4
sub edx, 1
jne 0x516020
cmp eax, 0x6b8278
jl 0x516017
xor eax, eax
mov ebx, 0x6b7230
add ebp, 4
movzx ecx, byte [eax + edi]
inc eax
cmp eax, esi
jl 0x51604b
xor eax, eax
movzx edx, byte [eax + edi]
shl ecx, 8
inc eax
or edx, ecx
cmp eax, esi
jl 0x51605b
xor eax, eax
movzx ecx, byte [eax + edi]
shl edx, 8
inc eax
or ecx, edx
cmp eax, esi
jl 0x51606b
xor eax, eax
movzx edx, byte [eax + edi]
shl ecx, 8
inc eax
or edx, ecx
cmp eax, esi
jl 0x51607b
xor eax, eax
mov ecx, dword [ebx]
xor ecx, edx
mov dword [ebp], ecx
add ebx, 4
add ebp, 4
cmp ebx, 0x6b7278
jl 0x516040
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea esi, [ebp + 8]
lea edi, [eax + 9]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov edx, ebp
call fcn.00515ec0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esi, 8
sub edi, 1
jne 0x5160a4
lea esi, [ebp + 0x50]
lea ebx, [edi + 4]
mov edi, 0x80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ebp
call fcn.00515ec0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi - 4], edx
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x5160d5
sub ebx, 1
jne 0x5160d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x72d630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5164c4
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5164b3
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x51649d
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x5164b3
push eax
push edi
push dword [ebp - 0x110]
call fcn.0051638c
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x5164c6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005e038a
leave
ret 4