joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, ebp
shr ecx, 5
push esi
mov esi, dword [esp + 0x14]
add ecx, 1
cmp ebp, ecx
push edi
mov edi, ebp
mov dword [esp + 0x1c], ebp
mov edx, ebp
jb 0x44bfaf
movzx eax, byte [esi + edx - 1]
mov ebx, edi
shl ebx, 5
add eax, ebx
mov ebx, edi
shr ebx, 2
add eax, ebx
sub edx, ecx
xor edi, eax
cmp edx, ecx
jae 0x44bf90
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [ecx]
sub edx, 1
and edx, edi
mov eax, dword [eax + edx*4]
test eax, eax
je 0x44c074
jmp 0x44bfd0
cmp dword [eax + 0xc], ebp
jne 0x44c06a
cmp ebp, 4
mov ecx, ebp
lea edx, [eax + 0x10]
jb 0x44bff7
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x44bffb
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x44bfe3
test ecx, ecx
je 0x44c060
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x44c04a
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x44c05c
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x44c04a
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x44c05c
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x44c04a
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x44c05c
movzx edi, byte [esi]
movzx ecx, byte [edx]
sub edi, ecx
je 0x44c05c
test edi, edi
mov edi, dword [esp + 0x1c]
mov ecx, 1
jg 0x44c062
or ecx, 0xffffffff
jmp 0x44c062
mov edi, dword [esp + 0x1c]
xor ecx, ecx
test ecx, ecx
je 0x44c084
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x44bfd0
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov eax, edi
call fcn.0044bef0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44e2b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x44e2d0
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.0046d98c
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x28]
push eax
call edx
add esp, 4
push 1
call fcn.0046d8fd
int3

Function at 0x45a5cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45a604
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045a58e
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404240
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x45c22d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x45c270
call fcn.0045f4d0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x45c270
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x45c28b
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045bde7
test ebx, ebx
mov esi, eax
je 0x45c289
test edi, edi
je 0x45c289
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45d401
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x48672d
call fcn.0046de6f
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0045f4d0
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x45d44c
call fcn.0045f4d0
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x45d45d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x45d46a
or eax, 0xffffffff
jmp 0x45d5c6
mov ecx, esi
call fcn.0045cf53
mov dword [ebp - 0x14], eax
call fcn.004595dc
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x45d4e8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45d4e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45d4e8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004120d0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x45d4e8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x45d4e8
mov ecx, ebx
call fcn.0045c490
test eax, eax
je 0x45d4e8
push 0
mov ecx, ebx
call fcn.0045c4ab
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0045afd5
push dword [ebp - 0x14]
call fcn.00459534
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0045d209
xor edi, edi
cmp eax, edi
je 0x45d545
test byte [esi + 0x3c], 0x10
je 0x45d52f
push 4
pop edi
mov ecx, esi
call fcn.0045c368
test ax, 0x100
je 0x45d525
push 5
pop edi
push edi
mov ecx, esi
call fcn.004590ca
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x45d545
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045c512
or dword [ebp - 4], 0xffffffff
jmp 0x45d570
cmp dword [ebp - 0x28], edi
je 0x45d57e
push 1
mov ecx, ebx
call fcn.0045c4ab
cmp dword [ebp - 0x2c], edi
je 0x45d58e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45d5a7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x45d5a7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0045cf8d
cmp dword [esi + 0x58], edi
je 0x45d5c3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0046dedb
ret
Function at 0x461339
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x504a70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x461376
push 0x4ae520
push 4
push eax
call fcn.0046acba
push eax
call fcn.00401370
add esp, 0x10
jmp 0x461388
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4613f3
push edi
call fcn.0046c631
mov edi, dword [eax]
call fcn.0046c631
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0046dfa7
add esp, 0x18
mov ebx, eax
call fcn.0046c631
cmp dword [eax], 0
je 0x4613d3
call fcn.0046c631
push dword [eax]
call fcn.00456d52
pop ecx
jmp 0x4613da
call fcn.0046c631
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4613f3
cmp ebx, esi
jae 0x4613f3
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
jmp 0x4613f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046875c
leave
ret
Function at 0x46875c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x504a70]
jne 0x468766
repz ret
jmp fcn.00470fe5
Function at 0x46c257
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46c294
cmp dword [ebp + 0x14], edi
je 0x46c294
cmp ecx, edi
jne 0x46c29b
call fcn.0046c631
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00469f5b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46c2af
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46c2d0
cmp ebx, 0xffffffff
je 0x46c2bf
push ebx
push edi
push ecx
call fcn.0046ac40
add esp, 0xc
cmp esi, edi
je 0x46c27c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46c27c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46c2ec
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46c2f3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46c3e4
test word [esi + 0xc], 0x10c
je 0x46c347
mov eax, dword [esi + 4]
test eax, eax
je 0x46c347
jl 0x46c445
cmp ebx, eax
mov edi, ebx
jb 0x46c318
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46c3ec
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046925a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46c3dc
cmp ebx, dword [ebp - 0xc]
jb 0x46c3b4
cmp dword [ebp - 0xc], 0
je 0x46c371
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46c366
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46c36d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46c37c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x46c37c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46c418
push eax
push dword [ebp - 8]
push esi
call fcn.00477023
pop ecx
push eax
call fcn.0047b068
add esp, 0xc
test eax, eax
je 0x46c457
cmp eax, 0xffffffff
je 0x46c445
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46c3dc
push esi
call fcn.0047a987
cmp eax, 0xffffffff
pop ecx
je 0x46c449
cmp dword [ebp - 4], 0
je 0x46c418
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46c2fb
mov eax, dword [ebp + 0x14]
jmp 0x46c296
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46c403
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0046ac40
add esp, 0xc
call fcn.0046c631
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46c28c
cmp dword [ebp + 0xc], 0xffffffff
je 0x46c42e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046ac40
add esp, 0xc
call fcn.0046c631
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46c28c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46c296
or dword [esi + 0xc], 0x10
jmp 0x46c449
Function at 0x46fd6d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x504ea0]
je 0x46fd88
inc edi
cmp edi, 0x17
jb 0x46fd79
cmp edi, 0x17
jae 0x46ff08
push ebp
push 3
call fcn.0047d4cd
cmp eax, 1
pop ecx
je 0x46fed4
push 3
call fcn.0047d4cd
test eax, eax
pop ecx
jne 0x46fdbc
cmp dword [0x504a40], 1
je 0x46fed4
cmp ebx, 0xfc
je 0x46ff07
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5494e0
push ebp
call fcn.0046bb13
add esp, 0xc
test eax, eax
je 0x46fdf2
push esi
push esi
push esi
push esi
push esi
call fcn.00469e5f
add esp, 0x14
push 0x104
mov esi, 0x5494f9
push esi
push 0
mov byte [0x5495fd], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x46fe36
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046bb13
add esp, 0xc
test eax, eax
je 0x46fe36
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00469e5f
add esp, 0x14
push esi
call fcn.00471c70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46fe7b
push esi
call fcn.00471c70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5497f4
push 0x4ab3c0
sub ecx, eax
push ecx
push eax
call fcn.0047b171
add esp, 0x14
test eax, eax
je 0x46fe7b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00469e5f
add esp, 0x14
jmp 0x46fe7d
xor esi, esi
push 0x4af538
push ebx
push ebp
call fcn.0047d45c
add esp, 0xc
test eax, eax
je 0x46fe9d
push esi
push esi
push esi
push esi
push esi
call fcn.00469e5f
add esp, 0x14
push dword [edi*8 + 0x504ea4]
push ebx
push ebp
call fcn.0047d45c
add esp, 0xc
test eax, eax
je 0x46febf
push esi
push esi
push esi
push esi
push esi
call fcn.00469e5f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0047d29f
add esp, 0xc
jmp 0x46ff07
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46ff07
cmp ebp, 0xffffffff
je 0x46ff07
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x504ea4]
push dword [esi]
call fcn.00471c70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47d29f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047091d
xor ebx, ebx
cmp dword [0x549fe4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47d375
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47d455
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4b3784
push edi
call esi
cmp eax, ebx
je 0x47d455
push eax
call fcn.004708af
mov dword [esp], 0x4b3774
push edi
mov dword [0x549fe4], eax
call esi
push eax
call fcn.004708af
mov dword [esp], 0x4b3760
push edi
mov dword [0x549fe8], eax
call esi
push eax
call fcn.004708af
mov dword [0x549fec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046d716
test eax, eax
pop ecx
pop ecx
je 0x47d343
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469e5f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47d375
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004708af
cmp eax, ebx
pop ecx
mov dword [0x549ff4], eax
je 0x47d375
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004708af
pop ecx
mov dword [0x549ff0], eax
mov eax, dword [0x549ff0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x47d3fa
cmp dword [0x549ff4], ecx
je 0x47d3fa
push eax
call fcn.00470926
push dword [0x549ff4]
mov esi, eax
call fcn.00470926
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x47d3fa
cmp edi, ebx
je 0x47d3fa
call esi
cmp eax, ebx
je 0x47d3c7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47d3c7
test byte [ebp - 0x18], 1
jne 0x47d3fa
lea eax, [ebp - 0x10]
push eax
call fcn.0046d74d
test eax, eax
pop ecx
je 0x47d3e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469e5f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47d3f1
or dword [ebp + 0x10], 0x200000
jmp 0x47d435
or dword [ebp + 0x10], 0x40000
jmp 0x47d435
mov eax, dword [0x549fe8]
cmp eax, dword [ebp - 8]
je 0x47d435
push eax
call fcn.00470926
cmp eax, ebx
pop ecx
je 0x47d435
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47d435
mov eax, dword [0x549fec]
cmp eax, dword [ebp - 8]
je 0x47d435
push eax
call fcn.00470926
cmp eax, ebx
pop ecx
je 0x47d435
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x549fe4]
call fcn.00470926
cmp eax, ebx
pop ecx
je 0x47d455
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47d457
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484804
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x504a70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00484799
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046ac40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x484853
cmp dword [ebp - 0x1c], 5
jb 0x48486b
jmp 0x484867
cmp dword [ebp - 0x10], 1
jne 0x48486b
cmp dword [ebp - 0x1c], 4
ja 0x484867
jne 0x48486b
cmp dword [ebp - 0x18], 0
jbe 0x48486b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b47dc
call fcn.0048466d
test eax, eax
jge 0x48488c
mov byte [0x54a0d1], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046875c
add ebp, 0x78
leave
ret

Function at 0x582e7d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xc
pop eax
cmp dword [ecx + 8], eax
jae 0x582e9e
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, 0xc0000023
jmp 0x582f60
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx + 0xc]
cmp dword [esi + 4], 0
jne 0x582ed9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, 0xffff
and eax, edx
cmp eax, 0x5a4d
jne 0x582ed9
movzx eax, byte [ecx + 0x3c]
add eax, ecx
mov ecx, dword [eax]
and ecx, edx
cmp ecx, 0x4550
jne 0x582ed9
mov eax, dword [eax + 0x50]
sub eax, 0x4000
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x582ee7
mov eax, 0xc000000d
jmp 0x582f60
mov ecx, dword [esi]
mov edi, dword [0x11054]
add ecx, eax
push ecx
jmp 0x582efe
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi]
add eax, dword [esi + 4]
push eax
call edi
test al, al
je 0x582ef4
movzx eax, byte [esi + 8]
push eax
push dword [esi + 4]
lea eax, [esi + 9]
push eax
push dword [esi]
call fcn.0058261c
test eax, eax
je 0x582f55
mov ebx, cr0
push ebx
and ebx, 0xfffeffff
mov cr0, ebx
movzx ecx, byte [esi + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, 0x49
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ebx
mov cr0, ebx
wbinvd
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [eax], 1
xor eax, eax
jmp 0x582f60
mov eax, dword [ebx + 0xc]
and dword [eax], 0
mov eax, 0xc0000225
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x401474
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4014ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401474
mov dword [esp], 0x4015c8
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202a
sub eax, 0x4015c8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401591
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.0040137a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013df
lea eax, [ebx + 0x1b800]
mov ecx, 0x40300c
or eax, ebx
or ecx, 1
xor edx, edx
mov dword [esp + 4], eax
mov eax, ebx
div ecx
mov dword [esp + 8], esi
add eax, 0x40300c
mov dword [esp], eax
call fcn.00401d2d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x1001239
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x1001286
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1001286
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10012ea
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call edi
push eax
call ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
dec eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 4

Function at 0x10013df
Capabilities:
Execute command

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1002018]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
pop ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x5a50
push dword [ebp - 0x210]
call fcn.010012f4
mov esi, eax
test esi, esi
pop ecx
je 0x1001472
push dword [ebp - 0x214]
push esi
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100144a
mov eax, dword [ebp - 0x214]
cmp word [esi + eax*2], 0x20
je 0x100147f
push esi
call edi
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], 0x5a96
jbe 0x1001416
push ebx
push 0x5a4e
call fcn.010012f4
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x10014b7
push dword [ebp - 0x210]
call fcn.0100132d
jmp 0x10014c0
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x100114c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wsystem]
add esp, 0x14
push esi
call edi
xor eax, eax
inc eax
jmp 0x10014c2
push esi
call fcn.01001239
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010015dd
leave
ret 4
Function at 0x401000
Capabilities:
Move file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 0x114]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor esi, esi
test eax, eax
je 0x401035
push 5
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401088
lea eax, [ebp - 0xc]
push eax
push section..data
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401088
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
pop esi
leave
ret 0x10