joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424d10
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004120f0
cmp dword [0x7b33e4], 0x37
jne 0x424daa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7b43d8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x434434]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x425040
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b33e4]
sub esp, 0xa8c
push ebx
push ebp
push esi
mov esi, dword [0x434434]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x425256
mov dword [esp + 0x30], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x425086
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0x7b33e4], 0x1c
jne 0x42509d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42b2d0]
mov ebx, dword [0x42b2d8]
mov ebp, dword [0x42b2dc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42b2d4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x4250e6
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b3354], edi
mov eax, dword [esp + 0x20]
add dword [0x7b3354], eax
mov eax, dword [0x7b3354]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], eax
cmp dword [0x7b33e4], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x42517d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0x7b33e4], 0x979
mov dword [0x7b3358], 0xff6b3619
mov dword [0x7b335c], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x4251c7
push 0
lea ecx, [esp + 0x29c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x4250e0
cmp dword [0x7b33e4], 0x8d4
jne 0x42520b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b33e4], 0x17
jne 0x425245
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x48]
push edx
push 0x403f40
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x425080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret
Function at 0x436390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00433f90
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x4363e9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.004312e0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004312d0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00435a40
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4a367c]
push 0
lea ecx, [esp + 0x4c]
call fcn.004958d4
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00444fe0
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004339f0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4a31a8]
mov ecx, ebx
call fcn.00431250
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4364b4
push edi
mov ecx, esi
call fcn.00433b00
push eax
push ebp
mov ecx, esi
call fcn.00433cc0
cmp eax, dword [esp + 0x40]
jg 0x4364b0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x43648e
mov eax, ebx
jmp 0x4364ba
cmp edi, ebx
jl 0x4364b8
mov eax, ebx
jmp 0x4364ba
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x4364cb
mov dword [esp + 0x30], eax
jmp 0x4364d6
cmp edi, ebx
jl 0x4364d1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00431210
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x43651d
push edi
mov ecx, esi
call fcn.00433a20
push eax
push ebx
mov ecx, esi
call fcn.00433df0
cmp eax, dword [esp + 0x44]
jg 0x436515
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x4364ef
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x436527
cmp edi, ebp
jl 0x436521
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x436527
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x436530
mov ecx, eax
jmp 0x436539
cmp edi, ebp
jl 0x436536
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
invalid
jl 0x436564
Function at 0x4470e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc esi
js 0x44707c
add byte [eax], al
add byte [ebx + 0x47501f8], al
adc byte [ebp + 0x10b80148], cl
add byte [eax], al
add bl, dl
clc
inc esi
jl 0x4470aa
inc esi
js 0x4470e6
add byte [eax], al
add byte [eax - 0x77], al
inc esi
jl 0x447079
inc esi
jl 0x44707c
dec esi
js 0x447103
scasd eax, dword es:[edi]
inc esi
insb byte es:[edi], dx

Function at 0x449b70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4a367c]
push 0
lea ecx, [esp + 0x20]
call fcn.00499e04
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00449510
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00499d32
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00496516
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00496516
push 1
push 0
push 0
mov ecx, esi
call fcn.004964be
push 1
push 0
push 1
mov ecx, esi
call fcn.004964be
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00499e76
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x449cf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f2b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00499e04
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00449510
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00499d32
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4a367c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x449db4
cmp dword [esp + 0x40], 1
jne 0x449db2
cmp ecx, eax
jge 0x449db4
mov eax, ecx
cmp eax, 0xc8
jge 0x449dc0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00449b70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4a3678]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00499e76
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x44bb80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4a367c]
push 0
lea ecx, [esp + 0x20]
call fcn.0049be14
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044b520
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049bd42
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00498526
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00498526
push 1
push 0
push 0
mov ecx, esi
call fcn.004984ce
push 1
push 0
push 1
mov ecx, esi
call fcn.004984ce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049be86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x44bd00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f2b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049be14
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044b520
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049bd42
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4a367c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44bdc4
cmp dword [esp + 0x40], 1
jne 0x44bdc2
cmp ecx, eax
jge 0x44bdc4
mov eax, ecx
cmp eax, 0xc8
jge 0x44bdd0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044bb80
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4a3678]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049be86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x47fb80
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0b20
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47fd27
mov ecx, dword [0x596144]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47fc7c
lahf
add byte [eax], al
invalid
mov esi, dword [esp + 0x34]
Function at 0x48ac00
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov ecx, 0x10
mov esi, 0x595edc
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
or ecx, 0xffffffff
shr eax, 0x1f
movsb byte es:[edi], byte [esi]
add edx, eax
mov edi, 0x595ed8
xor eax, eax
shl edx, 2
repne scasb al, byte es:[edi]
not ecx
mov esi, edx
dec ecx
imul ecx, esi
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
lea ecx, [esi + ecx + 3]
push ecx
call 0x4a6b23
mov esi, eax
mov eax, 0x55555556
imul ebp
mov ebx, dword [esp + 0x64]
mov eax, edx
shr eax, 0x1f
xor ecx, ecx
add edx, eax
add esp, 4
xor edi, edi
cmp edx, ecx
mov dword [esp + 0x10], ecx
jle 0x48ad3f
mov dword [esp + 0x14], edx
jmp 0x48ac8f
mov ebx, dword [esp + 0x60]
xor eax, eax
xor edx, edx
mov al, byte [edi + ebx]
mov dl, byte [edi + ebx + 1]
inc edi
mov ebp, edx
inc edi
xor edx, edx
mov dl, byte [edi + ebx]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
and eax, 3
shl eax, 4
mov bl, byte [esp + ebx + 0x18]
inc edi
mov byte [ecx + esi], bl
mov ebx, ebp
sar ebx, 4
and ebx, 0xf
inc ecx
or ebx, eax
and ebp, 0xf
shl ebp, 2
mov al, byte [esp + ebx + 0x18]
mov byte [ecx + esi], al
mov eax, edx
sar eax, 6
and eax, 3
inc ecx
or eax, ebp
and edx, 0x3f
inc ecx
mov al, byte [esp + eax + 0x18]
mov dl, byte [esp + edx + 0x18]
mov byte [ecx + esi - 1], al
mov eax, dword [esp + 0x6c]
mov byte [ecx + esi], dl
mov edx, dword [esp + 0x10]
inc ecx
add edx, 4
test eax, eax
mov dword [esp + 0x10], edx
je 0x48ad28
mov eax, edx
cmp eax, 0x49
jl 0x48ad28
mov al, byte [0x595ed8]
mov byte [ecx + esi], al
mov al, byte [0x595ed9]
inc ecx
test al, al
je 0x48ad20
mov byte [ecx + esi], al
inc ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x48ac8b
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov eax, ebp
mov ebp, 3
cdq
idiv ebp
sub edx, 0
je 0x48ade7
dec edx
je 0x48ad9c
dec edx
jne 0x48ae05
xor edx, edx
xor eax, eax
mov dl, byte [edi + ebx]
mov al, byte [edi + ebx + 1]
mov ebp, edx
sar edx, 2
and edx, 0x3f
and ebp, 3
shl ebp, 4
mov dl, byte [esp + edx + 0x18]
mov byte [ecx + esi], dl
mov edx, eax
sar edx, 4
and edx, 0xf
inc ecx
or edx, ebp
inc ecx
and eax, 0xf
mov dl, byte [esp + edx + 0x18]
mov al, byte [esp + eax*4 + 0x18]
mov byte [ecx + esi - 1], dl
mov byte [ecx + esi], al
jmp 0x48adc4
xor eax, eax
mov al, byte [edi + ebx]
mov edx, eax
and eax, 3
sar edx, 2
and edx, 0x3f
inc ecx
shl eax, 4
mov dl, byte [esp + edx + 0x18]
mov al, byte [esp + eax + 0x18]
mov byte [ecx + esi - 1], dl
mov byte [ecx + esi], al
inc ecx
mov byte [ecx + esi], 0x3d
mov eax, dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x48ae05
mov al, byte [0x595ed8]
mov byte [ecx + esi], al
mov al, byte [0x595ed9]
inc ecx
test al, al
je 0x48ae05
Function at 0x48bc20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], edi
mov dword [edi + 0x34], 0xffffffff
call 0x4a5d89
push 0xffffffffffffffff
lea ecx, [edi + 0x20]
push ebx
call 0x4a5d89
lea ecx, [edi + 0x38]
mov dword [esp + 0x14], ecx
call 0x4a6d6d
lea eax, [esp + 0x30]
mov byte [esp + 0x30], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x24], ebx
call dword [0x4a3304]
mov dword [esp + 0x20], eax

Function at 0x497ec4
Capabilities:
Terminate process

Disassembly:
mov dl, 0
add byte [eax], al
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0049d68e
call dword [0x4a3300]
mov dword [0x5ec024], eax
call fcn.0049d55c
mov dword [0x5ea7c8], eax
call fcn.0049d30f
call fcn.0049d256
call fcn.0049c187
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [0x4a324c]
call fcn.0049d1fe
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x497f18
movzx eax, word [ebp - 0x2c]
jmp 0x497f1b
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [0x4a32f4]
push eax
call 0x4a718e
mov dword [ebp - 0x60], eax
push eax
call fcn.0049c1b4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0049d086
pop ecx
pop ecx
ret
Function at 0x4092e9
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [esi], 0x402ec0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 4], eax
imul eax, dword [ebp + 8]
shr eax, 0x10
inc eax
push 0x104
shl eax, 0x10
push 0x2000
mov edi, eax
push edi
push 0
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x40935f
push 4
push 0x1000
push dword [esi + 4]
push eax
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x40935f
mov ecx, dword [esi + 4]
sub edi, ecx
add edi, dword [esi + 0xc]
add eax, 4
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], ecx
cmp dword [esi + 0xc], 0
pop edi
pop ebx
je 0x40936d
cmp dword [esi + 0x10], 0
jne 0x409378
push 0x402ec4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and dword [esi + 0x20], 0
or dword [esi + 0x24], 0xffffffff
mov eax, esi
leave
ret 4
Function at 0x40a00c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40aaa8
call fcn.0040a2a4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x40a054
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40a054
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x40a06d
cmp ecx, 0x20b
je 0x40a05a
and dword [ebp - 0x1c], 0
jmp 0x40a081
cmp dword [eax + 0x84], 0xe
jbe 0x40a054
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x40a07b
cmp dword [eax + 0x74], 0xe
jbe 0x40a054
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x40d8dc], edi
mov dword [0x40d8e0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40c344]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40c340]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40d8d8], eax
call fcn.0040a29e
cmp dword [section..data], 0
jne 0x40a0e1
push fcn.0040a29e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040a28c
push 0x401630
push 0x40162c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40c33c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x40c338]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x401628
push 0x401614
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x40a145
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x40a1f6
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x40a188
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x40a163
cmp cx, 0x22
jne 0x40a150
cmp word [eax], 0x22
jne 0x40a16e
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x40a17c
cmp cx, 0x20
jbe 0x40a169
test byte [ebp - 0x54], 1
je 0x40a195
movzx ecx, word [ebp - 0x50]
jmp 0x40a198
cmp word [eax], 0x20
jbe 0x40a16e
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x40a188
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.0040a4c4
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x40a1b8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x40a1f4
mov eax, esi
call fcn.0040a2df
ret
Function at 0x40a3cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x401670
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a424
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4016ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a417
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40a426
xor eax, eax
pop esi
leave
ret 4

Function at 0x40a572
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c324]
jne 0x40a57b
ret
jmp 0x40a580
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x40c324]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x40d8d0]
test eax, eax
je 0x40a5a4
call eax
cmp dword [0x40d8d4], 0
je 0x40a5eb
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x40d8d4]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0040a572
add ebp, 0x2a8
leave
ret