joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e684
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x44
mov eax, 0x4fcc8f
call fcn.00446110
mov dword [ebp - 0x50], ecx
xor eax, eax
xor esi, esi
push 0xffffffffffffffff
mov word [ebp - 0x2c], ax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.00401fbf
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
jae 0x43e6c7
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e6f6
xor edi, edi
inc edi
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017df
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004017df
mov eax, edi
call fcn.00446193
ret 0x1c
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x43e702
lea eax, [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push eax
call edi
cmp eax, esi
jne 0x43e6d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43e6d3
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x5c
call fcn.0040478c
cmp eax, 0xffffffff
jne 0x43e74f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x43e748
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
jmp 0x43e779
push eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402598
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004025ba
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004017df
cmp dword [ebp - 0x1c], esi
jne 0x43e785
xor edi, edi
jmp 0x43e6d6
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x43e791
lea eax, [ebp - 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00402567
mov ecx, dword [ebp - 0x50]
call fcn.0043e684
cmp eax, esi
je 0x43e77e
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x43e7b7
lea eax, [ebp + 8]
push esi
push eax
call edi
test eax, eax
jne 0x43e6d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43e77e
jmp 0x43e6d3
Function at 0x43eab8
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x4fcda9
call fcn.00446110
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
test byte [0x551b30], 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], ebx
jne 0x43eb0f
or dword [0x551b30], 1
push 0x4fe171
mov dword [0x551b28], 0xf
mov dword [0x551b24], ebx
mov byte [0x551b14], bl
call fcn.0044657d
pop ecx
mov edi, 0x551b14
cmp dword [0x551b24], ebx
jne 0x43ebf3
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.004463e0
add esp, 0xc
push ebx
push 0x1c
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402567
mov esi, str.Kingsoftpwksassist_
push esi
mov dword [ebp - 4], ebx
call fcn.00444531
pop ecx
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.0040537e
sub esp, 0x1c
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x25c], esp
push eax
call fcn.004052f0
mov ecx, dword [ebp - 0x260]
call fcn.0043e684
mov esi, str.log.dat
push esi
call fcn.00444531
pop ecx
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.0040537e
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040282e
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00402245
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.0040152e
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.004017df
mov ecx, dword [ebp - 0x258]
push edi
call fcn.00401f00
mov eax, dword [ebp - 0x258]
call fcn.00446193
ret 4
Function at 0x441e7d
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x4fd670
call fcn.00446110
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
cmp byte [0x551b38], bl
je 0x441eaf
push 0x551b38
mov ecx, esi
call fcn.004021e8
mov eax, esi
jmp 0x441f50
push ebx
push ebx
mov edi, 0x551b38
push edi
push 0x441b09
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x441efc
push edi
lea ecx, [ebp - 0x48]
call fcn.004021e8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], 2
jmp 0x441f1a
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 4
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00402544
or dword [ebp - 0x4c], 1
test byte [ebp - 0x4c], 4
je 0x441f3c
and dword [ebp - 0x4c], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040152e
test byte [ebp - 0x4c], 2
je 0x441f4d
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040152e
mov eax, dword [ebp - 0x50]
call fcn.00446193
ret
Function at 0x442150
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x13c
mov eax, 0x4fd6f2
call fcn.00446110
mov eax, dword [ebp + 8]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x13c]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x442344
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 0x13c]
mov edi, pe_nt_image_headers32
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x130], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x442344
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x134]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44230c
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x138]
push eax
push esi
push str.Characteristics
push dword [ebp - 0x134]
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], 4
call ebx
test eax, eax
jne 0x442300
test byte [ebp - 0x144], 4
je 0x442300
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push esi
push str.ComponentId
push dword [ebp - 0x134]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], edi
call ebx
test eax, eax
jne 0x442300
push 3
lea eax, [ebp - 0x110]
push 0x509400
push eax
call fcn.00461721
add esp, 0xc
test eax, eax
jne 0x442300
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push esi
push str.NetCfgInstanceId
push dword [ebp - 0x134]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], edi
call ebx
cmp eax, esi
jne 0x442300
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004021e8
mov ecx, dword [ebp - 0x148]
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 4], esi
call fcn.00402cb0
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x12c]
call fcn.0040152e
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x140]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x140]
mov dword [ebp - 0x130], edi
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4421cd
call fcn.00446193
ret

Function at 0x446098
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x547e80]
jne 0x4460a2
repz ret
jmp fcn.0044efdc
Function at 0x446d6b
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 0x446d92
call fcn.00446feb
mov dword [eax], esi
call fcn.00446fd8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00450136
mov eax, esi
jmp 0x446de7
test dword [ebp + 0xc], 0xfffffff9
jne 0x446d78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00446ffe
pop ecx
call fcn.00446fd8
mov eax, dword [eax]
jmp 0x446de7
test al, 0x10
jne 0x446de5
test al, 1
je 0x446de5
test byte [ebp + 0xc], 2
je 0x446de5
call fcn.00446feb
mov dword [eax], 5
call fcn.00446fd8
mov dword [eax], 0xd
jmp 0x446db6
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44b356
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 0x44b37d
call fcn.00446feb
mov dword [eax], esi
call fcn.00446fd8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00450136
mov eax, esi
jmp 0x44b3d2
test dword [ebp + 0xc], 0xfffffff9
jne 0x44b363
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44b3aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00446ffe
pop ecx
call fcn.00446fd8
mov eax, dword [eax]
jmp 0x44b3d2
test al, 0x10
jne 0x44b3d0
test al, 1
je 0x44b3d0
test byte [ebp + 0xc], 2
je 0x44b3d0
call fcn.00446feb
mov dword [eax], 5
call fcn.00446fd8
mov dword [eax], 0xd
jmp 0x44b3a1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45cbb9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x547e80]
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.0044e6a1
and dword [ebp - 0x14], 0
cmp dword [0x552ed0], 0
mov dword [ebp - 0x18], eax
jne 0x45cc6c
push 0x50bc94
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45cd14
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45cd14
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x552ed0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x552ed4], eax
call edi
push eax
call esi
push 0x50bc48
push ebx
mov dword [0x552ed8], eax
call edi
push eax
call esi
mov dword [0x552ee0], eax
test eax, eax
je 0x45cc6c
push 0x50bc30
push ebx
call edi
push eax
call esi
mov dword [0x552edc], eax
mov eax, dword [0x552edc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45ccc5
cmp dword [0x552ee0], ecx
je 0x45ccc5
push eax
call esi
push dword [0x552ee0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45ccc5
test ebx, ebx
je 0x45ccc5
call edi
test eax, eax
je 0x45ccbc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45ccbc
test byte [ebp - 8], 1
jne 0x45ccc5
or dword [ebp + 0x10], 0x200000
jmp 0x45ccf8
mov eax, dword [0x552ed4]
cmp eax, dword [ebp - 0x18]
je 0x45ccf8
push eax
call esi
test eax, eax
je 0x45ccf8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45ccf8
mov eax, dword [0x552ed8]
cmp eax, dword [ebp - 0x18]
je 0x45ccf8
push eax
call esi
test eax, eax
je 0x45ccf8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x552ed0]
call esi
test eax, eax
je 0x45cd14
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45cd16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret
Function at 0x463510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0044a310
mov eax, dword [0x547e80]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x463557
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00446098
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004e2c0c
add esp, 8
test eax, eax
js 0x463540
mov eax, 8
call fcn.0044a310
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00463380
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x463540
push 0x508154
push esi
call fcn.0044892c
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x463631
jmp 0x4635b4
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x4635c2
mov esi, ebx
cmp ebx, 0x400
jl 0x4635c7
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.0044734c
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x463615
fild dword [esp + 0x44]
mov eax, 8
call fcn.0044a310
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00463380
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4635b0
sub ebx, esi
test ebx, ebx
jg 0x4635b0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004486c4
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004e56d0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00446098
mov esp, ebp
pop ebp
ret
Function at 0x46e1a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x46e1d2
jmp dword [edx*4 + 0x46e2fc]
mov edi, 0xa
cmp ebx, edi
jle case.0x46e1d2.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x46e1e3
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x46f940
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004463e0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4746d0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0044a310
mov eax, dword [0x547e80]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x474735
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x474735
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0044753a
add eax, 0x40
push eax
call fcn.0045843b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00446098
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0045a7b5
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4747c4
call fcn.00474590
test eax, eax
jle 0x4747c4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00446098
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00446098
add esp, 0x108
ret

Function at 0x474820
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x474842
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x474836
pop esi
movzx eax, cl
pop edi
ret
Function at 0x477820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.0044a310
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x477850
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x477850
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4778c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4778aa
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4778c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x47795a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x477948
lea eax, [esi + esi]
call fcn.00446a00
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x47795a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4778f3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x47795a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0044d8b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4779fe
call fcn.00446fd8
cmp dword [eax], 2
je 0x477940
call fcn.00446fd8
cmp dword [eax], 9
jne 0x47795a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.0044892c
mov esi, eax
add esp, 8
test esi, esi
jne 0x4779fe
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00468730
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x51e7cc
push eax
push 0x51e7c8
push ecx
push str.fopen_
push 5
call fcn.00468a20
add esp, 0x2c
call fcn.00446fd8
cmp dword [eax], 2
jne 0x4779d0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00468730
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446098
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00468730
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446098
mov esp, ebp
pop ebp
ret
push 0x549820
call fcn.00464650
mov edi, eax
add esp, 4
test edi, edi
jne 0x477a30
push esi
call fcn.004486c4
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446098
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00463f90
push esi
push 1
push 0x6a
push edi
call fcn.00464380
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446098
mov esp, ebp
pop ebp
ret
Function at 0x47b600
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x47b644
mov al, byte [edx]
test al, al
je 0x47b644
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x47b617
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret