joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003685
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
or ebx, 0xffffffff
call esi
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
add edi, 0xea60
call fcn.10008237
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.1000846a
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.10008250
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100083d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100083c9
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.10002e63
jmp 0x1000370d
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003615
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10003731
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x100036ee
push 0x46
call fcn.100026cd
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
leave
ret
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call sub.WS2_32.dll_send
jmp 0x1000371b

Function at 0x10003741
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
add esi, 0xea60
call fcn.10008237
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.10008426
lea eax, [ebp - 0x24]
call fcn.100083d4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100083c9
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.100072ad
pop ecx
test eax, eax
jne 0x100037f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x100037d9
call edi
cmp eax, esi
jae 0x100037d9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x100037a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.1000269d
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
jbe 0x10003847
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x10003826
mov eax, ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x10003847
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10003818
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
call fcn.1000d8ad
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100037f1
Function at 0x10003b0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003a94
test eax, eax
je 0x10003b58
mov eax, dword [0x1003ffdc]
shl esi, 5
add eax, esi
xor esi, esi
cmp dword [eax + 0x10], esi
jne 0x10003b58
cmp dword [eax + 0x14], esi
je 0x10003b58
cmp dword [eax + 0x18], esi
jbe 0x10003b51
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x1003cc5c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x10003b39
mov dword [eax + 0x10], 1
pop esi
pop ebp
ret

Function at 0x10003b5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003a94
test eax, eax
je 0x10003ba6
mov eax, dword [0x1003ffdc]
shl esi, 5
add eax, esi
cmp dword [eax + 0x10], 0
je 0x10003ba6
cmp dword [eax + 0x14], 0
je 0x10003ba6
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x10003ba2
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x1003cc5c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x10003b8a
and dword [eax + 0x10], 0
pop esi
pop ebp
ret

Function at 0x1000427b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x100042f0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001f330
or dword [0x10038074], 0xffffffff
or dword [0x10036024], 0xffffffff
or dword [0x1003c1a8], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + esi - 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x10036024], eax
cmp eax, ebx
je 0x100042f0
push 0x10004112
xor eax, eax
call fcn.1000de0e
pop ecx
mov dword [0x1003c1a8], eax
pop ebx
leave
ret

