joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426663
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov eax, dword [edx]
push esi
mov esi, ecx
cmp eax, dword [esi + 0xb4]
jne 0x426696
cmp dword [edx + 8], 0xffffff65
jne 0x426696
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x4266d0
sub eax, 0x14
je 0x42669d
dec eax
sub eax, 1
je 0x4266d0
xor al, al
pop esi
leave
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x426696
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
jmp 0x426698
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x426696
mov ecx, esi
call fcn.004266e8
jmp 0x4266cc

Function at 0x4268cd
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0xac7eee
call fcn.00ac4e1b
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x20
mov dword [ebp - 4], ebx
call fcn.00aa0084
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea eax, [edi + 0x279]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x27a]
mov byte [esi], bl
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esp], 0x100
call fcn.00aa0007
mov dword [esi + 0xc], eax
mov byte [ebp - 4], bl
push 8
mov dword [edi + 0x27c], esi
call fcn.00aa0084
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
push ecx
mov ecx, eax
mov dword [ebp - 0x14], esi
call fcn.00a002b2
mov byte [ebp - 4], bl
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push 0x4267ef
push ebx
push ebx
call fcn.00aa5c83
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x426987
call fcn.0040880f
test eax, eax
je 0x426987
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x426996
push ecx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00425e6b
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 4
call fcn.00408820
mov eax, ebx
call fcn.00ac4de9
ret 8

Function at 0x426c53
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d0
mov eax, dword [0xb0a008]
xor eax, esp
mov dword [esp + 0x2cc], eax
cmp byte [0xb0cdb9], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
jne 0x426cb6
mov edx, ecx
lea ecx, [esp + 0xc]
call fcn.00409881
push 0x4010
push 0x160
lea ecx, [esp + 0x20]
or esi, 0x80
push ecx
push esi
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [esp + 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
mov eax, esi
jmp 0x426cd8
mov eax, dword [0xb0cefc]
test eax, eax
je 0x426cd8
push 0x4010
push 0x2b4
lea edx, [esp + 0x20]
or esi, 0x80
push edx
push esi
push ecx
call eax
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
xor ecx, esp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret 4
Function at 0x426f6b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0xb0a008]
xor eax, esp
mov dword [esp + 0x164], eax
test cl, cl
mov edx, 0x4011
mov eax, 0x4110
cmovne eax, edx
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x90
push 0xad838c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
Function at 0x47b91a
Capabilities:
Hash data using sha1

