joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047e4
Capabilities:
Check if file exists
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], 3
jbe 0x100047f8
cmp dword [ebp + 0xc], esi
ja 0x10004866
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004866
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1000485e
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov eax, str.gxdte
push 1
push dword [ebp + 0xc]
push 2
push 0xf01ff
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.100047c4
xor eax, eax
cmp dword [ebp - 4], esi
setne al
jmp 0x10004868
lea eax, [ebp - 8]
call fcn.100047c4
xor eax, eax
pop esi
leave
ret 8

Function at 0x1000497c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100049d6
push 4
push str.gxdte
lea esi, [ebp - 8]
call fcn.10004796
cmp dword [ebp - 8], edi
je 0x100049d6
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100049d6
cmp dword [ebp - 0x20], 4
jne 0x100049d6
inc ebx
lea eax, [ebp - 8]
call fcn.100047c4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x100049e5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x23
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10004a52
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.1003af40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10004a52
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
inc ebx
cmp dword [ebp - 0x80], 0
je 0x10004a61
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 0x18c]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1003a584
add ebp, 0x190
leave
ret
Function at 0x1000a8a7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
lea edi, [ebp - 0x11]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1000a8ec
cmp eax, 3
jne 0x1000a904
push ebx
call fcn.100027e1
pop ecx
cmp eax, 0xffffffff
je 0x1000a911
cmp eax, 7
jne 0x1000a904
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x1000a913
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret
Function at 0x1001a5b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1001a5ef
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.1001a196
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x1001a5f6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100545a9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1006c144]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1006c144]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x14], eax
cmp esi, edi
jne 0x1001a64c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001a7cf
cmp dword [ebp + 8], 1
push 2
pop ebx
je 0x1001a65a
cmp dword [ebp + 8], ebx
jne 0x1001a63d
cmp dword [0x1006e8c4], 0xffffffff
jne 0x1001a6ce
push edi
push ebx
push ebx
call sub.WS2_32.dll_socket
mov dword [0x1006e8c4], eax
cmp eax, 0xffffffff
je 0x1001a6b6
cmp dword [ebp + 8], 1
mov dword [esp + 0x18], edi
mov eax, str.127.0.0.2
je 0x1001a689
mov eax, str.127.0.0.3
lea ecx, [esp + 0x18]
push ecx
call fcn.10002a14
mov eax, dword [esp + 0x18]
mov dword [0x10071b1c], eax
mov eax, ebx
push 0x32e9
mov word [0x10071b18], ax
call sub.WS2_32.dll_htons
mov word [0x10071b1a], ax
jmp 0x1001a6c1
push str.PpSendExternalMessage:_create_socket_failed
call fcn.10021e91
pop ecx
cmp dword [0x1006e8c4], 0xffffffff
je 0x1001a645
push edi
push edi
lea eax, [esp + 0x24]
call fcn.1001060a
sub esp, 0x18
mov dword [esp + 0x78], ebx
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.1000f5ee
push str.message
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 3
call fcn.1001093c
mov ecx, eax
mov byte [esp + 0x78], bl
call fcn.1000f908
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x1001a717
mov eax, 0x1005c03b
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.1000f5ee
push str.content
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 4
call fcn.1001093c
mov ecx, eax
mov byte [esp + 0x78], bl
call fcn.1000f908
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push dword [ebp + 0x14]
call fcn.1000f58c
push str.broadcast
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 5
call fcn.1001093c
mov ecx, eax
mov byte [esp + 0x78], bl
call fcn.1000f908
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.10010dab
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x1001a790
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
push 0x10
push 0x10071b18
push edi
inc ecx
push ecx
push eax
push dword [0x1006e8c4]
call sub.WS2_32.dll_sendto
xor ecx, ecx
test eax, eax
setg cl
push edi
push 1
mov esi, ecx
lea ecx, [esp + 0x3c]
call fcn.1000588b
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1000f883
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1003a584
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001c2bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100529e6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1006c144]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 0x10]
and dword [esp + 0xc], 0
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.10004562
add esp, 0xc
and dword [esp + 0x30], 0
push eax
push dword [ebp + 8]
call fcn.1001d281
pop ecx
pop ecx
lea ecx, [esp + 0xc]
call fcn.10005d25
push dword [esp + 0xc]
call fcn.10039dc6
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1001c5a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1003af40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10004b35
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003a584
leave
ret

Function at 0x1001c660
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x10052400
call fcn.1003a593
mov esi, dword [ebp + 0x230]
mov edi, dword [ebp + 0x238]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.1003af40
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp + 0x234], 1
jne 0x1001c6cc
push str.projonepodlp
jmp 0x1001c6da
cmp dword [ebp + 0x234], 2
jne 0x1001c6f9
push str.projonepotcm
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp edi, ebx
je 0x1001c6f3
push edi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
jmp 0x1001c74c
cmp dword [ebp + 0x234], ebx
jne 0x1001c747
push ebx
lea eax, [ebp]
push 2
push eax
call fcn.1001c660
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1001c71f
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
test eax, eax
je 0x1001c743
push 2
push esi
call fcn.1001c660
add esp, 0xc
push ebx
push 1
lea ecx, [ebp]
call fcn.10005a9d
jmp 0x1001c753
push 1
jmp 0x1001c72d
push 0x1005c03c
mov ecx, esi
call fcn.10004b35
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.1003a584
add ebp, 0x228
leave
ret
Function at 0x1001df93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x1001dfa4
mov eax, dword [eax + 4]
jmp 0x1001dfa7
add eax, 4
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.Softwareprojonepodlpkeyrule_secClass_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1001dfdd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
call fcn.10004346
leave
ret
xor eax, eax
leave
ret

Function at 0x1001e903
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10053c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x1006c144]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.1001e5f0
pop ecx
and dword [esp + 0x38], 0
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x20]
call fcn.10024007
mov esi, dword [ebp + 0xc]
add esp, 0xc
test esi, esi
je 0x1001e995
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x1001e970
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
mov dword [esi], eax
jne 0x1001e995
test eax, eax
je 0x1001e995
cmp edx, 2
jne 0x1001e995
push str.CryptoMode
call fcn.1001df7d
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
pop ecx
mov dword [esi], eax
lea ecx, [esp + 0x14]
call fcn.1002059b
push dword [esp + 0x14]
call fcn.10039dc6
mov eax, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e9be
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
mov dword [ebp - 0x24], eax
call esi
test eax, eax
jne 0x1001ea86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1001ea17
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001ea0e
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push edi
push dword [ebp - 0x24]
call esi
jmp 0x1001ea88
call fcn.100026c4
push eax
push edi
lea eax, [ebp - 0x20]
push str._s._08x
push eax
call fcn.100041e7
mov eax, dword [ebp - 0x1c]
add esp, 0x10
cmp dword [ebp - 8], 8
jae 0x1001ea3b
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
call esi
test eax, eax
je 0x1001ea82
push ebx
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1001ea71
cmp dword [ebp - 8], 8
mov esi, dword [ebp - 0x1c]
jae 0x1001ea5b
lea esi, [ebp - 0x1c]
call fcn.100021cd
mov esi, ebx
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.10005a9d
mov eax, esi
jmp 0x1001ea88
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x1001ea7d
lea eax, [ebp - 0x1c]
push ebx
push edi
push eax
call esi
xor esi, esi
jmp 0x1001ea62
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret

Function at 0x1001eac5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1001eb7d
cmp dword [ebp + 0xc], esi
jne 0x1001eafb
push edi
call fcn.1001f291
pop ecx
test eax, eax
je 0x1001eb7d
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1003af40
add esp, 0xc
call fcn.100026c4
push eax
push edi
push str._s._08x
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push edi
call fcn.1001ea96
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001e813
add esp, 0x20
test eax, eax
je 0x1001eb70
lea eax, [ebp - 0x20c]
push eax
call fcn.1001e9be
pop ecx
test eax, eax
jne 0x1001eb8d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x1001eb51
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003a584
leave
ret
xor eax, eax
inc eax
jmp 0x1001eb7f
Function at 0x1001eca0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x478
mov eax, 0x10054bbd
call fcn.1003a5fc
mov esi, ecx
push esi
mov dword [ebp - 0x42c], esi
call fcn.1001eb92
pop ecx
test eax, eax
je 0x1001ef1b
push esi
call fcn.1001ebd8
pop ecx
test eax, eax
je 0x1001ef1b
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 0x428], edi
call fcn.1003af40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.100026c4
push eax
lea eax, [ebp - 0x468]
push str.___08x
push eax
call fcn.100041e7
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x1001ed32
mov eax, dword [eax + 4]
jmp 0x1001ed35
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x468]
call fcn.10005a9d
lea esi, [ebp - 0x21c]
call fcn.10001b5f
test eax, eax
je 0x1001ef07
mov ecx, dword [ebp - 0x42c]
mov edx, esi
call fcn.10027384
test eax, eax
jne 0x1001ef07
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
push edi
lea eax, [ebp - 0x428]
push edi
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
push 0x1001ef23
push 1
mov eax, esi
push eax
call fcn.1000162b
cmp dword [ebp - 0x428], edi
je 0x1001ef07
xor eax, eax
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push edi
push eax
call fcn.1003af40
add esp, 0xc
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x42c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
cmp esi, edi
je 0x1001ee0c
push str..rar
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001ee0c
mov esi, str..zip
push esi
call fcn.100026c4
push eax
lea eax, [ebp - 0x468]
push str..._08x._s
push eax
call fcn.100041e7
add esp, 0x10
cmp dword [eax + 0x18], 8
jb 0x1001ee32
mov eax, dword [eax + 4]
jmp 0x1001ee35
add eax, 4
push eax
lea eax, [ebp - 0x424]
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x468]
call fcn.10005a9d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.100019df
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], edi
call fcn.10021ad6
add esp, 0xc
mov ecx, eax
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.10026f3f
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x484]
inc bl
mov byte [ebp - 4], 0
call fcn.10005c64
push dword [ebp - 0x484]
call fcn.10039dc6
pop ecx
test bl, bl
je 0x1001eee6
xor esi, esi
mov edi, dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
call fcn.1001e9be
pop ecx
test eax, eax
jne 0x1001eeec
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x1001eeb2
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001eeec
mov dword [ebp - 0x428], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.10005d25
push dword [ebp - 0x44c]
call fcn.10039dc6
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.100021fb
mov eax, dword [ebp - 0x428]
jmp 0x1001ef1d
xor eax, eax
call fcn.1003a67f
ret
Function at 0x1001ef44
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1006c144]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001f04b
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f04b
and dword [esp + 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
call fcn.1003af40
add esp, 0xc
call fcn.100026c4
push eax
push edi
push str._s._08x
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push edi
call fcn.1001ea96
pop ecx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.1001e8ae
xor esi, esi
pop ecx
inc esi
pop ecx
test eax, eax
je 0x1001f01e
and dword [esp + 0x14], 0
lea eax, [esp + 0x18]
push eax
call fcn.1001e9be
pop ecx
test eax, eax
jne 0x1001f000
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 5
jl 0x1001efdc
jmp 0x1001f01e
cmp dword [ebp + 0xc], 2
mov dword [esp + 0x10], esi
jne 0x1001f01e
push 2
mov ecx, edi
call fcn.1001eca0
pop ecx
test eax, eax
je 0x1001f01e
test ebx, ebx
je 0x1001f01e
mov dword [ebx], esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], esi
jne 0x1001f045
push esi
mov ecx, edi
call fcn.1001eca0
pop ecx
test eax, eax
je 0x1001f045
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x1001f045
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
jmp 0x1001f04d
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003a584
mov esp, ebp
pop ebp
ret
Function at 0x1001f062
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054823
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x1006c144]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x1006c144]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], edi
inc ebx
cmp byte [esi + 8], 7
mov dword [esp + 0x20], eax
jne 0x1001f0e7
push str.exts:
lea ecx, [esp + 0x48]
call fcn.10004ab2
mov dword [esp + 0xb8], edi
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], ebx
call fcn.10019cfd
pop ecx
mov byte [esp + 0x17], bl
test al, al
jne 0x1001f0ec
mov byte [esp + 0x17], 0
or dword [esp + 0xb8], 0xffffffff
test byte [esp + 0x18], bl
je 0x1001f105
push edi
push ebx
lea ecx, [esp + 0x4c]
call fcn.1000588b
cmp byte [esp + 0x17], 0
je 0x1001f26b
lea eax, [esp + 0x44]
push eax
push ecx
push esi
mov edx, str.exts
call fcn.100108dd
pop ecx
mov ecx, eax
call fcn.1000fa75
mov dword [esp + 0xb8], ebx
cmp dword [eax + 0x18], 0x10
jb 0x1001f13b
mov eax, dword [eax + 4]
jmp 0x1001f13e
add eax, 4
push 0x1005e27c
push eax
lea eax, [esp + 0x34]
push eax
call fcn.10004003
add esp, 0xc
push edi
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc0], 3
call fcn.1000588b
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.10005d74
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x40]
lea ecx, [esp + 0x2c]
call fcn.10005d74
jmp 0x1001f242
lea ecx, [esp + 0x18]
call fcn.100246b0
push eax
lea eax, [esp + 0x90]
push eax
call fcn.100013c8
pop ecx
pop ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 4
call fcn.10004b87
mov esi, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x90]
call fcn.10004ba7
mov edi, eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x90]
call fcn.10004b87
push fcn.1003af11
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x8c]
push eax
call fcn.10009029
mov ecx, dword [esp + 0x40]
add esp, 0x20
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.1000508b
push 0
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 3
call fcn.10005a9d
lea ecx, [esp + 0x18]
call fcn.1001484a
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.100249c9
test al, al
je 0x1001f18d
lea ecx, [esp + 0x2c]
call fcn.10005bae
push dword [esp + 0x2c]
call fcn.10039dc6
pop ecx
mov al, bl
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.1003a584
mov esp, ebp
pop ebp
ret
Function at 0x10021f7f
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x10050f8f
call fcn.1003a5fc
mov eax, dword [ebp + 8]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 7
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + edi*4 - 0x38]
push SysReAllocString
push dword [ebp - 0x28]
call dword [0x100711f0]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10001319
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x10021fe9
cmp esi, 0xffffffff
jne 0x10021fef
inc edi
cmp edi, 4
jb 0x10021fb8
cmp esi, ebx
je 0x10021ffa
or eax, 0xffffffff
cmp esi, eax
jne 0x1002200a
lea ecx, [ebp - 0x20]
call fcn.10001319
xor eax, eax
call fcn.1003a67f
ret
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0x70bfbbef
jne 0x10022037
cmp dword [ebp - 0x18], 0x706c646f
je 0x10022043
lea ecx, [ebp - 0x20]
call fcn.10001319
mov eax, ebx
jmp 0x10022004
mov eax, dword [ebp - 0x14]
dec eax
dec eax
je 0x10022052
dec eax
jne 0x10022037
push 3
pop ebx
jmp 0x10022037
push 2
jmp 0x1002204f

Function at 0x1002209b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x190
mov eax, dword [esp + 8]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, ecx
shr edx, 0x10
xor byte [eax], dl
inc ecx
cmp ecx, 0x1000
jl 0x100220a0
ret