Function at 0x1000456f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea ebx, [edi + 4]
push esi
mov esi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp + 0xc]
jbe 0x1000458a
xor eax, eax
jmp 0x100045c2
call fcn.1000300f
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x100045c0
mov eax, dword [ebp + 8]
sub eax, esi
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp - 4]
mov edx, ecx
and edx, 3
mov dl, byte [edx + ebx]
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + esi]
xor dl, byte [ebx + eax]
inc ecx
mov byte [eax], dl
cmp ecx, edi
jb 0x100045a2
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x100045c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
lea eax, [edi - 4]
mov esi, ecx
cmp eax, dword [ebp + 0xc]
jbe 0x100045db
xor eax, eax
jmp 0x10004606
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x10004604
sub esi, dword [ebp + 8]
push ebx
mov ecx, dword [ebp + 8]
mov ebx, edx
and ebx, 3
mov bl, byte [ebx + eax]
add ecx, edx
xor bl, byte [esi + ecx]
inc edx
mov byte [ecx], bl
cmp edx, edi
jb 0x100045ec
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10004763
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp + 0xc]
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
push 0
push 2
push dword [0x100408b0]
push dword [0x100408a8]
push dword [0x100408ac]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x100047a7
xor eax, eax
inc eax
jmp 0x1000486c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10004857
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100047bd
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10004857
push str.sysnative
push edx
call fcn.100188d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10004857
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.10020520
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x100315a4]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 9
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000480f
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001f330
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004832
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001f330
add esp, 0xc
push ebx
call fcn.10004870
pop ecx
jmp 0x1000486c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.1000269d
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10004870
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1104
call fcn.10020340
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [esp + 0x114], ax
xor ebx, ebx
lea eax, [esp + 0x116]
push ebx
push eax
call fcn.10020520
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.10020520
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [eax + 8], ebx
mov edi, 0x400
push edi
lea eax, [esp + 0x114]
push eax
push dword [esi]
mov dword [esp + 0x18], ebx
call fcn.100031c8
add esp, 0xc
test eax, eax
jne 0x100048fc
push dword [esi + 4]
push 7
call fcn.1000266f
pop ecx
pop ecx
jmp 0x10004a75
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, edi
jae 0x10004920
lea eax, [esp + 0x910]
push eax
push edi
call ebx
lea eax, [esp + 0x910]
mov dword [esp + 0xc], eax
call fcn.1000dec2
push dword [esi + 0xc]
lea eax, [esp + 0x114]
push dword [esi + 8]
push dword [esp + 0x14]
push 0
push dword [esi + 0x10]
push eax
push 0
push 2
push dword [0x100408a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov edi, eax
call fcn.1000df05
test edi, edi
je 0x1000495f
xor eax, eax
inc eax
jmp 0x10004a77
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x1000499b
test ebx, ebx
je 0x1000499b
cmp dword [0x100408b8], 1
jne 0x1000499b
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, esi
call fcn.10004763
pop ecx
pop ecx
jmp 0x10004a77
call edi
cmp eax, 0x57
jne 0x100049ba
mov eax, dword [esi + 8]
cmp dword [eax], 0x48
jne 0x100049ba
test ebx, ebx
je 0x100049ba
call edi
push eax
push dword [esi]
push 0x4a
jmp 0x10004a6d
call edi
cmp eax, 3
jne 0x10004a66
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x100049cc
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x10004a66
push str.sysnative
push edx
call fcn.100188d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10004a60
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10020520
mov eax, dword [str.system32]
mov dword [edi], eax
mov eax, dword [0x100315a4]
mov dword [edi + 4], eax
add esp, 0xc
add edi, 9
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004a1c
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1001f330
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004a3b
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec edi
push edi
call fcn.1001f330
add esp, 0xc
push esi
call fcn.10004870
jmp 0x10004995
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push dword [esi]
push 0x29
call fcn.1000269d
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004a7e
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x100408a4]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10004ae1
cmp dword [esi + 0x14], edi
jne 0x10004ae1
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x10004b0a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10004ace
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x10004ace
push esi
call fcn.10004870
pop ecx
jmp 0x10004b0d
call ebx
push eax
push dword [esi]
push 0x29
call fcn.1000269d
add esp, 0xc
xor eax, eax
jmp 0x10004b0d
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10004b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10004ad5
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x10004b11
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
test byte [esi + 0x10], 4
push edi
jne 0x10004b70
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124c
test eax, eax
je 0x10004b70
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10004a7e
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
call fcn.1000460a
pop ecx
test eax, eax
mov eax, dword [esi + 0xc]
pop ecx
jne 0x10004b63
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10004b75
push dword [eax + 4]
call fcn.1000d5fe
pop ecx
mov eax, edi
jmp 0x10004b75
call fcn.10004a7e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004b7a
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0xa000
call fcn.100081bc
pop ecx
mov edi, eax
mov ebx, 0x4000
push ebx
push edi
mov dword [ebp - 0x1c], edi
call fcn.10008382
mov esi, 0x400
push esi
push edi
mov dword [ebp - 8], eax
call fcn.10008382
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.10008382
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.10008382
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.10008382
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10020520
mov dword [ebp - 0x68], edi
mov edi, dword [ebp + 0x1c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x34
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ebx
push dword [ebp - 8]
xor edi, edi
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], ax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x60], edi
call fcn.100031c8
add esp, 0xc
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.100031c8
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.100031c8
add esp, 0xc
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100031c8
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call ebx
cmp eax, esi
jae 0x10004c6b
push dword [ebp - 4]
push esi
call ebx
mov eax, dword [ebp - 4]
jmp 0x10004c6e
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x68]
push ecx
push eax
mov eax, dword [ebp + 0x18]
push edi
or eax, 0x8000400
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10004c9e
xor edi, edi
inc edi
jmp 0x10004cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str._s_as__s_s:__d
push 0x35
call fcn.100026e2
add esp, 0x18
push dword [ebp - 0x1c]
call fcn.10008207
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [0x1003ffec], edi
jne 0x10004e92
push 0x80004
call fcn.100187ff
pop ecx
mov dword [0x1003ffec], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003ffec]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10004ed1
mov ebx, dword [ebp + 8]
jmp 0x10004ed1
push dword [esi + 8]
mov eax, dword [0x1003ffec]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10019b3c
add esp, 0x10
test eax, eax
je 0x10004ed7
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10004eae
jmp 0x10004edb
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x1003ffec]
call fcn.100012d0
add esp, 0xc
call fcn.10004ef9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10004fbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.10008237
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.100016cb
lea eax, [ebp - 0x20]
push eax
call fcn.10008250
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000171b
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x100315c0
push eax
call fcn.10001825
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001887
push eax
lea eax, [ebp - 0x10]
call fcn.10001884
push eax
call fcn.100012d0
lea eax, [ebp - 0x10]
push eax
call fcn.10001864
add esp, 0x10
leave
ret

Function at 0x10005034
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10005115
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100081bc
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10008382
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10008382
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10008237
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10008426
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10008426
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10005192
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.1000266f
pop ecx
pop ecx
push edi
call fcn.10008207
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000519e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100081bc
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10008382
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10008382
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10008237
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10008426
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10008426
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10005219
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.1000266f
pop ecx
pop ecx
push edi
call fcn.10008207
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005225
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.100187ff
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.10020520
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.10008237
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.10008250
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10008426
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.100016cb
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.1000171b
push esi
push 0x100315cc
push ebx
call fcn.10019c68
add esp, 0x24
test eax, eax
jne 0x100052b7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x100315d0
push esi
push ebx
call fcn.10018f67
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x10031530
push eax
call fcn.10001825
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005318
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.1000269d
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001887
push eax
lea eax, [ebp - 0x10]
call fcn.10001884
push eax
call fcn.100012d0
add esp, 0xc
push ebx
call fcn.10018722
pop ecx
jmp 0x100053fe
push ebx
call fcn.10018722
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x10005381
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001825
add esp, 0x24
jmp 0x100053c5
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001825
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000531f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001887
push eax
lea eax, [ebp - 0x10]
call fcn.10001884
push eax
call fcn.100012d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.10001864
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000540d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x1000542b
xor eax, eax
jmp 0x1000544c
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10005427
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.10020520
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10005519
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x1003fffc], edi
je 0x10005536
xor eax, eax
jmp 0x10005652
push dword [0x100381ac]
xor esi, esi
inc esi
mov dword [0x1003fffc], esi
call sub.WS2_32.dll_ntohl
lea edx, [eax + 8]
mov dword [ebp - 8], edx
cmp edx, 0x4000
jbe 0x10005562
push 0x51
call fcn.100026cd
pop ecx
jmp 0x1000552f
push 8
pop ecx
cmp edx, ecx
jbe 0x1000557f
mov ebx, ecx
and ebx, 3
mov bl, byte [ebx + 0x100381a8]
xor byte [ecx + 0x100381a8], bl
inc ecx
cmp ecx, edx
jb 0x10005569
push esi
push eax
push 0x100381b0
lea esi, [ebp - 0x68]
call fcn.10001dea
add esp, 0xc
test eax, eax
jne 0x100055a2
push 0x51
call fcn.100026cd
pop ecx
jmp 0x10005630
lea ebx, [ebp - 0x68]
call fcn.100021d8
test eax, eax
jne 0x100055b9
push dword [ebp - 0x1c]
call fcn.10005504
pop ecx
jmp 0x10005595
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
push edi
push dword [ebp - 0x34]
mov dword [ebp - 4], esi
mov dword [0x1003fff4], eax
call fcn.10020520
mov ebx, dword [ebp - 0x60]
add esp, 0xc
push esi
push edi
push 0x20
lea esi, [ebp - 0xc]
pop edi
call fcn.1000d3df
pop ecx
pop ecx
test eax, eax
jne 0x1000560b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52
call fcn.1000266f
push dword [ebp - 4]
call fcn.10005504
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x10005630
mov eax, dword [ebp - 0x14]
push fcn.10005504
push 0
mov dword [0x10040000], eax
mov eax, dword [ebp - 0x18]
push 3
push eax
push dword [ebp - 4]
mov dword [0x10040004], eax
call fcn.1000ea37
add esp, 0x14
push 8
pop eax
cmp dword [ebp - 8], eax
jbe 0x1000564f
mov ecx, eax
and ecx, 3
mov cl, byte [ecx + 0x100381a8]
xor byte [eax + 0x100381a8], cl
inc eax
cmp eax, dword [ebp - 8]
jb 0x10005638
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret