joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4846a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x16c]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4846f8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.0046e640
add esp, 8
cmp edi, 0xffffffff
jne 0x48472d
push str.Error_accept__ing_server_connect
push ebx
call fcn.0045fba0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0045fc40
push 1
mov byte [esi + 0x223], 0
push edi
mov dword [esi + 0x16c], edi
call fcn.0048e180
mov byte [esi + 0x179], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x484792
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x484792
push esi
call fcn.00484bb0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
mov esp, ebp
pop ebp
ret

Function at 0x486b00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x486b2f
push str.Couldnt_set_desired_mode
push edx
call fcn.0045fba0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x486b46
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0045fc40
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x486b5d
push edi
call fcn.004868a0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x486b71
push edi
call fcn.004859e0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x486b85
push edi
call fcn.00486880
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x486b95
push edi
call fcn.004869e0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x48bb50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005b55f1
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x48bbb4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x48bbb4
lea eax, [ebp - 0x108]
push eax
call dword [0x66432c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret

Function at 0x48bbd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048bb50
Function at 0x48e1b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x5e723c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48e1d0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5e7258
push esi
mov dword [ebp - 8], ebx
call fcn.005b5607
add esp, 8
test eax, eax
je 0x48e21c
test ebx, ebx
je 0x48e20c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x48e245
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48e245
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x48e2f0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48e261
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x664320]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48e2e6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x48e2e6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48e292
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48e2b0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x48e2c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x48e2dd
push 8
push 0
push ebx
call eax
jmp 0x48e2e4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x664324]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x491700
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x491733
push 0x2e
push edi
call fcn.005a3ff0
add esp, 8
test eax, eax
je 0x491731
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x493a30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x664320]
mov edi, eax
add esp, 4
test edi, edi
jne 0x493a5d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x493aa4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x493aaa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x493b0b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x493ad0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x493b37
mov eax, dword [esi + 4]
push 1
push 0x5e7a2e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5e7a2f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x493b10
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c56e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0059d3d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004a0030
mov ebx, eax
push ebx
push esi
call fcn.0049ff10
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4c5769
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c5743
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0049ff80
push esi
call fcn.004a00d0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c5769
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004a0030
mov ebx, eax
push ebx
push esi
call fcn.0049ff10
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4c57d8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c57be
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0049ff80
push esi
call fcn.004a00d0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4c5761
push esi
call fcn.004a00d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4ebeb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4ebed7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4ebec6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x58fd20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3143
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x667d00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66c80c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x66c80c
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5dfc04
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00593920
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x596570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x66d700], ecx
inc eax
cmp eax, 0x100
jb 0x596572
cmp eax, 0x800
jae 0x596643
nop
mov edx, dword [eax*4 + 0x66d300]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x66d700]
mov dword [eax*4 + 0x66d700], edx
inc eax
cmp eax, 0x800
jb 0x596620
mov dword [0x66c818], 0x5973e0
call fcn.00597210
mov ecx, dword [0x66c818]
test eax, eax
mov edx, 0x597480
cmove ecx, edx
mov dword [0x66c818], ecx
ret
Function at 0x597760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x597780
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x5977b2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x5977af
inc esi
cmp esi, edx
jb 0x5977a0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x5978dc
cmp ecx, 3
jbe 0x5977f2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x597830
cmp cl, 0xff
je 0x597830
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x597794
dec ecx
shl eax, cl
and eax, 7
je 0x5977ca
movzx ecx, byte [eax + 0x648880]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x648878], 0
mov cl, byte [edx + 4]
je 0x59781a
test cl, cl
je 0x59781a
cmp cl, 0xff
jne 0x5977ca
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x597794
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x59785e
lea edx, [edi + ebx]
add edx, esi
jmp 0x597864
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x5978a2
movzx edi, byte [eax + 0x648880]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x59788e
cmp cl, 0xff
jne 0x5978a2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x597851
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x597794
pop edi
pop esi
cmp ecx, 3
jbe 0x5978f1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59a3d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ebx, ecx
mov dword [ebp - 0xc30], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc2c], eax
mov eax, dword [ebp + 0x18]
push 0x200
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.005a26c0
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.005a26c0
push 0x208
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.005a26c0
push 0x208
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.005a26c0
push 0x208
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005a26c0
push 0x208
lea eax, [ebp - 0xc24]
push 0
push eax
call fcn.005a26c0
add esp, 0x48
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x59a492
cmp byte [ebp + 0x1c], al
jne 0x59a556
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.005b023d
push dword [ebp - 0xc2c]
lea eax, [ebp - 0x204]
push eax
call fcn.005b023d
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.005b023d
push dword [ebp - 0xc30]
lea eax, [ebp - 0x404]
push eax
call fcn.005b023d
push dword [ebp - 0xc34]
lea eax, [ebp - 0xc24]
push eax
call fcn.005b023d
push 2
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa1c]
push str.__s___d
push eax
call fcn.00405e00
add esp, 0x38
mov byte [ebp - 0xc25], 0
lea eax, [ebp - 0xc25]
mov ecx, ebx
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x814]
push str.F7C71435_3F18_4903_B387_446346CA44B8
push 0x6568d8
push eax
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0059c328
cmp byte [ebp - 0xc25], 0
je 0x59a556
mov byte [esi], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
leave
ret 0x1c
Function at 0x59ad4b
Capabilities:
Get common file path

Disassembly:
push 0x26c
mov eax, 0x5d3868
call fcn.0059d760
call fcn.0059af9e
call fcn.00404610
mov ecx, eax
call fcn.0043cd98
push eax
lea ecx, [ebp - 0x230]
call fcn.004030c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push 8
pop ebx
cmp dword [ebp - 0x21c], ebx
push 1
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401d10
and dword [ebp - 0x238], 0
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
mov edi, 0x5d4964
cmovae ecx, dword [ebp - 0x230]
push 0x5c
pop edx
mov byte [ebp - 4], 1
cmp word [ecx + eax*2 - 2], dx
lea eax, [ebp - 0x230]
jne 0x59adf5
push eax
lea ecx, [ebp - 0x248]
call fcn.00417ea0
jmp 0x59ae1d
push edi
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0041ace0
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
call fcn.00406f00
lea ecx, [ebp - 0x278]
call fcn.00403060
mov esi, str.Convert
push esi
call fcn.005b025f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00405ab0
push edi
call fcn.005b025f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x248]
call fcn.00405ab0
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
push 1
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00401d10
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.005a26c0
add esp, 0x14
lea eax, [ebp - 0x218]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005b01cc
lea eax, [ebp - 0x218]
push str.BKPDF
push eax
call fcn.005b01cc
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005b01cc
lea eax, [ebp - 0x218]
push 0x5d4e18
push eax
call fcn.005b01cc
lea eax, [ebp - 0x218]
push 0x5d8d04
push eax
call fcn.005b01cc
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00401d10
add esp, 0x30
mov dword [ebp - 0x250], esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], esi
lea ecx, [ebp - 0x260]
push eax
call fcn.0043ed0b
cmp dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push 0x5c
pop edx
mov byte [ebp - 4], 2
cmp word [ecx + eax*2 - 2], dx
je 0x59af5d
push edi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0041ace0
add esp, 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.00406f00
lea ecx, [ebp - 0x278]
call fcn.00403060
cmp dword [ebp - 0x24c], ebx
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.00402f30
pop ecx
lea ecx, [ebp - 0x260]
call fcn.00403060
lea ecx, [ebp - 0x248]
call fcn.00403060
lea ecx, [ebp - 0x230]
call fcn.00403060
call fcn.0059d70a
ret
Function at 0x59bceb
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
xor ebx, ebx
push esi
inc eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x59bd74
push dword [ebp - 4]
call fcn.005b0cd6
push dword [ebp - 4]
mov esi, eax
push ebx
push esi
call fcn.005a26c0
add esp, 0x10
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test esi, esi
je 0x59bd74
push dword [ebp + 0x14]
push esi
call fcn.005b01fd
test eax, eax
movzx ebx, bl
push 1
pop eax
push esi
cmove ebx, eax
call fcn.005af8a4
add esp, 0xc
test bl, bl
jne 0x59bd8d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CheckRegSZValue_false__
call esi
push dword [ebp + 0xc]
call esi
push 0x64946c
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x59bd95
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x10
pop ecx
push 0x88
mov dword [ebp - 0x198], eax
lea edi, [ebp - 0xcc]
lea eax, [ebp - 0x8c]
mov esi, str.SOFTWARERegisteredApplications
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a26c0
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005a26c0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.005b023d
lea eax, [ebp - 0x194]
push 0x5d4964
push eax
call fcn.005b01cc
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.005b01cc
add esp, 0x30
lea eax, [ebp - 0xcc]
cmp dword [ebp + 0x10], 0
push ebx
push eax
je 0x59be64
mov edi, reloc.WS2_32.dll_bind
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, dword [ebp - 0x198]
push esi
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0xcc]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x59be6f
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
leave
ret 0xc
Function at 0x59be80
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x44]
mov esi, 0x5dc568
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp + 0x18]
movsd dword es:[edi], dword [esi]
push 0x2e
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x32]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.005a26c0
mov esi, 0xc8
lea eax, [ebp - 0x1d4]
push esi
push edi
push eax
call fcn.005a26c0
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.005a26c0
push 0x190
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.005a26c0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.005b023d
lea eax, [ebp - 0x1d4]
push 0x5d4964
push eax
call fcn.005b01cc
add esp, 0x40
lea eax, [ebp - 0x1d4]
push ebx
push eax
call fcn.005b01cc
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.005b023d
lea eax, [ebp - 0x10c]
push 0x649470
push eax
call fcn.005b01cc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.005b023d
lea eax, [ebp - 0x364]
push str.FileAssociations
push eax
call fcn.005b01cc
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x364]
add esp, 0x28
cmp dword [ebp + 0x1c], edi
mov edi, reloc.WS2_32.dll_bind
push eax
push edi
je 0x59c034
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov esi, dword [ebp - 0x368]
push esi
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x10c]
push 1
push str.ApplicationDescription
push eax
push edi
call esi
mov ebx, dword [ebp - 0x36c]
push ebx
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.ApplicationIcon
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x370]
push ebx
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.ApplicationName
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x364]
push eax
push edi
call esi
jmp 0x59c040
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
leave
ret 0x18