joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013ad
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x100013e6
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x100013d4
mov al, 1
jmp 0x1000142e
cmp dword [ebx + 0x54], ecx
jne 0x100013dd
mov al, 2
jmp 0x1000142e
cmp dword [ebx + 0x7c], ecx
jmp 0x1000142e
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x100013fb
mov al, 4
jmp 0x1000142e
cmp ecx, 5
jne 0x1000141b
cmp ebx, 0
jne 0x10001409
mov al, 5
jmp 0x1000142e
cmp ebx, 1
jne 0x10001412
mov al, 6
jmp 0x1000142e
cmp ebx, 2
jne 0x1000141b
mov al, 7
jmp 0x1000142e
cmp ecx, 6
jne 0x1000142e
cmp ebx, 0
jne 0x10001427
mov al, 8
cmp ebx, 1
jne 0x1000142e
mov al, 9
pop ebx
pop edx
leave
ret
Function at 0x100082a1
Capabilities:
Access peb ldr_data

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x1000c3d6
mov eax, 0xfffffffd
jmp 0x1000c4b3
mov ebx, dword [0x10081aa4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1000c481
mov ebx, dword [0x10081aa4]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x1000c425
mov ebx, dword [0x10081aa4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x1000c425
mov eax, 1
jmp 0x1000c427
xor eax, eax
test eax, eax
je 0x1000c453
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x1000c43c
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 [0x10081aa4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000c4a9
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000c4b3
mov esp, ebp
pop ebp
ret 4

Function at 0x1000cac1
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.1004c420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000cb06
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x1006f2f0
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.1000151e
add esp, 8
cmp eax, 0
jne 0x1000cb5c
mov eax, dword [0x10081ab0]
test eax, eax
je 0x1000cb43
push eax
mov ebx, eax
call fcn.100019bc
inc eax
push eax
call fcn.1004b147
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 0x1000cb56
push ebx
call fcn.1004b14d
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 0x1000cb8d
push 6
call fcn.1004b13b
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000cba0
mov eax, 0x1006f2f0
push eax
push 1
mov ebx, 0x170
call fcn.1004cf90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x1000cbbe
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000cbcf
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000cbd6
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.1004c420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000cc1b
push ebx
call fcn.1004b14d
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 0x1000cc46
push 6
call fcn.1004b13b
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000cc62
push eax
mov ebx, eax
call fcn.100019bc
inc eax
push eax
call fcn.1004b147
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000cc67
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000cc78
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1000cfd6
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.100082a1
test eax, eax
je 0x1000d019
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x1000d019
cmp word [eax], 0x5a4d
jne 0x1000d019
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x1000d019
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10008373
mov eax, dword [ebp + 8]
jmp 0x1000d032
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dd0e
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push dword [0x10081880]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001dd3c
push 6
call fcn.1004b13b
add esp, 4
push 0x80000301
push 0
push 0x64
push 1
mov ebx, 0x67c
call fcn.1004d710
add esp, 0x10
mov dword [ebp - 4], esp
push dword [0x10081880]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001dd7f
push 6
call fcn.1004b13b
add esp, 4
push dword [0x10081880]
call fcn.1001ddc3
push 0x80000301
push 0
push 0x10081aec
push 0
push 0
push 0
push 0x80000006
push 0
push 0x1001e21e
push 3
mov ebx, 0
mov eax, 0x1004faf0
call fcn.1004bef0
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x1001e020
Capabilities:
Enumerate process modules
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x1008
call fcn.1004b147
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x1007e92e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
push 0x20
call fcn.1004b147
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x1000
mov ebx, dword [ebp - 4]
call fcn.10001166
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001e0b7
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001e0d9
push 6
call fcn.1004b13b
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.10002322
mov dword [ebp - 0x10], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fdiv qword [0x1006fa9b]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.10002322
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1001e1ff
mov ebx, dword [ebp - 4]
call fcn.10001166
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1001e15d
push 4
call fcn.1004b13b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1001e170
push 1
call fcn.1004b13b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1001e1a6
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0xffffffff
push 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001e1d5
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001e1f7
push 6
call fcn.1004b13b
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x1001e132
add esp, 0xc
mov ebx, dword [ebp - 4]
push ebx
call fcn.1004b14d
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1004b14d
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x1001ea10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [0x10081c48], 0x5b8d80
jl 0x1001ea3a
mov dword [0x10081c48], 0
push 0x1006f2f0
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.1000151e
add esp, 8
cmp eax, 0
je 0x1001ea97
mov dword [0x10081c48], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1001ea7d
push eax
mov ebx, eax
call fcn.100019bc
inc eax
push eax
call fcn.1004b147
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x10081c4c]
test ebx, ebx
je 0x1001ea91
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov dword [0x10081c4c], eax
push 0x1006f2f0
push dword [0x10081c4c]
call fcn.1000151e
add esp, 8
cmp eax, 0
jne 0x1001eabd
mov eax, 0xffffffff
jmp 0x1001ebda
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.1004c420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001eaf2
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [0x10081c48], 0x5b8d80
jge 0x1001ebd0
inc dword [0x10081c48]
mov dword [ebp - 8], esp
push dword [0x10081c48]
call dword [sym.imp.USER32.dll_IsWindow]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1001eb31
push 6
call fcn.1004b13b
add esp, 4
test eax, eax
je 0x1001ebcb
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [0x10081c48]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1001eb66
push 6
call fcn.1004b13b
add esp, 4
push closesocket
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov eax, dword [0x10081c4c]
test eax, eax
jne 0x1001eb8d
mov eax, 0x1006f2f0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001eba1
mov eax, 0x1006f2f0
push eax
push 4
mov ebx, 0x148
call fcn.1004c350
add esp, 0x34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1001ebcb
mov eax, dword [0x10081c48]
jmp 0x1001ebda
jmp 0x1001eaf6
mov eax, 0xffffffff
jmp 0x1001ebda
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001ebeb
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ed4d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x1001ed96
cmp dword [0x10081c50], 0
jne 0x1001ed91
mov dword [ebp - 4], esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001ed8c
push 6
call fcn.1004b13b
add esp, 4
mov dword [0x10081c50], eax
jmp 0x1001ed9e
mov eax, dword [ebp + 8]
mov dword [0x10081c50], eax
mov dword [ebp - 4], esp
push dword [0x10081c50]
call dword [sym.imp.USER32.dll_IsWindowVisible]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001edc3
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001ee09
mov dword [ebp - 4], esp
push 9
push dword [0x10081c50]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001edfa
push 6
call fcn.1004b13b
add esp, 4
mov eax, 1
jmp 0x1001ee3d
mov dword [ebp - 4], esp
push 0
push dword [0x10081c50]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001ee33
push 6
call fcn.1004b13b
add esp, 4
mov eax, 0
jmp 0x1001ee3d
mov esp, ebp
pop ebp
ret 8

Function at 0x10025062
Capabilities:
Terminate process

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]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100250a5
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100250cf
push 6
call fcn.1004b13b
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10025103
push 6
call fcn.1004b13b
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x1002510b
mov esp, ebp
pop ebp
ret 4

Function at 0x10042759
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.1004c420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1004279e
push ebx
call fcn.1004b14d
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 0x100427c9
push 6
call fcn.1004b13b
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100427dc
mov eax, 0x1006f2f0
push eax
push 1
mov ebx, 0x170
call fcn.1004cf90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100427fa
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1004280b
push ebx
call fcn.1004b14d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x100440c4
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 0x1004cbf0
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 closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1004cc59
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.1004bd80
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 0x1004d510
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 0x1004d5a2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x1004d594
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 0x1004d58c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1004d555
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 0x1004d5b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x1004d680
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x1004d703
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004d703
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004d6f6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x1004dca0
Capabilities:
Encode data using xor

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

Function at 0x1004fc60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x1004fcc6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x1004fcc6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x1004fca7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x10050050
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10050088
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x10050d10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x10050d59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x100511d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10067e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10050d80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10050e00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10050e00
lea ecx, [esi + 0xc]
call fcn.100618c5
lea ecx, [esi + 0x10]
call fcn.100618c5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.10052390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.10052390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.10052390
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1006193a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006193a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40259c
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push 0x44c564
push dword [esp + 0x10]
mov esi, eax
call fcn.00434ace
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4025ba
xor al, al
jmp 0x4025e0
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x4025c8
mov esi, dword [esi + 4]
jmp 0x4025cb
add esi, 4
push edi
push eax
push 1
push esi
call fcn.00434c47
push edi
call fcn.00434d40
add esp, 0x14
mov al, 1
pop edi
pop esi
ret 4

Function at 0x4025e5
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x447cea
call fcn.00437296
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x14], 0xf
call fcn.00404a63
push 2
push edi
push ebx
mov dword [ebp - 4], edi
call fcn.00434e46
push ebx
call fcn.00435068
push edi
push edi
push ebx
mov esi, eax
call fcn.00434e46
add esp, 0x1c
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00402a2d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40263c
lea eax, [ebp - 0x28]
push ebx
push esi
push 1
push eax
call fcn.00435376
add esp, 0x10
cmp esi, eax
jne 0x40269e
push ebx
call fcn.00434d40
pop ecx
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0x48]
call fcn.00404d96
mov byte [ebp - 4], 1
cmp dword [0x45e8a4], 8
mov eax, dword [0x45e890]
jae 0x402676
mov eax, 0x45e890
mov edi, dword [0x45e8a0]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
call fcn.00403195
test eax, eax
jne 0x402690
mov byte [ebp - 0x49], 1
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.004031f0
xor edi, edi
push ebx
call fcn.00434d40
pop ecx
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404a7f
mov al, byte [ebp - 0x49]
call fcn.00437319
ret

Function at 0x4070b6
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00407c49
pop ecx
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [0x44a494]
mov edi, eax
cmp edi, esi
jne 0x4070f4
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
xor eax, eax
jmp 0x407173
push 4
lea eax, [ebp - 0x28]
push eax
push 2
push edi
mov dword [ebp - 0x28], 0x3e8
call dword [0x44a498]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x407116
lea eax, [ebp - 0x1c]
push ebx
push esi
push 0x84400000
push esi
push esi
push eax
push edi
call dword [0x44a4bc]
mov ebx, eax
cmp ebx, esi
jne 0x407136
push edi
call dword [0x44a4a0]
jmp 0x407165
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 4
call dword [0x44a4b4]
push edi
mov edi, dword [0x44a4a0]
test eax, eax
jne 0x407181
call edi
push ebx
call edi
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043465f
leave
ret
call edi
push ebx
call edi
xor edi, edi
cmp dword [ebp - 0x24], 0xc8
je 0x4071a0
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
mov eax, edi
jmp 0x407172
inc edi
jmp 0x407191