joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448d74
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0xbb
add ebx, edx
xchg ecx, eax
or al, 0xd1
fist word [esp + ebx*2]
dec edi
inc ebp
invalid
div cl
jg 0x448d20
mov byte [eax + 0xcfa51f9], 0x5d
pop esp
aam 0xb1
sub edi, dword [ebp + 0x36]
cmp dword [eax + 0x49], esi
invalid

Function at 0x44a410
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov edi, eax
je 0x44a44b
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test edi, edi
pop edi
pop esi
je 0x44a463
mov edx, dword [0x64fcf4]
push 0x64fa28
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x4e3b04
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 4]
jge 0x4e3b1b
xor dword [eax + 4], edx
mov esi, esp
fldcw word [eax - 0x7e03ee35]
retf 0xf6d8
in eax, 0xb6
adc eax, ecx
imul edi, dword [eax], 0x5b
push cs
dec ebx
mov eax, 0x934bf6db
adc eax, 0x9b09a35e
cmp al, 0x2b
pop esi
aam 0xf2
in eax, 0x3f
fld xword [edi + ebp*4 + 0x15e91cf6]
leave
dec edi
jmp 0x4e3bab
mov byte [ecx], ch
pop esp
or edi, dword [edx + edi*4 + 0x5d]
mov edx, 0x5ff98acb
mov dh, 0xb4
adc ch, byte [ecx]
fdivr qword [edi + 9]
iretd
push edi
xor al, 0x91
salc
cmpsb byte [esi], byte es:[edi]
mov gs, ebx
or ch, ch
in eax, dx
push esi
inc esp
mov byte [0x59b71be3], al
pop ebp
mov edx, 0x6ba8ad8f
sti
xchg esp, eax
cli
sub eax, 0x2bbb4af4
pop eax
cmc
xor cl, cl
aas
lodsb al, byte [esi]
lahf
inc eax
loopne 0x4e3bab
mov ebp, 0xe0e9f9a9
mov al, byte [0xe0a918c2]
sub dword [ecx + ebp*2], esp
invalid
invalid

Function at 0x64c3de
Capabilities:
Encode data using xor

Disassembly:
and dword [ecx + 0x6dab8867], edx
ror dword [ebx + 0x26], 0x91
stc
cli
invalid
Function at 0x40e196
Capabilities:
Get file size
Get system information on windows

Disassembly:
push 0xf4
mov eax, 0x430cd1
call fcn.0042fc6e
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x100]
xor ebx, ebx
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0xe4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xe4]
mov dword [esi + 0x1c], eax
cmp dword [edi + 0x14], 8
jb 0x40e1e7
mov edi, dword [edi]
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e298
and dword [ebp - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor eax, eax
push eax
push eax
push eax
push 0x8000002
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], 0
jne 0x40e289
push 0x4030b0
lea ecx, [ebp - 0x48]
call fcn.0040c205
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 2
call fcn.004065ce
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040d2a3
push 0x437530
lea eax, [ebp - 0xa0]
jmp 0x40e2d4
mov dword [esi], edi
mov eax, esi
mov dword [esi + 0xc], edi
call fcn.0042fc1d
ret 4
push 0x403080
lea ecx, [ebp - 0x2c]
call fcn.0040c205
and dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004065ce
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2a3
push 0x437530
lea eax, [ebp - 0x74]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x40e30f
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x40e328
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edi
je 0x40e336
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 0xa00000
cmp dword [esi], eax
ja 0x40e341
mov eax, dword [esi]
push eax
push edi
push edi
push 4
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x14], eax
mov eax, dword [esi]
mov dword [esi + 8], edi
pop edi
mov dword [esi + 0xc], eax
pop esi
ret
Function at 0x41546d
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x40]
cmp eax, 0xffff
je 0x415603
mov edx, 0x10000000
cmp eax, 0x7c
je 0x415603
cmp eax, 0x29
jne 0x4154b7
cmp dword [esi + 0x10], 0
jne 0x415603
test dword [esi + 0x44], edx
jne 0x4155c7
push 5
call fcn.0042f049
pop ecx
jmp 0x4155e7
cmp eax, 0x2e
jne 0x4154d2
push 5
lea ecx, [esi + 0x18]
call fcn.00415707
mov ecx, esi
call fcn.00415442
jmp 0x4155e7
cmp eax, 0x5c
jne 0x415527
mov ecx, esi
call fcn.00415442
test byte [esi + 0x44], 0x80
je 0x41551b
movzx eax, word [esi + 0x3e]
cmp eax, 0x62
jne 0x415503
push 4
lea ecx, [esi + 0x18]
call fcn.00415707
mov ecx, esi
call fcn.00415442
jmp 0x4155ee
cmp eax, 0x42
jne 0x41551b
push 4
lea ecx, [esi + 0x18]
call fcn.00415707
mov eax, dword [esi + 0x1c]
xor dword [eax + 8], 1
jmp 0x4154f7
mov ecx, esi
call fcn.00415ba0
jmp 0x4155e7
cmp eax, 0x5b
jne 0x41554d
mov ecx, esi
call fcn.00415442
mov ecx, esi
call fcn.00415b52
cmp dword [esi + 0x40], 0x5d
je 0x4154c6
push 4
call fcn.0042f049
pop ecx
jmp 0x4154c6
cmp eax, 0x28
jne 0x415579
mov ecx, esi
call fcn.00415442
mov ecx, esi
call fcn.00415c80
cmp dword [esi + 0x40], 0x29
mov bl, al
je 0x415570
push 5
call fcn.0042f049
pop ecx
mov ecx, esi
call fcn.00415442
jmp 0x4155e3
cmp eax, 0x5e
jne 0x415585
push 2
jmp 0x4154ef
cmp eax, 0x24
jne 0x415591
push 3
jmp 0x4154ef
cmp eax, 0x2a
je 0x4155d9
cmp eax, 0x2b
je 0x4155d9
cmp eax, 0x3f
je 0x4155d9
cmp eax, 0x7b
je 0x4155d9
cmp eax, 0x7d
jne 0x4155b6
test dword [esi + 0x44], edx
jne 0x4155c7
push 6
jmp 0x4154ac
cmp eax, 0x5d
jne 0x4155c7
test dword [esi + 0x44], edx
jne 0x4155c7
push 4
jmp 0x4154ac
movzx eax, word [esi + 0x3e]
lea ecx, [esi + 0x18]
push eax
call fcn.00415e32
jmp 0x4154c6
push 0xa
call fcn.0042f049
pop ecx
mov bl, 1
test bl, bl
je 0x4155ee
mov ecx, esi
call fcn.00415d4f
mov eax, dword [esi + 0x40]
mov cl, 1
mov edx, 0x10000000
cmp eax, 0xffff
jne 0x415489
pop esi
mov al, cl
pop ebx
pop ecx
ret
Function at 0x41f313
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4385cc]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0x10], edx
lea edi, [esp + 0x74]
mov esi, ecx
stosd dword es:[edi], eax
push 0x50
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call sub.msvcrt.dll_memset
xor ebx, ebx
xor edi, edi
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x10], ebx
je 0x41f41e
cmp dword [esi + 0x10], ebx
je 0x41f41e
cmp dword [esi + 0x14], 8
jb 0x41f374
mov esi, dword [esi]
push ecx
lea eax, [esp + 0x78]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.0042b777
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x41f3aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41f423
movzx esi, si
or esi, 0x80070000
jmp 0x41f423
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0041f96e
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0042b898
mov edi, dword [esp + 0x18]
mov esi, eax
mov ebx, dword [esp + 0x14]
test esi, esi
jns 0x41f3e7
cmp esi, 0x80092004
jne 0x41f423
xor esi, esi
jmp 0x41f423
mov edx, ebx
mov ecx, edi
call fcn.0042b620
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
js 0x41f423
test ebx, ebx
je 0x41f423
mov esi, ebx
mov ebx, edi
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0041f96e
add ebx, 4
sub esi, 1
jne 0x41f402
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
jmp 0x41f423
mov esi, 0x80070057
cmp dword [esp + 0x3c], 0
je 0x41f436
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
jns 0x41f463
test edi, edi
je 0x41f477
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x41f463
mov ecx, dword [edi + eax*4]
test ecx, ecx
je 0x41f45a
push ecx
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, ebx
jb 0x41f448
test edi, edi
je 0x41f477
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f840
mov esp, ebp
pop ebp
ret
Function at 0x41f572
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, edx
push edi
xor edi, edi
mov dword [ebp - 4], esi
test esi, esi
je 0x41f58c
and dword [esi], edi
and dword [esi + 4], edi
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41f679
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov dword [ebp - 8], edx
test edx, edx
je 0x41f679
mov eax, dword [eax + 0x38]
push ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor edx, edx
mov esi, dword [ebx]
mov eax, 0x4047d0
movzx eax, byte [eax + edx]
cmp al, byte [esi + edx]
mov esi, dword [ebp - 4]
jne 0x41f67f
inc edx
cmp edx, 0x18
jne 0x41f5b2
imul edi, ecx, 0xc
add edi, dword [ebp - 0x10]
test esi, esi
je 0x41f678
mov eax, dword [edi + 8]
lea ecx, [ebp - 4]
push ecx
xor edx, edx
push edx
push edx
mov dword [ebp - 4], edx
push dword [eax]
push dword [eax + 4]
push 0x18
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
test eax, eax
je 0x41f678
cmp dword [ebp - 4], 0
jbe 0x41f678
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41f678
mov eax, dword [edi + 8]
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push dword [eax]
push dword [eax + 4]
push 0x18
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
test eax, eax
je 0x41f671
mov eax, dword [ebx + 4]
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
shr eax, 1
push ecx
push 0xc
push eax
push dword [ebx + 8]
mov dword [ebp - 0x10], 8
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x41f671
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret
inc ecx
add ebx, 0xc
cmp ecx, dword [ebp - 8]
jb 0x41f5b0
jmp 0x41f678
Function at 0x422d75
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4385cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
push esi
lea esi, [eax - 1]
mov ebx, ecx
add esi, edx
neg eax
and esi, eax
sub esi, edx
cmp esi, 8
jb 0x422dc6
push edi
mov edi, esi
shr edi, 3
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
sub esi, 8
sub edi, 1
jne 0x422dac
pop edi
test esi, esi
je 0x422dda
push 0
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f840
leave
ret 4

