joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478bc0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.deleteValue:_Inside_function_deleteValue_.....__n
call fcn.00423960
mov edi, dword [ebp + 0x10]
push 0x4d0a18
push edi
call fcn.00493c91
add esp, 0xc
test eax, eax
jne 0x478bf8
push str.deleteValue_:_going_to_delete_the__default__value_._n
call fcn.00423db0
add esp, 4
mov edi, 0x4fb68d
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x478c7c
push eax
push str.deleteValue:__Key_found_..._:__d_n
call fcn.00423db0
mov edx, dword [ebp - 4]
add esp, 8
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
push edi
test esi, esi
jne 0x478c57
push str.deleteValue:__Delete_value__s_success___n
call fcn.00423db0
mov eax, dword [ebp - 4]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.deleteValue:__Delete_value__s_failure___n
call fcn.00423ad0
mov ecx, dword [ebp - 4]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00462670
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push str.deleteValue:___s_Key_not_found_:__d___n
call fcn.00423ad0
add esp, 0xc
call fcn.00462670
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478ca0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
push str.deleteValue:_Inside_function_deleteValue_....._subkey_:__ws__Valuename_:__ws__n
call fcn.00423960
push 0x4d0a18
push edi
call fcn.00493c91
add esp, 0x14
test eax, eax
jne 0x478cdd
push str.deleteValue_:_going_to_delete_the__default__value_._n
call fcn.00423db0
add esp, 4
mov edi, 0x4fb68d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x478d5e
push eax
push str.deleteValue:__Key_found_..._:__d_n
call fcn.00423db0
mov edx, dword [ebp - 4]
add esp, 8
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push edi
test esi, esi
jne 0x478d39
push str.deleteValue:__Delete_value__s_success___n
call fcn.00423db0
mov eax, dword [ebp - 4]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.deleteValue:__Delete_value__s_failure___n
call fcn.00423ad0
mov ecx, dword [ebp - 4]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00462670
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push str.deleteValue:___s_Key_not_found_:__d___n
call fcn.00423ad0
add esp, 0xc
call fcn.00462670
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x478de9
cmp esi, 2
je 0x478dcb
push esi
push edi
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d__n
call fcn.00423ad0
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push 2
push edx
push str.ReadDwordRegistryData:__value___s_Not_found:__d__n
call fcn.00423960
add esp, 0xc
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x478e1f
cmp esi, 2
je 0x478e24
push esi
push edi
push str.ReadDwordRegistryData:_Error_while_reading_DWORD_value_of__s_:__d__n
call fcn.00423ad0
add esp, 0xc
cmp esi, 2
jne 0x478e33
push esi
push edi
push str.ReadDwordRegistryData:__value___s_Not_found:__d__n
call fcn.00423960
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x478e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push 1
push 0
push ebx
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x478ea4
push esi
push ebx
push str.ReadRegSZ:_Error_while_opening_registry_key__s__and_the_error_is___d__n
call fcn.00423ad0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ebx, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x478f01
mov eax, dword [ebp - 4]
add eax, 5
push eax
push 1
call fcn.00491e51
add esp, 8
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 8]
push edx
push esi
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x478f01
push esi
push str.ReadRegSZ:_Error_while_reading_DWORD_value___d__n
call fcn.00423ad0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478f20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x478fb2
mov edx, dword [ebp - 0x10c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
push edx
call esi
test eax, eax
jne 0x478fa5
nop
mov ecx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00478f20
add esp, 8
test eax, eax
je 0x478fd0
mov eax, dword [ebp - 0x10c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
push eax
call esi
test eax, eax
je 0x478f70
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048ed61
mov esp, ebp
pop ebp
ret

Function at 0x478ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x515c74], 0
push esi
mov eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x479021
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0x101
push 0
push edi
push ecx
jmp 0x47902e
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x479051
push esi
push edi
push str.ReadDwordRegistryDataEx:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d__n
call fcn.00423ad0
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x47903a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebx], 0
cmp dword [0x515c74], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
je 0x4790ce
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0x101
push 0
push edi
push ecx
jmp 0x4790db
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x4790ff
push esi
push edi
push str.ReadRegSZEx:_Error_while_opening_registry_key_for__s_and_error__d__n
call fcn.00423ad0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
push 0
push edi
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x47915e
mov edx, dword [ebp - 4]
add edx, 5
push edx
push 1
call fcn.00491e51
mov ecx, dword [ebp + 0x14]
add esp, 8
lea edx, [ebp - 4]
push edx
push eax
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
push edi
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x47915e
push esi
push edi
push str.ReadRegSZEx:_Error_while_reading_DWORD_value__s___d__n
call fcn.00423ad0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479180
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x479192
xor eax, eax
pop esi
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jns 0x4791ad
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4791a0
sub eax, edx
mov ebx, eax
test ebx, ebx
jle 0x4791c6
nop
movzx eax, byte [esi]
push eax
call fcn.0049501d
add esp, 4
test eax, eax
je 0x4791c6
dec ebx
inc esi
test ebx, ebx
jg 0x4791b0
push edi
lea edi, [esi + ebx - 1]
cmp edi, esi
jb 0x4791e6
nop
movzx ecx, byte [edi]
push ecx
call fcn.0049501d
add esp, 4
test eax, eax
je 0x4791e6
dec edi
dec ebx
cmp edi, esi
jae 0x4791d0
mov edx, ebx
and edx, reloc.ODBC32.dll_SQLAllocStmt
jns 0x4791f5
dec edx
or edx, 0xfffffffc
inc edx
jne 0x4792d1
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + eax*2 + 1]
cmp eax, dword [ebp + 0xc]
jg 0x4792d1
mov edi, dword [ebp + 8]
test ebx, ebx
jle 0x4792c5
mov edi, edi
mov al, byte [esi]
sub ebx, 4
cmp al, 0x80
jae 0x4792d1
movzx ecx, al
movsx ecx, byte [ecx + 0x4e00d0]
cmp ecx, 0xffffffff
je 0x4792d1
mov al, byte [esi + 1]
cmp al, 0x80
jae 0x4792d1
movzx edx, al
movsx edx, byte [edx + 0x4e00d0]
cmp edx, 0xffffffff
je 0x4792d1
mov eax, edx
sar eax, 4
add cl, cl
and al, 3
add cl, cl
or al, cl
mov byte [edi], al
mov al, byte [esi + 2]
inc edi
cmp al, 0x3d
jne 0x479276
cmp byte [esi + 3], al
je 0x4792c5
cmp al, 0x80
jae 0x4792d1
movzx ecx, al
movsx ecx, byte [ecx + 0x4e00d0]
cmp ecx, 0xffffffff
je 0x4792d1
mov eax, ecx
sar eax, 2
and al, 0xf
shl dl, 4
or al, dl
mov byte [edi], al
mov al, byte [esi + 3]
inc edi
cmp al, 0x3d
je 0x4792c5
cmp al, 0x80
jae 0x4792d1
movzx edx, al
movsx eax, byte [edx + 0x4e00d0]
add esi, 4
cmp eax, 0xffffffff
je 0x4792d1
shl cl, 6
or cl, al
mov byte [edi], cl
inc edi
test ebx, ebx
jg 0x479220
mov eax, edi
sub eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
pop edi
pop ebx
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10
Function at 0x479340
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x479355
xor eax, eax
pop edi
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
lea edx, [esi + 2]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*4 + 1]
cmp dword [ebp + 0xc], edx
jge 0x47937f
pop esi
or eax, 0xffffffff
pop edi
pop ebp
ret 0x10
test esi, esi
jle 0x47943b
push ebx
mov al, byte [edi]
movzx edx, al
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and al, 3
dec esi
shl al, 4
mov byte [ecx], dl
mov dl, al
test esi, esi
jle 0x479406
mov al, byte [edi + 1]
movzx ebx, al
movzx edx, dl
and al, 0xf
shr ebx, 4
add al, al
or ebx, edx
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec esi
add al, al
mov byte [ecx + 1], dl
movzx eax, al
test esi, esi
jle 0x47942a
mov dl, byte [edi + 2]
movzx edx, dl
mov ebx, edx
shr ebx, 6
or ebx, eax
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec esi
mov byte [ecx + 3], dl
add edi, 3
add ecx, 4
test esi, esi
jg 0x479388
pop ebx
mov eax, ecx
sub eax, dword [ebp + 8]
pop esi
mov byte [ecx], 0
pop edi
pop ebp
ret 0x10
movzx eax, dl
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
mov word [ecx + 2], 0x3d3d
add ecx, 4
pop ebx
mov eax, ecx
sub eax, dword [ebp + 8]
pop esi
mov byte [ecx], 0
pop edi
pop ebp
ret 0x10
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
add ecx, 4
pop ebx
mov eax, ecx
sub eax, dword [ebp + 8]
pop esi
mov byte [ecx], 0
pop edi
pop ebp
ret 0x10
Function at 0x479760
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x9c
push eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00492ac0
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4797ee
mov eax, str.UnSupported
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
push 0x4d14c8
push 0x4d0894
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x479814
lea edx, [ebp - 0xc4]
push edx
call eax
jmp 0x479821
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 8]
cmp eax, 5
jne 0x479883
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x479867
cmp byte [ebp - 6], 1
jne 0x479854
cmp word [ebp - 0xc4], 9
jne 0x479854
mov eax, str.Windows_XP
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov eax, str.Windows_Server_2003
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x479841
test eax, eax
jne 0x47989b
mov eax, str.Windows_2000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
cmp eax, 4
jg 0x47989b
mov eax, str.Windows_NT
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
Function at 0x47d950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9b38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov ebx, 1
mov dword [ebp - 4], edi
push str.____Inside_CDCJson::FileToString_n
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
call fcn.00423960
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax - 4], ebx
jle 0x47d9af
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.004014b0
mov eax, dword [ebp + 8]
push 0x4d731c
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00493553
add esp, 0xc
cmp eax, edi
je 0x47da19
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x47d9dc
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.004014b0
mov eax, dword [ebp + 8]
push eax
push str.JSON_The_file__ws_open_failed__n
call fcn.00423ad0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47db50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47db50
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x47da61
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x47da37
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004014b0
mov eax, dword [ebp + 8]
push eax
push str.JSON_The_file__ws_open_failed_NULL_n
call fcn.00423ad0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47da04
push 2
push edi
push eax
call fcn.00498548
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00498459
mov edx, dword [ebp - 0x14]
push edi
push edi
push edx
mov esi, eax
call fcn.00498548
lea eax, [esi + 1]
push eax
call fcn.0048dbc3
mov edi, eax
add esp, 0x20
mov byte [esi + edi], 0
mov ecx, dword [ebp - 0x14]
push ecx
push esi
push ebx
push edi
mov dword [ebp - 0x18], eax
call fcn.00495599
add esp, 0x10
cmp eax, esi
jne 0x47dac3
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47dab0
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
push edi
call fcn.00410630
mov edx, dword [ebp - 0x14]
push edx
call fcn.00493731
add esp, 4
test edi, edi
je 0x47dadc
push edi
call fcn.004915c0
add esp, 4
push str.____End_of_CDCJson::FileToString_n
call fcn.00423960
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47db0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov eax, 0xd
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 0x47f040
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.Inside_MoveCertFilesToAgentDir_method__n
call fcn.00423db0
mov edi, dword [ebp + 0xc]
push 0x5c
push 0x2f
push edi
mov dword [ebp - 4], 0
call fcn.0045cf00
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00463a30
add esp, 0x18
test esi, esi
je 0x47f082
push esi
call fcn.0048efd8
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
push str.MoveCertFilesToAgentDir:_Copying_certificate_to_the_directory__s
call fcn.00423db0
mov edx, dword [ebp - 4]
add esp, 8
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x47f0c9
cmp esi, 0xb7
je 0x47f0c9
mov eax, dword [ebp - 4]
push esi
push eax
push str.MoveCertFilesToAgentDir:_Create_Directory__s_failed_with_error__d__n
call fcn.00423ad0
add esp, 0xc
jmp 0x47f15f
mov eax, dword [ebp - 4]
test eax, eax
je 0x47f0d9
push eax
call fcn.0048efd8
add esp, 4
push 0x5c
push 0x2f
push edi
mov dword [ebp - 4], 0
call fcn.0045cf00
mov esi, dword [ebp + 8]
push eax
push esi
push str.InstallRootCertificate:_Copy_certificate_file_from___s__to___s___n
mov dword [ebp - 4], eax
call fcn.00423db0
mov ecx, dword [ebp - 4]
add esp, 0x18
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x47f127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveCertFilesToAgentDir:_Certificate_copy_failed_with_error__ld__n
mov dword [ebp - 8], eax
call fcn.00423ad0
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [str.SoftwareAdventNetDesktopCentralDCAgentCertificates]
push 1
push edx
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478900
mov eax, dword [ebp - 4]
add esp, 0x14
test eax, eax
je 0x47f15c
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 8]
push str.Endof_MoveCertFilesToAgentDir_method__n
call fcn.00423db0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ed61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5142b0]
jne 0x48ed6b
repz ret
jmp fcn.0049bd9e

Function at 0x4ab262
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ab289
call fcn.00491929
mov dword [eax], esi
call fcn.00491916
push 0x16
pop esi
mov dword [eax], esi
call fcn.0049c02e
mov eax, esi
jmp 0x4ab2de
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ab26f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ab2b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049193c
pop ecx
call fcn.00491916
mov eax, dword [eax]
jmp 0x4ab2de
test al, 0x10
jne 0x4ab2dc
test al, 1
je 0x4ab2dc
test byte [ebp + 0xc], 2
je 0x4ab2dc
call fcn.00491929
mov dword [eax], 5
call fcn.00491916
mov dword [eax], 0xd
jmp 0x4ab2ad
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ac58e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0049ca5b
and dword [ebp - 0x14], 0
cmp dword [0x5170e0], 0
mov dword [ebp - 0x18], eax
jne 0x4ac641
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ac6e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ac6e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5170e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5170e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5170e8], eax
call edi
push eax
call esi
mov dword [0x5170f0], eax
test eax, eax
je 0x4ac641
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5170ec], eax
mov eax, dword [0x5170ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ac69a
cmp dword [0x5170f0], ecx
je 0x4ac69a
push eax
call esi
push dword [0x5170f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ac69a
test ebx, ebx
je 0x4ac69a
call edi
test eax, eax
je 0x4ac691
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ac691
test byte [ebp - 8], 1
jne 0x4ac69a
or dword [ebp + 0x10], 0x200000
jmp 0x4ac6cd
mov eax, dword [0x5170e4]
cmp eax, dword [ebp - 0x18]
je 0x4ac6cd
push eax
call esi
test eax, eax
je 0x4ac6cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ac6cd
mov eax, dword [0x5170e8]
cmp eax, dword [ebp - 0x18]
je 0x4ac6cd
push eax
call esi
test eax, eax
je 0x4ac6cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5170e0]
call esi
test eax, eax
je 0x4ac6e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ac6eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ed61
leave
ret