joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a4a50
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x220], 1
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x21c], 0x105
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x248]
cmp ax, 9
je 0x100a4acc
cmp ax, 6
je 0x100a4acc
xor ecx, ecx
jmp 0x100a4ad1
mov ecx, 1
lea eax, [ebp - 0x214]
xor esi, esi
push eax
test ecx, ecx
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
or eax, 0x20019
push eax
push esi
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a4b67
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a4b67
cmp word [ebp - 0x210], si
jne 0x100a4b35
xor ecx, ecx
jmp 0x100a4b4f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a4b40
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x210]
push eax
call fcn.10058060
mov esi, 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a4be0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101fd960
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100a4d1e
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100a4d1e
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x100a4d1e
push edi
call fcn.100a9c5c
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100a4d15
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x102f9ed0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100a4d15
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
push esi
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x21c]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
call fcn.100a9a1f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push esi
call fcn.100a9a1f
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a52e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a52f0

Function at 0x100a5570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a5580
Function at 0x10198c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 3
push 0x255
push str.Socket_getch
mov dword [ebp - 4], 0xffffffff
call fcn.101a4960
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.101a6990
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, 0xffffffea
jne 0x10198d06
push 0
push 1
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10198ce0
push esi
push str.recv___getch
call fcn.10198870
add esp, 8
cmp eax, 0x2733
jne 0x10198d06
push 0
push esi
mov dword [ebp - 4], 0xffffffea
call fcn.101a6bf0
jmp 0x10198d03
test eax, eax
jne 0x10198ced
mov dword [ebp - 4], 0xffffffff
jmp 0x10198d06
cmp eax, 1
jne 0x10198d06
movzx eax, byte [edi]
push eax
push esi
call fcn.101a6dc0
mov dword [ebp - 4], 0
add esp, 8
push 3
lea eax, [ebp - 4]
push eax
push 0x26a
push str.Socket_getch
call fcn.101a4a10
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10198d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 3
push 0x27b
push str.Socket_getdata
call fcn.101a4960
mov edi, dword [ebp + 0xc]
add esp, 0xc
test edi, edi
jne 0x10198d62
push dword [ebp + 8]
call fcn.101a68d0
add esp, 4
mov esi, eax
jmp 0x10198dec
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 8]
call fcn.101a6a50
mov ecx, dword [ebx]
add esp, 0xc
mov esi, eax
mov eax, edi
sub eax, ecx
push 0
push eax
lea eax, [ecx + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x10198db5
push dword [ebp + 8]
push str.recv___getdata
call fcn.10198870
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
cmp eax, 0x2733
je 0x10198dbb
xor esi, esi
jmp 0x10198deb
test eax, eax
je 0x10198db1
add dword [ebx], eax
mov eax, dword [ebx]
cmp eax, edi
jne 0x10198dce
push dword [ebp + 8]
call fcn.101a68d0
add esp, 4
jmp 0x10198deb
push eax
push dword [ebp + 8]
call fcn.101a6bf0
push dword [ebx]
push edi
push str._d_bytes_expected_but__d_bytes_now_received
push 0xffffffffffffffff
push 1
call fcn.101a2220
add esp, 0x1c
pop ebx
push 3
push 0
push 0x29d
push str.Socket_getdata
call fcn.101a4a10
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10199210
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push 3
push 0x8a
push str.Socket_outInitialize
call fcn.101a4960
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.101a6b80
call fcn.10197d90
mov dword [0x104eacc0], eax
call fcn.10197d90
push 3
push 0
push 0xa6
push str.Socket_outInitialize
mov dword [0x104eacc4], eax
mov dword [0x104eacc8], 0
mov dword [0x104eaccc], 0
mov dword [0x104eacd0], 0
mov dword [0x104eacd4], 0xffffffff
mov dword [0x104eacdc], 0
mov dword [0x104eace0], 0
mov dword [0x104eacd8], 0
call fcn.101a4a10
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x10199650
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 3
push 0x5a
push str.Socket_setnonblocking
mov dword [ebp - 8], 1
call fcn.101a4960
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 3
push eax
push 0x64
push str.Socket_setnonblocking
call fcn.101a4a10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x101996a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push 3
push 0x2ba
push str.Socket_writev
call fcn.101a4960
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0
push 0
push 0
push eax
push dword [ebp + 0x10]
mov dword [eax], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10199702
push dword [ebp + 8]
push str.WSASend___putdatas
call fcn.10198870
mov ecx, dword [ebp - 4]
add esp, 8
cmp eax, 0x2733
mov edx, 0xffffffea
cmove ecx, edx
mov dword [ebp - 4], ecx
push 3
lea eax, [ebp - 4]
push eax
push 0x2ee
push str.Socket_writev
call fcn.101a4a10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1019c470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 3
push 0x44
push str.Thread_start
call fcn.101a4960
add esp, 0xc
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
push 0
push 0x4f
push str.Thread_start
call fcn.101a4a10
add esp, 0x10
pop ebp
ret

Function at 0x101a2850
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10466fec]
test eax, eax
je 0x101a28f7
push dword [ebp + 0xc]
push 0x103b09d8
push eax
call fcn.1009cd80
push 1
call fcn.102037fe
mov ecx, dword [0x10466fec]
add esp, 0x10
cmp ecx, eax
je 0x101a28ee
mov eax, dword [0x10466ff8]
inc eax
mov dword [0x10466ff8], eax
cmp eax, dword [0x1042b654]
jl 0x101a28ee
push ecx
call fcn.10203b9b
push dword [0x10466ff4]
call fcn.1020c47a
push dword [0x10466ff4]
push dword [0x10466ff0]
call fcn.1020fb2d
push 0x103b089c
push dword [0x10466ff0]
call fcn.10203fa6
add esp, 0x18
mov dword [0x10466fec], eax
test eax, eax
jne 0x101a28e2
push 1
call fcn.102037fe
add esp, 4
mov dword [0x10466fec], eax
mov dword [0x10466ff8], 0
jmp 0x101a28f7
push ecx
call fcn.10203da9
add esp, 4
mov eax, dword [0x10466ffc]
test eax, eax
je 0x101a2903
pop ebp
jmp eax
pop ebp
ret
Function at 0x101a7040
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
push 0x241
push str.clearWin32
mov dword [ebp - 0x250], 0
call fcn.101a4960
push ebx
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.100a0720
add esp, 0x1c
cmp eax, 0x105
jge 0x101a71cc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x101a71cc
nop dword [eax]
test byte [ebp - 0x24c], 0x20
je 0x101a7158
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101a70d2
sub eax, edx
lea edx, [ebp - 0x220]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x101a70e4
sub edx, esi
lea edi, [eax + 2]
add edi, edx
push edi
push 0x251
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
call fcn.101a4e30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101a71c0
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x103b1684
push edi
push esi
call fcn.100a0720
add esp, 0x14
push esi
cmp eax, edi
jae 0x101a71a2
call fcn.1020c485
push esi
push 0x25e
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
mov dword [ebp - 0x250], eax
call fcn.101a4dd0
add esp, 0x10
cmp dword [ebp - 0x250], 0
jne 0x101a718a
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x254]
jne 0x101a70c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x101a7194
mov eax, dword [ebp - 0x254]
jmp 0x101a70c0
mov dword [ebp - 0x250], 0xfffffffe
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x101a71d6
push 0x25a
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
mov dword [ebp - 0x250], 0xfffffffe
call fcn.101a4dd0
add esp, 0xc
jmp 0x101a71d6
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x101a71d6
mov dword [ebp - 0x250], 0xfffffffe
push 3
lea eax, [ebp - 0x250]
push eax
push 0x270
push str.clearWin32
call fcn.101a4a10
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x101a7210
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 3
push 0x1bc
push str.containskeyWin32
mov dword [ebp - 0x250], 0xfffffffe
xor edi, edi
call fcn.101a4960
push esi
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.100a0720
add esp, 0x1c
cmp eax, 0x105
jge 0x101a7379
push ebx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101a7378
nop word [eax + eax]
test byte [ebp - 0x24c], 0x20
je 0x101a734c
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a72a6
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x1c7
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
call fcn.101a4e30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101a73aa
lea ecx, [ebp - 0x220]
mov edx, esi
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x101a72e0
push str..msg
push esi
call fcn.101fb3f0
add esp, 8
test eax, eax
je 0x101a7302
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x101a7327
test dl, dl
je 0x101a7323
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x101a7327
add eax, 2
add ecx, 2
test dl, dl
jne 0x101a7307
xor eax, eax
jmp 0x101a732c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x101a7339
mov dword [ebp - 0x250], eax
lea edi, [eax + 1]
push esi
push 0x1d5
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
call fcn.101a4dd0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101a7369
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x101a7371
test edi, edi
je 0x101a7290
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 3
lea eax, [ebp - 0x250]
push eax
push 0x1e0
push str.containskeyWin32
call fcn.101a4a10
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x101a7378
Function at 0x101a73c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x260], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push 3
mov dword [ebp - 0x25c], eax
xor eax, eax
push 0x2b8
push str.keysWin32
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], eax
call fcn.101a4960
push esi
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.100a0720
add esp, 0x1c
cmp eax, 0x105
jl 0x101a743f
mov dword [ebp - 0x250], 0xfffffffe
jmp 0x101a75c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x101a75b7
xor ebx, ebx
test byte [ebp - 0x24c], 0x20
lea eax, [ebx + 1]
cmove eax, ebx
mov ebx, eax
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101a7495
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov eax, 1
cmove edi, eax
test edi, edi
je 0x101a7463
push esi
mov dword [ebp - 0x254], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x254]
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
je 0x101a74eb
lea eax, [edi*4]
push eax
push 0x2d6
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
call fcn.101a4e30
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x258], esi
test esi, esi
jne 0x101a74ed
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x101a75c1
xor esi, esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101a75b7
nop dword [eax + eax]
test byte [ebp - 0x24c], 0x20
je 0x101a7577
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a7522
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2e7
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcMQTTPersistenceDefault.c
call fcn.101a4e30
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x101a74dc
lea edx, [ebp - 0x220]
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x101a7550
push str..msg
push dword [esi]
call fcn.101fb3f0
add esp, 8
test eax, eax
je 0x101a7574
mov byte [eax], 0
add esi, 4
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101a7510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x101a7510
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x260]
mov dword [eax], edi
mov eax, dword [ebp - 0x258]
mov dword [ecx], eax
jmp 0x101a75c1
mov dword [ebp - 0x250], 0xfffffffe
pop ebx
push 3
lea eax, [ebp - 0x250]
push eax
push 0x304
push str.keysWin32
call fcn.101a4a10
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x101a7920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 3
push 0xa9
push str.pstmkdir
mov dword [ebp - 4], 0
call fcn.101a4960
push dword [ebp + 8]
call fcn.102107f9
add esp, 0x10
test eax, eax
je 0x101a7961
call fcn.1020368c
mov ecx, dword [ebp - 4]
mov edx, 0xfffffffe
cmp dword [eax], 0x11
cmovne ecx, edx
mov dword [ebp - 4], ecx
push 3
lea eax, [ebp - 4]
push eax
push 0xba
push str.pstmkdir
call fcn.101a4a10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x101aa620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push 3
push 0x163
push str.WebSocket_unmaskData
call fcn.101a4960
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add esp, 0xc
cmp dword [eax], ebx
jle 0x101aa673
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor esi, esi
cmp dword [ecx + ebx*4], esi
jbe 0x101aa66c
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
mov ecx, edi
and ecx, 3
inc edi
mov cl, byte [ecx + eax + 0x10]
xor byte [edx + esi], cl
inc esi
mov ecx, dword [eax + 8]
cmp esi, dword [ecx + ebx*4]
jb 0x101aa650
inc ebx
cmp ebx, dword [eax]
jl 0x101aa646
pop edi
pop esi
push 3
push 0
push 0x16c
push str.WebSocket_unmaskData
mov dword [eax + 0x10], 0
call fcn.101a4a10
add esp, 0x10
pop ebx
pop ebp
ret

