joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518be8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x518c64
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x517dd8]
mov eax, 0x10
call fcn.00406208
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409638
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.00405354
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x539468]
mov dword [ebx], eax
mov dword [0x539468], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c6b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405324
ret

Function at 0x518cc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x518ce1
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x518cce
pop edi
pop esi
pop ebx
ret

Function at 0x51b300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x51b37f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004054e8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x51b394
call fcn.00405618
mov eax, dword [ebp - 4]
call fcn.00405790
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x51b35e
cmp eax, 1
je 0x51b35e
cmp eax, 3
jne 0x51b35e
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x51b31e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b386
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405324
ret
Function at 0x51cca8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51cdf7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00403544
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405790
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x51cdd9
mov eax, dword [ebp - 0xc]
call fcn.00402fcc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51cdd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.00403544
mov eax, dword [ebp - 0x58]
call fcn.00405790
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x51ce08
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x18], 0x34
jne 0x51cdb9
mov eax, dword [ebp - 0x14]
mov esi, eax
lea edi, [ebp - 0x52]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x4a]
shr ebx, 0x10
movzx esi, word [ebp - 0x4a]
and si, 0xffff
mov edi, dword [ebp - 0x46]
shr edi, 0x10
movzx eax, word [ebp - 0x46]
and ax, 0xffff
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 8]
push eax
movzx eax, bx
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
movzx eax, si
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
movzx eax, di
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x78]
mov ecx, 3
mov eax, 0x51ce14
call fcn.0040b100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cdd9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00402fe8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cdfe
lea eax, [ebp - 0x58]
call fcn.00405300
lea eax, [ebp - 4]
call fcn.00405300
ret

Function at 0x51d574
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405780
xor eax, eax
push ebp
push 0x51d608
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405300
mov eax, dword [ebp - 4]
test eax, eax
je 0x51d5b0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test bx, bx
jbe 0x51d5ea
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
movzx edx, word [ebp - 6]
xor dx, 0xf
call fcn.004054e8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004055cc
inc edi
dec bx
jne 0x51d5bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d60f
lea eax, [ebp - 0xc]
call fcn.00405300
lea eax, [ebp - 4]
call fcn.00405300
ret
Function at 0x51d618
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51d6da
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b78
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b78
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.0040a694
mov eax, dword [ebp - 0x58]
call fcn.00405790
push eax
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0x51d6f4
push edi
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00405694
mov eax, dword [ebp - 0x5c]
call fcn.00405790
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x51d6bf
mov esi, dword [ebp - 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d6e1
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00405324
ret
Function at 0x51e128
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405780
xor eax, eax
push ebp
push 0x51e2fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x5394a0]
call fcn.00405398
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403544
mov eax, dword [ebp - 8]
call fcn.00497574
test al, al
jne 0x51e1a5
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040a694
cmp dword [ebp - 4], 0
jne 0x51e1b8
lea eax, [ebp - 4]
mov edx, 0x51e314
call fcn.00405398
lea edx, [ebp - 0x10]
mov eax, dword [0x5328f4]
call fcn.004ab5d8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x51e31c
call fcn.00406de4
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x51e32c
call fcn.00406de4
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0xc]
call fcn.0040a694
lea eax, [ebp - 0x12c]
push eax
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.0040a7d4
mov edx, dword [ebp - 0x130]
pop eax
call fcn.004055cc
mov eax, dword [ebp - 0x12c]
call fcn.00405790
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00405790
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x20]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.00405570
push dword [ebp - 0x138]
push 0x51e344
push dword [ebp - 4]
push 0x51e350
lea eax, [ebp - 0x134]
mov edx, 4
call fcn.00405694
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x1c]
call fcn.00405c88
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00405c98
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e305
lea eax, [ebp - 0x138]
mov edx, 4
call fcn.00405324
lea eax, [ebp - 0x1c]
call fcn.00405b08
lea eax, [ebp - 0x18]
call fcn.00406da0
lea eax, [ebp - 0x14]
call fcn.00406da0
lea eax, [ebp - 0x10]
call fcn.00406da0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405324
ret
Function at 0x520760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x520910
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
or ecx, 0xffffffff
mov eax, 0x520928
call fcn.0051d260
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x520954
call fcn.0052107c
mov eax, dword [0x5328a8]
mov eax, dword [eax]
call fcn.0051592c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5208dc
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 0x14]
call fcn.0041abd4
mov ebx, eax
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xc]
mov edx, dword [0x5394a0]
call fcn.00405618
mov ecx, dword [ebx]
lea eax, [ebp - 0x10]
mov edx, dword [0x5394a0]
call fcn.00405618
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040a694
mov eax, dword [ebp - 4]
call fcn.00497574
test al, al
jne 0x520829
mov eax, dword [ebp - 4]
call fcn.0049757c
mov eax, dword [ebp - 0xc]
call fcn.0040a240
test al, al
je 0x5208b4
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00472e98
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0xc]
call fcn.00405728
jne 0x520884
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005210a4
test al, al
jne 0x520881
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x520968
call fcn.0051d260
jmp 0x520884
inc dword [ebp - 0x18]
xor eax, eax
push ebp
push 0x5208aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405790
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5208b4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [eax + 8]
dec edx
mov eax, dword [0x5328a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0051593c
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x5207d6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x5209a4
call fcn.0051d260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520917
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405324
ret
Function at 0x522588
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5225f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5225d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
lea eax, [ebp - 4]
call fcn.00522528
mov eax, dword [ebp - 4]
call fcn.00405790
push eax
push 0x522608
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5225e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522600
lea eax, [ebp - 4]
call fcn.00405300
ret
Function at 0x10001619
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.10026462
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x10041fe6], 0
jne 0x100016f3
mov ebx, dword [0x10041fea]
call fcn.10001254
mov eax, 0
cmp eax, ecx
jl 0x1000167b
push 1
call fcn.10026468
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x1003f2c1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001803
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100016a7
push ebx
call fcn.1002645c
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.10001ab8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x100016c8
push ebx
call fcn.1002645c
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x10041fe6], eax
push htons
push 0
push 0x1000c7f4
push 1
mov ebx, 0x9dc
call fcn.100268e0
add esp, 0x10
mov dword [0x10041fee], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x10041fee]
push dword [0x10041fe6]
call fcn.100098db
push htons
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.100268e0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push 0
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10001774
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000c448
cmp dword [ebp - 8], 0
je 0x100017c0
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100017b7
push 1
push 0xffffffff
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.1000c4d5
lea eax, [ebp - 8]
push eax
call fcn.1000c74c
mov eax, dword [ebp - 0xc]
jmp 0x100017c8
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10002848
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.100028aa
test eax, eax
je 0x1000288b
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x1000288b
cmp word [eax], 0x5a4d
jne 0x1000288b
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x1000288b
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000297c
mov eax, dword [ebp + 8]
jmp 0x100028a4
mov esp, ebp
pop ebp
ret 4

Function at 0x100028aa
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x1000295d
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x100071c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10026ff0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007209
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x1003f2df
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.10001ad7
add esp, 8
cmp eax, 0
jne 0x1000725f
mov eax, dword [0x10041ffe]
test eax, eax
je 0x10007246
push eax
mov ebx, eax
call fcn.10001b8d
inc eax
push eax
call fcn.10026462
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10007259
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10007290
push 6
call fcn.10026468
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100072a3
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x170
call fcn.10027670
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100072c1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100072d2
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100072d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10026ff0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000731e
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10007349
push 6
call fcn.10026468
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007365
push eax
mov ebx, eax
call fcn.10001b8d
inc eax
push eax
call fcn.10026462
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000736a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000737b
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10007829
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x1000784b
mov eax, 0xfffffffd
jmp 0x1000792b
mov ebx, dword [0x10041ffa]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100078f9
mov ebx, dword [0x10041ffa]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x1000789a
mov ebx, dword [0x10041ffa]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x1000789a
mov eax, 1
jmp 0x1000789f
mov eax, 0
test eax, eax
je 0x100078cb
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x100078b4
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x10041ffa]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10007921
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000792b
mov esp, ebp
pop ebp
ret 4
Function at 0x100127d3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001280c
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 8
push dword [ebp - 0x10]
call fcn.10001a7b
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10026ff0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001285e
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001288a
push 6
call fcn.10026468
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001289d
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x170
call fcn.10027670
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x100128bb
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100128cc
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c9b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.10026462
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x100420e2], 0
jne 0x1001ca92
mov ebx, dword [0x10041fea]
call fcn.10001254
mov eax, 0
cmp eax, ecx
jl 0x1001ca1a
push 1
call fcn.10026468
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x1003f2c1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001803
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001ca46
push ebx
call fcn.1002645c
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.10001ab8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001ca67
push ebx
call fcn.1002645c
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x100420e2], eax
push htons
push 0
push 0x1000c7f4
push 1
mov ebx, 0x9dc
call fcn.100268e0
add esp, 0x10
mov dword [0x100420e6], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x100420e6]
push dword [0x100420e2]
call fcn.100098db
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001caf2
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000c448
cmp dword [ebp - 8], 0
je 0x1001cb4b
push 2
push dword [ebp - 8]
call fcn.1001c388
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001cb42
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 8]
call fcn.1000c4d5
lea eax, [ebp - 8]
push eax
call fcn.1000c74c
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1001cb5c
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100252e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10026ff0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10025329
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10025354
push 6
call fcn.10026468
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10025367
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x170
call fcn.10027670
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10025385
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10025396
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1002585b
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret

Function at 0x10027360
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100273c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.100266d0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10027d70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10027d8e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10027d83
pop esi
ret