Function at 0x422e7c
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0x20]
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, esi
ja 0x422ec2
sub esi, ebx
cmp edi, esi
jae 0x422ea2
mov esi, edi
test esi, esi
je 0x422ebe
mov eax, dword [ecx]
push 0
push esi
add eax, ebx
push eax
push dword [edx + 4]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov ecx, dword [ebp + 8]
sub edi, esi
add ebx, esi
test edi, edi
je 0x422f39
cmp dword [ecx + 0x30], 0
jne 0x422ecf
mov eax, 0xc000000d
jmp 0x422f3b
test edi, edi
je 0x422f39
lea esi, [ecx + 0x28]
mov esi, dword [esi]
test esi, esi
je 0x422f10
cmp ebx, dword [ecx + 0x2c]
jb 0x422f10
mov edx, ebx
sub edx, dword [ecx + 0x2c]
cmp edx, esi
jae 0x422f10
sub esi, edx
cmp edi, esi
jae 0x422ef2
mov esi, edi
mov eax, dword [ecx + 0x24]
push 0
push esi
add eax, edx
push eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
sub edi, esi
je 0x422f39
mov ecx, dword [ebp + 8]
add ebx, esi
mov esi, dword [ecx + 0x30]
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 0x24]
push eax
lea eax, [ecx + 0x2c]
push eax
push ebx
push dword [ecx + 0x34]
mov ecx, esi
call dword [0x43d41c]
call esi
mov ecx, dword [ebp + 8]
lea esi, [ecx + 0x28]
test eax, eax
jns 0x422ed6
jmp 0x422f3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424f36
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
mov ebx, esi
call fcn.00424e5e
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x424f74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42504c
movzx esi, si
or esi, 0x80070000
jmp 0x42504c
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x424fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x425042
movzx esi, si
or esi, 0x80070000
jmp 0x425042
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x424fc4
mov esi, 0x80070057
jmp 0x42502c
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x42500a
cmp dword [ebp - 4], ebx
je 0x424fe3
mov esi, 0x80004005
jmp 0x42502c
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x42500a
push dword [ebp - 8]
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x425021
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42502c
movzx esi, si
or esi, 0x80070000
jmp 0x42502c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
test edi, edi
je 0x425037
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x425042
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x425052
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00424e5e
mov ebx, eax
test ebx, ebx
jne 0x425088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42511d
movzx esi, si
or esi, 0x80070000
jmp 0x42511d
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4250bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x425115
movzx esi, si
or esi, 0x80070000
jmp 0x425115
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4250d0
mov esi, 0x80070057
jmp 0x42510a
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4250fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42510a
movzx esi, si
or esi, 0x80070000
jmp 0x42510a
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x42510a
mov esi, 0x80004005
test edi, edi
je 0x425115
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x425313
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x18
mov eax, 0x431187
call fcn.0042fc3b
mov ebx, edx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edx
jb 0x425336
mov eax, dword [esi]
jmp 0x425338
mov eax, esi
mov byte [eax], dl
test ebx, ebx
je 0x4253dc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push eax
push edx
push 0x40000001
push ebx
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x42536f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4253de
movzx eax, ax
or eax, 0x80070000
jmp 0x4253de
push dword [ebp - 0x10]
xor edi, edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00425828
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x24]
push eax
push edi
push 0x40000001
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x4253c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4253b8
movzx esi, si
or esi, 0x80070000
test edi, edi
je 0x4253c4
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
mov eax, esi
jmp 0x4253de
push edi
mov ecx, esi
call fcn.0040c1e2
test edi, edi
je 0x4253dc
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
xor eax, eax
call fcn.0042fc09
ret 4

Function at 0x425461
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x18
mov eax, 0x431187
call fcn.0042fc3b
mov ebx, edx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x42547f
mov dword [esi + 4], eax
test ebx, ebx
je 0x425522
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push edi
push eax
push edi
push 1
push ebx
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4254b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x425524
movzx eax, ax
or eax, 0x80070000
jmp 0x425524
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00425828
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x24]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x42550b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4254fb
movzx esi, si
or esi, 0x80070000
test edi, edi
je 0x425507
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
mov eax, esi
jmp 0x425524
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0042574f
test edi, edi
je 0x425522
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
xor eax, eax
call fcn.0042fc09
ret 4
Function at 0x4255f9
Capabilities:
Hash data via bcrypt

Disassembly:
push 0x40
mov eax, 0x4327a7
call fcn.0042fca4
mov ebx, edx
xor esi, esi
mov edi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push esi
push 0x404f54
push 0x4023ac
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x4256e1
push esi
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x404f90
push dword [ebp - 0x18]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x4256e1
push dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
call fcn.0040815c
push esi
push esi
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x4c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jne 0x4256e1
push esi
push dword [ebx]
push dword [ebx + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jne 0x4256e1
push esi
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x404bcc
push dword [ebp - 0x18]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x4256e1
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.0040815c
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
je 0x4256ef
mov byte [ebp - 4], 1
mov edi, eax
or edi, 0x10000000
jmp 0x425716
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.004081be
jmp 0x42570f
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x425725
push dword [ebp - 0x1c]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
cmp dword [ebp - 0x18], 0
je 0x425735
push esi
push dword [ebp - 0x18]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea ecx, [ebp - 0x3c]
call fcn.004065e1
lea ecx, [ebp - 0x4c]
call fcn.004065e1
mov eax, edi
call fcn.0042fc09
ret 4
Function at 0x42b4e1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
test edx, edx
je 0x42b558
mov eax, dword [ebp + 8]
test eax, eax
je 0x42b558
or dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x1c]
mov dword [edi], 0x50
mov dword [edi + 4], edx
mov dword [edi + 0x30], 0x10001
mov dword [edi + 0x44], esi
test eax, eax
jne 0x42b55d
push 0xf0000000
push 0x18
push 0x404e70
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x42b55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42b55d
movzx esi, si
or esi, 0x80070000
jmp 0x42b55d
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x42c232
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x43311f
call fcn.0042fc6e
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x42c34d
cmp byte [ebx + 0x4a], 0
je 0x42c34d
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43d41c]
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
jne 0x42c27a
xor al, al
jmp 0x42c34f
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0042c532
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x42c2aa
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [ebx + 0x44]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x4c]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x43d41c]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x42c2e0
sub eax, 1
je 0x42c2e4
dec eax
sub eax, 1
je 0x42c33b
xor bl, bl
jmp 0x42c33d
mov byte [ebx + 0x4a], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x42c2f4
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x42c31d
cmp eax, 0x10
jae 0x42c303
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x42c2dc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp byte [ebx + 0x4a], 0
je 0x42c33b
test esi, esi
jne 0x42c29e
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409a4a
jmp 0x42c298
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040c0c6
mov al, bl
jmp 0x42c34f
mov al, 1
call fcn.0042fc1d
ret