joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100078fc
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.1001d120
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007941
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x100752a6
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.10001758
add esp, 8
cmp eax, 0
jne 0x10007997
mov eax, dword [0x1007e5ea]
test eax, eax
je 0x1000797e
push eax
mov ebx, eax
call fcn.10001691
inc eax
push eax
call fcn.1001be84
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 0x10007991
push ebx
call fcn.1001be8a
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 0x100079c8
push 6
call fcn.1001be90
add esp, 4
push getsockname
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100079db
mov eax, 0x100752a6
push eax
push 1
mov ebx, 0x170
call fcn.1001d160
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100079f9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007a0a
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10007a11
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.1001d120
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007a56
push ebx
call fcn.1001be8a
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 0x10007a81
push 6
call fcn.1001be90
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007a9d
push eax
mov ebx, eax
call fcn.10001691
inc eax
push eax
call fcn.1001be84
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10007aa2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10007ab3
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10007e11
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.10007e73
test eax, eax
je 0x10007e54
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10007e54
cmp word [eax], 0x5a4d
jne 0x10007e54
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10007e54
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10007f45
mov eax, dword [ebp + 8]
jmp 0x10007e6d
mov esp, ebp
pop ebp
ret 4
Function at 0x10007e73
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10007f26
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 0x10008178
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x1000819a
mov eax, 0xfffffffd
jmp 0x1000827a
mov ebx, dword [0x1007e5e6]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10008248
mov ebx, dword [0x1007e5e6]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x100081e9
mov ebx, dword [0x1007e5e6]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x100081e9
mov eax, 1
jmp 0x100081ee
mov eax, 0
test eax, eax
je 0x1000821a
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10008203
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 [0x1007e5e6]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10008270
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000827a
mov esp, ebp
pop ebp
ret 4

Function at 0x1000bd61
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ebx, dword [0x1007e62e]
push ebx
call fcn.1001be8a
add esp, 4
mov eax, 0x10075334
mov dword [0x1007e62e], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
call fcn.1001be8a
add esp, 4
mov eax, 0x10075334
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push 0
push 0x1000beb2
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1000bdc4
push 6
call fcn.1001be90
add esp, 4
mov eax, dword [0x1007e62e]
push eax
push eax
mov ebx, eax
call fcn.1000248a
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.1001be84
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]
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0x1007e62e]
call fcn.100043a6
jmp 0x1000be0b
mov esp, ebp
pop ebp
ret 8

Function at 0x1000bf3d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x1000c035
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1000bf6e
push 6
call fcn.1001be90
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x1000bf76
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c149
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.1001be84
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.1001be84
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.1001be84
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x8d4
call fcn.1001d880
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x1000c202
mov eax, 0
jmp 0x1000c346
cmp dword [ebp + 0xc], 0
jne 0x1000c22e
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000c22b
push 6
call fcn.1001be90
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x1000c256
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000c250
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000c281
push 6
call fcn.1001be90
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x100752a6
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000c2ad
push 6
call fcn.1001be90
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000c341
push 6
call fcn.1001be90
add esp, 4
jmp 0x1000c346
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1001be8a
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.1001be8a
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000f312
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.1001be84
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.1001be84
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.1001be84
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000f3cf
push 6
call fcn.1001be90
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000f3e8
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000f417
push 6
call fcn.1001be90
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x100752a6
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000f441
push 6
call fcn.1001be90
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000f4d5
push 6
call fcn.1001be90
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000f4fa
push 6
call fcn.1001be90
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x1000f502
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000f513
push ebx
call fcn.1001be8a
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.1001be8a
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.1001be8a
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x100187c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
cld
fninit
push 7
push dword [ebp + 0xc]
call fcn.100188aa
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fild dword [ebp + 8]
fstp qword [ebp - 0x18]
fsub qword [ebp - 0x18]
fsub qword [0x1007e111]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10001af1
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10018841
push 6
call fcn.1001be90
add esp, 4
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.1001ca90
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x1007e108
mov ecx, 2
call fcn.10002dfb
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10018888
push ebx
call fcn.1001be8a
add esp, 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.100188f2
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100188a4
push ebx
call fcn.1001be8a
add esp, 4
mov esp, ebp
pop ebp
ret 8

Function at 0x1001c800
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 0x1001c869
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.1001c1b0
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 0x1001ce60
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
jne 0x1001ce84
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1001cee2
jmp 0x1001cea6
mov edx, dword [esp + 0x124]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x1001cee2
mov cl, byte [edx]
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x18], cl
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1001cee2
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, 0xa
call fcn.10057310
add esp, 0x11c
ret
or eax, 0xffffffff
add esp, 0x11c
ret

Function at 0x1001cef0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1001cf0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1001cf03
pop esi
ret
Function at 0x1001d9a0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x1001da30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1001dac2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x1001dab4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1001daac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1001da75
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1001dbb0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.10062ffb
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x1001dc1a
push esi
lea edi, [eax + 0x400]
call fcn.10063024
push edi
call fcn.10062ffb
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x1001dbea
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1001dc36
push ecx
push esi
call fcn.1001f130
add esp, 8
mov ebx, eax
push esi
call fcn.10063024
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001dd20
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x1001dd3a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x1001dd48
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x1001dd41
cmp al, 0x20
je 0x1001dd52
cmp byte [edi], 0x20
jne 0x1001dd52
inc edi
lea ecx, [esp + 0xc]
call fcn.1001f1c0
mov dword [esp + 0xc], 0x10069960
mov al, byte [edi]
test al, al
je 0x1001de16
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x1001ddbe
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x1001dd99
mov al, byte [esi]
cmp al, 0x22
je 0x1001dd99
test al, al
jge 0x1001dd91
mov al, byte [esi + 1]
test al, al
je 0x1001dd99
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001dd7f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.1001f130
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.1001f450
mov al, byte [esi]
mov edi, esi
test al, al
je 0x1001de0c
lea edi, [esi + 1]
jmp 0x1001de0c
cmp al, 0x20
jg 0x1001ddca
cmp byte [esi], 0
jl 0x1001ddca
inc edi
jmp 0x1001de0c
test al, al
mov esi, edi
je 0x1001ddf2
mov al, byte [esi]
cmp al, 0x22
je 0x1001ddf2
cmp al, 0x20
jg 0x1001ddde
test al, al
jge 0x1001ddf2
test al, al
jge 0x1001ddea
mov al, byte [esi + 1]
test al, al
je 0x1001ddf2
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001ddd0
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.1001f130
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.1001f450
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x1001dd71
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x1001de29
push eax
call fcn.1001fa00
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.1001c1b0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x1006995c
call fcn.1001f3c0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x1001de90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1001dea3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.1001fa60
add esp, 4
test eax, eax
jne 0x1001deb5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x1001df2c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x1001df5e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1001df18
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1001dee8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x1001df5e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x1001df5e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x1001df47
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x10020a99
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x10020b91
call dword [sym.imp.user32.dll_EnumWindows_1]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10020aca
push 6
call fcn.1003d4b1
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x10020ad2
mov esp, ebp
pop ebp
ret 4

Function at 0x10022367
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.1003e300
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100223ac
push ebx
call fcn.1003d49f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100223d7
push 6
call fcn.1003d4b1
add esp, 4
push 0x10099eb4
push dword [ebp - 4]
mov ecx, 2
call fcn.100201a5
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100223f7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10022408
push ebx
call fcn.1003d49f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1002369a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 1
push dword [ebp + 0x10]
call fcn.100200ed
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1002011e
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100236e7
push 6
call fcn.1003d4b1
add esp, 4
jmp 0x100236ec
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100249c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ws2_32.dll_send_1]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x100249f6
push 6
call fcn.1003d4b1
add esp, 4
jmp 0x100249fb
mov esp, ebp
pop ebp
ret 0xc