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

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40df3f
cmp esi, 0x4e20
jle 0x40df35
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40df90
mov eax, ebx
call fcn.0040e258
test al, al
je 0x40df77
cmp esi, 0x4e20
jle 0x40df77
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040df18
jmp 0x40df93
cmp dword [ebx + 0xc], 1
jne 0x40df8b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40df8b
xor eax, eax
jmp 0x40df93
or eax, 0xffffffff
jmp 0x40df93
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f3f8
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x414730], 0
jne 0x40f411
call fcn.0040efd8
mov dword [0x41472c], eax
inc byte [0x414730]
call fcn.0040efd8
sub eax, dword [0x41472c]
cmp eax, 0x64
jle 0x40f44d
cmp dword [0x4148b0], 0
je 0x40f448
mov eax, 0x41a47c
mov edx, 0xff
call fcn.0040c3f4
mov eax, 0x41a47c
mov edx, 0xff
call fcn.0040c3ec
call fcn.004029d0
ret
Function at 0x404444
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404483
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404483
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404483
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404483
cmp dword [ecx + 0x74], 0xe
jbe 0x404483
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x56cac4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x58c704], 0
jne 0x56cb83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.0057302a
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x58c704], eax
mov dword [ebp - 0xc], 0
jmp 0x56cb08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x56cb83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0056ca6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x56cb37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x56cb64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x56cb5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x56cb62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x56cb2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0056ca6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x58c704]
mov dword [ecx + edx*4], eax
jmp 0x56caff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x56cb9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x56cbc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x58c704]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x56cb94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x56d7dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x56d848
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x56d891
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00578f70
add esp, 8
test eax, eax
jne 0x56d88f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x56d893
jmp 0x56d83f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x572a4c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0056f639
add esp, 4
and eax, 0xff
test eax, eax
je 0x572ad5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00573770
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x572ad3
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x572ad3
jmp 0x572ad5
jmp 0x572a55
mov esp, ebp
pop ebp
ret

Function at 0x575770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x589b28
cmp edx, dword [eax]
je 0x575792
add eax, 8
inc ecx
cmp eax, 0x589bb8
jl 0x575783
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x589b28]
jne 0x5758c0
mov eax, dword [0x58cc80]
cmp eax, 1
je 0x57589a
test eax, eax
jne 0x5757c3
cmp dword [0x589864], 1
je 0x57589a
cmp edx, 0xfc
je 0x5758c0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5757fa
lea eax, [ebp - 0x1a4]
push 0x58c5f0
push eax
call fcn.00573be0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00573960
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x57583d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00573960
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x58c5ec
push edi
call fcn.00573d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x58c5d0
push eax
call fcn.00573be0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00573bf0
lea eax, [ebp - 0xa0]
push 0x58c5cc
push eax
call fcn.00573bf0
push dword [esi + 0x589b2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00573bf0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x58c5a4
push eax
call fcn.00577d38
add esp, 0x2c
pop edi
jmp 0x5758c0
lea eax, [ebp + 8]
lea esi, [esi + 0x589b2c]
push 0
push eax
push dword [esi]
call fcn.00573960
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40b020
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e704c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4e7044]
sub esp, 4
test ebx, ebx
je 0x40b06b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40b064
test esi, esi
je 0x40b064
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b040
mov dword [esp], 0x4e704c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b250
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40b2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40b378
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b2de
cmp eax, 4
jne 0x40b300
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b2ee
cmp edx, 4
je 0x40b2ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b250

Function at 0x40b8f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40b920
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40b944
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sub.KERNEL32.dll_GetLastError
Function at 0x41d2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1b
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x84]
mov esi, str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_http:__gcc.gnu.org_bugs.html_:_n
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
lea eax, [edx + 0x8a]
and eax, 0xfffffff0
call fcn.0040b560
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x84]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movzx eax, word [esi]
mov word [edi], ax
movzx eax, byte [esi + 2]
mov byte [edi + 2], al
lea eax, [ebx + 0x6b]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x6a], 0
mov dword [esp], ebx
call fcn.00494950
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a2abc], 0
jne 0x41d3c4
mov byte [0x4a2abc], 1
call fcn.0049ac80
test eax, eax
je 0x41d45e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040a890
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d3ba
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a41b9
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x41d3f1
call fcn.0049b080
mov dword [esp], ebp
call sub.msvcrt.dll_fputs
jmp 0x41d38b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
mov dword [esp], ebp
call sub.msvcrt.dll_free
jmp 0x41d3b5
call sub.msvcrt.dll_abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x41d459
Function at 0x619bc3
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x10f1c13], al
mov dh, 0x7a
loop 0x619bc5
sbb al, 0xf
add dword [esi - 0x72061d86], esi
cmp byte [0x1678b8ae], 0x94
lea eax, [eax + 0x78b8ae3d]
push ss
xchg esp, eax
mov eax, dword [0x95d2a05e]
call 0x1a1ef9c7
scasd eax, dword es:[edi]
cmp eax, ebx
pop ebp
mov ebp, 0xc33baf19
or al, 0xcb
sub dword [ebx], esi
cmp bl, cl
pop ss
push esi
mov dword [0x9c16ad93], eax
pop ds
arpl word [ecx + 0x77], ax
in eax, dx
sbb eax, 0xc00d6c83
push esi
lcall 0x11ff, 0xd6f1c2d
scasd eax, dword es:[edi]
or dl, dl
pop ecx
imul ebp, dword [edx + ebp], 0xffffffa3
jcxz 0x619c60
mov dl, byte [ecx + 0x42]
movsd dword es:[edi], dword [esi]
loopne 0x619c55
inc edx
xlatb
rcl dword [eax + 0x440ad315], 0x91
pop ebx
cmp ecx, esi
and al, 0x13
xor eax, 0xca8e6c0e
imul edi, dword [ebx - 0x53add17f], 0x8c708573
cmpsd dword [esi], dword es:[edi]
je 0x619bdb
outsb dx, byte [esi]
test al, 0x5b
popal
cmp byte [esp + ebx*2], dh
invalid
outsd dx, dword [esi]
or byte [esp + ebx*2 + 0x2c], 0xd2
sahf
pop ecx
or cl, byte [ebp + 0x5bcf3209]
xor cl, bh
pop ebx
fsub qword [esi]
pushfd
mov ebx, 0x7764ae2
mov ds, word [eax + 0x1d]
mov esp, 0x2587293a
cmp eax, 0xed0fa653
invalid

Function at 0x6599ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6623a8
cmp edx, dword [eax]
je 0x6599cf
add eax, 8
inc ecx
cmp eax, 0x662438
jl 0x6599c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6623a8]
jne 0x659afd
mov eax, dword [0xa5dd0c]
cmp eax, 1
je 0x659ad7
test eax, eax
jne 0x659a00
cmp dword [0x6622d4], 1
je 0x659ad7
cmp edx, 0xfc
je 0x659afd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
lea eax, [ebp + 8]
lea esi, [esi + 0x6623ac]
push 0
push eax
push dword [esi]
call fcn.0065a820
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x40b850
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5b8250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407180
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0040b770
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40b8cd
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00540800
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40b8f6
push dword [esp + 0x10]
call fcn.005385cc
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4114f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, 0x55555556
mov dword [ebp - 8], ebx
imul ebx
push esi
mov esi, edx
mov eax, ebx
shr esi, 0x1f
add esi, edx
push edi
lea ecx, [esi + esi*2]
xor esi, esi
sub eax, ecx
lea ecx, [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax*4 + 1]
push eax
call fcn.0051d4c8
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4115e3
mov edi, edi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, edi
sub edx, eax
jne 0x411575
movzx eax, byte [edi + ecx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 1
jne 0x41159e
mov eax, dword [ebp - 4]
movzx ecx, byte [edi + eax - 1]
movzx eax, byte [edi + eax]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 2
jne 0x4115d7
mov edx, dword [ebp - 4]
movzx ecx, byte [edi + edx - 1]
movzx eax, byte [edi + edx]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov byte [ebx + esi], al
movzx eax, byte [edi + edx]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
add esi, 2
mov eax, dword [ebp - 8]
inc edi
cmp edi, eax
jl 0x411550
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x411614
movzx eax, byte [ecx + eax - 1]
and eax, 3
shl eax, 4
pop edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d3d
mov byte [ebx + esi + 3], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x41163b
movzx eax, byte [ecx + eax - 1]
and eax, 0xf
pop edi
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [ebx + esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411900
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0053af40
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x4119f7
test ebx, ebx
je 0x4119f7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4119f7
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4119f7
cmp eax, 0x2000
ja 0x4119f7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4119e4
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x591538
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4119e4
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
mov eax, dword [ebp + 8]
push 0x59153c
dec eax
push eax
push ebx
call fcn.00541843
add esp, 0x1c
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret

Function at 0x411be0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
xor eax, eax
test edi, edi
je 0x411c70
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411c6e
lea eax, [ebp - 0x20c]
push eax
push 0x591530
push 0x103
push edi
call fcn.00541843
add esp, 0x10
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x411e61
cmp word [esi], 0
je 0x411e61
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x411de7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005392b0
push esi
push 0x591530
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00541843
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x411e61
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x411e49
lea ecx, [ebp - 0x20c]
call fcn.00411da0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret