joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034d9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40351f
sub ebx, 0x41fb40
mov ax, word [ebx + edi*2 + 0x41fb40]
mov ecx, esi
xor ax, word [edi*2 + 0x41fb40]
movzx eax, ax
push eax
call fcn.00401fd0
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4034fd
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403527
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40356d
sub ebx, 0x41f880
mov ax, word [ebx + edi*2 + 0x41f880]
mov ecx, esi
xor ax, word [edi*2 + 0x41f880]
movzx eax, ax
push eax
call fcn.00401fd0
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40354b
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403d46
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x467bb0
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 9
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x403d66
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x403d6e
mov esi, dword [esi]
push 0x40010
push eax
push esi
push 0
call dword [0x47c250]
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.00401720
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d92
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov edx, 0x47aee0
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 0x13
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x403db5
mov eax, dword [eax]
push 0x41f5ac
push eax
lea eax, [ebp - 0x118]
push 0x80
push eax
call fcn.004034bd
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push 1
call fcn.00401720
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x118]
push eax
call fcn.00401601
lea ecx, [ebp - 0x18]
call fcn.0040576e
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.00401720
push esi
call dword [0x47c1dc]
push 0xd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405816
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415a10
push ebx
push esi
push edi
mov ebx, ecx
mov edx, 0x4261c0
push 0x32
lea ecx, [ebp - 0x18]
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x40583f
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x1018]
push 0x7ff
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004034bd
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.00401720
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x1018]
mov dword [ebp - 8], esi
push eax
call fcn.00401601
lea ecx, [ebp - 0x18]
call fcn.0040576e
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401720
push 9
mov edx, 0x467bb0
lea ecx, [ebp - 0x18]
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x4058b7
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x4058bf
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x47c250]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401720
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405ff3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x406039
sub ebx, 0x41fc70
mov ax, word [ebx + edi*2 + 0x41fc70]
mov ecx, esi
xor ax, word [edi*2 + 0x41fc70]
movzx eax, ax
push eax
call fcn.00401fd0
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406017
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x406d19
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x4a8
push ebx
push ebp
push esi
mov esi, ecx
mov edx, 0x43fd0c
push 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call fcn.00405ff3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c0]
push ecx
push ecx
mov ecx, eax
call fcn.00405ba4
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f8b
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401720
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x58]
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push ecx
push eax
call dword [0x47c1f4]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x406d8b
xor bl, bl
jmp 0x406f42
test byte [esp + 0x58], 0x10
je 0x406e26
lea eax, [esp + 0x84]
mov edx, 0x43a2cc
push eax
push 1
lea ecx, [esp + 0x14]
call fcn.00405ff3
mov ecx, eax
call fcn.00407051
test eax, eax
lea ecx, [esp + 0xc]
push 0
push 1
setne bl
call fcn.00401720
test bl, bl
je 0x406ee5
lea eax, [esp + 0x84]
mov edx, 0x434554
push eax
push 2
lea ecx, [esp + 0x14]
call fcn.00405ff3
mov ecx, eax
call fcn.00407051
test eax, eax
lea ecx, [esp + 0xc]
push 0
push 1
setne bl
call fcn.00401720
test bl, bl
je 0x406ee5
sub esp, 0x18
lea eax, [esp + 0x9c]
mov ecx, esp
push eax
call fcn.004014ac
mov ecx, esi
call fcn.00406d19
jmp 0x406ee5
cmp dword [esp + 0x4cc], 8
lea esi, [esp + 0x4b8]
push 5
cmovae esi, dword [esp + 0x4bc]
lea ecx, [esp + 0x44]
mov edx, 0x43c374
call fcn.00405ff3
cmp dword [eax + 0x14], 8
jb 0x406e55
mov eax, dword [eax]
lea ecx, [esp + 0x84]
push ecx
push esi
push eax
lea eax, [esp + 0x2b4]
push 0x103
push eax
call fcn.004034bd
add esp, 0x14
lea ecx, [esp + 0x40]
push 0
push 1
call fcn.00401720
and dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
lea eax, [esp + 0x2a8]
push eax
call fcn.00401601
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [0x47c1d8]
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 4
cmovae eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401720
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
push ebp
call dword [0x47c1f8]
test eax, eax
jne 0x406d8b
push ebp
call dword [0x47c1cc]
cmp dword [esp + 0x4cc], 8
lea eax, [esp + 0x4b8]
cmovae eax, dword [esp + 0x4b8]
push eax
call dword [0x47c208]
cmp dword [esp + 0x4cc], 8
lea eax, [esp + 0x4b8]
push 4
cmovae eax, dword [esp + 0x4bc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401720
push 0
push 1
lea ecx, [esp + 0x4c0]
call fcn.00401720
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x4a8
ret 0x18
Function at 0x408a26
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x408a31
xor eax, eax
jmp 0x408b09
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x408aea
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
dec edi
jne 0x408a4d
pop edi
test esi, esi
je 0x408b03
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420dd0]
inc edx
dec esi
jne 0x408aee
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x408b0c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x420dd0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x420dd0]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x409a27
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x409a3c
push 0xffffffffffffff9a
pop eax
jmp 0x409b65
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x409a48
push 0xffffffffffffff9a
jmp 0x409a6d
cmp dword [edi + 0x7c], ebp
je 0x409a52
call fcn.00409d9b
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.00409888
test eax, eax
je 0x409a73
push 0xffffffffffffff99
pop eax
jmp 0x409b64
push esi
push 0x7e
call fcn.0040bd23
mov esi, eax
pop ecx
test esi, esi
je 0x409a9d
push 0x4000
call fcn.0040bd23
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x409aa5
push esi
call fcn.0040bcab
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x409b63
mov dword [esi + 0x40], ebp
xor ecx, ecx
cmp dword [edi + 0x34], ebp
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
sete cl
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
jne 0x409aed
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.00408ce2
test eax, eax
jne 0x409aed
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409b10
mov al, byte [edi + 0x39]
jmp 0x409b13
mov al, byte [edi + 0x3f]
mov byte [esi + 0x7d], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x79], eax
mov dword [esi + 0x6d], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
test ebx, ebx
je 0x409b4e
mov dl, byte [ebx]
test dl, dl
je 0x409b4e
lea ecx, [esi + 0x6d]
call fcn.00408b0c
inc ebx
jne 0x409b3d
mov eax, dword [esp + 0x10]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x414b14
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423be4]
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.00411174
mov dword [ebp - 0x14], eax
cmp dword [0x47c158], esi
jne 0x414c07
push 0x800
push esi
push 0x41deb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414ce7
push esi
push esi
push 0x41deb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414ce7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414ce7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47c158], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47c15c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47c160], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c168], eax
test eax, eax
je 0x414c04
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c164], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414c2c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414c1f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414c41
push 4
pop eax
jmp 0x414ce9
cmp dword [ebp - 0x14], esi
je 0x414c41
push dword [0x47c158]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414c26
mov eax, dword [0x47c164]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x414c9f
cmp dword [0x47c168], edi
je 0x414c9f
push eax
call ebx
push dword [0x47c168]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414c9f
test eax, eax
je 0x414c9f
call ecx
test eax, eax
je 0x414c94
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 0x414c94
test byte [ebp - 8], 1
jne 0x414c9f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x414ccf
mov eax, dword [0x47c15c]
cmp eax, edi
je 0x414ccc
push eax
call ebx
test eax, eax
je 0x414ccc
call eax
mov esi, eax
test esi, esi
je 0x414ccc
mov eax, dword [0x47c160]
cmp eax, edi
je 0x414ccc
push eax
call ebx
test eax, eax
je 0x414ccc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47c158]
call ebx
test eax, eax
je 0x414ce7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414ce9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee7
mov esp, ebp
pop ebp
ret
Function at 0x401180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x401205
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
jne 0x401205
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
test eax, eax
je 0x40121f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
je 0x4011e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013ba
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004013ba
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..Universe.dll
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.___Open_The_MTA
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
Function at 0x40a6e0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x40a7a1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40a78b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5519c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x40a7a1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004e3050
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040a870
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004ffa91
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40a801
cmp eax, 0x207
ja 0x40a801
jne 0x40a808
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a811
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x40aae0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5383c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x59bc84]
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
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x40b200
push 0x40b150
push 0x40b220
push 0x40b1c0
push 0x40b170
push 0x40b270
push 0x40b260
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.Cabinet.dll_FDICreate
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40ac3d
push dword [ebp - 0x20]
push edi
push 0x40b280
push edi
push dword [ebp - 0x28]
push esi
push ebx
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
test eax, eax
jne 0x40abd3
lea ecx, [ebp - 0x20]
call fcn.0040a880
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], edi
call fcn.0040ac60
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDICopy_failed_with_error_code__d_:__s
push eax
call fcn.0040ade0
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40abd8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40abd8
mov edi, 1
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 4
cmp eax, 1
je 0x40ac3d
lea ecx, [ebp - 0x20]
call fcn.0040a880
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], 1
call fcn.0040ac60
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDIDestroy_failed_with_error_code__d_:__s
push eax
call fcn.0040ade0
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ac3d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0049dec8
mov esp, ebp
pop ebp
ret 0xc