joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403678
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4036c8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4036c3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4036ad
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4036b5
cmp edx, ebx
jne 0x403803
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x403684
add eax, dword [eax + 4]
jmp 0x403671
mov dword [ebp + 0xc], ebx
jmp 0x4036d3
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4036eb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403709
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x403767
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40374e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x403757
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x403761
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403743
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4036cd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4037b4
dec eax
je 0x4037ab
sub eax, 3
je 0x4037a2
mov dword [ebp - 4], 0x40
jmp 0x4037d1
mov dword [ebp - 4], 4
jmp 0x4037b7
mov dword [ebp - 4], 0x20
jmp 0x4037b7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
jne 0x4037ba
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x403803
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x403783
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403014
sal dword [edi], 0x6b
inc eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40380f
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x403898
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
invalid
invalid
lodsb al, byte [esi]
cld

Function at 0x4038d4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
add byte [eax - 0x3c35b], al
inc dword [eax]
Function at 0x403904
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
invalid
test dword [ebp - 4], eax

Function at 0x403efc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x45fde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fde8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408b30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push esi
push edi
jb 0x408b50
mov eax, dword [eax]
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408b8e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x408b70
test byte [ebp - 0x25c], 0x10
jne 0x408ba0
lea edx, [ebp - 0x25c]
push edx
push esi
call edi
test eax, eax
jne 0x408b70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00413635
mov esp, ebp
pop ebp
ret

Function at 0x408bc0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push esi
push edi
jb 0x408be0
mov eax, dword [eax]
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c1e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x408c00
test byte [ebp - 0x25c], 0x10
je 0x408c30
lea edx, [ebp - 0x25c]
push edx
push esi
call edi
test eax, eax
jne 0x408c00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00413635
mov esp, ebp
pop ebp
ret
Function at 0x408c50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x408c7e
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
push edi
call fcn.00408b30
add esp, 4
test al, al
jne 0x408c6b
mov eax, dword [edi + 0x10]
xor esi, esi
cmp eax, 1
jbe 0x408d64
mov edx, dword [edi + 0x14]
cmp edx, 8
jb 0x408ca5
mov ecx, dword [edi]
jmp 0x408ca7
mov ecx, edi
cmp word [ecx + 2], 0x3a
jne 0x408ce4
cmp eax, 2
je 0x408e62
cmp edx, 8
jb 0x408cd0
mov eax, dword [edi]
xor ecx, ecx
cmp word [eax + 4], 0x5c
sete cl
lea esi, [ecx + 2]
jmp 0x408d64
xor ecx, ecx
mov eax, edi
cmp word [eax + 4], 0x5c
sete cl
lea esi, [ecx + 2]
jmp 0x408d64
cmp edx, 8
jb 0x408ced
mov eax, dword [edi]
jmp 0x408cef
mov eax, edi
cmp word [eax], 0x5c
jne 0x408d64
cmp edx, 8
jb 0x408cfe
mov eax, dword [edi]
jmp 0x408d00
mov eax, edi
cmp word [eax + 2], 0x5c
jne 0x408d64
cmp edx, 8
jb 0x408d10
mov eax, dword [edi]
jmp 0x408d12
mov eax, edi
add eax, 4
push 0x42ba68
push eax
call fcn.00414264
add esp, 8
mov ebx, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x408e62
mov eax, edi
call fcn.004079d0
mov esi, ebx
sub esi, eax
push 0x42ba68
mov eax, edi
sar esi, 1
call fcn.004079d0
lea edx, [eax + esi*2 + 2]
push edx
call fcn.00414264
mov ebx, eax
mov eax, dword [ebp - 0x24]
inc eax
add esp, 8
mov dword [ebp - 0x24], eax
cmp eax, 3
jl 0x408d28
cmp dword [edi + 0x14], 8
jb 0x408d6e
mov eax, dword [edi]
jmp 0x408d70
mov eax, edi
lea eax, [eax + esi*2]
push 0x42ba68
push eax
call fcn.00414264
mov esi, eax
add esp, 8
test esi, esi
je 0x408e15
jmp 0x408d90
mov eax, edi
call fcn.004079d0
sub esi, eax
sar esi, 1
mov ebx, esi
push ebx
xor ecx, ecx
lea esi, [ebp - 0x20]
mov edx, edi
call fcn.0040ed60
cmp dword [ebp - 0x10], 0
je 0x408e3d
mov ecx, esi
push ecx
call fcn.00408b30
add esp, 4
test al, al
jne 0x408de0
mov eax, dword [ebp - 0x20]
mov esi, 8
cmp dword [ebp - 0xc], esi
jae 0x408dd3
lea eax, [ebp - 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408e51
push 0x42ba68
mov eax, edi
call fcn.004079d0
lea edx, [eax + ebx*2 + 2]
push edx
call fcn.00414264
add esp, 8
cmp dword [ebp - 0xc], 8
mov esi, eax
jb 0x408e0d
mov eax, dword [ebp - 0x20]
push eax
call fcn.00413644
add esp, 4
test esi, esi
jne 0x408d90
cmp dword [edi + 0x14], 8
jb 0x408e1d
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x408e15
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00413644
add esp, 4
jmp 0x408e15
cmp dword [ebp - 0xc], esi
jb 0x408e62
mov edx, dword [ebp - 0x20]
push edx
call fcn.00413644
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00413635
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor bl, bl
cmp dword [eax + 0x14], 8
push esi
jb 0x408e90
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x408edf
cmp esi, 0xffffffff
je 0x408edf
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408ed8
cmp edi, dword [ebp - 4]
jne 0x408ed8
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426638
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0x14], 8
jb 0x408f27
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x408fbf
cmp esi, 0xffffffff
je 0x408fbf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
cmp eax, 0xa00000
jbe 0x408f8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.File_is_too_big.
lea ecx, [ebp - 0x30]
call fcn.00407f50
lea eax, [ebp - 0x30]
lea edi, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00407fe0
push 0x42e2c8
mov eax, edi
push eax
call fcn.00415646
push eax
call fcn.00411c88
mov edx, dword [ebx]
add esp, 4
push 0
lea ecx, [ebp - 0x54]
push ecx
push edx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408fb4
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x54]
je 0x408fbf
push edi
call fcn.00413f50
add esp, 4
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
Function at 0x409380
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4269e0
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x48]
mov edi, edx
mov byte [ebp - 0x299], 0
call fcn.00408800
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4093d7
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a0], eax
cmp eax, 0xffffffff
je 0x4094e3
mov byte [ebp - 0x299], 1
jmp 0x409400
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x409417
test byte [ebp - 0x298], 0x10
jne 0x4094c0
jmp 0x409429
cmp eax, 2
jne 0x409429
test byte [ebp - 0x298], 0x10
je 0x4094c0
xor edx, edx
lea eax, [ebp - 0x26c]
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409442
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x26c]
lea esi, [ebp - 0x2c]
call fcn.00401c20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4094af
cmp eax, 2
ja 0x409498
mov ecx, esi
cmp edx, 8
jae 0x409480
lea ecx, [ebp - 0x2c]
cmp word [ecx], 0x2e
jne 0x409498
mov ecx, esi
cmp edx, 8
jae 0x409490
lea ecx, [ebp - 0x2c]
cmp word [ecx + eax*2 - 2], 0x2e
je 0x4094af
lea ecx, [ebp - 0x2c]
call fcn.0040f6b0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x4094c0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4094b8
mov byte [ebp - 4], bl
cmp edx, 8
jb 0x4094c0
push esi
call fcn.00413644
add esp, 4
mov esi, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x298]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409400
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x4094f5
mov edx, dword [ebp - 0x48]
push edx
call fcn.00413644
add esp, 4
mov al, byte [ebp - 0x299]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret
Function at 0x409620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov ebx, ecx
jne 0x40963c
call fcn.00409d30
push 0x42b7d0
push ecx
push ebx
push ecx
push str.Export_public_key_to
push 0x432b38
call fcn.00405720
add esp, 0xc
push eax
call fcn.00405d50
add esp, 0xc
push eax
call fcn.00405720
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00407630
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x409698
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x409698
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4096b9
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4096b1
or eax, 4
push 0
push eax
call fcn.00407870
cmp dword [ebx + 0x14], 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
jb 0x4096d4
mov ebx, dword [ebx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40972e
cmp esi, 0xffffffff
je 0x40972e
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40971e
cmp edi, dword [ebp - 8]
jne 0x40971e
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
jmp 0x409721
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x409794
jmp 0x409731
mov bl, byte [ebp - 1]
push str.Error:_Failed_to_export_public_key.
push 0x432ae8
call fcn.00405720
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00407630
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x409773
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x409773
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x409794
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40978c
or eax, 4
push 0
push eax
call fcn.00407870
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fe80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x431540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00413555
push 4
mov dword [ebp - 4], 0
call fcn.00413816
mov edi, eax
add esp, 4
test edi, edi
je 0x40ff00
call fcn.00412ee3
mov dword [edi], eax
call fcn.00412ca2
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00412bd7
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40fef6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00412bff
jmp 0x40ff02
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411b4f
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x411ba4
mov ecx, dword [ebp + 8]
push esi
push ecx
push esi
push edi
call fcn.0041543d
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push 0x40
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x411ba4
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push esi
push eax
push edi
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411b87
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], esi
je 0x411b8b
mov byte [ebp - 1], 0
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41256f
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x42598d
call fcn.00415ed7
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x412666
cmp byte [esi + 0x4a], bl
je 0x412666
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4125ab
xor al, al
jmp 0x412668
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0041238f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x412609
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x41260e
dec eax
je 0x412612
dec eax
dec eax
je 0x412662
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407d50
mov al, bl
jmp 0x412668
mov edx, dword [ebp - 0x2c]
jmp 0x4125d4
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41261e
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x412644
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x412631
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.004170a0
add esp, 0x10
cmp edi, eax
jne 0x4125f7
cmp byte [esi + 0x4a], 0
je 0x412662
test edi, edi
jne 0x4125c6
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405300
jmp 0x4125c6
mov bl, 1
jmp 0x4125f9
mov al, 1
call fcn.00415f21
ret
Function at 0x41266e
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x425960
call fcn.00415ed7
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x412690
xor eax, eax
jmp 0x412803
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4126be
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4126be
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x412803
cmp dword [esi + 0x54], ebx
je 0x4127fe
mov ecx, esi
call fcn.00411cc6
cmp dword [esi + 0x44], ebx
jne 0x4126ee
push dword [esi + 0x54]
push edi
call fcn.00411d51
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x412803
jmp 0x4127fe
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0041238f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4127ab
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x4127f3
cmp eax, ebx
jg 0x4127b3
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41275d
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x412782
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x412770
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.004170a0
add esp, 0x10
cmp edi, eax
jne 0x4127f3
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x4127e2
test edi, edi
jne 0x41270f
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x4127f8
push 8
call fcn.00405300
jmp 0x41270f
mov edx, dword [ebp - 0x2c]
jmp 0x412721
cmp eax, 3
jne 0x4127f3
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00411d51
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4127d2
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00407d50
mov ax, si
jmp 0x412803
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00407d50
mov ax, word [ebp + 8]
jmp 0x412803
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00407d50
mov eax, 0xffff
call fcn.00415f21
ret 4

Function at 0x413635
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431540]
jne 0x41363f
repz ret
jmp fcn.004188b6