joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x43d00c]
mov ebx, ecx
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x38], eax
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
push 0x4000000
push 2
call fcn.00411280
add esp, 8
test eax, eax
je 0x401a1d
mov edi, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x34], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
test esi, esi
je 0x401a24
sub esi, dword [esp + 0x10]
jle 0x4019a9
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
jne 0x4019a9
mov eax, ebx
mov ebx, dword [ebx + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x10]
push 0
push eax
push dword [edi]
call fcn.0041a26e
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], 6
jne 0x401a38
cmp esi, ebx
cmovg esi, ebx
push dword [edi]
push esi
push 1
push dword [esp + 0x28]
call fcn.0041f00f
add esp, 0x10
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
jle 0x401a3c
add dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.0040ffa0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x10]
jne 0x4019e3
push dword [ebp + 0xc]
push eax
push 1
push dword [ebx + 8]
call fcn.0041f222
add esp, 0x10
cmp eax, dword [esp + 0x30]
jne 0x401a2e
xor eax, eax
mov dword [esp + 0x30], 0
test esi, esi
je 0x401920
cmp esi, 1
mov dword [esp + 0xc], 0x27
jne 0x401a3c
push dword [ebp + 0xc]
push eax
push 1
push dword [ebx + 8]
call fcn.0041f222
add esp, 0x10
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x46
cmove eax, ecx
mov dword [esp + 0xc], eax
jmp 0x401a3c
mov esi, 0x27
jmp 0x401a77
mov dword [esp + 0xc], 0x28
jmp 0x401a3c
mov dword [esp + 0xc], 0x46
jmp 0x401a3c
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x4b0]
cmp dword [esi + 0x3c], 0
je 0x401a53
push dword [esi + 0x18]
call fcn.0041f205
add esp, 4
push esi
call fcn.0041f205
add esp, 4
push dword [edi + 0x4b4]
call fcn.0041f205
add esp, 4
push edi
call fcn.0041f205
add esp, 4
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x401a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x43d00c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push 0x20
push 1
push edi
call fcn.0041f00f
add esp, 0x10
mov esi, 6
cmp eax, 0x20
jne 0x401b5e
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
push ebx
call fcn.0041a248
add esp, 4
mov ecx, esp
push ecx
push eax
call fcn.0041a5c6
add esp, 8
mov esi, 6
test eax, eax
jne 0x401b5e
mov eax, 0x4944424d
mov ecx, 0x30314646
mov esi, 0x29
xor eax, dword [edi]
xor ecx, dword [edi + 4]
or ecx, eax
jne 0x401b5e
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x401b5e
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x401b5e
sub eax, dword [edi + 0x18]
jb 0x401b5e
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
jb 0x401b5e
xor edx, edx
cmp eax, ecx
mov esi, 0x29
cmove esi, edx
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
add ebx, edi
add eax, dword [ebp + 0x10]
add ebx, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
push ebx
call fcn.0041f68f
add esp, 4
test eax, eax
je 0x401c11
mov esi, eax
test ebx, ebx
mov dword [ebp - 0x1c], eax
je 0x401bf0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp ebx, 0x7fffffff
mov edi, 0x7fffffff
cmovb edi, ebx
push dword [ebp + 0xc]
push edi
push 1
push esi
call fcn.0041f00f
add esp, 0x10
cmp eax, edi
jne 0x401c1b
add esi, edi
sub ebx, edi
jne 0x401bc0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov edi, dword [eax + 0x14]
mov ecx, 0xaaaaaaab
mov eax, edi
mul ecx
shr edx, 1
and edx, 0xfffffffc
lea eax, [edx + edx*2]
cmp edi, eax
je 0x401c27
mov dword [ebp - 0x10], 0x29
jmp 0x401d4e
mov eax, 0xc
jmp 0x401d5c
mov dword [ebp - 0x10], 6
jmp 0x401d4e
test edi, edi
jle 0x401d47
mov eax, dword [ebp + 8]
mov ebx, esi
add ebx, edi
mov edi, esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], ebx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
add edx, ebx
add eax, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
sub ecx, esi
cmp eax, ecx
ja 0x401c05
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x401c05
test eax, eax
je 0x401cc0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x401cb0
jmp 0x401cc2
xor ecx, ecx
push dword [ebp + 0x14]
push ecx
push 1
push ebx
call fcn.0041f222
add esp, 0x10
cmp eax, dword [edi]
mov dword [ebp - 0x18], eax
jne 0x401d64
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 0x40
sub ecx, edx
cmp eax, ecx
ja 0x401c05
push dword [ebp + 0x14]
push eax
push 1
push edx
call fcn.0041f222
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x401d4e
add esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
sub edx, esi
cmp ecx, edx
jl 0x401c05
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x401c05
add edi, 0xc
add ebx, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
add esi, ecx
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x401c60
jmp 0x401d4e
mov dword [ebp - 0x10], 0
push dword [ebp - 0x1c]
call fcn.0041f205
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0x40
jmp 0x401d4e
Function at 0x403d10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
push 0x2f
push ecx
call fcn.004153fe
add esp, 8
test eax, eax
je 0x403d42
mov ecx, edi
mov esi, eax
mov word [eax], 0
call fcn.00403d10
mov ebx, eax
test eax, eax
je 0x403d4b
mov word [esi], 0x2f
jmp 0x403d44
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp word [edi], 0
je 0x403d3b
push edi
call fcn.0041d7f0
add esp, 4
test eax, eax
jns 0x403d3b
call fcn.00419e3b
cmp dword [eax], 0x11
je 0x403d3b
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403da8
call fcn.00419e3b
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x10
mov ebx, 7
jmp 0x403d3b
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x403d87
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x403d87

Function at 0x4052a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov ecx, dword [0x43d00c]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
push eax
call fcn.00405440
add esp, 4
mov edi, dword [esp + 0x68]
test edi, edi
je 0x4053c9
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x2c], str.winsta0Default
lea ecx, [esp + 0x24]
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x4053d5
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x405430
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x68], 0
push edi
call fcn.0041241e
add esp, 4
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x68], 0
xor esi, esi
jmp 0x4053b5
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0xc]
mov ecx, 0x438290
test eax, eax
cmovne ecx, eax
sub esp, 8
mov dword [esp + 4], ecx
call fcn.004056a0
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4053a4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4053a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40539a
Function at 0x408260
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x414
mov eax, dword [0x43d00c]
mov edi, ecx
lea esi, [ebp - 0x218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x208
push 0
push esi
call fcn.00414f70
add esp, 0xc
push esi
push 0x438150
push 0x43f226
call fcn.0040f2f0
add esp, 0xc
test eax, eax
je 0x4082b6
lea esi, [ebp - 0x218]
mov ecx, esi
call fcn.00403d10
test eax, eax
je 0x4082cf
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412bfe
mov eax, ebx
add esp, 0x414
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x438272
push esi
call fcn.0041d6e6
add esp, 8
test eax, eax
je 0x4082b6
mov ebx, eax
push edi
call fcn.0041f7f0
add esp, 4
push ebx
push 1
push eax
push edi
call fcn.0041f222
add esp, 0x10
mov edi, eax
push ebx
call fcn.0041ea14
add esp, 4
cmp edi, 1
jne 0x4082b6
lea edi, [ebp - 0x420]
push 0x208
push 0
push edi
call fcn.00414f70
add esp, 0xc
push 0x437958
push 0x43f226
push str._s_s
push 0x104
push edi
call fcn.004043f0
add esp, 0x14
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
jmp 0x4082b8
Function at 0x40a930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call ebx
mov edi, eax
call ebx
sub eax, edi
cmp eax, 0x270f
ja 0x40a984
nop
nop
nop
mov ecx, 0x2710
sub ecx, eax
push ecx
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x40a984
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x40a984
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, edi
cmp eax, 0x2710
jb 0x40a950
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40aa00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x43d00c]
mov ebx, edx
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x240], eax
lea eax, [esp + 8]
push eax
push ecx
call fcn.0041a5d1
add esp, 8
test eax, eax
jne 0x40abf9
movzx eax, word [esp + 0xe]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40ab42
mov dword [esp + 4], ebx
push 0x210
call fcn.004123e0
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
call fcn.0040f500
push ebx
call fcn.0040f590
add esp, 4
test eax, eax
je 0x40aad7
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x43826e
push edi
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x40aac8
push 0x43826c
push edi
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x40aac8
push edi
push esi
push str._s__s
push 0x104
lea edi, [esp + 0x48]
push edi
call fcn.004043f0
add esp, 0x14
mov edx, dword [esp + 4]
mov ecx, edi
call fcn.0040aa00
push ebx
call fcn.0040f590
add esp, 4
mov edi, eax
test eax, eax
jne 0x40aa80
push ebx
call fcn.0040f560
add esp, 4
push 0x180
push esi
call fcn.0041d103
add esp, 8
push esi
call fcn.0041d90b
add esp, 4
test eax, eax
je 0x40abf9
mov edi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40ac0f
call fcn.00419e3b
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x14
jmp 0x40abf9
lea edi, [esp + 0x38]
push edi
push 0x437a80
push ebx
call fcn.0040f2f0
add esp, 0xc
push edi
call fcn.0041d8b6
add esp, 4
mov ecx, esi
mov edx, edi
push 0
call fcn.0040a5b0
add esp, 4
test eax, eax
cmove esi, edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aba7
test edi, edi
je 0x40abe6
push esi
push str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
jmp 0x40abec
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40ab9b
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
test edi, edi
jne 0x40ab9f
push esi
push str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
push 0x43f844
call fcn.0040e940
add esp, 0xc
mov ecx, dword [esp + 0x240]
xor ecx, ebp
call fcn.00412bfe
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40ab22
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40ab22
Function at 0x40b290
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor esi, esi
test eax, eax
jne 0x40b303
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40b303
push 0xf0000000
push 0x18
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40b303
push 0xf0000008
push 0x18
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40b303
mov esi, 0xffffffff
mov dword [edi], 0
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40b310
Capabilities:
Hash data via wincrypt
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
test ecx, ecx
je 0x40b377
mov esi, edx
test edx, edx
je 0x40b377
cmp dword [ebp + 0xc], 0
je 0x40b377
cmp dword [ebp + 0x10], 0
je 0x40b377
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40b377
push ecx
push 1
push dword [ebp + 8]
push esi
call fcn.0041f00f
add esp, 0x10
cmp eax, 1
jne 0x40b39a
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
nop
nop
cmp eax, edi
je 0x40b3ba
push 0
push dword [ebp + 8]
push esi
push dword [eax + ebx*4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x40b3ba
inc ebx
add edi, 0xfffffffc
cmp ebx, dword [ebp + 0x10]
jb 0x40b350
xor eax, eax
jmp 0x40b3da
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x24
push str.ERROR:_Invalid_parameter_specified._n
call fcn.0041f222
add esp, 0x10
mov eax, 0xffffffff
jmp 0x40b3da
push 2
call fcn.00415889
add esp, 4
push edi
push str.ERROR:_Could_not_read__s_n
push eax
call fcn.00405b90
add esp, 0xc
mov eax, 0xffffffff
jmp 0x40b3da
push 2
call fcn.00415889
add esp, 4
push dword [ebp + 0x14]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push eax
call fcn.00405b90
add esp, 0xc
mov eax, 0xfffffffe
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x43d00c]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
xor eax, ebp
test edi, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], 0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
je 0x40b455
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b455
cmp dword [ebp + 0xc], 0
je 0x40b455
cmp dword [ebp + 0x10], 0
je 0x40b455
cmp dword [eax], 0
je 0x40b46e
lea eax, [esp + 0x10]
push eax
call fcn.0040b290
add esp, 4
test eax, eax
je 0x40b487
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x26
push str.ERROR:_Could_not_init_crytpo_library._n
jmp 0x40b558
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x24
push str.ERROR:_Invalid_parameter_specified._n
jmp 0x40b558
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x1d
push str.ERROR:_MAR_file_is_not_open._n
jmp 0x40b558
xor ebx, ebx
lea ecx, [esp + 0x20]
nop
nop
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x40b544
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40b544
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 2
lea eax, [esp + 0x3c]
push eax
push 2
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
mov ecx, dword [esp + 8]
test eax, eax
je 0x40b544
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add eax, 0x38
push ecx
push eax
push 0x10001
push esi
mov esi, ecx
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov dword [esp + 0xc], eax
push dword [esp + 0x14]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [esp + 0xc], 0
je 0x40b544
add esi, 4
inc ebx
cmp ebx, edi
mov ecx, esi
jb 0x40b490
lea eax, [esp + 0x20]
push edi
push eax
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040b5b0
add esp, 0x10
mov dword [esp + 8], eax
test edi, edi
jne 0x40b56c
jmp 0x40b58f
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x22
push str.ERROR:_Could_not_load_public_key._n
call fcn.0041f222
add esp, 0x10
mov dword [esp + 8], 0xffffffff
test edi, edi
je 0x40b58f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea ebx, [esp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebx]
test eax, eax
je 0x40b589
push eax
call esi
add ebx, 4
dec edi
jne 0x40b580
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00412bfe
mov eax, dword [esp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x43814a
push esi
push eax
call fcn.0041d6fd
add esp, 0xc
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40bd48
push 0x40c
call fcn.0041f68f
add esp, 4
test eax, eax
je 0x40bd6c
mov esi, eax
mov dword [eax], edi
add eax, 4
push 0x408
push 0
push eax
call fcn.00414f70
add esp, 0xc
jmp 0x40bd77
push 2
call fcn.00415889
add esp, 4
push eax
push 1
push 0x2a
push str.ERROR:_could_not_open_file_in_mar_wopen___n
call fcn.0041f222
add esp, 0x10
push esi
call fcn.0041d81a
jmp 0x40bd72
push edi
call fcn.0041ea14
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret
Function at 0x40bff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [0x43d00c]
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
xor eax, ebp
mov dword [esp + 0x88], eax
lea eax, [esp + 0x18]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov byte [esp + 0x80], 0
push eax
push ecx
push edx
push 0
push 0
push dword [ebx]
call fcn.0040bd90
add esp, 0x18
test eax, eax
mov esi, 0xffffffff
jne 0x40c10d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c10d
lea eax, [esp + 0x14]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041f00f
add esp, 0x10
cmp eax, 1
jne 0x40c10d
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
add edi, 0xfffffff8
cmp edi, 0x60
mov dword [esp + 0x14], edi
ja 0x40c10d
lea eax, [esp + 0x10]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041f00f
add esp, 0x10
cmp eax, 1
jne 0x40c10d
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x10], eax
cmp eax, 1
mov eax, dword [ebx]
jne 0x40c101
lea ebx, [esp + 0x20]
push eax
push 1
push edi
push ebx
call fcn.0041f00f
add esp, 0x10
cmp eax, 1
jne 0x40c10d
mov edi, dword [ebp + 0xc]
push ebx
call fcn.0041f7f0
add esp, 4
cmp eax, 0x40
mov dword [edi], ebx
jl 0x40c125
mov dword [edi], 0
jmp 0x40c10d
push 1
push edi
push eax
call fcn.0041a26e
add esp, 0xc
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + eax + 0x21]
push edi
call fcn.0041f7f0
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp eax, 0x20
mov dword [ecx + 4], edi
mov edi, dword [ebp + 0xc]
jl 0x40c14f
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x40c10d
push ebx
call fcn.0041ce1a
add esp, 4
mov dword [edi], eax
push dword [edi + 4]
call fcn.0041ce1a
add esp, 4
mov dword [edi + 4], eax
xor esi, esi
jmp 0x40c10d