joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434640
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d2648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor edi, edi
or esi, 0xffffffff
xor ecx, ecx
cmp ax, di
je 0x434689
cmp ax, 0x2e
jne 0x43467e
mov esi, ecx
movzx eax, word [edx + ecx*2 + 2]
inc ecx
cmp ax, di
jne 0x434676
mov ebx, dword [ebp + 8]
test bl, 0x10
jne 0x4347b5
cmp esi, edi
jl 0x4347b5
lea esi, [edx + esi*2]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 8], esi
add esi, 2
push esi
add edi, 0xc
push edi
call fcn.00434480
test eax, eax
js 0x4346d9
mov ecx, dword [edi]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x434752
add eax, 0xffffffd0
cmp ax, 9
ja 0x4346f7
movzx eax, word [esi + ecx*2 + 2]
inc ecx
test ax, ax
jne 0x4346e3
test ecx, ecx
je 0x434752
cmp word [esi + ecx*2], 0
jne 0x434752
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x1c], 0
jne 0x43473c
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2d4]
push eax
push 0x80
push str.__FILE__.001
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2d0]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x20]
call fcn.00409cd0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00409ed0
mov eax, dword [ebp + 8]
push 0x4010
push 0x2b4
lea edx, [ebp - 0x2d4]
push edx
or ebx, 0x80
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x14], ecx
push eax
mov ecx, edi
call fcn.00434570
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
push ecx
call fcn.0096b321
add esp, 4
jmp 0x43481b
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 4]
mov dword [ebp + 0xc], edi
test esi, esi
je 0x4347df
mov eax, edx
mov edx, dword [eax]
lea eax, [esi + edi]
shr eax, 1
mov ecx, dword [edx + eax*8]
cmp ebx, ecx
je 0x434830
jae 0x4347d8
mov esi, eax
jmp 0x4347db
lea edi, [eax + 1]
cmp edi, esi
jne 0x4347c6
mov dword [ebp + 0xc], edi
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x588]
push ecx
mov edx, ebx
or edx, 0x80
push edx
push str.__DIR__
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x584]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push esi
push ebx
push eax
call fcn.004344e0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test eax, eax
js 0x4347e2
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x435230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d275b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov word [esi + 4], bx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00409cd0
mov word [esi + 0x20], bx
mov word [esi + 0x22], bx
mov word [esi + 0x24], bx
mov word [esi + 0x26], bx
mov word [esi + 0x28], bx
mov al, 1
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
mov word [esi + 0x2a], bx
mov byte [esi + 0x22], al
mov byte [esi + 0x24], bl
mov byte [esi + 0x26], al
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], 0x100
call fcn.00409cd0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x474770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d299b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], 0x9d7aa4
call fcn.0097dda4
push 4
mov dword [ebp - 4], 0
call fcn.0096b3df
mov edi, eax
add esp, 4
test edi, edi
je 0x4747e7
push ebx
call fcn.0097da62
mov dword [edi], eax
call fcn.0097d821
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0097d756
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4747dc
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0097d77e
pop ebx
jmp 0x4747e9
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x475f20
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d2aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0x14]
xor eax, eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x10], esi
mov byte [ecx], al
push eax
push 0x9d7b39
mov dword [ebp - 4], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.004759a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a2b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0xc]
xor edx, edx
mov eax, edi
div ecx
mov ebx, dword [ebp + 0x18]
imul eax, ecx
push eax
mov dword [ebx], eax
call fcn.0096b337
mov ecx, dword [ebp + 8]
push edi
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0096ab00
mov edx, dword [ebx]
push edx
call fcn.0096b337
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0096b337
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0x14]
push ecx
mov edi, eax
push edx
push edi
call fcn.0096ab00
xor edx, edx
add esp, 0x24
mov dword [ebp + 0xc], edx
cmp dword [ebx], edx
jbe 0x4a2c08
jmp 0x4a2b6a
mov edx, dword [ebp + 0xc]
cmp byte [ebp + 0x1c], 0
je 0x4a2b8e
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x4a2b8e
mov ecx, dword [ebp - 4]
add ecx, edx
lea esp, [esp]
mov bl, byte [ecx + eax]
neg bl
mov byte [ecx + eax], bl
inc eax
cmp eax, dword [esi + 0xc]
jb 0x4a2b80
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
je 0x4a2bae
mov ebx, dword [ebp - 4]
add ebx, edx
lea esp, [esp]
mov dl, byte [ebx + eax]
xor byte [eax + edi], dl
inc eax
cmp eax, ecx
jb 0x4a2ba0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ecx
lea ebx, [edx + eax]
push ebx
push edi
mov ecx, esi
call fcn.004a27b0
mov edx, dword [esi + 0xc]
push edx
push ebx
push edi
call fcn.0096ab00
add esp, 0xc
cmp byte [ebp + 0x1c], 0
je 0x4a2bf4
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x4a2bf4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
add ecx, edx
mov bl, byte [ecx + eax]
neg bl
mov byte [ecx + eax], bl
inc eax
cmp eax, dword [esi + 0xc]
jb 0x4a2be4
jmp 0x4a2bf7
mov edx, dword [ebp + 0xc]
add edx, dword [esi + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], edx
cmp edx, dword [eax]
jb 0x4a2b67
push edi
call fcn.0096b321
mov ecx, dword [ebp - 4]
push ecx
call fcn.0096b321
mov eax, dword [ebp + 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4a3080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
add esi, 0x64
xor ebx, ebx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
call fcn.0096b337
push esi
mov edi, eax
push ebx
push edi
call fcn.0096afe0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call fcn.0096ab00
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 0x1c
mov edx, ecx
cmp ecx, ebx
je 0x4a30ca
mov byte [eax], bl
inc eax
dec edx
jne 0x4a30c4
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x1f], eax
push edx
mov al, 0x45
mov byte [ebp - 0x37], al
mov byte [ebp - 0x3a], al
lea eax, [ebp + 0x10]
push eax
lea edx, [ebp - 0x18]
push edx
add ecx, 0xf
lea eax, [ebp - 0x3c]
and ecx, 0xfffffff0
push eax
push ecx
mov ecx, dword [ebp - 4]
push edi
mov word [ebp - 0x39], 0x3441
mov word [ebp - 0x3c], 0x4642
mov dword [ebp - 0x32], 0x42343339
mov word [ebp - 0x26], 0x4134
mov dword [ebp - 0x36], 0x46453845
mov word [ebp - 0x2e], 0x3745
mov dword [ebp - 0x1f], 0x323945
mov dword [ebp - 0x2b], 0x43344232
mov byte [ebp - 0x20], 0x31
mov dword [ebp - 0x24], 0x44414230
mov byte [ebp - 0x27], 0x36
mov byte [ebp - 0x2c], 0x41
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.004a2b00
mov dword [ebp + 0xc], eax
mov ecx, edi
cmp esi, ebx
je 0x4a3176
jmp 0x4a3170
mov byte [ecx], bl
inc ecx
dec esi
jne 0x4a3170
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.004a2cb0
push edi
call fcn.0096b321
mov edx, dword [ebp + 0xc]
push edx
call fcn.0096b321
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ad5f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d2d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x30]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000000
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
call fcn.00966090
push 0x11
mov dword [ebp - 4], ebx
mov byte [esi + 0x31], bl
call fcn.0096b337
add esp, 4
mov dword [esi + 4], eax
mov ecx, 0x11
nop
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad660
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, 0x208
jmp 0x4ad680
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad680
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, 0x208
jmp 0x4ad6a0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad6a0
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x18], eax
mov ecx, 0x208
jmp 0x4ad6c0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad6c0
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, 0x208
jmp 0x4ad6e0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad6e0
push 0x1000
call fcn.0096b337
add esp, 4
mov dword [esi + 0xc], eax
mov ecx, 0x1000
jmp 0x4ad700
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad700
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x24], eax
mov ecx, 0x208
jmp 0x4ad720
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad720
push 0x208
call fcn.0096b337
add esp, 4
mov dword [esi + 0x20], eax
mov ecx, 0x208
jmp 0x4ad740
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ad740
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x52a280
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x966070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x965fe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x96fab0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xa0a230]
jne 0x96faba
repz ret
jmp fcn.00975749

Function at 0x975243
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa0a230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0096dc1f
and dword [ebp - 0x14], 0
cmp dword [0xa0e408], 0
mov dword [ebp - 0x18], eax
jne 0x9752f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x97539e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9f1944
push ebx
call edi
test eax, eax
je 0x97539e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xa0e408], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xa0e40c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xa0e410], eax
call edi
push eax
call esi
mov dword [0xa0e418], eax
test eax, eax
je 0x9752f6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xa0e414], eax
mov eax, dword [0xa0e414]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x97534f
cmp dword [0xa0e418], ecx
je 0x97534f
push eax
call esi
push dword [0xa0e418]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x97534f
test ebx, ebx
je 0x97534f
call edi
test eax, eax
je 0x975346
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x975346
test byte [ebp - 8], 1
jne 0x97534f
or dword [ebp + 0x10], 0x200000
jmp 0x975382
mov eax, dword [0xa0e40c]
cmp eax, dword [ebp - 0x18]
je 0x975382
push eax
call esi
test eax, eax
je 0x975382
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x975382
mov eax, dword [0xa0e410]
cmp eax, dword [ebp - 0x18]
je 0x975382
push eax
call esi
test eax, eax
je 0x975382
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xa0e408]
call esi
test eax, eax
je 0x97539e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x9753a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0096fab0
leave
ret
Function at 0x982180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.kernel32
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x98219f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9f3248
push esi
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x9f3240
push eax
call fcn.009c9afa
add esp, 8
test eax, eax
je 0x9821f3
mov eax, dword [ebp - 4]
test eax, eax
je 0x9821e0
mov ecx, dword [ebp + 8]
push 8
push 0
push ecx
call eax
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
je 0x98221b
push str.AddDllDirectory
push esi
call edi
test eax, eax
je 0x98221b
mov eax, dword [ebp + 8]
push 0x800
push 0
push eax
call dword [ebp - 4]
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x9822f2
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x982235
sub eax, edx
sar eax, 1
add eax, edi
lea ecx, [eax + eax + 2]
push ecx
call dword [0xa0b33c]
mov esi, eax
add esp, 4
test esi, esi
je 0x9822e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x9822e8
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x982270
sub eax, edx
sar eax, 1
mov ecx, 0x9d7680
lea edx, [esi + eax*2]
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x982290
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x9822a4
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2]
sub edx, ecx
jmp 0x9822c0
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x9822c0
mov eax, dword [ebp - 4]
test eax, eax
je 0x9822df
push 8
push 0
push esi
call eax
jmp 0x9822e6
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push esi
call dword [0xa0b340]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x982300
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0xa0a230]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x982359
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x982346
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x982340
shr eax, 8
cmp al, 2
je 0x982359
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
call fcn.009977f0
test eax, eax
jne 0x9823b7
push str.iphlpapi.dll
call fcn.00982180
add esp, 4
mov dword [0xa0e8b4], eax
test eax, eax
je 0x98238d
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x98238d
mov dword [0xa0e8b8], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00997a50
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0xa11be0
mov dword [0xa11be8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
Function at 0x98bd90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x98bdd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x98be50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x7e0], edi
je 0x98bede
cmp dword [esi + 0x1d0], edi
je 0x98bea1
push 1
push esi
call fcn.00989a90
mov eax, dword [esi + 0x16c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x1d0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00989a90
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x98bede
cmp eax, 2
jg 0x98bede
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x9f3e80]
push 2
push eax
call fcn.009c99c9
mov ecx, dword [esi + 0x168]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.009c99c9
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax + 0x338]
push ebx
mov ebx, dword [eax + ecx*4 + 0x148]
push esi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x98c394
cmp dword [eax + ecx*4 + 0x160], 0x98c010
jne 0x98c394
cmp dword [esi], 0
je 0x98c32d
test edi, edi
je 0x98c394
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.009b5500
add esp, 0x14
cmp eax, 0xffffffff
je 0x98c394
test al, 1
je 0x98c394
cmp dword [esi], 0
jne 0x98c37d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x550]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0xa0b33c]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x98c374
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x98c394
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x98c3a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xa0a230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ecx*4 + 0x148]
push edi
mov edi, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x108], edx
call fcn.0098c2f0
add esp, 4
test eax, eax
je 0x98c3f9
mov dword [edi], 0x1b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x108]
push 0
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x98c47b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x98c448
mov dword [edi], 0x51
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.009bc180
push eax
push str.Send_failure:__s
push esi
call fcn.0098bf60
mov eax, dword [ebp - 0x108]
mov dword [esi + 0xa98], eax
add esp, 0x18
mov dword [edi], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0096fab0
mov esp, ebp
pop ebp
ret

Function at 0x98e2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.0098e270
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.009cd20c
add esp, 0x10
pop ebp
ret

Function at 0x98ff20
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x98ff4e
movzx eax, byte [esi]
push eax
call fcn.00994400
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x98ff31
pop edi
pop esi
movzx eax, bl
pop ebx
ret