Function at 0x101ab430
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0x40000001
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
cmovne esi, dword [ebp + 0xc]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x101b5960
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x101b59b3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.101c6ef0
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x101b5976
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x101bb420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], edx
cmp ecx, 0x103b46c8
jne 0x101bb44d
mov edx, dword [ebx + 0xc]
add edx, 0x1b8
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
jmp 0x101bb458
mov eax, dword [ebx + 0xc]
add eax, 0x178
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
cmp ecx, 0x103b46c8
mov esi, 0x44c
mov eax, 0x3e4
cmove eax, esi
mov cl, 1
mov esi, dword [ebp + 0x10]
mov byte [ebp + 0xb], cl
mov dword [esi], 0
add eax, edi
je 0x101bb5d8
cmp byte [eax + 0x3c], 0
je 0x101bb5d8
cmp dword [edi + 0x8f0], 0
je 0x101bb5d8
mov eax, dword [edi + 0x78]
test eax, eax
je 0x101bb4ad
test byte [eax + 4], 0x10
je 0x101bb4ad
add eax, 0x74
jmp 0x101bb4b3
lea eax, [edi + 0x8f4]
cmp dword [edi + 0x4b4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jbe 0x101bb5a6
mov dword [ebp - 8], 0
xor eax, eax
mov esi, dword [edi + 0x8f0]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x101bb58a
push dword [esi]
push dword [edx + 8]
call sym.gcm32.dll_curl_strequal
add esp, 8
test eax, eax
je 0x101bb584
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x201]
test al, al
jne 0x101bb511
cmp dword [esi + 4], 0
je 0x101bb528
test al, al
je 0x101bb584
mov eax, dword [esi + 4]
test eax, eax
je 0x101bb584
push eax
push dword [ecx + 0x6c]
call sym.gcm32.dll_curl_strequal
add esp, 8
test eax, eax
je 0x101bb584
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x202]
test al, al
jne 0x101bb53f
cmp dword [esi + 0x1c], 0xffffffff
je 0x101bb54f
test al, al
je 0x101bb584
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x101bb584
cmp dword [ecx + 0x384], eax
jne 0x101bb584
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x101bb587
mov eax, dword [ecx + 0x238]
push dword [esi + 8]
push dword [eax]
call sym.gcm32.dll_curl_strequal
add esp, 8
test eax, eax
je 0x101bb584
lea eax, [esi + 0x20]
push eax
push dword [ebp - 0xc]
call fcn.101bb100
add esp, 8
test al, al
jne 0x101bb5af
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
add eax, 0x60
inc esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp esi, dword [edi + 0x4b4]
jb 0x101bb4d3
mov cl, byte [ebp + 0xb]
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x101bb5cd
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
xor cl, cl
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret