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

Disassembly:
mov eax, 0xc
call fcn.005109c0
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x61d26d
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x61d25d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x61d272
cmp edi, dword [esi + 8]
ja 0x61d254
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.0055a2b0
push eax
call fcn.005567d0
add esp, 8
test eax, 0x200000
je 0x61d2b8
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x61d344
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x61d300
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x621f70
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x621f8b
push eax
push esi
call fcn.006225b0
add esp, 8
test eax, eax
jle 0x621fd3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.00556580
add esp, 8
test edi, edi
jg 0x621fd0
push edi
call fcn.0059e7f0
add esp, 4
test eax, eax
je 0x621fd0
push 0xa
push esi
call fcn.00556ce0
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x1001b188
Capabilities:
Encode data using xor

Disassembly:
jl 0x1000892d
adc esi, dword [eax - 0x4cd0b74e]
mov dl, 0x60
xor esi, dword [edx + esi*4 + 0x1de23768]
popal
xor al, ah
jmp 0x1000894a
setle byte [0xe771275c]
shr byte [edx], cl
or al, 0x6c
sub cl, byte [esp + ebp*2]
imul ebp, dword [edx - 0x64a2cc98], 0x96d1c7fc
out dx, al
loop 0x10008925
pop edi
das
mov ah, 0x7d
sub eax, 0xe83330b1
mov cl, 0x30
xor ebp, eax
insb byte es:[edi], dx
test dword [ebp - 0x16b77d45], 0x338c2769
mov ch, 0x2a
sti
test eax, 0x345f2955
loop 0x10008945
pushal
xor eax, 0x7efb64e0
pushal
aaa
in al, dx
wait
bound ecx, qword [edi]
and byte [eax + 0x5d], dh
daa
ljmp 0xa68b
adc edi, dword [ecx]
les ebx, [ebp + 0x57]
enter 0xffffffffffff8548, 3
xchg ebx, eax
mov ah, 0x11
das
in eax, 0x80
stosb byte es:[edi], al
stosb byte es:[edi], al
fist word [ecx + ebp*4 - 0x17524dc2]
pop ss
add byte [eax], al
add byte [0x1bc80312], dh
pop ebx
jae 0x1001b1a4
enter 0xffffffffffffa78d, 0xffffffffffffff8b
clc
push esi
jp 0x1001b155
jle 0x1001b214
or eax, 0xc4954625
push edx
add al, 0xc8
and edx, dword [ebx + 0x609b4b6d]
cmpsd dword [esi], dword es:[edi]
add ebx, 0xffffff6f
jmp 0x1001b1c2
cmp dword [ebx], 0
stc
jb 0x1001b1f3
sahf
xchg ebp, eax
xor byte [edi - 0x32], cl
lodsb al, byte [esi]
xor ch, byte [esi - 0x59aa0d41]
stc
push ds
test byte [edi], bh
sbb cl, byte [edi]
bound eax, qword [esi - 0x5d654a54]
push esi
add dl, byte [edi]
inc eax
jnp 0x1001b1c2
clc
xchg edi, eax
ret 0xca57
je 0x1001b32b
jb 0x1001b1fd
mov ah, 0xb7
mov ecx, ebx
jmp 0x1001b203
add ebx, 4
jmp 0x1001b223
popfd
mov bh, 0xd7
fiadd word [ecx - 0x514d7a5c]
arpl word [eax + 0x4d440e0a], di
dec ebp
mov eax, dword [ebx]
jmp 0x1001b22b
add eax, ebx
clc
jae 0x1001b256
cmp ebp, 0xffffffa1
sub ebx, dword [0xed86c6c5]
stc
adc dword [edi - 0x4b1c28c8], 0xcb7a7752
mov esi, 0x97998a5d
dec ebx
lcall 0xf54d, 0x32582e1d
inc esi
in al, 7
pushfd
adc dword [ebx + 0x27eb0453], ecx
dec edx
jns 0x1001b222
mov edx, dword [ebx + 4]
jmp 0x1001b282
int 0xa6
sub eax, 0x85f1ee90
pop ds
sar byte [esi + ebx*4], 0x26
cmc
add eax, 0xaf9b3a4d
mov ebp, 0x5a2fe6e4
div dword [eax]
pop es
out dx, al
and dword [esi], edi
js 0x1001b287
rol ebp, 0xf3
test al, 0xf8
sub dword [eax], 0x26eb275d
jmp 0x1001b294
jmp 0x1001b294
add eax, 4
jmp 0x1001b29d
sub edx, 1
jmp 0x1001b2b6
jne 0x1001b259
jmp 0x1001b2c9
add ebx, 8
jmp 0x1001b2dd
sub dword [ecx], 1
stc
jmp 0x1001b310
jne 0x1001b206
jb 0x1001b326
pop ds
xor dword [ecx], ebp
push 0x1f
invalid
call 0x1001b366
jmp 0x1001b34f
popal
stc
jmp 0x1001b361
jmp 0x100088b5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00401748
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0040154d
push 0x5c
mov ecx, edi
call fcn.004015ea
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x4014af
push edi
push edi
mov dword [0x41c208], esi
mov dword [0x41c210], edi
call dword [0x417094]
cmp dword [0x41c26c], 2
mov dword [0x41c20c], eax
je 0x401437
call fcn.0040738d
push 0xffffffffffffffff
push dword [0x41c20c]
call dword [0x417108]
mov eax, dword [0x41c210]
mov dword [0x41c278], edi
cmp eax, edi
je 0x40148a
mov ecx, eax
dec ecx
je 0x40147e
dec ecx
je 0x40147a
dec ecx
je 0x401476
push eax
push 0x14
push edi
call fcn.0040723f
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
push 0x12
jmp 0x401480
push 0x13
jmp 0x401480
push 0x11
push edi
call fcn.0040723f
pop ecx
pop ecx
jmp 0x40146b
cmp dword [0x41c27c], edi
jne 0x40146b
lea eax, [ebp + 8]
push eax
push dword [0x41c20c]
call dword [0x41710c]
test eax, eax
je 0x40146b
cmp dword [ebp + 8], edi
jne 0x40146b
xor eax, eax
jmp 0x401470

Function at 0x401939
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0x417030]
test al, 0x10
je 0x401955
xor eax, eax
jmp 0x4019a4
mov eax, dword [0x41c270]
test eax, eax
je 0x401991
cmp eax, 2
jne 0x4019a1
lea eax, [ebp - 0x250]
push eax
push esi
call dword [0x41702c]
cmp eax, 0xffffffff
je 0x401991
push eax
call dword [0x417028]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [0x417024]
test eax, eax
jge 0x4019a1
push esi
call fcn.004023a9
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
jmp 0x4019a4
push 1
pop eax
pop esi
leave
ret

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

Disassembly:
push 0
push dword [esp + 8]
call dword [0x417038]
test eax, eax
jne 0x4019da
call dword [0x417034]
cmp eax, 0xb7
jne 0x4019d7
push dword [esp + 4]
call dword [0x417030]
cmp eax, 0xffffffff
je 0x4019da
test al, 0x10
jne 0x4019da
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x4023a9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41c298], 0
push esi
jne 0x4023c3
mov esi, dword [esp + 8]
push esi
call dword [0x417030]
cmp eax, 0xffffffff
jne 0x4023c8
push 1
pop eax
pop esi
ret
test al, 0x10
jne 0x4023e6
push 0
push esi
call dword [0x41711c]
test eax, eax
je 0x4023e2
push esi
call dword [0x417060]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402285
pop ecx
pop esi
ret
Function at 0x4016c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401714
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401710
lea ebx, [ebx]
cmp esi, eax
jae 0x401714
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401700
cmp esi, eax
jb 0x40171a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4026f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x198
mov eax, dword [0x487264]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push esi
mov esi, dword [esp + 0x1a4]
push edi
push 0x40
lea eax, [esp + 0x60]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x64], 0x44
call fcn.004441f0
push 0x38
lea ecx, [esp + 0x30]
push 0
mov ebx, 0x3c
push ecx
mov dword [esp + 0x34], ebx
call fcn.004441f0
mov eax, dword [esp + 0x1c4]
add esp, 0x18
cmp eax, 3
ja case.default.0x402750
jmp dword [eax*4 + 0x40288c]
mov edx, dword [esp + 0x1b0]
push edx
jmp 0x402806
push esi
lea eax, [esp + 0xa0]
push str.explorer.exe__s
push eax
call fcn.00444326
mov cx, word [esp + 0x1bc]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x10
push 0
push 0
mov word [esp + 0xa4], cx
push 0
lea ecx, [esp + 0xbc]
push ecx
push 0
mov dword [esp + 0xac], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je case.default.0x402750
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp case.default.0x402750
mov ebx, dword [esp + 0x1b0]
push ebx
push esi
mov ecx, edi
call fcn.00402240
test eax, eax
jne case.default.0x402750
push ebx
jmp 0x402806
mov ecx, edi
call fcn.004021a0
test eax, eax
jne 0x40281a
mov ecx, dword [esp + 0x1b0]
push ecx
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x402750
mov edx, dword [esp + 0x1b0]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x2c], str.runas
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne case.default.0x402750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00443a17
add esp, 0x198
ret 0xc
Function at 0x403850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45a013
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487264]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0042c90f
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x28], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [esp + 0x28], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x403920
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0042cdd8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0042d0aa
test ebp, ebp
je 0x4038fe
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0042d139
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0042ca2b
jmp 0x403932
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x404ea0
Capabilities:
Access peb ldr_data
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a39b
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x487264]
xor eax, esp
mov dword [esp + 0x538], eax
push esi
push edi
mov eax, dword [0x487264]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
push 0x207
lea eax, [esp + 0x341]
push 0
push eax
mov byte [esp + 0x348], 0
call fcn.004441f0
push 0x103
lea ecx, [esp + 0x145]
push 0
push ecx
mov byte [esp + 0x14c], 0
call fcn.004441f0
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.00402180
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x45e7d4
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x30]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404f84
mov ecx, dword [str..bat]
mov dl, byte [0x45e7d0]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x104
lea eax, [esp + 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x240]
push edx
call edi
mov edx, dword [str._echo_off_r_n:winuar_r_nif_not_exist___s___del___0__else__del___s_goto_winuar_]
lea eax, [esp + 0x134]
push eax
mov ecx, eax
push ecx
push edx
lea eax, [esp + 0x348]
push eax
call fcn.00444326
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405029
lea ecx, [esp + 0xc]
mov dword [esp + 0x550], eax
call fcn.00402190
or eax, esi
jmp 0x405085
push 0
lea edx, [esp + 0x14]
push edx
push 0x208
lea eax, [esp + 0x348]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x38]
push edx
call edi
push 0
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0xc]
mov dword [esp + 0x550], 0xffffffff
call fcn.00402190
xor eax, eax
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.00443a17
add esp, 0x548
ret
Function at 0x4050b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x12c
mov eax, dword [0x487264]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x138]
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
xor ebx, ebx
push 0x103
lea edx, [esp + 0x35]
push ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], bl
call fcn.004441f0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x405140
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00443a17
add esp, 0x12c
ret
push edi
push esi
call fcn.00425270
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4051a3
push esi
push ebx
push edi
call fcn.004441f0
add esp, 0xc
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40519a
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x45e810
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40519a
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4051aa
push edi
call fcn.00425265
add esp, 4
xor eax, eax
jmp 0x40527d
push 0x104
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004441f0
mov eax, dword [0x47399c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x4c]
push str.StringFileInfo_04x_04x_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40520f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405205
push 0x104
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.004441f0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4747f0]
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x4c]
push str.StringFileInfo_04x_04x_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40526f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405265
push edi
call fcn.00425265
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443a17
add esp, 0x12c
ret
Function at 0x4054e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x378
mov eax, dword [0x487264]
xor eax, esp
mov dword [esp + 0x374], eax
push ebx
push ebp
mov ebp, dword [esp + 0x388]
push esi
push edi
mov edi, dword [esp + 0x38c]
xor eax, eax
xor ebx, ebx
push 0x39
lea ecx, [esp + 0x42]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x48], ax
call fcn.004441f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x7c]
push edx
push ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x188], bl
mov byte [esp + 0x28c], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x78]
push 0x5c
push eax
call fcn.00444270
add esp, 8
cmp eax, ebx
je 0x4055a0
mov byte [eax + 1], bl
lea eax, [esp + 0x78]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x405585
mov ecx, dword [str.ver.z]
mov dx, word [0x45e858]
mov dword [eax], ecx
mov word [eax + 4], dx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405613
push ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x3b
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004052a0
lea eax, [esp + 0x188]
push eax
push 0x45e84c
push edi
call fcn.00444326
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
add esp, 0x18
jmp 0x405620
push ebp
call fcn.004053c0
add esp, 4
mov ebp, eax
mov esi, edx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 2
mov dword [esp + 0x20], str.http:__www.910safe.com_down_update2_ver.z
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
call fcn.00408260
add esp, 4
test eax, eax
jne 0x405655
mov byte [edi], bl
jmp 0x4056ae
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x284]
push eax
push ecx
call fcn.004052a0
mov edx, dword [esp + 0x20]
push edx
call fcn.004444fb
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x14], ebx
cmp eax, esi
ja 0x4056a9
jb 0x40568f
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
ja 0x4056a9
lea edx, [esp + 0x280]
push edx
push 0x45e84c
push edi
call fcn.00444326
add esp, 0xc
xor eax, eax
jmp 0x4056ae
mov eax, 1
mov ecx, dword [esp + 0x384]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443a17
add esp, 0x378
ret

Function at 0x406700
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406726
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4068b0
Capabilities:
Encode data using xor

Disassembly:
push 0x4889a8
call fcn.00406810
add esp, 4
mov eax, 0x400
mov ecx, dword [eax + 0x4885a8]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
add eax, 4
movzx edx, cl
mov dword [eax + 0x4889a4], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
movzx edx, cl
mov dword [eax + 0x488da4], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
movzx edx, cl
mov dword [eax + 0x4891a4], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
movzx edx, cl
mov dword [eax + 0x4895a4], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
movzx edx, cl
mov dword [eax + 0x4899a4], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
mov dword [eax + 0x489da4], ecx
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x4889a8]
mov dword [eax + 0x48a1a4], ecx
cmp eax, 0x800
jb 0x4068c2
ret

Function at 0x406960
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
call fcn.004068b0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test esi, esi
jbe 0x406994
test bl, 7
je 0x406994
movzx ecx, byte [ebx]
movzx edx, al
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x4889a8]
dec esi
inc ebx
test esi, esi
ja 0x406977
cmp esi, 8
jb 0x406a2c
push ebp
push edi
mov edi, esi
shr edi, 3
mov ecx, dword [ebx + 4]
xor eax, dword [ebx]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x488da8]
mov dword [esp + 0x14], ebx
mov ebp, ecx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x4889a8]
mov ebx, ecx
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x4891a8]
mov ebp, eax
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x4899a8]
mov ebx, eax
shr ebx, 0x10
movzx ebp, bl
xor edx, dword [ebp*4 + 0x489da8]
mov ebx, eax
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x48a1a8]
mov ebx, dword [esp + 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4895a8]
movzx eax, al
xor edx, dword [eax*4 + 0x48a5a8]
sub esi, 8
add ebx, 8
sub edi, 1
mov eax, edx
jne 0x4069a4
pop edi
pop ebp
test esi, esi
jbe 0x406a48
movzx ecx, byte [ebx]
movzx edx, al
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x4889a8]
dec esi
inc ebx
test esi, esi
ja 0x406a30
pop esi
pop ebx
ret