Disassembly:
push 4
mov eax, 0xac862e
call fcn.00ac4e1b
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
mov byte [ecx], al
mov dword [ebp - 4], eax
push 0xad838c
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.0047d9d7
mov eax, esi
call fcn.00ac4de9
ret
Function at 0x4b9352
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dh, byte [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ebx
test dh, 1
je 0x4b9394
mov al, byte [ebp + 8]
test esi, esi
je 0x4b9392
mov edi, esi
mov dh, al
mov dl, dh
add dl, dl
mov al, dl
xor al, 0x1b
test dh, dh
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov dh, cl
sub edi, 1
jne 0x4b9370
mov byte [ebp - 1], dh
mov al, cl
mov dh, byte [ebp + 0xc]
xor bl, al
shr dh, 1
inc esi
mov byte [ebp + 0xc], dh
cmp esi, 8
jl 0x4b9360
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x4b9480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov dword [ebp - 4], edx
xor esi, esi
test eax, eax
jle 0x4b94b9
mov ebx, dword [ebp + 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
mov ecx, dword [edi]
mov al, byte [ebx]
lea ebx, [ebx + 4]
xor byte [ecx + esi], al
inc esi
mov eax, dword [edx]
cmp esi, eax
jl 0x4b94a5
mov edx, dword [ebp - 4]
inc edx
add edi, 4
mov dword [ebp - 4], edx
cmp edx, 4
jl 0x4b9497
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b96d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4b96fd
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x4b96ed
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4b9701
Capabilities:
Encode data using base64

Disassembly:
push 0x64
mov eax, 0xac8bda
call fcn.00ac4e4e
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
xor ebx, ebx
mov dword [ebp - 0x70], edi
push 0x41
push ebx
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], ebx
call fcn.00aa2520
add esp, 0xc
mov ecx, ebx
lea eax, [ecx + 0x41]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x4b972c
mov ecx, ebx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x4b973b
mov ecx, ebx
lea eax, [ecx + 0x30]
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x4b974a
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov word [ebp - 0x16], 0x2f2b
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], 1
test eax, eax
je 0x4b98ad
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x58], al
inc edi
mov dl, byte [ebp - 0x57]
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x56]
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0x5f], ch
mov byte [ebp - 0x5d], dl
mov byte [ebp - 0x5e], cl
cmp edi, esi
jne 0x4b9808
mov esi, dword [ebp - 0x64]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x5c], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x5b], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x5a], cl
mov byte [ebp - 0x59], ch
movzx eax, byte [ebp + edi - 0x5c]
mov ecx, esi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.0047d99c
inc edi
cmp edi, 4
jl 0x4b97e2
mov dl, byte [ebp - 0x5d]
mov edi, ebx
mov cl, byte [ebp - 0x5e]
mov ch, byte [ebp - 0x5f]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4b9785
mov dword [ebp - 0x68], edi
test edi, edi
je 0x4b98ad
mov eax, edi
cmp edi, esi
jge 0x4b983e
cmp eax, esi
jae 0x4b98b8
mov byte [ebp + eax - 0x58], bl
inc eax
cmp eax, esi
jl 0x4b9826
mov ch, byte [ebp - 0x56]
mov dl, byte [ebp - 0x57]
mov cl, byte [ebp - 0x58]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x5c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x5b], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x59], ch
lea eax, [edi + 1]
mov byte [ebp - 0x5a], dl
mov dword [ebp - 0x58], eax
test eax, eax
jle 0x4b9898
mov esi, dword [ebp - 0x64]
mov edi, eax
movzx eax, byte [ebp + ebx - 0x5c]
mov ecx, esi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.0047d99c
inc ebx
cmp ebx, edi
jl 0x4b987b
mov edi, dword [ebp - 0x68]
push 3
pop esi
cmp edi, esi
jge 0x4b98ad
sub esi, edi
mov ecx, dword [ebp - 0x64]
push 0x3d
call fcn.0047d99c
sub esi, 1
jne 0x4b989e
mov eax, dword [ebp - 0x64]
call fcn.00ac4dfd
ret 0xc
call fcn.00aa01f9
int3
Function at 0x4b98be
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x64]
mov dword [ebp - 0x44], ecx
push esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
call fcn.00aa0007
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00aa2520
push ebx
push edi
push dword [ebp - 0x40]
call fcn.00aa1fa0
add esp, 0x1c
mov eax, ebx
test ebx, ebx
je 0x4b9914
mov byte [edi], 0
inc edi
sub eax, 1
jne 0x4b990b
xor eax, eax
mov dword [ebp - 0x16], 0x36433442
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
mov word [ebp - 0xe], 0x4441
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x12], 0x42304134
push eax
lea eax, [ebx + 0xf]
mov dword [ebp - 0x23], 0x45384545
mov ebx, dword [ebp - 0x40]
and eax, 0xfffffff0
push eax
push ebx
mov dword [ebp - 0xb], 0x323945
mov word [ebp - 0x25], 0x3441
mov word [ebp - 0x28], 0x4642
mov dword [ebp - 0x1c], 0x37454234
mov word [ebp - 0x1e], 0x3339
mov byte [ebp - 0x1f], 0x46
mov byte [ebp - 0x26], 0x45
mov word [ebp - 0x18], 0x3241
mov byte [ebp - 0xc], 0x31
call fcn.004b9037
mov edi, eax
mov ecx, ebx
test esi, esi
je 0x4b99a3
mov byte [ecx], 0
inc ecx
sub esi, 1
jne 0x4b999a
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
push edi
push esi
call fcn.004b9701
push ebx
call fcn.00a9fed1
push edi
call fcn.00a9fed1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9fec3
leave
ret 0x10
Function at 0x52abc3
Capabilities:
Get disk information via ioctl

Disassembly:
push 0x74
mov eax, 0xac9064
call fcn.00ac4e4e
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x44], al
mov dword [ebp - 4], eax
call dword [edi + 0xb4]
cdq
mov bl, 0x41
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x64], eax
xor edx, edx
mov ecx, eax
and ecx, 0x1f
shr eax, 5
inc edx
shl edx, cl
test dword [ebp + eax*4 - 0x2c], edx
je 0x52ad53
mov esi, dword [edi + 0xb8]
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
push 0xad9658
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0047d9d7
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push 1
push 0
call fcn.0052b3e2
push eax
lea ecx, [ebp - 0x80]
call fcn.0047d6d1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
cmovae eax, dword [ebp - 0x80]
push eax
call esi
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.0047af46
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0047af46
cmp esi, 3
jne 0x52ad53
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.._
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0047d9d7
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0047d99c
push 0xad9180
lea ecx, [ebp - 0x28]
call fcn.0047d682
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0xc0]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
push edx
push edx
push esi
push edx
push esi
push edx
push ecx
call eax
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x52ad47
mov ecx, dword [edi + 0xb0]
lea edx, [ebp - 0x4c]
push 0
push edx
push 0xc
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0x2d1080
push eax
call ecx
push dword [ebp - 0x68]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x52ad47
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.0052868f
test eax, eax
jne 0x52ad47
sub esp, 0x18
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0047daac
mov ecx, edi
call fcn.0051ee52
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0047af46
mov eax, dword [ebp - 0x64]
inc bl
inc eax
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x64], eax
cmp bl, 0x5a
jle 0x52abfd
lea ecx, [ebp - 0x44]
call fcn.0047af46
call fcn.00ac4dfd
ret
Function at 0x52bb3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov edi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
sar eax, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jge 0x52bba8
lea esi, [edi + edi]
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.0052baf1
imul ecx, dword [ebp - 8], 0x18
movzx edi, al
xor edi, 1
inc edi
add edi, esi
imul eax, edi, 0x18
add ecx, ebx
add eax, ebx
push eax
call fcn.004dfb14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp edi, eax
jl 0x52bb6c
mov ecx, dword [ebp - 0x18]
mov esi, edi
cmp edi, eax
jne 0x52bbc9
test cl, 1
jne 0x52bbc9
imul eax, ecx, 0x18
imul ecx, edi, 0x18
add eax, 0xffffffe8
add eax, ebx
add ecx, ebx
push eax
call fcn.004dfb14
mov esi, dword [ebp - 4]
cmp dword [ebp - 0xc], esi
jge 0x52bbfc
push dword [ebp - 0x10]
lea edi, [esi - 1]
sar edi, 1
imul eax, edi, 0x18
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.0052baf1
test al, al
je 0x52bbfc
push dword [ebp - 4]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.004dfb14
mov esi, edi
cmp dword [ebp - 0xc], edi
jl 0x52bbce
push dword [ebp - 0x10]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.004dfb14
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x549d32
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0xac91df
call fcn.00ac4e4e
mov esi, ecx
push 8
call fcn.00aa0084
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push ecx
push 0x549d9e
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00aa5c83
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x549d83
mov eax, esi
call fcn.00ac4dfd
ret 8
push 6
mov dword [edi], ebx
call fcn.00aa18b6
int3

Function at 0x549e97
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0xa002b2
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0xac91df
call fcn.00ac4e4e
mov esi, ecx
push 8
call fcn.00aa0084
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [ecx + 4], 0xa00119
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push ecx
push 0xa0030e
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00aa5c83
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0xa00304
mov eax, esi
call fcn.00ac4dfd
ret 8
push 6
mov dword [edi], ebx
call fcn.00aa18b6
int3
Function at 0xa56fa0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0xb0a008]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xa57058
mov eax, dword [esp]
cmp al, 2
jne 0xa57052
shr eax, 8
cmp al, 2
jne 0xa57052
call fcn.00a698d0
test eax, eax
jne 0xa5705d
mov ecx, str.iphlpapi.dll
call fcn.00a570c0
mov dword [0xb0f13c], eax
test eax, eax
je 0xa57018
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0xb0cec8]
test eax, eax
cmovne ecx, eax
mov dword [0xb0cec8], ecx
xor edx, edx
push 3
push ecx
push 0
lea ecx, [edx + 6]
call fcn.00a69af0
add esp, 0xc
test al, al
setne byte [0xb0f250]
push 0xb0f248
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
Function at 0xa570c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xa570e4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xad9980
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0xad9990
push esi
mov dword [ebp - 8], ebx
call fcn.00ab1734
add esp, 8
test eax, eax
je 0xa5712c
test ebx, ebx
je 0xa5711c
push 8
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa57155
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xa57155
push 0x800
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0xa57218
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa57171
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xb0a97c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xa5720e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xa5720e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa571b0
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa571d0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0xa571e5
mov eax, dword [ebp - 8]
test eax, eax
je 0xa57205
push 8
push 0
push ebx
call eax
jmp 0xa5720c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xb0a984]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa57860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
call fcn.00a58ea0
mov edx, edi
mov dword [ebp - 0x14], eax
call fcn.00a58e80
mov edx, dword [ebp + 8]
mov cl, 1
mov byte [ebp - 1], cl
mov dword [edx], 0
test eax, eax
je 0xa5798a
cmp byte [eax + 0x3c], 0
je 0xa5798a
mov esi, dword [edi + 0x8d8]
test esi, esi
je 0xa5798a
mov eax, dword [edi + 0x78]
test eax, eax
je 0xa578bc
test byte [eax + 4], 0x10
je 0xa578bc
add eax, 0x78
jmp 0xa578c2
lea eax, [edi + 0x8dc]
mov edi, dword [edi + 0x4a4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
je 0xa57989
nop dword [eax]
cmp dword [esi + 0xc], 0
je 0xa5797a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
call fcn.00a67df0
test eax, eax
je 0xa5797a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov edi, dword [ecx + 0xc]
cmp byte [edi + 0x1c9], 0
jne 0xa57916
test edx, edx
je 0xa57929
jmp 0xa57977
test edx, edx
je 0xa57977
mov ecx, dword [edi + 0x64]
call fcn.00a67df0
test eax, eax
je 0xa57977
mov ecx, dword [ebp - 0xc]
cmp byte [edi + 0x1ca], 0
mov eax, dword [esi + 0x1c]
jne 0xa5793c
cmp eax, 0xffffffff
je 0xa57949
jmp 0xa57977
cmp eax, 0xffffffff
je 0xa57977
cmp dword [edi + 0x444], eax
jne 0xa57977
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x10]
cmp eax, dword [esi + 0x18]
jne 0xa57977
mov ecx, dword [edi + 0x1e0]
mov edx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00a67df0
test eax, eax
je 0xa57977
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.00a572f0
test al, al
jne 0xa57992
mov edi, dword [ebp - 8]
inc ebx
add esi, 0x60
cmp ebx, edi
jb 0xa578e0
mov cl, byte [ebp - 1]
pop ebx
pop edi
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
pop ebx
pop edi
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
xor cl, cl
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa5c610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.00455100
push eax
push edx
push esi
call fcn.00ac0500
add esp, 0xc
pop esi
pop ebp
ret

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

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + edx]
mov edx, 0x1505
cmp esi, edi
jae 0xa5e048
mov cl, byte [esi]
call fcn.00a67d80
movsx ecx, al
inc esi
mov eax, edx
shl eax, 5
add edx, eax
xor edx, ecx
cmp esi, edi
jb 0xa5e030
pop edi
movzx eax, dl
pop esi
ret

Function at 0xa662e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x6d0], 0
je 0xa66370
cmp dword [esi + 0x1a4], 0
je 0xa66330
push ebx
call fcn.00a5c1f0
mov dl, 1
mov bl, al
call fcn.00a5c1d0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call eax
add esp, 0x14
mov dl, bl
mov ecx, esi
pop ebx
pop edi
pop esi
pop ebp
jmp fcn.00a5c1d0
mov eax, edi
sub eax, 0
je 0xa66341
sub eax, 1
je 0xa66341
sub eax, 1
jne 0xa66370
push dword [esi + 0x150]
lea eax, [edi*2 + 0xad6dc4]
push 1
add eax, edi
push 2
push eax
call fcn.00ab106a
push dword [esi + 0x150]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00ab106a
add esp, 0x20
pop edi
pop esi
pop ebp
ret

Function at 0xa67fc0
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push 0
push edi
call fcn.00aa2520
add esp, 0xc
push 2
push esi
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
pop edi
sbb eax, eax
and eax, 2
pop esi
ret