joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f710
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa97abb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
push 0
push 0xa9a958
mov dword [ebp - 4], 0
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], 0
mov dword [esi + 0x34], 0
call fcn.0042e460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa97b2a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00a3b4dd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x46f856
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.00a13b5b
push 0xad29d4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00a105f7
push edi
push esi
call fcn.00a3b9df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a0fe04
mov esp, ebp
pop ebp
ret 4
Function at 0x4a91f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
push esi
xor edx, edx
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 0x4a9232
mov ebx, dword [ebp + 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
mov al, byte [ebx]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
xor byte [ecx + esi], al
mov eax, dword [edx]
inc esi
cmp esi, eax
jl 0x4a921e
mov edx, dword [ebp - 4]
inc edx
add edi, 4
mov dword [ebp - 4], edx
cmp edx, 4
jl 0x4a9210
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4a9848
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x54], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov al, byte [ebp + 0x14]
lea ebx, [edi + 0x64]
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x50], al
call fcn.00a105ee
push ebx
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00a0ffc0
push edi
push esi
push dword [ebp - 0x40]
call fcn.00a0f7c0
add esp, 0x1c
mov eax, edi
test edi, edi
je 0x4a98a6
mov byte [esi], 0
inc esi
dec eax
jne 0x4a989f
mov esi, dword [ebp - 0x40]
xor eax, eax
push 8
pop ecx
push dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x3c]
add eax, 0xf
and eax, 0xfffffff0
push eax
push esi
mov dword [ebp - 0x16], 0x36433442
mov word [ebp - 0xe], 0x4441
mov dword [ebp - 0x12], 0x42304134
mov dword [ebp - 0x23], 0x45384545
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.004a9393
mov dword [ebp - 0x3c], eax
mov edx, esi
test ebx, ebx
je 0x4a9941
mov byte [edx], 0
inc edx
dec ebx
jne 0x4a993a
push dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
push eax
push edi
call fcn.004a9a14
push esi
call fcn.00a105e9
push dword [ebp - 0x3c]
call fcn.00a105e9
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a0fe04
leave
ret 0x10

Function at 0x4a9974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4a999b
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
dec edx
jne 0x4a998d
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4a999f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 4
sub edx, ecx
sub esi, ecx
pop edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
dec edi
jne 0x4a99b4
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4a9a14
Capabilities:
Encode data using base64

Disassembly:
push 0x74
mov eax, 0xa98020
call fcn.00a13e3c
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x54], al
lea eax, [ebp - 0x53]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.00a0ffc0
add esp, 0xc
xor ecx, ecx
lea eax, [ecx + 0x41]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x4a9a3f
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x4a9a4e
xor ecx, ecx
lea eax, [ecx + 0x30]
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x4a9a5d
and dword [ebp - 0x5c], 0
mov word [ebp - 0x16], 0x2f2b
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4a9bba
mov ebx, dword [ebp + 0x10]
push 3
pop edi
mov ecx, dword [ebp + 0xc]
dec ebx
mov al, byte [ecx]
mov byte [ebp + esi - 0x74], al
mov dl, byte [ebp - 0x73]
inc esi
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x72]
mov cl, byte [ebp - 0x74]
mov byte [ebp - 0x76], ch
mov byte [ebp - 0x75], dl
mov byte [ebp - 0x77], cl
cmp esi, edi
jne 0x4a9b12
mov al, cl
shr al, 2
mov byte [ebp - 0x70], al
and cl, 3
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov byte [ebp - 0x6f], cl
mov cl, dl
and cl, 0xf
mov al, ch
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x6e], cl
mov byte [ebp - 0x6d], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x70]
lea ecx, [ebp - 0x6c]
movzx eax, byte [ebp + eax - 0x54]
push eax
push 1
call fcn.004707f0
inc esi
cmp esi, 4
jl 0x4a9aec
mov dl, byte [ebp - 0x75]
mov cl, byte [ebp - 0x77]
mov ch, byte [ebp - 0x76]
xor esi, esi
test ebx, ebx
jne 0x4a9a94
mov ebx, dword [ebp - 0x7c]
test esi, esi
je 0x4a9bba
mov eax, esi
cmp esi, edi
jge 0x4a9b46
cmp eax, edi
jae 0x4a9be5
mov byte [ebp + eax - 0x74], 0
inc eax
cmp eax, edi
jl 0x4a9b2d
mov ch, byte [ebp - 0x72]
mov dl, byte [ebp - 0x73]
mov cl, byte [ebp - 0x74]
and dword [ebp - 0x74], 0
mov al, cl
shr al, 2
mov byte [ebp - 0x70], al
mov al, dl
and cl, 3
shr al, 4
shl cl, 4
add cl, al
and dl, 0xf
mov al, ch
shr al, 6
shl dl, 2
add dl, al
and ch, 0x3f
lea eax, [esi + 1]
mov byte [ebp - 0x6f], cl
mov byte [ebp - 0x6e], dl
mov byte [ebp - 0x6d], ch
test eax, eax
jle 0x4a9ba5
mov ebx, dword [ebp - 0x74]
lea edi, [esi + 1]
movzx eax, byte [ebp + ebx - 0x70]
lea ecx, [ebp - 0x6c]
movzx eax, byte [ebp + eax - 0x54]
push eax
push 1
call fcn.004707f0
inc ebx
cmp ebx, edi
jl 0x4a9b85
mov ebx, dword [ebp - 0x7c]
push 3
pop edi
cmp esi, edi
jge 0x4a9bba
sub edi, esi
push 0x3d
push 1
lea ecx, [ebp - 0x6c]
call fcn.004707f0
dec edi
jne 0x4a9bab
and dword [ebx + 0x10], 0
lea eax, [ebp - 0x6c]
mov dword [ebx + 0x14], 0xf
push eax
mov ecx, ebx
mov byte [ebx], 0
call fcn.004a99c6
lea ecx, [ebp - 0x6c]
call fcn.0042cd90
mov eax, ebx
call fcn.00a13deb
ret 0xc
call fcn.00a10c1e
int3
Function at 0x51a09c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
or esi, 0xffffffff
call dword [ebx + 0xc0]
mov edi, eax
cmp edi, esi
je 0x51a0f6
xor ecx, ecx
push ecx
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [ebx + 0xb0]
test eax, eax
cmovne esi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a0fe04
leave
ret 4

Function at 0x540166
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 0xa216db
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00a15d56
mov dword [ebp - 0x14], eax
cmp dword [0xaddf2c], edi
jne 0xa217cc
push 0x800
push edi
push 0xab711c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0xa21759
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0xa218ac
push 0xab711c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0xa218ac
push 0xab7134
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xa218ac
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0xaddf2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0xaddf30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0xaddf34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaddf3c], eax
test eax, eax
je 0xa217c9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaddf38], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0xa217f1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0xa217e4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0xa21806
push 4
pop eax
jmp 0xa218ae
cmp dword [ebp - 0x14], edi
je 0xa21806
push dword [0xaddf2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0xa217eb
mov eax, dword [0xaddf38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0xa21864
cmp dword [0xaddf3c], esi
je 0xa21864
push eax
call ebx
push dword [0xaddf3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0xa21864
test eax, eax
je 0xa21864
call ecx
test eax, eax
je 0xa21859
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0xa21859
test byte [ebp - 8], 1
jne 0xa21864
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0xa21894
mov eax, dword [0xaddf30]
cmp eax, esi
je 0xa21891
push eax
call ebx
test eax, eax
je 0xa21891
call eax
mov edi, eax
test edi, edi
je 0xa21891
mov eax, dword [0xaddf34]
cmp eax, esi
je 0xa21891
push eax
call ebx
test eax, eax
je 0xa21891
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0xaddf2c]
call ebx
test eax, eax
je 0xa218ac
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0xa218ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a0fe04
leave
ret
Function at 0xa24bd9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00a15892
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0xa24c11
xor eax, eax
jmp 0xa24c3d
cmp esi, dword [ebp - 4]
je 0xa24c3a
cmp dword [ebp + 0xc], 0
je 0xa24c3a
push dword [edi + 0x9c]
call fcn.00a247e7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00a216c2
pop ecx
pop ecx
cmp esi, eax
je 0xa24c0d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0xa44c60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0xa44c96
mov al, byte [esi]
push eax
call fcn.00a53240
movsx ecx, al
mov eax, ebx
shl eax, 5
add eax, ebx
xor ecx, eax
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0xa44c78
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0xa4f7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x78c], 0
je 0xa4f826
cmp dword [edi + 0x1c4], 0
je 0xa4f7f0
push esi
push edi
call fcn.00a404b0
push 1
push edi
mov esi, eax
call fcn.00a40700
push dword [edi + 0x174]
mov eax, dword [edi + 0x1c4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push esi
push edi
call fcn.00a40700
add esp, 0x28
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0xa4f826
push dword [edi + 0x170]
lea eax, [eax + eax*2]
push 1
add eax, 0xabe4f4
push 2
push eax
call fcn.00a8e25f
push dword [edi + 0x170]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00a8e25f
add esp, 0x20
pop edi
pop ebp
ret

Function at 0xa516e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xa51700
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0xabe70c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0xabe71c
push esi
mov dword [ebp - 8], ebx
call fcn.00a23f0a
add esp, 8
test eax, eax
je 0xa5174c
test ebx, ebx
je 0xa5173c
push 8
push 0
push esi
call ebx
pop esi
pop ebx
mov edi, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebx
mov edi, eax
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa51775
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xa51775
push 0x800
push 0
push esi
call ebx
pop esi
pop ebx
mov edi, eax
pop edi
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 0xa51852
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa51791
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xada7a8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xa51848
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xa51848
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0xa517d5
sub edx, ecx
sar edx, 1
mov ecx, 0xa9c380
lea edx, [ebx + edx*2]
sub edx, ecx
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0xa517f0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa51804
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
jmp 0xa51820
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0xa51820
mov eax, dword [ebp - 8]
test eax, eax
je 0xa5183f
push 8
push 0
push ebx
call eax
jmp 0xa51846
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xada7ac]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0xa518a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0xa518f9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xa518e6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0xa518e0
shr eax, 8
cmp al, 2
je 0xa518f9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a0fe04
mov esp, ebp
pop ebp
ret
call fcn.00a80f30
test eax, eax
jne 0xa5195f
push str.iphlpapi.dll
call fcn.00a516e0
add esp, 4
mov dword [0xae04e8], eax
test eax, eax
je 0xa51935
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0xae04e4]
test eax, eax
cmovne ecx, eax
mov dword [0xae04e4], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.00a80ac0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0xae36b0
mov dword [0xae36ac], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a0fe04
mov esp, ebp
pop ebp
ret

Function at 0xa56420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0xa5643e
cmp dword [esi + 0x78], 0
je 0xa5643e
push 2
push 3
push esi
call fcn.00a539b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00a55eb0
add esp, 4
test esi, esi
je 0xa5645e
cmp dword [esi + 0x78], 0
je 0xa5645e
push 3
push esi
call fcn.00a539f0
add esp, 8
pop esi
pop ebp
ret
Function at 0xa5ead0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xa5eaeb
cmp dword [edi], 0
jne 0xa5eafd
test esi, esi
je 0xa5eaf4
cmp dword [esi], 0
jne 0xa5eafd
test ebx, ebx
je 0xa5eb46
cmp dword [ebx], 0
je 0xa5eb46
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.00a85340
add esp, 0xc
test ebx, ebx
je 0xa5eb18
cmp dword [ebx], 0
jne 0xa5eb1a
xor ebx, ebx
test esi, esi
je 0xa5eb23
cmp dword [esi], 0
jne 0xa5eb25
xor esi, esi
test edi, edi
je 0xa5eb2e
cmp dword [edi], 0
jne 0xa5eb30
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00a5ea80
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa61ff0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00a455c0
movq xmm0, qword [eax]
push dword [ebp + 8]
movq qword [ebp - 8], xmm0
movq xmm0, qword [eax + 8]
movq qword [ebp - 0x10], xmm0
call fcn.00a60230
push dword [ebp + 0xc]
mov edi, eax
call fcn.00a60230
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0xa6209f
lea esp, [esp]
lea eax, [ebp - 0x28]
push eax
call fcn.00a455c0
movq xmm0, qword [ebp - 8]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax]
mov ecx, esp
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
call fcn.00a45660
add esp, 0x20
test edx, edx
ja 0xa620c2
jb 0xa6208d
cmp eax, 0x3e8
ja 0xa620c2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0xa62040
test edi, edi
je 0xa620ac
push edi
call fcn.00a0fe13
add esp, 4
test esi, esi
je 0xa620b9
push esi
call fcn.00a0fe13
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0xa620cf
push edi
call fcn.00a0fe13
add esp, 4
test esi, esi
je 0xa620dc
push esi
call fcn.00a0fe13
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa62500
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0xa6266d
push esi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0xa62659
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0xa6255c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa62550
sub eax, edx
inc eax
jmp 0xa6255e
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 4], eax
jne 0xa62615
cmp dword [esi + 0x18], 0
je 0xa62615
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0xa62615
cmp ecx, 0x10
jb 0xa62615
add eax, 0x30
push eax
call dword [0xada7a8]
mov edi, eax
add esp, 4
test edi, edi
je 0xa6264e
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
lea ecx, [edi + 0x20]
mov dword [edi + 0x18], ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov eax, dword [esi + 0x18]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0xa62603
mov eax, dword [edi + 0x18]
add eax, 0x10
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00a0f7c0
add esp, 0xc
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0xa62612
mov dword [eax + 0x1c], edi
mov dword [ebp - 8], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0xa62540
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop edi
test eax, eax
je 0xa62632
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0xa62655
push ebx
call fcn.00a624d0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0xa62623
test ebx, ebx
jne 0xa62665
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa629e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00a10050
add esp, 0x18
test eax, eax
je 0xa62a02
cmp eax, 0xffffffff
jne 0xa62a04
xor eax, eax
pop ebp
ret

Function at 0xa62b60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00a0ffc0
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret