joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x405d07
cmp dword [esi + 4], 0xffffffff
jne 0x405d07
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ca6
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x405cd2
cmp ecx, 0x2f
je 0x405cd2
mov dword [esi + eax*2 + 0x244], 0x2f
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.00404b50
add esp, 4
test eax, eax
jne 0x405ced
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.00404f90
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x406420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4064ab
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00408e8b
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406460
sub eax, edx
sar eax, 1
je 0x40648a
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x406485
cmp eax, 0x5c
jne 0x40648a
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4064ab
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x40658f
mov ecx, edi
mov edx, edi
jmp 0x4064c0
cmp ax, 0x2f
je 0x4064cc
cmp ax, 0x5c
jne 0x4064ce
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4064c0
cmp ecx, edi
je 0x40650f
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.0040d440
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.00406420
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x406531
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00408e8b
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [ebp - 6], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406540
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push edi
push eax
call fcn.00408e8b
add esp, 0xc
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40658f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00408434
mov esp, ebp
pop ebp
ret
Function at 0x4081c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
call fcn.00407dd0
push esi
lea esi, [ebp - 0x5c]
call fcn.00407ee0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00408434
mov esp, ebp
pop ebp
ret

Function at 0x408230
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408291
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
xor edi, edi
mov byte [esi], bl
call fcn.004074b0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408434
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push 0x8000002
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x4082d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
xor edi, edi
mov byte [esi], 0
call fcn.004074b0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408434
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4082fd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
jmp 0x4082ae
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004081c0
mov ecx, dword [ebp - 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
lea edx, [ebp - 0x14]
push edx
push esi
call fcn.00408020
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408434
mov esp, ebp
pop ebp
ret

Function at 0x408434
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418080]
jne 0x40843e
repz ret
jmp fcn.00409289
Function at 0x40dd5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409dac
and dword [ebp - 0x14], 0
cmp dword [0x419c30], 0
mov dword [ebp - 0x18], eax
jne 0x40de0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40deb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40deb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x419c30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x419c34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419c38], eax
call edi
push eax
call esi
mov dword [0x419c40], eax
test eax, eax
je 0x40de0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419c3c], eax
mov eax, dword [0x419c3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40de68
cmp dword [0x419c40], ecx
je 0x40de68
push eax
call esi
push dword [0x419c40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40de68
test ebx, ebx
je 0x40de68
call edi
test eax, eax
je 0x40de5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40de5f
test byte [ebp - 8], 1
jne 0x40de68
or dword [ebp + 0x10], 0x200000
jmp 0x40de9b
mov eax, dword [0x419c34]
cmp eax, dword [ebp - 0x18]
je 0x40de9b
push eax
call esi
test eax, eax
je 0x40de9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40de9b
mov eax, dword [0x419c38]
cmp eax, dword [ebp - 0x18]
je 0x40de9b
push eax
call esi
test eax, eax
je 0x40de9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x419c30]
call esi
test eax, eax
je 0x40deb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40deb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408434
leave
ret
Function at 0x649a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15a000]
lea eax, [edi + 0x1bedc4]
push dword [eax]
mov dword [eax], 0xa331051e
push eax
push edi
jmp 0x649a5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x649a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x649a50
mov eax, 1
add ebx, ebx
jne 0x649a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x649a84
jne 0x649aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x649aa3
dec eax
add ebx, ebx
jne 0x649a90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x649a68
add ebx, ebx
jne 0x649a9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x649af5
xor ecx, ecx
sub eax, 3
jb 0x649abb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x649b2a
sar eax, 1
mov ebp, eax
jmp 0x649ac6
add ebx, ebx
jne 0x649ac6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x649a94
inc ecx
add ebx, ebx
jne 0x649ad4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x649a94
add ebx, ebx
jne 0x649ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x649ad6
jne 0x649af2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x649ad6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x649b14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x649b06
jmp 0x649a56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x649b14
add edi, ecx
jmp 0x649a56
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x94da
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x649b36
cmp byte [edi], 0x1d
jne 0x649b36
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 0x649b3b
lea edi, [esi + 0x23b000]
mov eax, dword [edi]
or eax, eax
je 0x649bb3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24e708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24e870]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x649b68
mov ecx, edi
jns 0x649b97
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 + 0x24e878]
or eax, eax
je 0x649bad
mov dword [ebx], eax
add ebx, 4
jmp 0x649b85
call dword [esi + 0x24e874]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x649be4
cmp al, 0xef
ja 0x649bd7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x649bb9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x649bc6
mov ebp, dword [esi + 0x24e87c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
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 0x649c18
sub esp, 0xffffff80
jmp 0x4e1800
Function at 0x1001244
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x100
mov esi, 0x10026a0
push esi
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
and word [ebp - 8], 0
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0x10024a0
mov word [ebp - 6], 0x200
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
push 0
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 8]
push eax
push dword [ebp - 4]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10016d3
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10010f0
call fcn.01001888
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100170e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100170e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001726
cmp eax, 0x20b
je 0x1001713
mov dword [ebp - 0x1c], edi
jmp 0x100173a
cmp dword [ecx + 0x84], 0xe
jbe 0x100170e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001734
cmp dword [ecx + 0x74], 0xe
jbe 0x100170e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002d0c], 0xffffffff
or dword [0x1002d10], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100204c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002048]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002d14], eax
call fcn.01001880
cmp dword [0x1002024], edi
jne 0x1001795
push fcn.01001880
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001869
push 0x10010b0
push 0x10010ac
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002044]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002040]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x10010a8
push 0x10010a4
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010012f6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100180c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001841
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010018c3
ret
Function at 0x40690e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f764], 0
jne 0x40694c
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 0x406922
mov dword [ecx*4 + 0x42f760], eax
inc ecx
cmp ecx, 0x100
jl 0x40691d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
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 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc

Function at 0x1001066
Capabilities:
Create process on windows
Terminate process

Disassembly:
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push 0x100103c
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001088
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x10010af
inc esi
mov al, byte [esi]
test al, al
je 0x10010a8
cmp al, 0x22
jne 0x100109d
cmp byte [esi], 0x22
jne 0x10010c0
jmp 0x10010bf
cmp al, 0x20
jle 0x10010c0
inc esi
cmp byte [esi], 0x20
jg 0x10010b3
jmp 0x10010c0
cmp al, 0x20
jg 0x10010c6
inc esi
mov al, byte [esi]
test al, al
jne 0x10010bb
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x10010e0
movzx eax, word [ebp - 0x14]
jmp 0x10010e3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
pop esi
leave
ret
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ecx, 0x7e85
xor esi, esi
mov dword [ebp - 4], 0x2173
mov edi, 0x6e5f
lea esp, [esp]
mov eax, 0x4ec4ec4f
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401150
mov edx, 0x6695
mov dword [ebp - 8], 0x28
mov eax, 0xfb
cmp eax, 0x28
cmovl eax, dword [ebp - 8]
dec edx
jne 0x401174
mov ebx, 0x47ca
mov eax, 0xac769185
imul ebx
add edx, ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401183
mov ebx, 0xed
lea ecx, [ecx]
mov eax, 0xb81702e1
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011a0
mov edx, dword [ebp + 8]
test edx, edx
je 0x401297
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401297
cmp edx, eax
jae 0x401297
mov ecx, esi
sub eax, edx
je 0x4011f3
mov ebx, eax
jmp 0x4011e0
mov al, byte [ecx + edx + 1]
sub al, 0x19
xor byte [ecx + edx], al
inc ecx
cmp ecx, ebx
jb 0x4011e0
mov ebx, 0xed
mov esi, 0x1d72
jmp 0x401200
mov eax, 0x2fa0be83
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401200
inc edi
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x401233
add edi, 2
cmp edi, 0x24cc
jl 0x401213
jmp 0x401240
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x401259
inc esi
cmp esi, 0xca8
jl 0x401240
mov eax, 0x1c89
mov ecx, 0xe5
jmp 0x401270
cmp ebx, ecx
cmovl ebx, ecx
dec eax
jne 0x401270
jmp 0x401280
mov eax, 0x2e8ba2e9
imul dword [ebp - 4]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x401280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, 0x4c35
mov ecx, 0x5b
mov esi, 0x5fd5
mov eax, 0x84a9f9c9
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401b04
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor eax, eax
xor dword [edi + eax*4], edx
inc eax
cmp eax, 5
jb 0x401b21
mov eax, 0x5be7
nop
dec eax
jne 0x401b30
mov eax, 0x3018
mov edx, 0x85
lea ecx, [ecx]
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x401b40
jmp 0x401b50
mov eax, 0x342da7f3
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401b50
pop edi
pop esi
pop ebp
ret
Function at 0x402d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 2]
xor ecx, ecx
inc byte [ebx + 0x105]
mov dword [ebp - 4], eax
mov al, byte [ebx + 0x105]
push edi
mov edi, 0x3b6
mov esi, 0x4324
mov byte [ebp + 0xb], al
jmp 0x402d80
mov eax, 0x66666667
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402d80
mov eax, ecx
and eax, 0x80000007
jns 0x402da1
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402da8
add ecx, 3
jmp 0x402da9
inc ecx
cmp ecx, 0x16f
jl 0x402d93
movzx edi, byte [ebp + 0xb]
movzx eax, byte [ebx + 0x103]
lea edx, [ebx + 2]
add edi, edx
movzx ecx, byte [edi]
add eax, ecx
movzx ecx, al
mov byte [ebx + 0x103], al
movzx eax, byte [ecx + edx]
mov bl, byte [edi]
mov byte [edi], al
mov byte [ecx + edx], bl
lea ebx, [ebx]
mov eax, 0xdd67c8a7
imul esi
add edx, esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402de0
mov al, byte [edi]
mov ecx, dword [ebp - 4]
add al, bl
movzx eax, al
pop edi
movzx eax, byte [eax + ecx]
movzx ecx, byte [ebp + 0xc]
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Copy file
Create thread
Execute command
Inject dll
Inject thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push edi
push str.sc_stop_FairplayKD__nul
call esi
push str.sc_delete_FairplayKD__nul
call esi
push str.sc_stop_FairplayKD1__nul
call esi
push str.sc_delete_FairplayKD1__nul
call esi
add esp, 0x10
push 0
push 0x403250
push str..dutchlove2.dll
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.Open_the_MTA:SA.
call fcn.00401010
push 0x16
call fcn.00401406
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, eax
push 0xb
push str.gta_sa.exe
push edi
call esi
push 0x1a
call fcn.00401406
push 0xd
mov ebx, eax
push str.proxy_sa.exe
push ebx
call esi
add esp, 0x24
mov ecx, edi
call fcn.00401180
test eax, eax
jne 0x4012ea
nop
mov ecx, ebx
call fcn.00401180
test eax, eax
jne 0x401389
mov ecx, edi
call fcn.00401180
test eax, eax
je 0x4012d0
mov ecx, edi
call fcn.00401180
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push str.kernel32
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x401390
push 4
push 0x3000
push 0x51
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x401390
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x51
push str.C:Program_Files__x86_MTA_San_Andreas_1.6_servermodsdeathmatchdeathmatch.dll
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 8], 0x51
jne 0x401390
push 0
push 0
push esi
push str.LoadLibraryA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x401390
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, 0x40339c
jmp 0x40139e
mov ecx, ebx
jmp 0x4012ec
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, str.Error_n
push eax
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004013ba
mov esp, ebp
pop ebp
ret

Function at 0x401c7a
Capabilities:
Parse pe header

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