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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x63c]
mov edx, 0x104
push eax
mov edi, ecx
call fcn.00425841
mov esi, eax
test esi, esi
js 0x421734
push edi
mov edx, 0x105
lea ecx, [ebp - 0x428]
call fcn.00422d13
mov esi, eax
test esi, esi
js 0x421734
mov edi, dword [ebp - 0x63c]
mov ecx, 0x80070216
lea eax, [edi - 1]
cmp eax, edi
ja 0x42155c
mov edi, eax
xor esi, esi
jmp 0x421563
mov esi, ecx
call fcn.0042752a
mov ecx, esi
call fcn.00427547
test esi, esi
js 0x421734
add edi, edi
push 0x5c
pop ecx
cmp word [ebp + edi - 0x428], cx
jne 0x421597
cmp edi, 0x20a
jae 0x42175e
xor eax, eax
mov word [ebp + edi - 0x428], ax
xor eax, eax
lea edi, [ebp - 0x428]
and dword [ebp - 0x63c], eax
mov word [ebp - 0x218], ax
cmp word [ebp - 0x428], cx
jne 0x4215bb
lea edi, [ebp - 0x426]
push ecx
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov ebx, eax
mov edx, 0x105
mov dword [ebp - 0x640], ebx
pop ecx
lea ecx, [ebp - 0x638]
test ebx, ebx
jne 0x4215f8
push edi
call fcn.00422d13
mov esi, eax
test esi, esi
js 0x421734
mov dword [ebp - 0x63c], 1
jmp 0x421637
sub ebx, edi
sar ebx, 1
push ebx
push edi
call fcn.004214a8
mov esi, eax
test esi, esi
js 0x421734
cmp dword [ebp - 0x640], edi
jb 0x421755
add ebx, ebx
cmp ebx, 0x20a
jae 0x42175e
xor eax, eax
mov word [ebp + ebx - 0x638], ax
mov ebx, dword [ebp - 0x640]
lea eax, [ebp - 0x648]
mov edx, 0x105
push eax
lea ecx, [ebp - 0x218]
call fcn.004257fa
mov esi, eax
test esi, esi
js 0x421734
push 0x7ffffffe
lea eax, [ebp - 0x638]
mov edx, 0x105
push eax
mov eax, dword [ebp - 0x648]
sub edx, eax
push ecx
lea ecx, [ebp - 0x218]
lea ecx, [ecx + eax*2]
call fcn.00422cc7
mov esi, eax
test esi, esi
js 0x421734
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4216a0
test al, 0x10
jne 0x4216c5
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x421725
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421725
test ebx, ebx
je 0x421714
lea edi, [ebx + 2]
mov ebx, 0x105
lea eax, [ebp - 0x644]
mov edx, ebx
push eax
lea ecx, [ebp - 0x218]
call fcn.004257fa
mov esi, eax
test esi, esi
js 0x421734
mov eax, dword [ebp - 0x644]
mov edx, ebx
push 0x7ffffffe
push 0x406448
push ecx
lea ecx, [ebp - 0x218]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00422cc7
mov esi, eax
test esi, esi
js 0x421734
cmp dword [ebp - 0x63c], 0
jne 0x42173b
push 0x5c
pop ecx
jmp 0x4215bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
mov ecx, esi
call fcn.0042752a
mov ecx, esi
call fcn.00427547
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret
mov ecx, 0x80070216
mov esi, ecx
jmp 0x421736
call fcn.00456f05
int3
Function at 0x421769
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x424], ecx
push 0x410
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], esi
push esi
mov edi, esi
push eax
mov dword [ebp - 0x420], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x409978
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4217e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
mov ecx, ebx
call fcn.0042752a
jmp 0x421888
lea eax, [ebp - 0x41c]
mov edx, 0x409868
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.00422135
mov ebx, eax
test ebx, ebx
jns 0x42180f
mov ecx, ebx
call fcn.0042752a
mov esi, dword [ebp - 0x41c]
jmp 0x421888
mov esi, dword [ebp - 0x41c]
lea edx, [ebp - 0x41c]
mov ecx, esi
call fcn.00421471
mov ebx, eax
test ebx, ebx
js 0x4217d6
cmp dword [ebp - 0x41c], edi
jne 0x42183d
mov ecx, esi
call fcn.004214f4
mov ebx, eax
test ebx, ebx
js 0x4217d6
lea eax, [ebp - 0x420]
mov edx, 0x40987c
push eax
push ecx
mov ecx, esi
call fcn.00422135
mov ebx, eax
test ebx, ebx
jns 0x421866
mov ecx, ebx
call fcn.0042752a
mov edi, dword [ebp - 0x420]
jmp 0x421888
mov edi, dword [ebp - 0x420]
mov ecx, edi
call fcn.0044e3c4
test eax, eax
je 0x4217c7
mov eax, dword [ebp - 0x424]
mov dword [eax + 8], 1
mov ecx, ebx
call fcn.00427547
test edi, edi
je 0x42189a
mov ecx, edi
call fcn.004274da
test esi, esi
je 0x4218a5
mov ecx, esi
call fcn.004274da
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret

Function at 0x421ddd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x421e00
mov esi, 0x80070057
jmp 0x421e55
push 0x410
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x409978
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x421e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
jmp 0x421e55
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.004259da
mov esi, eax
test esi, esi
jns 0x421e5c
mov ecx, esi
call fcn.0042752a
mov ecx, esi
call fcn.00427547
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00456cf0
mov esp, ebp
pop ebp
ret
Function at 0x422c8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422cac
not al
movzx eax, al
shr eax, 4
and eax, 1
jmp 0x422cae
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
call fcn.00427547
xor ecx, ecx
call fcn.00427547
xor eax, eax
pop esi
ret

Function at 0x422e4a
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
xor esi, esi
mov dword [ebp - 0xc], eax
mov ebx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push edi
test eax, eax
jne 0x422e79
mov ecx, 0x80070057
mov esi, ecx
call fcn.0042752a
jmp 0x422f28
test ebx, ebx
je 0x422e68
mov dword [eax], esi
lea eax, [ebp - 4]
push esi
push eax
push 1
push 0x409be4
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x422eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
mov ecx, esi
jmp 0x422e6f
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 0x409c10
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test eax, eax
je 0x422e97
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x422f22
cmp eax, 0x80
je 0x422f22
cmp eax, 0x102
je 0x422f1b
cmp eax, 0xffffffff
je 0x422f02
mov esi, 0x80004005
jmp 0x422ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425c37
mov esi, dword [ebp - 8]
test eax, eax
jne 0x422f28
jmp 0x422ea6
mov esi, 0x800705b4
jmp 0x422ea6
mov dword [ebx], 1
mov ecx, esi
call fcn.00427547
cmp dword [ebp - 4], 0
je 0x422f3e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42310b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 4], 0xffffffff
mov eax, edx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], eax
xor edi, edi
test ecx, ecx
jne 0x423138
mov ecx, 0x80070057
mov edi, ecx
call fcn.0042752a
jmp 0x4231e7
test eax, eax
je 0x423127
cmp dword [ebp + 8], esi
je 0x423127
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
call fcn.004230d1
cmp dword [ebp - 4], 0xffffffff
jne 0x42317c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov edi, eax
mov ecx, edi
jmp 0x42312e
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x423169
cmp dword [ebp - 8], esi
jne 0x423127
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4231b5
xor esi, esi
mov edi, 0x8007000e
jmp 0x423178
push 0
lea ecx, [ebp - 0xc]
mov esi, eax
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423169
cmp dword [ebp - 0xc], ebx
je 0x4231d8
mov edi, 0x8000ffff
jmp 0x423178
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, edi
call fcn.00427547
test esi, esi
je 0x423202
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 4]
call fcn.004230b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42321a
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, ebx
cmp dword [edi], ebx
je 0x423238
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], ebx
cmp dword [edi + 8], ebx
je 0x423281
push 0x30
push 0x18
push 0x409d40
push dword [edi + 4]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x42326d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
mov ecx, esi
call fcn.0042752a
mov ecx, esi
call fcn.00427547
test esi, esi
jns 0x423281
mov ecx, esi
call fcn.0042752a
jmp 0x423290
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x423290
call fcn.004274da
mov dword [edi + 4], ebx
mov ecx, esi
call fcn.00427547
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4232a5
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
call fcn.0042321a
xor esi, esi
xor ecx, ecx
mov dword [ebp - 4], esi
call fcn.00427547
cmp dword [ebp - 4], esi
je 0x4232d0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x28
push 0x18
push 0x409d40
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4232f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
jmp 0x42330e
cmp dword [ebp + 8], esi
je 0x423315
mov ecx, dword [ebp + 8]
lea edx, [ebx + 4]
call fcn.004259da
mov esi, eax
test esi, esi
jns 0x423315
mov ecx, esi
call fcn.0042752a
mov ecx, esi
call fcn.00427547
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4236f5
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 8], eax
push esi
push edi
test ebx, ebx
je 0x423711
cmp dword [ebp + 0x10], 0
jne 0x42371b
mov ecx, 0x80070057
jmp 0x4238b0
lea ecx, [ebp - 0x14]
push ecx
push 2
pop edx
mov ecx, eax
call fcn.004258c2
mov esi, eax
test esi, esi
js 0x4237b9
mov edi, dword [ebp - 0x14]
xor edx, edx
push 3
pop ecx
mov eax, edi
mov dword [ebp - 0xc], edi
div ecx
xor ecx, ecx
mov esi, ecx
test eax, eax
je 0x42376b
mov edx, eax
shl edx, 2
mov ecx, edx
shr ecx, 2
cmp ecx, eax
je 0x423766
mov esi, 0x80070216
mov ecx, esi
call fcn.0042752a
jmp 0x42376e
mov dword [ebp - 0xc], edx
jmp 0x42376e
mov dword [ebp - 0xc], ecx
mov ecx, esi
call fcn.00427547
test esi, esi
js 0x4237b9
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp - 0xc]
inc edx
test edi, edi
jne 0x42379b
push dword [ebp + 0x10]
call fcn.004258c2
mov esi, eax
test esi, esi
js 0x4237b9
xor esi, esi
jmp 0x4238c0
lea eax, [ebp - 0x10]
push eax
call fcn.004258c2
mov esi, eax
test esi, esi
js 0x4237b9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [eax], ecx
jae 0x4237c0
mov esi, 0x8007007a
mov ecx, esi
jmp 0x4238b2
lea edx, [edi + ecx*2]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
test edx, edx
jle 0x4238a6
lea ecx, [edi + 6]
mov dword [ebp - 0xc], ecx
xor eax, eax
mov word [ebp - 8], ax
mov ah, byte [ebx]
inc ebx
mov byte [ebp - 1], al
cmp edx, 1
jbe 0x4237fb
mov al, byte [ebx]
inc ebx
mov byte [ebp - 2], al
cmp edx, 2
jbe 0x423801
mov al, byte [ebx]
inc ebx
mov byte [ebp - 1], al
jmp 0x423801
mov al, byte [ebp - 7]
mov byte [ebp - 2], al
cmp ecx, dword [ebp - 0x14]
jae 0x4238ab
add dword [ebp - 0xc], 2
movzx ecx, ah
mov eax, ecx
shl ecx, 4
shr eax, 2
movzx eax, byte [eax + 0x409db0]
mov word [edi], ax
movzx eax, byte [ebp - 2]
mov dword [ebp - 0x18], eax
shr eax, 4
or eax, ecx
mov ecx, dword [ebp - 0xc]
and eax, 0x3f
add ecx, 2
mov dword [ebp - 0xc], ecx
movzx eax, byte [eax + 0x409db0]
mov word [edi + 2], ax
cmp edx, 1
jbe 0x423869
movzx ecx, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
shr ecx, 6
shl eax, 2
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + 0x409db0]
mov ecx, dword [ebp - 0xc]
jmp 0x42386c
push 0x3d
pop eax
mov word [edi + 4], ax
cmp edx, 2
jbe 0x423885
movzx eax, byte [ebp - 1]
and eax, 0x3f
movzx eax, byte [eax + 0x409db0]
jmp 0x423888
push 0x3d
pop eax
mov word [edi + 6], ax
add ecx, 4
sub edx, 3
mov dword [ebp - 0xc], ecx
add edi, 8
test edx, edx
jg 0x4237d7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp edi, dword [ebp - 0x14]
jb 0x4238b9
mov ecx, 0x8000ffff
mov esi, ecx
call fcn.0042752a
jmp 0x4238c0
xor edx, edx
mov word [edi], dx
mov dword [eax], ecx
mov ecx, esi
call fcn.00427547
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42407d
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x1c]
or dword [ebp - 0xc], 0xffffffff
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push eax
lea eax, [ebp - 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
push eax
call fcn.00423fb2
mov edi, eax
test edi, edi
jns 0x4240be
mov ecx, edi
call fcn.0042752a
jmp 0x4241d1
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4240e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov edi, eax
jmp 0x4240b2
cmp dword [ebp - 0xc], 0xffffffff
push 4
pop ebx
je 0x424106
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4240d8
cmp dword [ebp - 0x10], 0xffffffff
je 0x424121
push 0
lea eax, [ebp - 0x10]
push eax
push 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4240d8
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x4240d8
cmp dword [ebp - 0x14], ebx
je 0x42414c
mov edi, 0x8000ffff
jmp 0x4240b2
mov eax, dword [ebp + 0x14]
shr dword [ebp - 0x18], 3
push eax
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x424178
xor esi, esi
mov edi, 0x8007000e
jmp 0x4240b2
push dword [ebp + 0x14]
mov esi, ebx
push dword [ebp + 0x10]
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
lea eax, [ebx + ecx]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4240d8
mov eax, dword [ebp + 0x18]
xor esi, esi
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, edi
call fcn.00427547
test esi, esi
je 0x4241ec
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x4241ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
call fcn.0041d834
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4270b9
Capabilities:
Identify system language via api

Disassembly:
push 0x18
mov eax, 0x472845
call fcn.00471dfd
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x14], edi
and dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x10], esi
lea ebx, [eax + 8]
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
test ecx, ecx
je 0x4270eb
call fcn.004274da
and dword [ebx], esi
push ebx
call fcn.0042295b
mov ebx, eax
test ebx, ebx
jns 0x427103
mov ecx, ebx
call fcn.0042752a
jmp 0x42724a
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 8], 0
jne 0x427121
mov ebx, 0x80070002
mov ecx, 0x409bb8
push 2
mov edx, ebx
call fcn.00425ceb
jmp 0x4270f7
push 0xaa
lea eax, [ebx + 0xc]
push 0
push eax
mov dword [ebp - 0x18], eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebx + 0xb6]
push 0x55
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
jne 0x42715b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
jmp 0x4270f7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, dword [ebp - 0x18]
movzx ecx, ax
push 0x55
call fcn.0042779f
test eax, eax
je 0x42714a
lea ecx, [ebp - 0x14]
call fcn.00422d51
mov ebx, eax
test ebx, ebx
jns 0x42718f
mov ecx, ebx
call fcn.0042752a
mov edi, dword [ebp - 0x14]
jmp 0x42724a
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push 0x55
pop edx
call fcn.00425841
mov ebx, eax
test ebx, ebx
js 0x427180
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
and dword [esi + 0x160], 0
call fcn.00422e4a
mov edi, dword [ebp - 0x14]
mov ebx, eax
test ebx, ebx
jns 0x4271d2
mov ecx, ebx
call fcn.0042752a
mov esi, dword [ebp - 0x10]
jmp 0x42723f
cmp dword [ebp - 0x20], 0
jne 0x4271e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
jmp 0x4271c6
lea ebx, [esi + 0x160]
mov ecx, ebx
call fcn.00427abb
mov ecx, dword [esi + 8]
mov edx, ebx
push 0
call fcn.00424217
mov ebx, eax
test ebx, ebx
js 0x4271c6
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x427222
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x18]
call fcn.0042684f
mov ebx, eax
test ebx, ebx
jns 0x42723f
mov ecx, ebx
call fcn.0042752a
test esi, esi
je 0x42724a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, ebx
call fcn.00427547
mov byte [ebp - 4], 0
test esi, esi
je 0x427264
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x427277
mov ecx, edi
call fcn.004274da
and dword [ebp - 0x14], 0
mov eax, ebx
call fcn.00471dd0
ret 0xc
Function at 0x4286eb
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
push edi
mov edi, edx
test ecx, ecx
je 0x4287f1
xor eax, eax
cmp ax, word [ecx]
je 0x4287f1
test edi, edi
je 0x4287f1
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4287e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4287bb
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4287bb
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428797
cmp dword [ebp - 8], esi
jne 0x428797
mov eax, dword [ebp - 0xc]
mov dword [edi], esi
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
jmp 0x4287ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4287a6
push 0x1f
pop esi
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4287ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4287ca
push 0x1f
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x4287f4
movzx esi, si
or esi, 0x80070000
jmp 0x4287f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4287d3
push 0x1f
pop esi
jmp 0x4287d5
push 0x57
pop esi
lea ecx, [ebp - 0x18]
call fcn.0042c053
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret

Function at 0x4293b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push dword [ebp + 8]
lea edi, [esi + 8]
push dword [ebp + 0xc]
push edi
push ebx
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x4293f1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x429401
mov ecx, dword [edi]
test ecx, ecx
js 0x429401
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x429401
mov eax, dword [esi + 0xc]
mov dword [edx], eax
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0xc