joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a2c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov ecx, ebx
call fcn.100959f0
mov edi, dword [ebx + 0x18]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x100a2cc1
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], esi
jmp 0x100a2ce0
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push esi
mov ecx, ebx
call fcn.1009dbd0
add esp, 8
test eax, eax
jne 0x100a2da1
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov al, byte [edi]
cmp al, 0x80
jae 0x100a2ceb
movzx ebx, al
jmp 0x100a2cf8
lea edx, [ebp - 8]
mov ecx, edi
call fcn.10083630
mov ebx, dword [ebp - 8]
cmp ebx, 3
jb 0x100a2d67
cmp ebx, esi
jg 0x100a2d67
lea ecx, [edi - 1]
add ecx, ebx
mov al, byte [ecx]
cmp al, 0x80
jae 0x100a2d11
movzx edx, al
jmp 0x100a2d1c
lea edx, [ebp - 8]
call fcn.10083630
mov edx, dword [ebp - 8]
lea eax, [edx - 1]
cmp eax, 8
ja 0x100a2d67
cmp edx, 7
je 0x100a2d67
movzx ecx, byte [edx + 0x10175160]
lea eax, [ecx + ebx]
cmp esi, eax
jb 0x100a2d67
sub esi, ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + esi]
call fcn.100a1a90
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x34]
call fcn.1009d2b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x2c], 0x2460
jne 0x100a2d76
cmp dword [ebp - 0x1c], 0
je 0x100a2d7e
lea ecx, [ebp - 0x34]
call fcn.1009d210
push 0x1018c254
push 0x12800
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10081a30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bcce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x14]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jmp 0x100bcd00
xor edi, edi
test eax, eax
jle 0x100bcd8d
lea ebx, [ebx]
mov ecx, edi
cmp edi, 2
jge 0x100bcd1f
xor ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x100bcd22
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100bcdd6
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 8]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x10173fd0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x10173fd0]
sub esi, ecx
jne 0x100bcd84
sub edx, eax
mov dword [ebp - 0x14], edx
jmp 0x100bcd60
test bl, bl
je 0x100bcdcf
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x10173fd0]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x10173fd0]
sub esi, edx
mov edx, dword [ebp - 0x14]
je 0x100bcd60
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x100bcd10
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10173fd0]
sub eax, 0x73
jne 0x100bcdc6
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x100bce03
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x10173fd0]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10173fd0]
sub eax, ecx
je 0x100bcda5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100bcd84
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
add ecx, ecx
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10083f50
add esp, 4
test eax, eax
je 0x100bcd87
mov eax, dword [eax + 8]
test eax, eax
jne 0x100bcdc8
jmp 0x100bcd87
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x100bce19
neg edx
sbb edx, edx
jmp 0x100bce63
test edx, edx
je 0x100bcdc6
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x10173fd0]
movzx eax, bl
movzx eax, byte [eax + 0x10173fd0]
sub eax, ecx
jne 0x100bce61
sub edx, edi
jmp 0x100bce40
test bl, bl
je 0x100bce61
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x10173fd0]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x10173fd0]
sub eax, ecx
je 0x100bce40
mov edx, eax
test edx, edx
jne 0x100bcdc6
mov eax, dword [ebp - 0x10]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 4], ebx
jmp 0x100bcd00
Function at 0x100bd030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov dword [ebp - 0xc], edx
xor eax, eax
mov edx, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x100bd0eb
mov edx, dword [ecx + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
mov eax, edi
cmp edi, 2
jge 0x100bd061
xor eax, 1
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100bd0c6
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x10173fd0]
movzx ecx, al
movzx ecx, byte [ecx + 0x10173fd0]
sub ecx, edx
jne 0x100bd0b4
sub ebx, esi
test al, al
je 0x100bd0c2
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10173fd0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x10173fd0]
sub ecx, edx
je 0x100bd093
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x100bd0e9
mov edx, dword [ebp - 0x14]
jmp 0x100bd057
test ecx, ecx
jne 0x100bd0b4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.10083f50
add esp, 4
test eax, eax
je 0x100bd0f0
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x100bd0b7
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x100bd0b7
Function at 0x100f7ee0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156048
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.1007c590
lea ecx, [ebp + 8]
call fcn.10002460
test eax, eax
jle 0x100f8091
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.10003060
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1007c460
lea ecx, [ebp - 0x40]
call fcn.10001960
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
setne bl
call fcn.10002d10
test bl, bl
jne 0x100f8088
push 0x101875cc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000aef0
add esp, 0xc
lea ecx, [ebp + 8]
push eax
call fcn.10002230
lea ecx, [ebp - 0x28]
call fcn.10002d10
lea ecx, [ebp + 8]
call fcn.1007c460
lea ecx, [ebp + 8]
mov esi, 1
call fcn.10002460
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jbe 0x100f8043
lea ecx, [ebp + 8]
cmp dword [ebp + 0x18], esi
jbe 0x100f808c
call fcn.100025b0
cmp word [eax + esi*2], 0x5c
lea eax, [eax + esi*2]
jne 0x100f8032
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.10018580
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.10003060
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1007c460
lea ecx, [ebp - 0x40]
call fcn.10001960
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x40]
setne bl
call fcn.10002d10
test bl, bl
jne 0x100f8026
push 0
lea ecx, [ebp - 0x28]
call fcn.10001960
push eax
call edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10002d10
lea ecx, [ebp + 8]
inc esi
call fcn.10002460
cmp esi, eax
jb 0x100f7fb3
push 0
lea ecx, [ebp + 8]
call fcn.10001960
push eax
call edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003060
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.1007c460
lea ecx, [ebp - 0x28]
call fcn.10001960
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.10002d10
test bl, bl
je 0x100f8091
mov bl, 1
jmp 0x100f8093
call fcn.100024b0
xor bl, bl
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x100f80c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
mov dword [ebp - 8], edx
test edi, edi
jne 0x100f80d7
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 2
push 0
push edi
call dword [sym.imp.MSVCR120.dll_fseek]
push edi
call dword [sym.imp.MSVCR120.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 0x14
test ebx, ebx
jne 0x100f810c
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebx + 1]
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
push esi
push 0
push eax
mov dword [ebp - 4], eax
call sub.MSVCR120.dll_memset
mov esi, dword [ebp - 4]
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
je 0x100f8144
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100fa860
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101562a6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], 0
push str.C:Program_Files__x86_Windows_Assistant_AppMVConfiguration.ini
lea ecx, [ebp - 0x428]
call fcn.1000ccc0
mov dword [ebp - 4], 0
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea eax, [ebp - 0x40f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
call fcn.1000c9b0
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0
push str.UniquePC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x440]
call fcn.1000ccc0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44c], esp
lea eax, [ebp - 0x440]
push eax
call fcn.1000c9d0
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp + 8]
call fcn.1007b9b0
add esp, 0x18
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x444]
or ecx, 1
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.1000cd00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.1000cd00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x100fbd50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101563c8
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x100fbd99
jmp 0x100fbec5
mov dword [ebp - 0x254], 0
push 0x228
push 0
lea eax, [ebp - 0x250]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 0xffffffff
cmp dword [ebp - 0x260], 0
je 0x100fbe62
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002c60
mov dword [ebp - 4], 0
push 0
push 0x10177af4
lea ecx, [ebp - 0x28]
call fcn.1000a030
cmp eax, 0xffffffff
je 0x100fbe37
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
jmp 0x100fbe62
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
jmp 0x100fbde7
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x100fbe98
push str.find_service_process_fail_
push 1
push 0x221
push 0x10177b14
push 0x10177b68
call fcn.101426f0
add esp, 0x14
jmp 0x100fbec5
push str.kill_service_process_
push 1
push 0x224
push 0x10177b90
push str.KillServiceProcess
call fcn.101426f0
add esp, 0x14
mov edx, dword [ebp - 0x25c]
push edx
call fcn.1012f420
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x100fc4c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101564e8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x101a5034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
push 0x40
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
xor ecx, ecx
mov word [ebp - 0x34], cx
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.1004abb0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100fc591
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10177c48
push 1
push 0x28d
push 0x10177ca0
push 0x10177c8c
call fcn.10142a80
add esp, 0x18
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0xd]
jmp 0x100fc5dd
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x100fc5a7
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x20], 0
je 0x100fc5b7
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x100fc5c7
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100fe570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156738
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x100fe5b0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x100fe5bc
mov al, 1
jmp 0x100fe761
mov dword [ebp - 0x54], 8
call fcn.10024db0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10024db0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10024d70
add esp, 8
movzx eax, al
test eax, eax
je 0x100fe5ff
xor al, al
jmp 0x100fe761
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1004ad70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.1000c950
mov ecx, eax
call fcn.10001f50
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10002460
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000c950
mov ecx, eax
call fcn.10001f50
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x100fe67b
cmp dword [ebp - 0x38], 1
je 0x100fe682
cmp dword [ebp - 0x38], 3
je 0x100fe71d
jmp 0x100fe735
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000c950
mov ecx, eax
call fcn.10001f50
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x100fe6e6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000c950
mov ecx, eax
call fcn.10001f50
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x100fe6e6
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000cd00
mov al, byte [ebp - 0x2f]
jmp 0x100fe761
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x100fe709
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000cd00
mov al, byte [ebp - 0x30]
jmp 0x100fe761
cmp dword [ebp - 0x34], 0
jne 0x100fe71b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.100f9d80
jmp 0x100fe74d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000cd00
mov al, byte [ebp - 0x2e]
jmp 0x100fe761
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000cd00
mov al, byte [ebp - 0x2d]
jmp 0x100fe761
jmp 0x100fe612
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x10102320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
push str.start_websocket...
push 1
push 0xb8
push 0x10178938
push str.CClientWebsocket::Start
call fcn.101426f0
add esp, 0x14
movzx eax, byte [0x101ac920]
test eax, eax
jne 0x10102361
mov ecx, dword [ebp - 4]
call fcn.10102dd0
mov byte [0x101ac920], 1
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 0
mov byte [0x101aaff7], 0
mov byte [0x101aaff8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe8], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xec], eax
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10102ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10103230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10102120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfc], eax
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10102270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x100], eax
mov esp, ebp
pop ebp
ret
Function at 0x10102dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
push 0x2c
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x10102cf0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x10178ad0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExW]
movzx eax, ax
test eax, eax
jne 0x10102e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterClassEx_fail__code:__d_
push 3
push 0x1ec
push 0x10178b28
push str.CClientWebsocket::CreateWnd
call fcn.10142a80
add esp, 0x18
xor al, al
jmp 0x10102ec7
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0x64
push 0x64
push 0x64
push 0x64
push 0xcf0000
push str.CLIENTWEBSOCKET
push 0x10178b98
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10102eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateWindowEx_fail__code:__d_
push 3
push 0x1f3
push 0x10178bd8
push 0x10178c8c
call fcn.10142a80
add esp, 0x18
xor al, al
jmp 0x10102ec7
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10103410
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x10103443
xor al, al
jmp 0x1010350e
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10103479
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1010350e
mov ecx, dword [ebp + 8]
call fcn.10001960
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x101034e3
mov ecx, dword [ebp - 0x228]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x101034e3
push 0
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1010350e
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10103479
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x1010aa80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR120.dll__vscwprintf]
add esp, 8
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 1
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1010aaeb
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR120.dll_vswprintf_s]
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [ebp - 8], 0
mov esp, ebp
pop ebp
ret