joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x401a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x440d40], 0x24e1
mov eax, dword [0x440d40]
sub eax, 0x24e1
mov dword [0x440d40], eax
mov ecx, 1
test ecx, ecx
je 0x401b0b
mov edx, dword [0x440d40]
cmp edx, dword [ebp + 0xc]
jb 0x401a97
jmp 0x401b0b
cmp dword [0x440d40], 0
jne 0x401ab5
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ab5
xor eax, eax
jmp 0x401b0b
mov eax, dword [ebp + 8]
add eax, dword [0x440d40]
mov ecx, dword [eax]
add ecx, dword [0x440d40]
mov edx, dword [ebp + 8]
add edx, dword [0x440d40]
mov dword [edx], ecx
mov dword [ebp - 4], 0x15
mov eax, dword [0x440d40]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x440d40]
push eax
call fcn.004011c0
add esp, 8
mov ecx, dword [0x440d40]
add ecx, 4
mov dword [0x440d40], ecx
jmp 0x401a7d
mov esp, ebp
pop ebp
ret

Function at 0x582efd
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409428
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4094dc
jmp 0x4094d1
cmp dword [esi + 0x10], 0x1000
jne 0x4094bd
test byte [esi + 0x15], 1
jne 0x4094bd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40947c
cmp eax, 2
je 0x40947c
cmp eax, 0x10
je 0x40947c
cmp eax, 0x20
jne 0x409491
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409491
mov bl, 1
xor ebp, ebp
jmp 0x4094a2
mov eax, dword [esi]
add eax, ebp
call fcn.00409420
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409495
test bl, bl
je 0x4094bd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4094dc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409454
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x6920269d
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x4ccf539b
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401180
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x40f8d0]
push esi
mov esi, dword [esp + 0xc]
test eax, eax
je 0x40119d
push esi
push dword [esp + 0xc]
call eax
add esp, 8
cmp eax, 0xffffffff
ja 0x4011c1
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x20
push eax
mov eax, 0x4000
cmp esi, eax
cmovb eax, esi
push eax
push 1
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
pop esi
ret
Function at 0x404d50
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
mov edi, ecx
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x404d7b
mov dword [eax + 8], edi
pop edi
mov dword [eax + 0xc], esi
mov dword [eax + 4], 1
mov dword [eax], 0
pop esi
ret
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
int3

Function at 0x404da0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
mov edi, ecx
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x404dd2
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edi
pop edi
mov dword [eax + 0xc], esi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x10], ecx
pop esi
ret
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
int3

Function at 0x404e00
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x404e2f
lea ecx, [eax + 0x14]
mov dword [eax + 0x10], esi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], eax
mov dword [eax + 0xc], ecx
pop esi
ret
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
int3
Function at 0x404e90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x404f7d
mov ecx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 4]
mov edi, dword [esi]
sub eax, 0
je 0x404f17
dec eax
jne 0x404f73
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call ecx
mov ebx, eax
test ebx, ebx
js 0x404f8d
mov eax, dword [esi + 0xc]
cmp ebx, eax
jne 0x404f0d
cmp dword [esi + 4], 0
jne 0x404ef4
mov eax, dword [esi + 8]
cmp eax, esi
je 0x404ef4
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], edi
test edi, edi
jne 0x404f67
mov dword [ecx + 4], edi
jmp 0x404f67
add dword [esi + 8], ebx
sub eax, ebx
mov dword [esi + 0xc], eax
jmp 0x404f67
push 0
push dword [esi + 0x10]
push dword [esi + 0xc]
push edx
call ecx
mov ebx, eax
test ebx, ebx
js 0x404fa0
mov eax, dword [esi + 0x10]
cmp ebx, eax
jne 0x404f5f
cmp dword [esi + 4], 0
jne 0x404f46
mov eax, dword [esi + 8]
cmp eax, esi
je 0x404f46
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], edi
test edi, edi
jne 0x404f67
mov dword [ecx + 4], edi
jmp 0x404f67
add dword [esi + 0xc], ebx
sub eax, ebx
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [sym.imp.WS2_32.dll_send]
add ebp, ebx
mov esi, edi
test edi, edi
jne 0x404eb1
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 8
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 8
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
Function at 0x405d20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x4004
call fcn.0040a2a0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4000], eax
push esi
mov esi, ecx
push edi
test byte [esi + 0x30], 1
mov edi, edx
je 0x405d60
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
push ebx
push 0
push 0x3fff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jns 0x405dce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405da3
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
push 0
push 0
push eax
call dword [sym.imp.php5.dll_php_socket_strerror]
add esp, 0xc
mov dword [edi], eax
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
jne 0x405dfb
push str.Unexpected_EOF
call dword [sym.imp.php5.dll__estrdup]
add esp, 4
mov dword [edi], eax
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
lea eax, [esp + 0xc]
push ebx
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x2c], esi
call fcn.00407bc0
add esp, 8
cmp eax, ebx
je 0x405e75
mov al, byte [esp + 0xc]
test al, al
js 0x405e4a
cmp al, 0x16
je 0x405e4a
push str.Malformed_HTTP_request
call dword [sym.imp.php5.dll__estrdup]
add esp, 4
mov dword [edi], eax
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
push str.Unsupported_SSL_request
call dword [sym.imp.php5.dll__estrdup]
mov dword [edi], eax
add esp, 4
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040995e
add esp, 0x4004
ret
cmp dword [esi + 0x34], 0
je 0x405ea8
push 1
push 1
push dword [esi + 0x38]
call dword [sym.imp.php5.dll__safe_malloc]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x405e5a
push dword [esi + 0x38]
push dword [esi + 0x34]
push edi
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
or dword [esi + 0x3c], 1
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x400c]
pop ebx
pop edi
pop esi
xor ecx, esp
and eax, 1
call fcn.0040995e
add esp, 0x4004
ret
Function at 0x405ed0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], edx
mov edi, ecx
mov esi, ebx
push 0
mov eax, edx
sub eax, esi
push esi
add eax, ebx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x405f4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405f3c
mov eax, dword [edi + 4]
push 0x2710
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 1
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.php5.dll_php_poll2]
add esp, 0xc
test eax, eax
jle 0x405f3c
movsx eax, word [esp + 0x16]
test eax, eax
jg 0x405f4d
call dword [sym.imp.php5.dll_php_handle_aborted_connection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, eax
test esi, esi
jle 0x405f57
mov edx, dword [esp + 0xc]
jmp 0x405ee7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407780
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
mov ebx, dword [esi]
cmp ebx, eax
jne 0x40787c
mov eax, dword [esi + 0x1038]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR110.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40785c
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.php5.dll_php_set_sock_blocking]
add esp, 8
test eax, eax
jne 0x407844
push 0x108
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x40785c
push dword [esp + 0x18]
mov edx, esi
push edi
push ebx
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.00405f60
add esp, 0xc
cmp eax, 0xffffffff
je 0x407837
push 1
push 0
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x103c]
push ebx
push eax
call dword [sym.imp.php5.dll__zend_hash_index_update_or_next_insert]
push dword [esp + 0x2c]
push esi
call fcn.004075a0
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push str.Failed_to_create_a_new_request_object
call fcn.00405220
add esp, 4
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
lea ecx, [esp + 0x14]
push ecx
push eax
lea eax, [esi + 0x103c]
push eax
call dword [sym.imp.php5.dll_zend_hash_index_find]
add esp, 0xc
test eax, eax
jne 0x4078c5
mov ebx, dword [esp + 0x1c]
test ebx, 0x300
je 0x4078b1
mov eax, dword [esp + 0x14]
push dword [eax]
mov eax, dword [edi + 4]
push esi
call eax
add esp, 8
test bl, 0x10
je 0x4078c5
mov eax, dword [esp + 0x14]
push dword [eax]
mov eax, dword [edi + 8]
push esi
call eax
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
mov byte [ebp - 1], 0
je 0x401067
xor ecx, ecx
inc edi
cmp byte [esi], cl
je 0x401067
push ebx
mov al, byte [ecx + esi]
xor byte [ebp - 1], al
movsx eax, al
cdq
push 2
pop ebx
idiv ebx
mov bl, al
add bl, dl
movsx edx, bl
lea eax, [edx + 1]
xor eax, edx
cdq
and edx, 3
add eax, edx
movsx edx, byte [ebp - 1]
sar eax, 2
add al, bl
movsx eax, al
xor eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dl, cl
and dl, 3
add al, dl
add al, bl
mov byte [ecx + esi], al
inc ecx
cmp byte [ecx + esi], 0
jne 0x40101b
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40106f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x2a0], eax
mov eax, dword [ebp + 0x2b0]
push edi
mov edi, dword [ebp + 0x2ac]
push edi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4010ad
xor eax, eax
jmp 0x4011fe
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp + 0x19c]
push eax
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, eax
cmp edi, ebx
je 0x4011fa
cmp edi, esi
jb 0x4010e3
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x4011fa
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x4011fa
push esi
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x19c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x401129
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401163
push 0x6f
jmp 0x40115d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40116a
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x40115b
movzx eax, ax
push eax
jmp 0x40115d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x4011f1
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, eax
cmp edi, ebx
jne 0x401192
cmp byte [ebp + 0x19c], bl
je 0x401192
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4011ce
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea esi, [edi + 1]
cmp esi, dword [ebp + 0x2b4]
jbe 0x4011b8
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
jmp 0x4011ce
push dword [ebp + 0x2b4]
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4011f1
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x2a0]
xor ecx, ebp
pop edi
call fcn.0040c69a
add ebp, 0x2a4
leave
ret 0xc
Function at 0x401317
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
push edi
mov edi, dword [ebp + 0x9c]
mov esi, 0x104
push esi
lea eax, [ebp - 0x77]
push 0
push eax
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x78], 0
call fcn.0040c620
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x4013f4
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x78]
push eax
call edi
push str._syscheck.exe
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.004012ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x78]
push eax
call ebx
cmp eax, 0xffffffff
lea eax, [ebp - 0x78]
je 0x4013a1
push 0
push 0xffffffffffffffff
push eax
call fcn.00402526
mov dword [ebp - 0x7c], eax
jmp 0x4013f3
push dword [ebp - 0x80]
push eax
call edi
push str._syscheck.dll
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.004012ae
lea eax, [ebp - 0x78]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4013f3
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x4013f3
push str.CheckSysAndDisplayErrors
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4013ec
push esi
push esi
push esi
push esi
call eax
mov dword [ebp - 0x7c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c69a
add ebp, 0x94
leave
ret
Function at 0x40140e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.0040c620
push esi
lea eax, [ebp + 0x99]
push ebx
push eax
mov byte [ebp + 0x98], bl
call fcn.0040c620
xor eax, eax
mov dword [ebp - 0x7c], ebx
lea edi, [ebp - 0x78]
add esp, 0x18
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push 0x105
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401519
push ebx
lea eax, [ebp - 0x70]
push eax
call fcn.00402770
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x7c]
push eax
call edi
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
push str._sEAC_u__8.8x
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.004012ea
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x4014e9
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x7c]
push eax
call edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push dword [ebp - 0x7c]
push eax
push str._sEAC_u__8.8x
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.004012ea
add esp, 0x18
lea eax, [ebp + 0x98]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4014bc
lea eax, [ebp + 0x98]
push eax
push dword [ebp + 0x1b0]
push dword [ebp - 0x80]
call fcn.0040127e
push dword [ebp - 0x80]
call fcn.00402618
mov ebx, eax
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x1a4
leave
ret 8
Function at 0x401535
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
mov edi, dword [ebp + 0x7c]
xor ebx, ebx
push 0x27
lea eax, [ebp + 0x45]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov byte [ebp + 0x44], bl
call fcn.0040c620
push 0x27
lea eax, [ebp - 0x1f]
push ebx
push eax
mov byte [ebp - 0x20], bl
call fcn.0040c620
push 0x3c
lea eax, [ebp + 8]
push ebx
push eax
call fcn.0040c620
add esp, 0x24
cmp esi, 0xffffffff
je 0x4015ec
push str.33D55E00_1916_4656_A942_92D420609FC0
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push ebx
push 0xffffffffffffff9c
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4015ec
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x64
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015ec
lea eax, [ebp + 0x44]
push eax
call fcn.00401000
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 7], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4015ec
cmp edi, ebx
mov eax, dword [ebp + 0x40]
je 0x4015ee
mov ecx, dword [ebp + 0x3c]
mov dword [edi], ecx
jmp 0x4015ee
mov eax, ebx
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x70
leave
ret