joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475a00
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4242
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x4d7a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x370], ecx
lea eax, [ebp - 0x36c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
mov ecx, dword [ebp - 0x370]
push ecx
push str.Data_Files__.txt_.txtAll_Files__._.
push 6
push 0
push 0x4c103c
push 0
lea ecx, [ebp - 0x1f4]
call fcn.004882d2
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f8], 0x58
call fcn.0040fd30
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
movzx eax, byte [edx + 0xd4]
test eax, eax
jne 0x475aa0
mov dword [ebp - 0x1f8], 0x4c
lea ecx, [ebp - 0x1f4]
call fcn.004879a5
mov ecx, dword [ebp - 0x1f8]
mov dword [eax], ecx
lea ecx, [ebp - 0x1f4]
call fcn.00488aba
cmp eax, 2
jne 0x475ae7
lea edx, [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004880da
jmp 0x475c19
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00488da3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.0047886d
mov byte [ebp - 4], 2
push 0
push 0x1001
lea ecx, [ebp - 0x25c]
call fcn.0040ff40
push eax
lea ecx, [ebp - 0x208]
call fcn.00478e3a
test eax, eax
jne 0x475b70
lea ecx, [ebp - 0x36c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.004789ef
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0040fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004880da
jmp 0x475c19
lea edx, [ebp - 0x208]
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x24c], 0x475170
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x370]
call fcn.00487321
mov dword [ebp - 0x20c], eax
lea ecx, [ebp - 0x254]
push ecx
push 1
mov ecx, dword [ebp - 0x370]
call fcn.0045da80
mov byte [ebp - 0x230], 0x86
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x370]
call fcn.004872fe
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x208]
call fcn.00478758
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.004789ef
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0040fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004880da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a6da
mov esp, ebp
pop ebp
ret
Function at 0x47efd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x47effd
cmp dword [edi + 0x54], 0
jne 0x47effd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0047bfcc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0047ef9a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x47f6c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x47f70d
call fcn.0047bfcc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47f70d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x47f750
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x47f739
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47f739
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47f74d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4816d0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b45d7
call fcn.0049c4ec
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4816f5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x48173b
lea ecx, [ebp - 0x10]
call fcn.0040fe00
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00478259
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004102b0
mov eax, esi
call fcn.0049c5c4
ret 8
Function at 0x486fe5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x48702c
call fcn.0047bfcc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x48702c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x487048
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00486b5f
mov esi, eax
test edi, edi
je 0x487046
test ebx, ebx
je 0x487046
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49a6da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d7a50]
jne 0x49a6e4
repz ret
jmp fcn.004a18cc

Function at 0x4ab056
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a1211
and dword [ebp - 4], 0
cmp dword [0x4db840], 0
mov ebx, eax
jne 0x4ab107
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ab1b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c67b8
push edi
call esi
test eax, eax
je 0x4ab1b8
push eax
call fcn.004a119f
mov dword [esp], 0x4c67a8
push edi
mov dword [0x4db840], eax
call esi
push eax
call fcn.004a119f
mov dword [esp], 0x4c6794
push edi
mov dword [0x4db844], eax
call esi
push eax
call fcn.004a119f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4db848], eax
call esi
push eax
call fcn.004a119f
pop ecx
mov dword [0x4db850], eax
test eax, eax
je 0x4ab107
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a119f
pop ecx
mov dword [0x4db84c], eax
mov eax, dword [0x4db84c]
cmp eax, ebx
je 0x4ab15f
cmp dword [0x4db850], ebx
je 0x4ab15f
push eax
call fcn.004a121a
push dword [0x4db850]
mov esi, eax
call fcn.004a121a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ab15f
test edi, edi
je 0x4ab15f
call esi
test eax, eax
je 0x4ab156
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ab156
test byte [ebp - 0xc], 1
jne 0x4ab15f
or dword [ebp + 0x10], 0x200000
jmp 0x4ab198
mov eax, dword [0x4db844]
cmp eax, ebx
je 0x4ab198
push eax
call fcn.004a121a
pop ecx
test eax, eax
je 0x4ab198
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ab198
mov eax, dword [0x4db848]
cmp eax, ebx
je 0x4ab198
push eax
call fcn.004a121a
pop ecx
test eax, eax
je 0x4ab198
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4db840]
call fcn.004a121a
pop ecx
test eax, eax
je 0x4ab1b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ab1ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e521
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1001e2c0]
mov edx, dword [0x1001e29c]
mov ecx, dword [0x1001e2e4]
sub eax, edx
mov dword [0x1001e2ac], eax
mov eax, dword [0x1001e2cc]
lea edx, [eax + ecx]
test edx, edx
je 0x1000e550
sub eax, dword [0x1001e2a0]
mov dword [0x1001e290], eax
mov eax, dword [0x1001e2bc]
mov ecx, dword [0x1001e2a4]

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x46cf00
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00441f50
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046dde0
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046dde0
pop ecx
pop ecx
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46cf8a
cmp byte [ebp + 8], al
je 0x46cfae
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x46d06f
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x46d06f
lea ecx, [ebp - 0x20034]
call fcn.0046e199
test al, al
je 0x46cfae
lea ecx, [ebp - 0x10034]
call fcn.0046e199
test al, al
je 0x46cfb4
cmp byte [ebp + 8], 0
jne 0x46cfed
xor al, al
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409cb3
lea ecx, [ebp - 0x34]
call fcn.0046d2c1
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.0040988f
add bl, 1
jne 0x46cfae
lea ecx, [ebp - 0x10034]
call fcn.0046e199
test al, al
je 0x46cfae
lea eax, [ebp - 0x20034]
push str..
push eax
call fcn.00429038
lea eax, [ebp - 0x20034]
push eax
call fcn.00424963
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.00424963
xor ecx, ecx
mov dword [ebp - 0x20], 2
add esp, 0x10
mov word [ebp + eax*2 - 0x10032], cx
lea eax, [ebp - 0x20034]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46cfae
mov al, 1
jmp 0x46cfb0
Function at 0x46d3a9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.0040a961
lea ecx, [esp + 0x30]
call fcn.0040a961
lea ecx, [esp + 0x20]
call fcn.0040a961
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00403aa2
mov ecx, dword [esp + 0x10]
call fcn.0046e199
test al, al
je 0x46d400
push str..
lea ecx, [esp + 0x14]
call fcn.004033c6
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.0040525f
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x46d4a0
cmp al, 1
jne 0x46d4a0
test byte [esp + 0x40], 0x10
jne 0x46d47b
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040a8c7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00406350
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004033c6
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x46d497
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d433
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d433
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46d4ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.0040988f
lea ecx, [esp + 0x30]
call fcn.0040988f
lea ecx, [esp + 0x10]
call fcn.0040988f
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473d1e
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00441f50
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x473dd4
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.0041fb21
lea eax, [ebp - 0x10004]
push eax
call fcn.00424963
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x473d97
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x473d97
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x473dac
cmp byte [ebp + 0x10], al
je 0x473dd4
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473ddc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00422340
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d2eb
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x473e6b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x473dcb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x473dd6
Function at 0x1000ab9e
Capabilities:
Get file attributes

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.1001c480
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.10016000
mov eax, dword [esp]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov ebx, eax
and ebx, 0x10
and ebx, ebx
jne 0x1000abcc
mov eax, 1
jmp 0x1000abce
xor eax, eax
jmp 0x1000abd2
push dword [esp]
call fcn.1001c4e0
add esp, 4
pop ebx
ret 4
Function at 0x1000f557
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x1a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1000f55e
call fcn.1001c480
mov edx, dword [esp + 0x74]
lea ecx, [esp]
call fcn.10016000
mov edx, dword [esp + 0x78]
lea ecx, [esp + 4]
call fcn.10016000
mov edx, dword [esp + 0x80]
lea ecx, [esp + 8]
call fcn.10016000
mov dword [esp + 0x60], 0x4000200
lea ebp, [esp + 0xc]
mov dword [ebp], 0x44
mov edx, dword [esp]
xor ecx, ecx
call fcn.10016130
jne 0x1000f62d
push edx
call fcn.1001c2e0
pop edx
push eax
lea edx, [0x1001f226]
push edx
call fcn.1001c320
mov edx, dword [esp + 4]
push edx
call fcn.1001c320
lea edx, [0x1001f226]
push edx
call fcn.1001c320
lea eax, [esp + 0x68]
push eax
call fcn.1001c380
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.10016130
jne 0x1000f62b
mov edx, dword [esp + 0x64]
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c320
lea edx, [0x1001f21e]
push edx
call fcn.1001c320
mov edx, dword [esp + 8]
push edx
call fcn.1001c320
lea eax, [esp + 0x68]
push eax
call fcn.1001c380
jmp 0x1000f649
mov edx, dword [esp + 4]
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c320
lea eax, [esp + 0x68]
push eax
call fcn.1001c380
mov ebx, dword [esp + 0x7c]
and ebx, 2
and ebx, ebx
je 0x1000f665
lea ebp, [esp + 0xc]
mov dword [ebp + 0x2c], 1
mov word [ebp + 0x30], 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x70]
push 0
push 0
push 0
mov eax, dword [esp + 0x84]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessW
and eax, eax
je 0x1000f6d6
mov ebx, dword [esp + 0x7c]
and ebx, 1
and ebx, ebx
je 0x1000f6be
push 0xffffffff
lea ebp, [esp + 0x54]
push dword [ebp]
call sub.KERNEL32.dll_WaitForSingleObject
lea ebp, [esp + 0x50]
push dword [ebp]
call sub.KERNEL32.dll_CloseHandle
lea ebp, [esp + 0x50]
push dword [ebp + 4]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
push dword [esp + 0x64]
call fcn.1001c4e0
push dword [esp + 8]
call fcn.1001c4e0
push dword [esp]
call fcn.1001c4e0
push dword [esp + 4]
call fcn.1001c4e0
add esp, 0x68
pop ebx
pop ebp
ret 0x10

Function at 0x10011d85
Capabilities:
Print debug messages

Disassembly:
xor eax, eax
push eax
call fcn.1001c480
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.10016000
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
lea edx, str.PORT:
push edx
call fcn.1001c320
mov edx, dword [esp + 8]
push edx
call fcn.1001c320
call fcn.10016182
add dword [esp], edx
call sub.KERNEL32.dll_OutputDebugStringW
call fcn.100161a0
xor eax, eax
push dword [esp]
call fcn.1001c4e0
add esp, 4
ret 4
Function at 0x10013af4
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.1001c480
mov eax, dword [0x10023e28]
mov dword [0x10023fc0], eax
cmp dword [section..share], 0
jne 0x10013b15
inc dword [0x10023fdc]
inc dword [section..share]
push dword [0x10023fc0]
call sub.KERNEL32.dll_DisableThreadLibraryCalls
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
push 0x7fff
call fcn.100185b0
lea eax, [esp + 4]
push eax
call fcn.1001c380
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001bc60
push 0x1002406c
call fcn.1001c380
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
push 1
push dword [0x1002406c]
call fcn.1001a093
push 0x10024140
call fcn.1001c380
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x10023fc0]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001bc60
push 0x10023e40
call fcn.1001c380
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
push 1
push dword [0x10023e40]
call fcn.1001a093
push 0x10023eec
call fcn.1001c380
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
push dword [0x10023e40]
call fcn.1001a150
push 0x10024160
call fcn.1001c380
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [0x10024160]
call fcn.10018bf0
push 0x10023f50
call fcn.1001c380
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018bf0
push 0x10024020
call fcn.1001c380
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018bf0
push 0x10023f38
call fcn.1001c380
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.1001c2e0
pop edx
push eax
push edx
call fcn.1001c2e0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018bf0
push 0x10024014
call fcn.1001c380
xor eax, eax
push dword [esp]
call fcn.1001c4e0
add esp, 4
ret