joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1061537
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.010614b3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10616af
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10616af
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x106165e
jg 0x1061590
test eax, eax
je 0x1061654
push 1
push 0x1000
call fcn.01055fd9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10615b6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x106164b
push 0x8000
push ebx
call fcn.010498ea
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10615e2
jg 0x10615dd
cmp ecx, 0x1000
jb 0x10615e2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.01060b5b
add esp, 0x10
cmp eax, 0xffffffff
je 0x1061627
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10615dd
jl 0x106160e
test ecx, ecx
jne 0x10615cf
push dword [ebp - 0xc]
push ebx
call fcn.010498ea
push esi
call fcn.01055f51
add esp, 0xc
xor edi, edi
jmp 0x10616c0
cmp byte [edi + 0x24], 0
je 0x106163e
cmp dword [edi + 0x20], 5
jne 0x106163e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1061649
mov edi, dword [edi + 0x18]
jmp 0x106164b
xor edi, edi
push esi
call fcn.01055f51
pop ecx
jmp 0x10616c0
test ecx, ecx
jg 0x1061620
jl 0x106165e
test eax, eax
jae 0x1061620
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01055e07
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1061681
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1061620
jmp 0x10616b8
push ebx
call fcn.0105a60c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1061620
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10616c0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10616bd
mov edi, dword [edi + 0x18]
jmp 0x10616c0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01055e07
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40123a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
push edi
and dword [ebp - 0xc], 0
mov byte [ebp - 0x110], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
call sub.iphlpapi.DLL_GetAdaptersInfo
mov dword [ebp - 8], eax
push 0
call sub.KERNEL32.dll_DeleteFileA
cmp dword [ebp - 4], 0
jne 0x4013f1
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 8]
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x8001d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8001da
pushal
call 0x8001e0
pop ebp
sub ebp, 0x10
sub ebp, 0x4001d0
jmp 0x8001f6
rol byte [ecx], 1
inc eax
add cl, ch
add al, 0
add byte [eax], al
push esi
imul esi, dword [edi], 0x1d0b879
inc eax
add byte [ebx], al
lds eax, [ecx + 0x4cc0]
add byte [ecx + 0x5f8], bh
mov eax, 0x4001d0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f8
mov edx, 0x223a6584
xor byte [eax], dl
inc eax
dec ecx
jne 0x80020d
jmp 0x800220
cmovns ecx, dword [edi]
or eax, 0x848484b8
add eax, 0x84847c45
test byte [edi - 0x7b7dc3b7], al
test byte [esi + edi - 0x7b7b7b54], al
jae 0x8002a2
xchg dword [edi + ecx + 5], ecx
mov byte [esp + eax*4 + 0x9418784], al
loopne 0x8001e9
js 0x800258
and byte [eax + 0x78a0e009], 0xd
and byte [eax - 0x75cdcb14], 0x84
in al, dx
test ah, ch
wait
iretd
mov byte [edi + ecx - 0x7b7f5ff8], al
test byte [esp + ebp*8 - 0x7b75cdcc], al
in al, dx
wait
iretd

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x36493c11
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x226d3eb4
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6c39c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1c3000]
push edi
jmp 0x6c39da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c39e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c39d0
mov eax, 1
add ebx, ebx
jne 0x6c39f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c3a04
jne 0x6c3a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3a23
dec eax
add ebx, ebx
jne 0x6c3a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6c39e8
add ebx, ebx
jne 0x6c3a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6c3a75
xor ecx, ecx
sub eax, 3
jb 0x6c3a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c3aaa
sar eax, 1
mov ebp, eax
jmp 0x6c3a46
add ebx, ebx
jne 0x6c3a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3a14
inc ecx
add ebx, ebx
jne 0x6c3a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3a14
add ebx, ebx
jne 0x6c3a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c3a56
jne 0x6c3a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c3a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c3a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c3a86
jmp 0x6c39d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c3a94
add edi, ecx
jmp 0x6c39d6
pop esi
mov edi, esi
mov ecx, 0x106d4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c3ab2
cmp byte [edi], 0x2e
jne 0x6c3ab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6c3ab7
lea edi, [esi + 0x2b7000]
mov eax, dword [edi]
or eax, eax
je 0x6c3b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d3bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d3da0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c3ae4
mov ecx, edi
jns 0x6c3b13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d3da8]
or eax, eax
je 0x6c3b29
mov dword [ebx], eax
add ebx, 4
jmp 0x6c3b01
call dword [esi + 0x2d3da4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c3b60
cmp al, 0xef
ja 0x6c3b53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c3b35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c3b42
mov ebp, dword [esi + 0x2d3dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6c3b94
sub esp, 0xffffff80
jmp 0x5af86c
Function at 0x4031e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4045c1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408398]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x4032c4
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x48], edi
jbe 0x403291
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403278
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403270
cmp edi, 0x100000
mov dword [esp + 0x48], edi
mov eax, 0x40651c
ja 0x403295
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004038eb
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4032bb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004038eb
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x403312
push 0x402410
push 0x4023d0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403a33
jmp 0x403314
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x20], 1
je 0x403344
cmp eax, ebx
je 0x403341
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402410
push ecx
push 0x44
push eax
call fcn.004039d0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00402e70
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40a4e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.0040bb70
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x30
push ebx
push esi
mov eax, dword [eax*4 + 0x417ef8]
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [esi], ebx
mov edi, ecx
mov dword [esi + 4], ebx
mov dword [ebp - 0x1418], eax
mov dword [ebp - 0x1414], edx
mov dword [esi + 8], ebx
cmp ecx, edx
jae 0x40a5f6
lea eax, [ebp - 0x6b0]
cmp edi, edx
jae 0x40a56d
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x40a560
push 0xd
pop ebx
mov word [eax], bx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x40a548
xor ebx, ebx
lea ecx, [ebp - 0x1408]
push ebx
push ebx
push 0xd55
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x140c], eax
test eax, eax
je 0x40a5ee
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5ee
add ebx, dword [ebp - 0x1410]
mov eax, dword [ebp - 0x140c]
cmp ebx, eax
jb 0x40a5a1
mov edx, dword [ebp - 0x1414]
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, edx
jb 0x40a542
jmp 0x40a5f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x17f27234
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2f5b67aa
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x42dd00
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.0042e0b0
ret 0x18

Function at 0x42df90
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x42dfb0
test ecx, 0x10000000
je 0x42dfad
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42dfc0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x42dfea
test ecx, 0x40000000
je 0x42dfdd
or eax, 0x80000000
test ecx, 0x80000000
je 0x42dfe7
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x42dff0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x42e02e
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x42e029
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42e040
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x42e055
add eax, ecx
jo 0x42e066
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x42e066
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x42e070
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x42e0a7
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x42e0a2
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x10002309
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
pushal
jmp 0x1000230f
mov ebx, eax
push ebx
push 0
push eax
call sub.kernel32.dll_GetFileSize
cmp eax, dword [0x10018b67]
je 0x10002335
mov dword [0x10018b67], eax
push eax
push 0x1001350b
push ebx
call sub.kernel32.dll__lread
jmp 0x1000234b
call sub.kernel32.dll_CloseHandle
push dword [0x10018b6b]
pop dword [0x10018afb]
popal
leave
ret 4
call sub.kernel32.dll_CloseHandle
mov edi, 0x1001350b
push edi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x1000230f
inc eax
mov ecx, eax
mov ebx, 0xb
mov esi, 0x10015c1b
mov edx, edi
mov al, 0x3a
repne scasb al, byte es:[edi]
or ecx, ecx
je 0x100023a6
mov byte [edi - 1], 0
push ecx
pop ecx
mov dword [esi], eax
mov edx, edi
mov al, 0xa
repne scasb al, byte es:[edi]
or ecx, ecx
je 0x100023a6
mov byte [edi - 1], 0
cmp byte [edi - 2], 0xd
jne 0x10002396
mov byte [edi - 2], 0
push ecx
pop ecx
mov dword [esi + 4], eax
add esi, 8
inc dword [0x10018afb]
jmp 0x1000236c
push dword [0x10018afb]
pop dword [0x10018b6b]
popal
leave
ret 4

Function at 0x10002fe7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
mov ecx, 0x6f
lea edi, [ebp - 0xde]
mov esi, 0x10001053
lodsw ax, word [esi]
ror ax, 0xa
stosw word es:[edi], ax
loop 0x10003000
lea eax, [0x10006128]
mov dword [eax], 0x3c
mov dword [eax + 4], 0x40
mov dword [0x10005841], 0x616e7572
mov byte [0x10005845], 0x73
mov dword [eax + 0xc], 0x10005841
lea ecx, [ebp - 0x2b]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0xde]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], 0
mov esi, 5
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadLibraryA
cmp eax, 0
jbe 0x1000308c
mov edx, eax
lea eax, [ebp - 0x1c]
push eax
push edx
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
jbe 0x1000308c
push 0x10006128
call eax
or eax, eax
jne 0x1000308c
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x1000308c
cmp eax, 3
je 0x1000308c
dec esi
jne 0x10003050
leave
ret
Function at 0x403ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x4b965c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0xb0
mov dword [esp + 0x10], 0x403470
call fcn.004a0460
add esp, 4
mov esi, eax
push 0xb0
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00406dd0
mov esi, eax
test esi, esi
je 0x403cbe
lea ecx, [esi + 4]
lock inc dword [ecx]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x403b65
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x403b5d
mov eax, dword [ecx]
push esi
jmp 0x403b63
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push 0x4bac64
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x403b7f
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x4bac90]
cmp eax, 0x7fffffff
jne 0x403b99
dec eax
push 6
mov dword [0x4bac90], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov al, byte [0x4b969c]
test al, al
je 0x403bc8
mov edi, dword [sym.imp.MSVCP140.dll__Cnd_wait]
nop dword [eax + eax]
push 0x4bac64
push 0x4bac94
call edi
mov al, byte [0x4b969c]
add esp, 8
test al, al
jne 0x403bb0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xff
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.jsq.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x403c34
push str.jsq.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x403c22
push 0x10
push str.Error
push str.Failed_to_load_DLL
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403c5e
push 0xff
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str._SayHello__YAXXZ
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x403c73
push 0x10
push str.Error
push str.Failed_to_get_function_pointer
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4bac64
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov edi, 1
jmp 0x403c85
call eax
push 0x4bac64
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
xor edi, edi
lea eax, [esi + 4]
lock xadd dword [eax], ebx
dec ebx
jne 0x403ca5
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x403c9d
mov eax, dword [ecx]
push esi
call dword [eax]
jmp 0x403ca5
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a039d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 4
call fcn.00402c50
int3
Function at 0x404040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40406c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404094
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40409a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404102
jg 0x4040b1
test esi, esi
je 0x404102
test ecx, ecx
jl 0x4040fd
jg 0x4040bb
test eax, eax
je 0x4040fd
cmp edi, ecx
jg 0x4040cf
jl 0x4040c5
cmp esi, eax
jae 0x4040cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404105
mov ecx, dword [ebp + 8]
jmp 0x40410f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404129
jg 0x40410f
test esi, esi
je 0x404129
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404129
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc