joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000da07
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1000db62
push edi
push 0x29
pop edi
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1000db60
cmp eax, edi
jne 0x1000da48
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x1000db60
cmp eax, edi
jne 0x1000da48
test dword [esi + 0x50], edx
je 0x1000db6e
cmp eax, 0x2e
jne 0x1000da63
push 5
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov ecx, esi
call fcn.1000f91d
jmp 0x1000db4b
cmp eax, 0x5c
jne 0x1000dab8
mov ecx, esi
call fcn.1000f91d
test byte [esi + 0x50], 0x80
je 0x1000daac
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1000da94
push 4
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov ecx, esi
call fcn.1000f91d
jmp 0x1000db52
cmp eax, 0x42
jne 0x1000daac
push 4
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000da88
mov ecx, esi
call fcn.1000db78
jmp 0x1000db4b
cmp eax, 0x5b
jne 0x1000dad8
mov ecx, esi
call fcn.1000f91d
mov ecx, esi
call fcn.1000e1ed
cmp dword [esi + 0x4c], 0x5d
je 0x1000da57
push 4
jmp 0x1000db70
cmp eax, 0x28
jne 0x1000daf4
mov ecx, esi
call fcn.1000f91d
mov ecx, esi
call fcn.1000ff3c
mov bl, al
cmp dword [esi + 0x4c], edi
jne 0x1000db6e
jmp 0x1000db40
cmp eax, 0x5e
jne 0x1000dafd
push 2
jmp 0x1000da80
cmp eax, 0x24
jne 0x1000db09
push 3
jmp 0x1000da80
cmp eax, 0x2a
je 0x1000db6a
cmp eax, 0x2b
je 0x1000db6a
cmp eax, 0x3f
je 0x1000db6a
cmp eax, 0x7b
je 0x1000db6a
cmp eax, 0x7d
jne 0x1000db27
test dword [esi + 0x50], edx
je 0x1000db66
cmp eax, 0x5d
jne 0x1000db31
test dword [esi + 0x50], edx
je 0x1000dad1
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1000d334
mov bl, 1
mov ecx, esi
call fcn.1000f91d
test bl, bl
je 0x1000db52
mov ecx, esi
call fcn.1000f94c
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x1000da1d
pop ebx
pop edi
mov al, cl
pop esi
ret
push 6
jmp 0x1000db70
push 0xa
jmp 0x1000db70
push 5
mov ecx, esi
call fcn.1000f005
int3

Function at 0x100112a3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100a13ec], 0
mov eax, dword [ebp + 0xc]
mov dword [0x100a3500], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100a34fc], eax
mov eax, dword [ebp + 0x10]
mov dword [0x100a34f8], eax
je 0x100112e2
xor eax, eax
push eax
push eax
push eax
push 0x1001077a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100a13f0], eax
test eax, eax
jne 0x100112ee
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + 0xc], 1
pop ebp
ret

Function at 0x10012257
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10012276
push 0xfffffffffffffff3
pop eax
jmp 0x100122a2
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
test eax, eax
push 0xfffffffffffffff2
pop edi
cmovne edi, ecx
je 0x10012298
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100124b6
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10020130
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x802
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.1003ac70
push esi
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.1003ac70
add esp, 0x18
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10012581
push 0x400
lea eax, [ebp - 0x808]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x808], 0
je 0x10012581
push 0x400
lea eax, [ebp - 0x100c]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
push eax
push 2
push esi
push edi
call fcn.10005144
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1001255a
sub ecx, edx
lea eax, [ebp - 0x100c]
sar ecx, 1
push ecx
push ebx
push eax
call fcn.10053413
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x10012583
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fe6c
leave
ret

Function at 0x10012592
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100125be
push 0xfffffffffffffff2
pop eax
jmp 0x10012609
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x14]
push eax
push str.SeLoadDriverPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop eax
push edi
push edi
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
pop edi
sbb eax, eax
and eax, 0xe
add eax, 0xfffffff2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001fe6c
leave
ret

Function at 0x10012615
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10083b54
push dword [ebp + 8]
xor esi, esi
call fcn.10051b8b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10012636
push 0xfffffffffffffffe
pop eax
jmp 0x1001266d
push esi
push 0xc
push edi
call fcn.10052427
add esp, 0xc
test eax, eax
je 0x1001264b
push 0xfffffffffffffff3
pop esi
jmp 0x10012664
push edi
push 1
push 8
push dword [ebp + 0xc]
call fcn.10051f8c
add esp, 0x10
cmp eax, 1
push 0xfffffffffffffff3
pop ecx
cmovne esi, ecx
push edi
call fcn.10051cd4
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10012671
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x228
mov dword [ebp - 0x234], eax
xor esi, esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push esi
push eax
call fcn.1003ac70
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100126c4
push 0xfffffffffffffff2
pop eax
jmp 0x1001271c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10012713
push ebx
mov ebx, dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x10012701
push dword [ebp - 0x234]
push ebx
call fcn.100124b6
pop ecx
pop ecx
test eax, eax
je 0x10012701
push ebx
call fcn.10012257
pop ecx
or esi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100126d6
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001fe6c
leave
ret
Function at 0x10016d56
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1007fe49
call fcn.1001fec7
call fcn.100081c1
push eax
lea ecx, [ebp - 0x10]
call fcn.10006ee7
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1000c326
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.1000be41
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.1000918a
inc ebx
lea ecx, [ebp - 0x10]
push ebx
push str.ApTet
call fcn.1000be41
push ebx
mov esi, 0x10083ba4
lea ecx, [ebp - 0x10]
push esi
call fcn.1000be41
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083ba8
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083bac
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x100832e8
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083bb0
lea ecx, [ebp - 0x10]
call fcn.1000be41
push 2
push 0x10083bb4
lea ecx, [ebp - 0x10]
call fcn.1000be41
push 2
push 0x10083bbc
lea ecx, [ebp - 0x10]
call fcn.1000be41
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.1000918a
mov eax, edi
call fcn.1001fe90
ret

Function at 0x1001a348
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x1008035f
call fcn.1001fec7
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x1001a44c
call fcn.100081c1
push eax
lea ecx, [ebp + 0x10]
call fcn.10006ee7
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.1000757f
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10009466
push 0x5c
push dword [ebp + 0x10]
call fcn.1003abcb
pop ecx
pop ecx
test eax, eax
jne 0x1001a3af
or eax, 0xffffffff
jmp 0x1001a3b4
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1000cddd
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.1000b93b
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1000918a
mov esi, dword [ebp + 0x10]
push esi
call fcn.1000c013
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a3fa
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.10019f5f
test eax, eax
js 0x1001a431
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1001ad9a
test eax, eax
js 0x1001a431
xor ebx, ebx
inc ebx
jmp 0x1001a433
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1001a442
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1000918a
mov eax, ebx
call fcn.1001fe90
ret 0xc
Function at 0x1001b44e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.10020130
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d4]
xor esi, esi
push 0x7d0
push eax
inc esi
call fcn.100014b9
add esp, 0x10
lea eax, [ebp - 0x2ee8]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d4]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b4af
push 2
pop eax
jmp 0x1001b50f
lea eax, [ebp - 0x2eec]
mov dword [ebp - 0x2eec], 0x2710
push eax
lea eax, [ebp - 0x2ee4]
push eax
lea eax, [ebp - 0x2ef0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b501
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.1005589c
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001fe6c
leave
ret
Function at 0x1001b51c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b5c
call fcn.10020130
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2b58]
push eax
push 0x20119
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x54]
xor esi, esi
xor edi, edi
push esi
push eax
push SysStringLen
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b571
push 2
pop eax
jmp 0x1001b6f0
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x3e8
push eax
lea eax, [ebp - 0x43c]
mov ebx, esi
push eax
push esi
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001b6d1
lea eax, [ebp - 0x2b54]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b6a5
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b69d
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001b634
test dl, dl
je 0x1001b630
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001b634
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001b614
xor eax, eax
jmp 0x1001b638
sbb eax, eax
or eax, edi
test eax, eax
jne 0x1001b69d
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b69d
lea eax, [ebp - 0x2b4c]
push eax
push str.MatchingDeviceId:___s__n
call fcn.1001be87
push 4
lea eax, [ebp - 0x2b4c]
push str.pci_
push eax
call fcn.1005589c
add esp, 0x14
test eax, eax
je 0x1001b6db
push dword [ebp - 0x2b54]
call esi
xor eax, eax
mov dword [ebp - 0x2b50], 0x3e8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2b50]
inc ebx
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1001b5a8
jmp 0x1001b6e5
push dword [ebp - 0x2b54]
call esi
xor edi, edi
push dword [ebp - 0x2b58]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001fe6c
leave
ret
Function at 0x1001bb54
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.10020130
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.1003ac70
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1003ac70
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.1001bea6
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001bbe3
mov al, 1
jmp 0x1001bcec
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.1003ac70
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.1003ac70
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.1003ac70
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001bc65
mov bl, 2
jmp 0x1001bce3
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001bcfb
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001bcfb
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bca6
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.100044fc
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bcc9
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.100044fc
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fe6c
leave
ret
Function at 0x1001bedc
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1001bf59
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.1004e61a
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x1001bf59
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fe6c
leave
ret

Function at 0x1001c063
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.1003ac70
add esp, 0xc
test esi, esi
je 0x1001c0fc
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1001c0fc
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x1001c0de
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.1003a590
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x10084998
push eax
call fcn.1001bec1
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x1001c0aa
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.1001c10f
jmp 0x1001c0fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fe6c
leave
ret 0xc
Function at 0x1001c10f
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x1001c2c6
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.1001bfd6
mov cx, word [0x100a1d98]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x100a1d98], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.1003ac70
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.1001bf88
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1001c2c6
test ebx, ebx
jne 0x1001c1e8
xor eax, eax
inc eax
jmp 0x1001c2c8
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1003ac70
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x1001c2b0
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x1001c2b0
mov ecx, edi
call fcn.1001bfd6
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x1001c2ad
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x1001c2ad
cmp byte [ebp + ecx - 0x104], 0
jne 0x1001c2ad
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x1001c2d9
lea esi, [edi + 4]
mov ecx, edi
call fcn.1001bfd6
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x1001c201
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fe6c
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x1001c1e0
Function at 0x10064bad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100647b5

Function at 0x10068385
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10067c31

Function at 0x10068390
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10067e6c

Function at 0x100769f3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10076831

Function at 0x1007c7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x100a341c], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1007c8db
push 0x100a3420
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x1007c8c9
test esi, esi
jne 0x1007c8be
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1007c89e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1007c89e
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1007c89e
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1007c89e
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1007c89e
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1007c89e
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x1007c8b2
push 0
call fcn.100517d8
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x100a341c], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x100a341c], 0
je 0x1007c8d0
pop esi
mov esp, ebp
pop ebp
ret