joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push esi
push str.Language
mov esi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x20]
push eax
push str.Language
call fcn.00403040
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040f970
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x18]
call fcn.00420bb0
lea eax, [ebp - 0x10]
push str.English
push eax
call fcn.0041a630
add esp, 8
pop esi
test al, al
je 0x41ef0d
mov eax, 9
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.French
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41ef2c
mov eax, 0xc
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.German
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41ef48
mov eax, 7
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.Russian
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41ef64
mov eax, 0x19
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.Korean
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41ef80
mov eax, 0x12
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.Chinese
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41ef9c
mov eax, 0x804
jmp 0x41efb6
lea eax, [ebp - 0x10]
push str.Taiwanese
push eax
call fcn.0041a630
add esp, 8
test al, al
je 0x41efbc
mov eax, 0x404
mov word [0x5b3180], ax
push 0x114
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x114
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x130], 6
jb 0x41f000
movzx eax, word [0x5b3180]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
mov esp, ebp
pop ebp
ret
Function at 0x41f020
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00413cd0
push eax
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x41f18a
push 0x20a
lea eax, [ebp - 0x23c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x105
push eax
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41f0df
lea eax, [ebp - 0x23c]
push eax
call fcn.00420e00
add esp, 4
mov ecx, edi
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00403040
push 0x2b4
lea eax, [ebp - 0x4f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4f0]
push 0x100
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x41f0df
mov eax, dword [ebp - 0x4f0]
mov dword [edi + 0x10], eax
push str.LoginCredentials
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push str.LoginCredentials
call fcn.00403040
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040f970
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
cmp dword [ebp - 0x20], 0
je 0x41f172
mov eax, dword [ebp - 0x18]
mov ecx, 0x5b3144
test eax, eax
push 0x10
cmovne ecx, eax
push 0
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
lea ecx, [edi + 0x84]
mov esi, eax
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x18]
call fcn.00420bb0
cmp dword [edi + 0x10], 0
jne 0x41f1ac
push 0x40
push 0
push 0
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], eax
mov byte [edi + 0xa1], 0
call fcn.0041ee90
push str.ApplicationDisplayName
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push str.ApplicationDisplayName
call fcn.00403040
mov ecx, dword [edi + 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f970
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
mov ecx, edi
call fcn.0041fd90
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x28]
call fcn.00420bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4210d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, 0x811c9dc5
and esi, 0xfffffffc
jle 0x421102
dec esi
shr esi, 2
inc esi
nop dword [eax]
mov eax, dword [ecx]
add ecx, 4
xor eax, edi
imul edi, eax, 0x1000193
sub esi, 1
jne 0x4210f0
and edx, 3
xor esi, esi
sub edx, 1
je 0x421126
sub edx, 1
je 0x42111d
sub edx, 1
jne 0x421137
movsx esi, byte [ecx]
inc ecx
shl esi, 8
movsx eax, byte [ecx]
inc ecx
or esi, eax
shl esi, 8
movsx eax, byte [ecx]
or eax, esi
xor eax, edi
pop edi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x421140
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x811c9dc5
and edi, 0xfffffffe
jle 0x421173
lea edx, [edi - 1]
shr edx, 1
inc edx
nop dword [eax + eax]
movzx eax, word [ecx]
add ecx, 4
xor eax, esi
imul esi, eax, 0x1000193
sub edx, 1
jne 0x421160
cmp dword [ebp + 0xc], edi
je 0x421187
movzx eax, word [ecx]
xor eax, esi
pop edi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x426560
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x5b3580], 0
jne 0x4265d7
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
lea eax, [esi - 1]
test esi, eax
je 0x426592
push 0
push 0
push 0
push 6
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [0x5b3588], 0x10000
mov dword [0x5b3584], esi
mov dword [0x5b358c], 0x40000
mov dword [0x5b3590], 0x200000
mov dword [0x5b3594], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x5b3580], eax
pop esi
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42a610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jne 0x42a628
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 4], 0
call fcn.0042a2d0
test al, al
je 0x42a61f
push ebx
mov ebx, dword [ebp - 8]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push ebx
call fcn.00423f90
xor eax, eax
cmp dword [edi], ebx
jne 0x42a689
cmp eax, dword [ebp - 4]
jne 0x42a689
push dword [esi + 0x28]
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov esi, eax
mov ecx, edi
push 0
push esi
call fcn.00423f90
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x430590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x21c
mov ecx, 0x5b3144
mov eax, dword [eax + 8]
test eax, eax
push 0x104
cmovne ecx, eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4305f3
lea eax, [ebp - 0x21c]
push eax
call fcn.00420e00
mov ecx, dword [ebp + 0x10]
add esp, 4
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00403040
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add esp, 8
mov dword [esi], 1
push dword [ebp - 0xc]
mov dword [esi + 4], 0
push dword [ebp - 8]
call fcn.00420bb0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x430646
call fcn.004334d0
mov eax, dword [edi + 0x18]
mov ecx, 0x5b3144
push 0
push 0x2000000
push 3
push 0
test eax, eax
push 3
cmovne ecx, eax
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4306c3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x43068b
mov word [edi + 0x20], 1
jmp 0x430753
call esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add esp, 8
mov dword [esi], 1
push dword [ebp - 0xc]
mov dword [esi + 4], 0
push dword [ebp - 8]
call fcn.00420bb0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x34
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4306f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43068d
test byte [ebp - 0x44], 0x10
je 0x4306fd
mov byte [edi + 0x22], 1
mov ecx, dword [ebp - 0x24]
xor eax, eax
or eax, dword [ebp - 0x20]
mov dword [edi + 0x2c], ecx
xor ecx, ecx
or ecx, dword [ebp - 0x40]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x3c]
push eax
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x30]
call fcn.00435e40
push dword [ebp - 4]
call fcn.00546a09
mov eax, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
or ecx, dword [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x68]
call fcn.00435e40
push dword [ebp - 4]
call fcn.00546a09
add esp, 4
mov word [edi + 0x20], 0x101
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax + 4], 0
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x432b90
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00431f30
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00433600
push dword [ebp - 4]
call fcn.00546a09
add esp, 0xc
mov ecx, ebx
call fcn.00431fe0
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x432bce
mov ecx, esi
call fcn.004334d0
mov eax, dword [esi + 0x18]
mov ecx, 0x5b3144
push 0
push 0x40000080
push 4
push 0
test eax, eax
push 1
cmovne ecx, eax
push 0x40000004
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x80], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x80]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x58]
push eax
call fcn.00435e00
add esp, 4
lea edi, [ebx + 0xb8]
mov esi, eax
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x88]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xb8]
call fcn.00436190
push dword [ebp - 4]
call fcn.00546a09
add esp, 4
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0xffffffff
jne 0x432c95
call fcn.00432b90
mov ecx, dword [esi + 0x80]
cmp ecx, 0xffffffff
je 0x432d82
cmp byte [esi + 0x8132], 0
je 0x432cea
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [ebp + 8], al
setne al
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, 1
jne 0x432cdd
push dword [ebp - 4]
mov ecx, esi
call fcn.00432120
cmp byte [esi + 0x8132], 0
jne 0x432d82
mov eax, dword [esi + 0x8c]
xor ecx, ecx
push edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, esi
mov eax, dword [esi + 0x8c]
mov dword [eax + 8], 0xffffffff
mov eax, dword [esi + 0x8c]
mov dword [eax + 0xc], 0xffffffff
call fcn.004320f0
mov edi, eax
cmp byte [edi + 0x2004], 0
jne 0x432d81
mov eax, dword [edi + 0x2000]
test eax, eax
jle 0x432d81
push dword [esi + 0x8c]
push 0
push eax
push edi
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x432d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x432d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x2000]
mov ecx, esi
call fcn.00432120
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0x8132], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x433500
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [eax + 0x10]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
cmp dword [edi], 0
jne 0x433534
mov ecx, dword [eax]
test ecx, ecx
je 0x433534
push ecx
push dword [eax + 8]
mov ecx, edi
call fcn.0040e3d0
mov eax, dword [edi + 8]
mov edi, 0x5b3144
test eax, eax
mov edx, edi
push ebx
cmovne edx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
lea ebx, [eax + 0x10]
mov dword [ebp + 8], edx
jne 0x433567
mov ecx, dword [eax]
test ecx, ecx
je 0x433567
push ecx
push dword [eax + 8]
mov ecx, ebx
call fcn.0040e3d0
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
push 0
cmovne edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
test eax, eax
je 0x4335ad
mov eax, dword [esi + 4]
test eax, eax
je 0x43358e
push eax
call fcn.00546a09
add esp, 4
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00546a09
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov eax, dword [esi + 4]
add esp, 8
test eax, eax
je 0x4335d0
push eax
call fcn.00546a09
add esp, 4
push 0
mov dword [esi], 1
mov dword [esi + 4], 0
call fcn.00546a09
add esp, 4
lea ecx, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00420bb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
xor eax, eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x434159
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00403040
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.004256a0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add esp, 8
mov dword [esi], 1
push dword [ebp - 0xc]
mov dword [esi + 4], 0
push dword [ebp - 8]
call fcn.00420bb0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4345c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [eax + 0x10]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
cmp dword [edi], 0
jne 0x4345f4
mov ecx, dword [eax]
test ecx, ecx
je 0x4345f4
push ecx
push dword [eax + 8]
mov ecx, edi
call fcn.0040e3d0
mov eax, dword [edi + 8]
mov edi, 0x5b3144
test eax, eax
mov edx, edi
push ebx
cmovne edx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
lea ebx, [eax + 0x10]
mov dword [ebp + 8], edx
jne 0x434627
mov ecx, dword [eax]
test ecx, ecx
je 0x434627
push ecx
push dword [eax + 8]
mov ecx, ebx
call fcn.0040e3d0
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
push edx
cmovne edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
test eax, eax
je 0x43466b
mov eax, dword [esi + 4]
test eax, eax
je 0x43464c
push eax
call fcn.00546a09
add esp, 4
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00546a09
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov eax, dword [esi + 4]
add esp, 8
test eax, eax
je 0x43468e
push eax
call fcn.00546a09
add esp, 4
push 0
mov dword [esi], 1
mov dword [esi + 4], 0
call fcn.00546a09
add esp, 4
lea ecx, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00420bb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4346c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
cmp dword [eax + 0x10], 0
push esi
lea esi, [eax + 0x10]
jne 0x4346e4
mov ecx, dword [eax]
test ecx, ecx
je 0x4346e4
push ecx
push dword [eax + 8]
mov ecx, esi
call fcn.0040e3d0
mov eax, dword [esi + 8]
mov ecx, 0x5b3144
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x434711
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add esp, 8
mov dword [esi], 1
push dword [ebp - 0xc]
mov dword [esi + 4], 0
push dword [ebp - 8]
call fcn.00420bb0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435b40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x435b7a
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00420de0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040e2d0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov ebx, 1
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
xor eax, eax
mov ecx, esi
push dword [ebp + 0x10]
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.00547460
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x436a73
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], 0x138
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x436ac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x811c9dc5
movzx eax, word [esi]
test ax, ax
je 0x436aff
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
lea esp, [esp]
movzx eax, ax
push eax
call ebx
imul edi, edi, 0x1000193
lea esi, [esi + 2]
mov ecx, eax
add esp, 4
movzx eax, word [esi]
xor edi, ecx
test ax, ax
jne 0x436ae0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x438cc2
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x438cee
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438cee
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x43d25e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x43d275
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43d2ae
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x43d2aa
cmp esi, ecx
jae 0x43d2ae
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x43d29a
cmp esi, ecx
jb 0x43d2b2
xor eax, eax
jmp 0x43d2bc
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4753d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4753f6
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4753e6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x477f70
Capabilities:
Query environment variable

Disassembly:
push str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x477f95
push 0x1e3
push str.cryptoconfconf_mod.c
push eax
call fcn.004777d0
add esp, 0xc
ret
call fcn.004b59c0
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477fa0
push esi
push edi
sub eax, edx
push 0x1eb
push str.cryptoconfconf_mod.c
lea edi, [eax + 0xd]
push edi
call fcn.00475100
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x477fca
pop edi
pop esi
ret
push edi
call fcn.004b59c0
push eax
push esi
call fcn.00477ba0
push edi
push 0x54a3a4
push esi
call fcn.00477b40
push edi
push str.openssl.cnf
push esi
call fcn.00477b40
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret

Function at 0x484b30
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.004c93a0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x484be7
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0046e600
push 0x556108
push esi
push 0x56c050
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.0046dd50
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x484bc9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x484bc9
push 0x53
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0046e600
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x51
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0046e600
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x56c000
call fcn.004797f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x484c09
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00479400
push edi
push ebx
push 0x6a
push esi
call fcn.00479430
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret