joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1444036
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x158f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0143be69
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0143be69
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x14440ad
cmp word [ecx], dx
je 0x14440ad
mov eax, dword [0x14508e4]
push edi
dec eax
push eax
push 0x14507d0
call fcn.01443fd5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1444120
cmp word [eax], dx
je 0x1444120
mov eax, dword [edi]
test eax, eax
je 0x14440d1
cmp word [eax], dx
je 0x14440d1
lea eax, [ebp - 0x10]
push eax
call fcn.014439b8
jmp 0x14440da
lea eax, [ebp - 0x10]
push eax
call fcn.01443a53
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x144414a
mov eax, dword [0x14507cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x14504c0
call fcn.01443fd5
add esp, 0xc
test al, al
je 0x144414a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1444115
cmp word [eax], di
je 0x1444115
lea eax, [ebp - 0x10]
push eax
call fcn.014439b8
pop ecx
jmp 0x144414c
lea eax, [ebp - 0x10]
push eax
call fcn.01443a53
jmp 0x1444112
mov eax, dword [edi]
test eax, eax
je 0x1444137
cmp word [eax], dx
je 0x1444137
lea eax, [ebp - 0x10]
push eax
call fcn.0144396d
pop ecx
jmp 0x144414a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1444215
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01443e5a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1444215
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1444215
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1444215
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x14441a2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0143b4ca
test ebx, ebx
je 0x1444210
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0143b4ca
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1444215
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1444215
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01448234
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1444217
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01428590
leave
ret
Function at 0x14484ce
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0144844a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x144863d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x144863d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x14485f2
jg 0x144852a
test eax, eax
je 0x14485e8
push 1
push 0x1000
call fcn.0143ae56
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x144854d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x14485df
push 0x8000
push ebx
call fcn.01437f7a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1448576
jg 0x1448571
cmp ecx, 0x1000
jb 0x1448576
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0143e304
add esp, 0x10
cmp eax, 0xffffffff
je 0x14485bb
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 0x1448571
jl 0x14485a2
test ecx, ecx
jne 0x1448563
push dword [ebp - 0xc]
push ebx
call fcn.01437f7a
push esi
call fcn.0143aeb3
add esp, 0xc
xor ebx, ebx
jmp 0x144864b
cmp byte [edi + 0x24], 0
je 0x14485d2
cmp dword [edi + 0x20], 5
jne 0x14485d2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x14485dd
mov ebx, dword [edi + 0x18]
jmp 0x14485df
xor ebx, ebx
push esi
call fcn.0143aeb3
pop ecx
jmp 0x144864b
test ecx, ecx
jg 0x14485b4
jl 0x14485f2
test eax, eax
jae 0x14485b4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01440127
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1448612
cmp byte [edi + 0x1c], 0
je 0x14485b4
jmp 0x1448643
push ebx
call fcn.01441e30
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14485b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x144864b
cmp byte [edi + 0x1c], 0
je 0x1448648
mov ebx, dword [edi + 0x18]
jmp 0x144864b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01440127
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1449f10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1449f3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1449f3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10009173
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x10038c42
call fcn.10027484
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
xor ebx, ebx
mov eax, 0x3e8
inc ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1003bca8
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 2
mov dword [esi + 0x2c], 0x1388
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 3
mov dword [esi + 0x38], eax
call fcn.100027db
lea ecx, [esi + 0xb0]
call fcn.100026d5
lea ecx, [esi + 0xd8]
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
call fcn.100027db
lea ecx, [esi + 0x154]
call fcn.100026d5
lea ecx, [esi + 0x170]
call fcn.100026d5
lea ecx, [esi + 0x18c]
call fcn.100026d5
mov dword [esi + 0x1a8], 0x1bb
mov dword [esi + 0x1ac], 0x131
lea eax, [esi + 0x1b0]
mov dword [eax], 3
mov dword [eax + 8], 0x1b8
mov dword [eax + 0xc], 0x12e
push 0x19
pop ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x1c0]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], 0x1b5
mov dword [eax + 0xc], 0x90
lea eax, [esi + 0x1d0]
mov dword [eax], 0x16a
mov dword [eax + 4], 0x10d
mov dword [eax + 8], 0x1ae
mov dword [eax + 0xc], 0x127
lea eax, [esi + 0x1e0]
mov dword [eax], ecx
mov dword [eax + 4], 0xa5
mov dword [eax + 0xc], 0xb8
mov edx, 0x195
mov dword [eax + 8], edx
lea eax, [esi + 0x1f0]
mov dword [eax], ecx
mov dword [eax + 4], 0xb9
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xcc
mov dword [esi + 0x200], edi
mov dword [esi + 0x204], edi
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x218], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x240], edi
mov dword [esi + 0x244], edi
mov dword [esi + 0x248], edi
mov dword [esi + 0x24c], edi
lea edi, [esi + 0x250]
push 0x1003b88c
mov ecx, edi
mov byte [ebp - 4], 0x15
call fcn.1000570d
push 0x1003bd88
lea ecx, [esi + 0x26c]
mov byte [ebp - 4], 0x16
call fcn.1000570d
push ebx
push esi
lea ecx, [esi + 0x288]
call fcn.1000147b
push str.http:__down.sandai.net_thunder7_ThunderPlatform.exe
lea ecx, [esi + 0x154]
mov byte [ebp - 4], 0x18
mov dword [esi + 0x150], ebx
call fcn.100051aa
push str.http:__www.xunlei.com
lea ecx, [esi + 0x170]
call fcn.100051aa
push edi
call fcn.1000cbe7
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1002cbf6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1002cc24
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1002cc2b
cmp ebx, dword [eax + 4]
jae 0x1002cc2b
xor eax, eax
jmp 0x1002ce1b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1002cc3c
xor eax, eax
inc eax
jmp 0x1002ce1a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1002cc52
cmp ecx, edx
jae 0x1002cd97
cmp dword [eax + 4], 0
je 0x1002cc5b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1002cc43
cmp dword [ebp + 8], 0
je 0x1002cc7d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1002cd97
cmp eax, esi
jae 0x1002cd97
mov eax, dword [0x10048dc8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1002cca2
cmp dword [esi*4 + 0x10048dd0], edi
je 0x1002cd9b
inc esi
cmp esi, eax
jl 0x1002cc90
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1003b090]
test eax, eax
je 0x1002ce17
cmp dword [ebp - 8], 0x1000000
jne 0x1002ce17
test byte [ebp - 0xc], 0xcc
je 0x1002cd20
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1002ce17
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1002ce17
cmp word [eax + 0x18], 0x10b
jne 0x1002ce17
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1002ce17
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1002cd20
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1002cd20
test byte [ecx + 0x27], 0x80
jne 0x1002cd97
push 1
push 0x10048e10
call dword [0x1003b250]
test eax, eax
jne 0x1002cc34
mov ecx, dword [0x10048dc8]
test ecx, ecx
mov edx, ecx
jle 0x1002cd54
lea eax, [ecx*4 + 0x10048dcc]
cmp dword [eax], edi
je 0x1002cd54
dec edx
sub eax, 4
test edx, edx
jg 0x1002cd48
test edx, edx
jne 0x1002cd85
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1002cd61
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1002cd79
lea eax, [edx*4 + 0x10048dd0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1002cd67
cmp ecx, 0x10
jge 0x1002cd85
inc ecx
mov dword [0x10048dc8], ecx
push 0
push 0x10048e10
call dword [0x1003b250]
jmp 0x1002cc34
xor eax, eax
jmp 0x1002ce1a
test esi, esi
jle 0x1002cc34
mov ebx, dword [0x1003b250]
push 1
push 0x10048e10
call ebx
test eax, eax
jne 0x1002cc34
cmp dword [esi*4 + 0x10048dd0], edi
je 0x1002cdf1
mov eax, dword [0x10048dc8]
lea esi, [eax - 1]
test esi, esi
jl 0x1002cddf
cmp dword [esi*4 + 0x10048dd0], edi
je 0x1002cddb
dec esi
jns 0x1002cdcf
test esi, esi
jge 0x1002cdef
cmp eax, 0x10
jge 0x1002cdea
inc eax
mov dword [0x10048dc8], eax
lea esi, [eax - 1]
jmp 0x1002cdf1
je 0x1002ce09
xor ecx, ecx
test esi, esi
jl 0x1002ce09
lea eax, [ecx*4 + 0x10048dd0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1002cdf7
push 0
push 0x10048e10
call ebx
jmp 0x1002cc34
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e2c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x403e46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402958
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
call fcn.00411e7c
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x64], eax
call esi
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x54]
push ecx
push 0x28
push edx
call fcn.00411edc
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x60]
push 0x4165c4
push ecx
call edi
push eax
lea edx, [ebp - 0x5c]
push 0x412420
push edx
call edi
push eax
call fcn.00411f2c
call esi
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 1
push edx
push eax
push 8
mov dword [ebp - 0x3c], 2
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x64]
imul ecx, ecx, 0xc
jo 0x46e3fc
add ecx, 4
lea eax, [ebp - 0x2c]
jo 0x46e3fc
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x48]
imul ecx, ecx, 0xc
jo 0x46e3fc
add ecx, 4
push edx
push eax
mov eax, dword [ebp - 0x54]
jo 0x46e3fc
lea edx, [ebp - 0x48]
push ecx
push edx
push ebx
push eax
call fcn.00411f7c
call esi
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004116d8
call esi
push 0x46e3eb
jmp 0x46e3ea
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

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 0x406260
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403dae
and dword [ebp - 0x14], 0
cmp dword [0x40e920], 0
mov dword [ebp - 0x18], eax
jne 0x406313
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063bb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a7e4
push ebx
call edi
test eax, eax
je 0x4063bb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40a7d4
push ebx
mov dword [0x40e920], eax
call edi
push eax
call esi
push 0x40a7c0
push ebx
mov dword [0x40e924], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e928], eax
call edi
push eax
call esi
mov dword [0x40e930], eax
test eax, eax
je 0x406313
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e92c], eax
mov eax, dword [0x40e92c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40636c
cmp dword [0x40e930], ecx
je 0x40636c
push eax
call esi
push dword [0x40e930]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40636c
test ebx, ebx
je 0x40636c
call edi
test eax, eax
je 0x406363
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406363
test byte [ebp - 8], 1
jne 0x40636c
or dword [ebp + 0x10], 0x200000
jmp 0x40639f
mov eax, dword [0x40e924]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40639f
mov eax, dword [0x40e928]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e920]
call esi
test eax, eax
je 0x4063bb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402701
leave
ret

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 0x401070
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x360], ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x35c], 0x22c
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4010c4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060e2
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x35c]
push eax
push esi
mov dword [ebp - 0x35c], 0x22c
call edi
test eax, eax
je 0x401159
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x130]
push 0x40840c
push eax
call fcn.004047a0
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x130]
add esp, 0xc
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401130
test dl, dl
je 0x40112c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401130
add ecx, 2
add eax, 2
test dl, dl
jne 0x401110
xor eax, eax
jmp 0x401135
sbb eax, eax
or eax, 1
test eax, eax
je 0x401153
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x35c], 0x22c
push eax
push esi
call edi
test eax, eax
jne 0x4010e3
jmp 0x401159
mov ebx, dword [ebp - 0x354]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004060e2
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x40b014]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [str.CLOSE]
push esi
push edi
push str.ShareMemory
push 0x1000
push 0
push 4
mov dword [esp + 0x1c], eax
mov ax, word [0x408460]
push 0
push 0xffffffffffffffff
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x1000
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea ecx, [esp + 0xc]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], dl
test dl, dl
jne 0x4020e3
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40847c
push 0x404a20
call fcn.004047e0
push ecx
mov edx, edi
mov ecx, eax
call fcn.004047e0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.004060e2
mov esp, ebp
pop ebp
ret
Function at 0x403780
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 0x4037ac
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4037ce
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4037d0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x403855
jg 0x4037e5
test esi, esi
je 0x403855
test ecx, ecx
jl 0x403838
jg 0x4037ef
test eax, eax
je 0x403838
cmp edi, ecx
jg 0x403803
jl 0x4037f9
cmp esi, eax
jae 0x403803
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x403855
jg 0x40383b
test esi, esi
je 0x403855
jmp 0x40383b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403855
push eax
push esi
push 1
push edx
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 + 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 0x403870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40389c
jl 0x403890
test esi, esi
jne 0x40389c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4038b5
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4038ef
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4038ef
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x403970
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403918
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x40395c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x403983
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403930
test edx, edx
je 0x403970
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc