joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c500
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8b40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0047a131
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.0047a670
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], vtable.CBitmap.0
push ebx
push edi
push esi
mov byte [esp + 0x44], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x18]
call fcn.0047a92c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43c5a6
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push 0x40cc0020
push 0
push 0
push esi
push ebx
push edi
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
call fcn.0043c250
mov byte [esp + 0x54], 0
add esp, 0x1c
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x14], vtable.CBitmap.0
call fcn.00402220
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047a6d9
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3e68
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x806
lea eax, [esi + 0xc]
mov dword [esp + 0x14], edi
push eax
mov dword [esi], vtable.ExprItem_NamedData.0
call fcn.00462d60
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x441f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ba438
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x3c], ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
mov edi, 0x524554
mov ecx, esi
mov eax, ebx
call fcn.0045f270
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
add esp, 4
mov dword [esp + 0x40], eax
push 0
mov edi, 0x464c4154
mov ecx, esi
mov eax, ebx
call fcn.0045f270
mov edx, dword [esp + 0x40]
add esp, 4
mov dword [edx + 0x10], eax
push 0
mov edi, 0x4e
mov ecx, esi
mov eax, ebx
call fcn.0045f270
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x20], eax
add esp, 4
push 0
mov edi, 0x4d
mov ecx, esi
mov eax, ebx
call fcn.0045f270
mov edi, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x40], 0xe
mov dword [edi + 0x24], eax
jne 0x441ff5
fldz
sub esp, 8
mov edi, 0x44424c31
fstp qword [esp]
mov ecx, esi
mov eax, ebx
call fcn.0045f300
mov edx, dword [esp + 0x44]
fstp qword [edx + 0x20]
mov edi, 0x44424c32
fldz
mov ecx, esi
mov eax, ebx
fstp qword [esp]
call fcn.0045f300
mov eax, dword [esp + 0x44]
fstp qword [eax + 0x28]
add esp, 8
mov edi, eax
add esi, ebx
mov eax, ebx
cmp ebx, esi
jae 0x44202a
lea ecx, [ecx]
lea ecx, [eax + 8]
cmp ecx, esi
jae 0x44202a
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
add eax, 4
test ecx, ecx
jle 0x44202a
cmp edx, 0x54455854
je 0x442026
add eax, ecx
cmp eax, esi
jb 0x442000
jmp 0x44202a
test eax, eax
jne 0x442037
mov eax, 0x4c6054
test eax, eax
jne 0x442037
xor edx, edx
jmp 0x442053
mov edx, eax
lea edi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x442040
sub edx, edi
mov edi, dword [esp + 0x3c]
sar edx, 1
push edx
push eax
lea ecx, [edi + 0x14]
call fcn.00401cf0
mov ecx, ebx
cmp ebx, esi
jae 0x44211d
jmp 0x442070
lea edx, [ecx + 8]
cmp edx, esi
jae 0x44211d
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
add ecx, 4
add ecx, 4
test eax, eax
jle 0x44211d
cmp edx, 0x53554245
je 0x4420b1
add ecx, eax
cmp ecx, esi
jb 0x442070
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je 0x44211d
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0045f380
add esp, 8
mov dword [esp + 0x80], 0
mov ecx, dword [edi + 0x18]
mov eax, dword [eax]
or esi, 0xffffffff
cmp ecx, eax
je 0x4420f9
mov dword [edi + 0x18], eax
test eax, eax
je 0x4420e4
inc dword [eax + 4]
test ecx, ecx
je 0x4420f9
add dword [ecx + 4], esi
cmp dword [ecx + 4], 0
jg 0x4420f9
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x80], esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x44211d
add dword [eax + 4], esi
mov ecx, eax
add eax, 4
cmp dword [eax], 0
jg 0x44211d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466ffa
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x4c6068
push eax
call fcn.0049200c
mov esi, eax
add esp, 8
test esi, esi
jne 0x466ff7
pop esi
ret
push esi
push 1
push 2
push 0x4ce764
call fcn.00491ec4
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
add eax, eax
push 1
push eax
push edi
call fcn.00491ec4
push esi
call fcn.0049209a
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x473034
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x473058
cmp dword [edi + 0x54], 0
jne 0x473058
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0047e1b7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00472ff5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x47898b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4789d2
call fcn.0047e1b7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4789d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4789ee
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00478503
mov esi, eax
test edi, edi
je 0x4789ec
test ebx, ebx
je 0x4789ec
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4791e2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b1cbd
call fcn.00494fb0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x479207
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x47924d
lea ecx, [ebp - 0x10]
call fcn.00401f70
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004789f5
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401fc0
mov eax, esi
call fcn.00495088
ret 8
Function at 0x47cc9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x47cce6
call fcn.0047e1b7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47cce6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x47cd29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x47cd12
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47cd12
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47cd26
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x491581
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e88d0]
jne 0x49158b
repz ret
jmp fcn.004990c6
Function at 0x4a7f10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00498ad5
and dword [ebp - 4], 0
cmp dword [0x4f3d48], 0
mov ebx, eax
jne 0x4a7fc1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a8072
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a8072
push eax
call fcn.00498a63
mov dword [esp], 0x4c3800
push edi
mov dword [0x4f3d48], eax
call esi
push eax
call fcn.00498a63
mov dword [esp], 0x4c37ec
push edi
mov dword [0x4f3d4c], eax
call esi
push eax
call fcn.00498a63
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f3d50], eax
call esi
push eax
call fcn.00498a63
pop ecx
mov dword [0x4f3d58], eax
test eax, eax
je 0x4a7fc1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00498a63
pop ecx
mov dword [0x4f3d54], eax
mov eax, dword [0x4f3d54]
cmp eax, ebx
je 0x4a8019
cmp dword [0x4f3d58], ebx
je 0x4a8019
push eax
call fcn.00498ade
push dword [0x4f3d58]
mov esi, eax
call fcn.00498ade
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a8019
test edi, edi
je 0x4a8019
call esi
test eax, eax
je 0x4a8010
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a8010
test byte [ebp - 0xc], 1
jne 0x4a8019
or dword [ebp + 0x10], 0x200000
jmp 0x4a8052
mov eax, dword [0x4f3d4c]
cmp eax, ebx
je 0x4a8052
push eax
call fcn.00498ade
pop ecx
test eax, eax
je 0x4a8052
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a8052
mov eax, dword [0x4f3d50]
cmp eax, ebx
je 0x4a8052
push eax
call fcn.00498ade
pop ecx
test eax, eax
je 0x4a8052
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f3d48]
call fcn.00498ade
pop ecx
test eax, eax
je 0x4a8072
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a8074
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20405230
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
test ecx, ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
je 0x2040524e
mov dword [ecx], 0
test ebx, ebx
je 0x2040527d
test edi, edi
jne 0x2040525a
test esi, esi
jne 0x2040527d
test ecx, ecx
je 0x2040527d
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx*4 + 2]
cmp esi, eax
mov dword [ecx], 0
jae 0x20405286
mov dword [ecx], eax
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov eax, 0xaaaaaaab
mul ebp
xor esi, esi
xor ecx, ecx
shr edx, 1
mov dword [esp + 0x10], edx
je 0x2040532e
mov dword [esp + 0xc], edx
movzx eax, byte [esi + ebx]
movzx ebp, byte [esi + ebx + 1]
add esi, 1
movzx edx, byte [esi + ebx + 1]
mov ebx, eax
add esi, 1
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x204856a8]
mov byte [ecx + edi], bl
and eax, 3
mov ebx, ebp
shl eax, 4
sar ebx, 4
and ebx, 0xf
or ebx, eax
movzx eax, byte [ebx + 0x204856a8]
mov ebx, dword [esp + 0x18]
mov byte [ecx + edi + 1], al
add ecx, 1
mov eax, edx
and ebp, 0xf
sar eax, 6
add ebp, ebp
and eax, 3
add ebp, ebp
or eax, ebp
movzx eax, byte [eax + 0x204856a8]
add ecx, 1
mov byte [ecx + edi], al
and edx, 0x3f
mov dl, byte [edx + 0x204856a8]
add ecx, 1
mov byte [ecx + edi], dl
add esi, 1
add ecx, 1
sub dword [esp + 0xc], 1
jne 0x204052a1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea eax, [edx + edx*2]
sub ebp, eax
sub ebp, 1
je 0x2040538b
sub ebp, 1
jne 0x204053c3
movzx eax, byte [esi + ebx]
movzx esi, byte [esi + ebx + 1]
mov edx, eax
sar edx, 2
and edx, 0x3f
movzx edx, byte [edx + 0x204856a8]
mov byte [ecx + edi], dl
mov edx, esi
sar edx, 4
and eax, 3
and edx, 0xf
shl eax, 4
or edx, eax
mov al, byte [edx + 0x204856a8]
add ecx, 1
mov byte [ecx + edi], al
add ecx, 1
and esi, 0xf
movzx edx, byte [esi*4 + 0x204856a8]
mov byte [ecx + edi], dl
jmp 0x204053b9
movzx eax, byte [esi + ebx]
mov edx, eax
sar edx, 2
and edx, 0x3f
mov dl, byte [edx + 0x204856a8]
and eax, 3
mov byte [ecx + edi], dl
shl eax, 4
mov al, byte [eax + 0x204856a8]
add ecx, 1
mov byte [ecx + edi], al
add ecx, 1
mov byte [ecx + edi], 0x3d
add ecx, 1
mov byte [ecx + edi], 0x3d
add ecx, 1
mov edx, dword [esp + 0x20]
pop esi
mov byte [ecx + edi], 0
add ecx, 1
pop ebp
mov dword [edx], ecx
mov al, 1
pop ebx
add esp, 8
ret
Function at 0x20408490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x70]
lea esi, [esi]
movzx edx, byte [edi + eax + 0x64]
mov byte [esp + eax + 0x38], dl
add eax, 1
cmp eax, 4
jne 0x2040848c
xor eax, eax
movzx edx, byte [edi + eax + 0x100]
mov byte [esp + eax + 0x3c], dl
add eax, 1
cmp eax, 4
jne 0x2040849f
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x60]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
sub eax, 8
mov dword [esp + 0x1c], eax
lea ebx, [esi + 8]
lea esi, [esi]
sub ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
je 0x204085c0
xor edx, edx
jmp 0x2040850b
add edx, 1
cmp edx, ebp
je 0x204085c0
lea ebx, [esi + edx]
xor eax, eax
movzx ecx, byte [esp + eax + 0x38]
cmp byte [eax + ebx + 1], cl
je 0x20408520
cmp cl, 0x3f
jne 0x20408500
add eax, 1
cmp eax, 8
jne 0x20408510
lea esi, [esi + edx + 1]
test esi, esi
je 0x204085c0
mov eax, dword [esi]
lea ebx, [esi + 8]
mov dword [esp + 0x24], ebx
mov ebp, eax
mov ecx, eax
shl ebp, 0x18
shr ecx, 0x18
add ecx, ebp
movzx ebp, ah
shr eax, 8
shl ebp, 0x10
and eax, 0xff00
add ecx, ebp
lea ebp, [eax + ecx]
mov eax, dword [edi + 0x84]
cmp dword [esi + 8], eax
je 0x2040861c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x204084ec
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [eax + ebp]
add edx, eax
mov eax, edx
cmp ecx, dword [esp + 0x28]
ja 0x20408686
test ebp, ebp
je 0x2040867d
add ebp, edx
mov dword [esp + 0x20], ecx
mov edx, ebx
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax - 1], cl
cmp ebp, eax
jne 0x204085a0
sub ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
jne 0x204084fc
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
je 0x2040860c
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
test dl, 3
je 0x204085e4
lea esi, [esi]
sub edx, 1
test dl, 3
jne 0x204085dc
xor eax, eax
mov ebx, dword [esp + 0x18]
test edx, edx
je 0x204085f9
xor dword [ebx + eax + 0x10], ecx
add eax, 4
cmp eax, edx
jb 0x204085ee
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax], edi
mov eax, dword [esp + 0x20]
test eax, eax
setne al
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x20408577
mov eax, dword [esi + 0x10]
mov dword [esp], 0x40
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
call dword [eax + 0x50]
mov edx, ebx
lea ecx, [eax + ebp]
sub esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x20408670
mov dword [esp + 0x24], ebx
lea esi, [esi]
movzx ebx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax - 1], bl
cmp ecx, eax
jne 0x2040865c
mov ebx, dword [esp + 0x24]
add dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebx
jmp 0x204084ec
mov dword [esp + 0x20], ecx
jmp 0x204084ec
mov ecx, dword [esp + 0x28]
mov edx, ebx
sub ecx, dword [esp + 0x20]
add ebx, ecx
test ecx, ecx
je 0x204085ca
nop
movzx ecx, byte [edx]
add edx, 1
add eax, 1
mov byte [eax - 1], cl
cmp ebx, edx
jne 0x2040869c
jmp 0x204085ca
Function at 0x204085c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x70]
lea esi, [esi]
movzx edx, byte [edi + eax + 0x64]
mov byte [esp + eax + 0x38], dl
add eax, 1
cmp eax, 4
jne 0x2040848c
xor eax, eax
movzx edx, byte [edi + eax + 0x100]
mov byte [esp + eax + 0x3c], dl
add eax, 1
cmp eax, 4
jne 0x2040849f
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x60]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
sub eax, 8
mov dword [esp + 0x1c], eax
lea ebx, [esi + 8]
lea esi, [esi]
sub ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
je 0x204085c0
xor edx, edx
jmp 0x2040850b
add edx, 1
cmp edx, ebp
je 0x204085c0
lea ebx, [esi + edx]
xor eax, eax
movzx ecx, byte [esp + eax + 0x38]
cmp byte [eax + ebx + 1], cl
je 0x20408520
cmp cl, 0x3f
jne 0x20408500
add eax, 1
cmp eax, 8
jne 0x20408510
lea esi, [esi + edx + 1]
test esi, esi
je 0x204085c0
mov eax, dword [esi]
lea ebx, [esi + 8]
mov dword [esp + 0x24], ebx
mov ebp, eax
mov ecx, eax
shl ebp, 0x18
shr ecx, 0x18
add ecx, ebp
movzx ebp, ah
shr eax, 8
shl ebp, 0x10
and eax, 0xff00
add ecx, ebp
lea ebp, [eax + ecx]
mov eax, dword [edi + 0x84]
cmp dword [esi + 8], eax
je 0x2040861c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x204084ec
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [eax + ebp]
add edx, eax
mov eax, edx
cmp ecx, dword [esp + 0x28]
ja 0x20408686
test ebp, ebp
je 0x2040867d
add ebp, edx
mov dword [esp + 0x20], ecx
mov edx, ebx
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax - 1], cl
cmp ebp, eax
jne 0x204085a0
sub ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
jne 0x204084fc
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
je 0x2040860c
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
test dl, 3
je 0x204085e4
lea esi, [esi]
sub edx, 1
test dl, 3
jne 0x204085dc
xor eax, eax
mov ebx, dword [esp + 0x18]
test edx, edx
je 0x204085f9
xor dword [ebx + eax + 0x10], ecx
add eax, 4
cmp eax, edx
jb 0x204085ee
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax], edi
mov eax, dword [esp + 0x20]
test eax, eax
setne al
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x20408577
mov eax, dword [esi + 0x10]
mov dword [esp], 0x40
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
call dword [eax + 0x50]
mov edx, ebx
lea ecx, [eax + ebp]
sub esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x20408670
mov dword [esp + 0x24], ebx
lea esi, [esi]
movzx ebx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax - 1], bl
cmp ecx, eax
jne 0x2040865c
mov ebx, dword [esp + 0x24]
add dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebx
jmp 0x204084ec
mov dword [esp + 0x20], ecx
jmp 0x204084ec
mov ecx, dword [esp + 0x28]
mov edx, ebx
sub ecx, dword [esp + 0x20]
add ebx, ecx
test ecx, ecx
je 0x204085ca
nop
movzx ecx, byte [edx]
add edx, 1
add eax, 1
mov byte [eax - 1], cl
cmp ebx, edx
jne 0x2040869c
jmp 0x204085ca
Function at 0x204397f0
Capabilities:
Clear file content

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.20439830
add esp, 0xc
cmp eax, esi
jne 0x2043980e
cmp edx, edi
je 0x20439815
or eax, 0xffffffff
pop edi
pop esi
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
pop edi
sub eax, 1
pop esi
pop ecx
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46ce90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x46cecc
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x46cec4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x46cece
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x46ceb4
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46cfa0
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x46cfb4
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x46cfcf
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret