joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006d779
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1006d7d2
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1006d7f9
push 0x19
push 0x43e9430
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1006d810
mov eax, 0
jmp 0x1006d961
push dword [ebp + 0xc]
call fcn.10047d88
mov dword [ebp - 8], eax
push htons
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x1006d830
mov eax, 0x1024f2fe
push eax
push 1
mov ebx, 0x194
call fcn.10208620
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jge 0x1006d92b
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
push 0
lea eax, [ebp - 0x14]
push eax
fld qword [ebp - 0x44]
call fcn.10004204
push eax
fld qword [ebp - 0x2c]
call fcn.10004204
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x48], esp
je 0x1006d8c3
push 0x1a6
push 0x43e9430
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1006d906
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1006d8fc
push 0x1e3
push 0x43e9430
push 6
call fcn.10207bbd
add esp, 0xc
mov eax, 0
jmp 0x1006d961
fild dword [ebp - 0x10]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10004204
mov dword [ebp - 0x10], eax
jmp 0x1006d846
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1006d957
push 0x264
push 0x43e9430
push 6
call fcn.10207bbd
add esp, 0xc
mov eax, 1
jmp 0x1006d961
mov esp, ebp
pop ebp
ret 8
Function at 0x1006d967
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x1006d986
mov dword [ebp + 0x14], 0
jmp 0x1006d9a3
cmp dword [ebp + 0x14], 2
jne 0x1006d99c
mov dword [ebp + 0x14], 7
jmp 0x1006d9a3
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x10259736
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x1006d9e8
push 0xff
push 0x43e9150
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x1006da04
mov eax, 0
jmp 0x1006da0e
mov eax, 1
jmp 0x1006da0e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1014bc3a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1014bc6d
mov eax, 0x10259736
push eax
push 1
mov ebx, 0x158
call fcn.1020d930
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 0
push 6
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1014bcb9
push 0x3d
push 0x43e8d11
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1014bccc
push ebx
call fcn.10207bb1
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1014bd12
push 0x72
push 0x43e8d11
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1014bd29
mov eax, 0x1024f2fe
jmp 0x1014bdab
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.1014bdc3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1014bd54
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1014bd84
push 0x132
push 0x43e8d11
push 6
call fcn.10207bbd
add esp, 0xc
push dword [ebp - 4]
call fcn.10005667
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1014bda6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10207bab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1014bdab
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1014bdbc
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1016c573
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x50
call fcn.10207bab
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x14
rep stosd dword es:[edi], eax
push 0x10259736
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call fcn.10006935
add esp, 8
cmp eax, 0
jne 0x1016c649
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x1025f519
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1016c5e7
mov eax, 0x10259736
push eax
push 4
mov ebx, 0x14c
call fcn.102089f0
add esp, 0x34
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1016c617
mov eax, 0x10259736
push eax
push 2
mov ebx, 0x134
call fcn.10209b00
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1016c643
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 8], esp
je 0x1016c6a2
push 0x8e
push 0x43e9089
push 6
call fcn.10207bbd
add esp, 0xc
cmp dword [ebp + 0x20], 0
jne 0x1016c71b
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1016c6e2
push 0x11e
push 0x43e9089
push 6
call fcn.10207bbd
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1016c71b
push 0x141
push 0x43e9089
push 6
call fcn.10207bbd
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x1016c730
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1017c220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
push reloc.WS2_32.dll_getsockname
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.10208d00
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1017c299
push 0x60
push 0x43e9238
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x1017c2d7
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x1017c2d2
push 0xc0
push 0x43e9238
push 6
call fcn.10207bbd
add esp, 0xc
jmp 0x1017c2df
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x1017c2f0
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x1017ce1c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 8], 0
jg 0x1017ce39
mov eax, 0
jmp 0x1017ce86
cmp dword [ebp + 8], 0
jle 0x1017ce7c
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x1017ce74
push 0x84
push 0x43e9085
push 6
call fcn.10207bbd
add esp, 0xc
push dword [ebp + 8]
call fcn.10005667
mov eax, 1
jmp 0x1017ce86
mov esp, ebp
pop ebp
ret 4
Function at 0x10199828
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1019986d
push 0x59
push 0x43e3a53
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101998d0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x101998fe
push 0xfb
push 0x43e3a53
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10199961
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1019998f
push 0x19d
push 0x43e3a53
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101999f2
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x101999fa
mov esp, ebp
pop ebp
ret

Function at 0x101c334b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x101c3365
mov dword [ebp + 0x1c], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x10259736
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x101c33aa
push 0x76
push 0x43e3c8d
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x101c33be
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x101eb2d1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.10208be0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x101eb32b
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10005e2a
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push 0x200
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x101eb36f
push 0x83
push 0x43e3b03
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x1027d4a2]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10004204
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.102090b0
add esp, 0x1c
mov dword [ebp - 0x24], eax
push 0x1027d4aa
push dword [ebp - 0x24]
mov ecx, 2
call fcn.1000ff77
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x101eb3db
push ebx
call fcn.10207bb1
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.10008f78
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x101eb403
push ebx
call fcn.10207bb1
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x101eb417
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x101eb437
push eax
mov ebx, eax
call fcn.100011cd
inc eax
push eax
call fcn.10207bab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x101eb43c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x101eb44d
push ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x101eb45d
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x101f8c52
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x101f8c97
push 0x59
push 0x43e6481
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101f8cfa
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x101f8d28
push 0xfb
push 0x43e6481
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101f8d8b
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x101f8db9
push 0x19d
push 0x43e6481
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101f8e1c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x101f8e24
mov esp, ebp
pop ebp
ret
Function at 0x101fc466
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x101fc4b6
push 0x2b
push 0x43e64c6
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1026c8dc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10004204
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x101fc509
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x101fc54c
push 0x84
push 0x43e64c6
push 6
call fcn.10207bbd
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x101fc568
push eax
mov ebx, eax
call fcn.100011cd
inc eax
push eax
call fcn.10207bab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x101fc56d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x101fc57e
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10208c60
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 0x10208cf2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10208ce4
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 0x10208cdc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10208ca5
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 0x10209890
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x102098f9
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.102082f0
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 0x1020c180
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.102082a0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x1020c1d7
push ebx
push edi
call fcn.102083b0
push esi
mov ebx, esi
call fcn.102082a0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x1020c1ae
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1020c1e0
Capabilities:
Encode data using xor

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

Function at 0x1020c490
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 0x1020c5a0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x1020c5ae
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.102106f0
add esp, 4
test eax, eax
jne 0x1020c5c0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x1020c5de
cmp ecx, 3
je 0x1020c5de
cmp ecx, 2
jne 0x1020c5ed
mov ecx, dword [esi + 4]
call fcn.102106e0
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
Function at 0x1020c920
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1020c936
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x1020c940
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1020c991
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.1020c920
add esp, 4
cmp eax, 0xffffffff
je 0x1020c98c
push eax
call sub.WS2_32.dll_inet_ntoa
mov esi, eax
push esi
call dword [0x104a72ec]
push eax
push esi
call fcn.1020fd80
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x1020d8a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x1020d91f
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1020d91f
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [0x104a72ec]
add esp, 4
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1020d913
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x1020dbe0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.1023e104
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 0x1020dc4a
push esi
lea edi, [eax + 0x400]
call fcn.1023e12d
push edi
call fcn.1023e104
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 0x1020dc1a
push esi
xor edi, edi
call dword [0x104a72ec]
add esp, 4
test eax, eax
je 0x1020dc66
push eax
push esi
call fcn.1020fd80
add esp, 8
mov edi, eax
push esi
call fcn.1023e12d
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret