joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040faa0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00402406
xor edi, edi
cmp eax, edi
jl 0x402f6c
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00402f79
pop ecx
test eax, eax
pop ecx
jne 0x402dff
mov eax, 0x80020009
jmp 0x402f6c
mov ecx, esi
call fcn.004023de
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00402406
cmp eax, edi
jl 0x402f6c
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x402f34
sub eax, 9
je 0x402e99
dec eax
dec eax
jne 0x402f5b
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x402e44
xor ebx, ebx
jmp 0x402e79
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040faa0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x402f4c
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x402ed5
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040faa0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.0040f5d0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x402edf
mov eax, 0x80004005
jmp 0x402f6c
cmp dword [ebp - 8], 0
jle 0x402f19
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00403000
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x402ee5
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x402f5b
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402406
cmp eax, edi
jl 0x402f6c
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b2ba
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.0040f5d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x67
push dword [ebp + 8]
call fcn.0040b457
push dword [ebp + 0x14]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x6a
push dword [ebp + 8]
call fcn.0040b457
push dword [ebp + 0x14]
lea eax, [ebp - 0x108]
push esi
push eax
push 0x6b
push dword [ebp + 8]
call fcn.0040b457
add esp, 0x48
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x40b44f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
mov edi, eax
push ebx
push 3
push edi
call esi
mov dword [ebp + 8], eax
inc eax
push eax
call fcn.0040edb3
pop ecx
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
push 3
push edi
call esi
cmp dword [ebp + 0x10], ebx
je 0x40b446
push dword [ebp + 0x10]
call fcn.0040f380
test eax, eax
pop ecx
je 0x40b446
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040b4ba
push dword [ebp + 0x10]
mov byte [ebp + 0xb], al
call fcn.0040e4eb
add esp, 0x18
cmp byte [ebp + 0xb], bl
jne 0x40b44f
push ebx
and edi, 0x3ff
push ebx
push 3
push edi
mov dword [ebp - 4], edi
call esi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040edb3
pop ecx
mov dword [ebp + 0x10], eax
push edi
push eax
push 3
push dword [ebp - 4]
call esi
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x40b417
push esi
call fcn.0040f380
test eax, eax
pop ecx
je 0x40b417
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
call fcn.0040b4ba
add esp, 0x14
mov byte [ebp + 0xb], al
push esi
call fcn.0040e4eb
cmp byte [ebp + 0xb], bl
pop ecx
jne 0x40b44f
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0x41e440
call fcn.0040b4ba
add esp, 0x14
jmp 0x40b44f
push dword [ebp + 0x10]
call fcn.0040e4eb
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b4ba
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, 0x41957c
call fcn.0040ed94
sub esp, 0x428
push ebx
push esi
push edi
xor ebx, ebx
push 3
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.0040f5d0
mov esi, 0x100
lea eax, [ebp - 0x234]
push esi
push ebx
push eax
call fcn.0040f5d0
push esi
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.0040f5d0
push esi
lea eax, [ebp - 0x334]
push ebx
push eax
call fcn.0040f5d0
lea eax, [ebp - 0x334]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004106fd
add esp, 0x44
lea eax, [ebp - 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004039b5
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x30], al
call fcn.004039b5
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0040f380
test eax, eax
pop ecx
mov esi, 0x41e444
jbe 0x40b5a0
lea eax, [ebp - 0x234]
push eax
call fcn.0040f380
test eax, eax
pop ecx
jbe 0x40b5a0
push edi
call fcn.0040f380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00403b7b
jmp 0x40b5df
lea eax, [ebp - 0x134]
push eax
call fcn.0040f380
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403b7b
push esi
call fcn.0040f380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00403b24
push edi
call fcn.0040f380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00403b24
lea eax, [ebp - 0x134]
push eax
call fcn.0040f380
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403b7b
push esi
call fcn.0040f380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00403b24
push dword [ebp + 0x14]
call fcn.0040f380
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 0x14]
call fcn.00403b24
push dword [ebp + 8]
call fcn.0040f380
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00403b24
push dword [ebp + 0x18]
call fcn.0040f380
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 0x18]
call fcn.00403b24
mov eax, dword [ebp - 0x1c]
mov edi, 0x41a648
cmp eax, ebx
jne 0x40b65a
mov eax, edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x40b6a0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40b688
mov eax, edi
cmp dword [ebp - 0x1c], ebx
je 0x40b690
mov edi, dword [ebp - 0x1c]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004039b5
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004039b5
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c616
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
push edi
mov esi, str.LaunchThis
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x9c]
push edi
push esi
push eax
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40c6cc
push 0x3c
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40c6c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1a0]
push str._s___CreateProcess_Failed_GetLastError___d__pExe_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40c6cf
mov esi, dword [ebp - 0x20]
jmp 0x40c6cf
mov esi, dword [ebp - 0x1c]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40d2f8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40d34c
cmp dword [ebp - 0x90], 5
jne 0x40d34c
cmp dword [ebp - 0x8c], ebx
jbe 0x40d34c
mov bl, 1
mov al, bl
pop ebx
leave
ret
Function at 0x10001c82
Capabilities:
Create process on windows

Disassembly:
push 0x94
mov eax, 0x1003f9b5
call fcn.1003a17c
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x88], ebx
test esi, esi
je 0x10001d91
cmp byte [esi], bl
je 0x10001d91
push 0x44
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.10022cd0
xor eax, eax
mov dword [ebp - 0x1c], ebx
inc eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
push esi
call fcn.10001281
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.100016f4
push ecx
push 0x1004f25c
lea ecx, [ebp - 0x2c]
call fcn.10001d99
push eax
push ebx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001e28
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x88], 1
jb 0x10001d26
mov eax, dword [eax]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
mov dword [ebp - 4], ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x88], ecx
and ecx, 0xfffffffe
push ebx
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0xa0]
push 1
call fcn.1000176d
test esi, esi
je 0x10001d7d
push dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x80]
call esi
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.1000176d
mov al, bl
jmp 0x10001d93
xor al, al
call fcn.1003a12b
ret
Function at 0x10004966
Capabilities:
Parse credit card information

Disassembly:
lea eax, [ecx - 2]
cmp eax, 0xa
ja case.default.0x10004972
jmp dword [eax*4 + 0x10004ad6]
cmp dl, 0x40
jne 0x10004982
push 4
pop eax
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x1000498e
cmp al, 0x7a
jbe 0x100049f1
cmp dl, 0x30
jl 0x10004998
cmp dl, 0x39
jle 0x100049f1
cmp dl, 0x2d
je 0x100049f1
cmp dl, 0x5f
je 0x100049f1
cmp dl, 0x2e
je 0x100049f1
cmp dl, 0x21
je 0x100049f1
cmp dl, 0x7e
je 0x100049f1
cmp dl, 0x2a
je 0x100049f1
cmp dl, 0x27
je 0x100049f1
cmp dl, 0x28
je 0x100049f1
cmp dl, 0x29
je 0x100049f1
cmp dl, 0x25
je 0x100049f1
cmp dl, 0x3b
je 0x100049f1
cmp dl, 0x3a
je 0x100049f1
cmp dl, 0x26
je 0x100049f1
cmp dl, 0x3d
je 0x100049f1
cmp dl, 0x2b
je 0x100049f1
cmp dl, 0x24
je 0x100049f1
cmp dl, 0x2c
jne case.default.0x10004972
push 3
pop eax
ret
cmp dl, 0x5b
jne 0x100049fe
push 5
pop eax
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10004a0a
cmp al, 0x7a
jbe 0x10004a22
cmp dl, 0x30
jl 0x10004a14
cmp dl, 0x39
jle 0x10004a22
cmp dl, 0x2e
je 0x10004a22
cmp dl, 0x2d
jne case.default.0x10004972
push 6
pop eax
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10004a32
cmp al, 0x7a
jbe 0x10004a22
cmp dl, 0x30
jl 0x10004a3c
cmp dl, 0x39
jle 0x10004a22
cmp dl, 0x2e
je 0x10004a22
cmp dl, 0x2d
je 0x10004a22
cmp dl, 0x3a
jne case.default.0x10004972
push 0xb
pop eax
ret
cmp dl, 0x5d
jne case.0x10004972.5
push 8
pop eax
ret
cmp dl, 0x30
jl 0x10004a66
cmp dl, 0x39
jle 0x10004a8a
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10004a72
cmp al, 0x66
jbe 0x10004a8a
cmp dl, 0x3a
je 0x10004a8a
cmp dl, 0x2e
je 0x10004a8a
cmp ecx, 7
jne case.default.0x10004972
cmp dl, 0x25
jne case.default.0x10004972
push 9
pop eax
ret
push 7
pop eax
ret
cmp dl, 0x5d
je 0x10004a58
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10004a9f
cmp al, 0x7a
jbe 0x10004ac2
cmp dl, 0x30
jl 0x10004aa9
cmp dl, 0x39
jle 0x10004ac2
cmp dl, 0x25
je 0x10004ac2
cmp dl, 0x2e
je 0x10004ac2
cmp dl, 0x2d
je 0x10004ac2
cmp dl, 0x5f
je 0x10004ac2
cmp dl, 0x7e
jne case.default.0x10004972
push 0xa
pop eax
ret
sub dl, 0x30
cmp dl, 9
ja case.default.0x10004972
push 0xc
pop eax
ret
xor eax, eax
inc eax
ret
Function at 0x1000a842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x1000a89b
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x1000a88c
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000a888
cmp esi, ecx
jae 0x1000a88c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x1000a878
cmp esi, ecx
jb 0x1000a890
xor eax, eax
jmp 0x1000a89a
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ca5b
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, 0x811c9dc5
mov edx, dword [eax]
jmp 0x1000ca81
lea eax, [ecx - 0x41]
inc edx
cmp al, 0x19
ja 0x1000ca76
add cl, 0x20
imul esi, esi, 0x1000193
movsx ecx, cl
xor esi, ecx
mov cl, byte [edx]
test cl, cl
jne 0x1000ca6b
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10011377
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov byte [ebp - 1], dl
mov esi, ebx
cdq
push edi
mov edi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x1c]
or esi, eax
mov dword [ebp - 8], eax
jne 0x100113f9
mov ebx, edi
mov dword [ebp - 8], edx
xor ecx, ecx
mov edi, dword [ebp + 0x20]
cmp dword [ebp + 0xc], ecx
push 2
setne cl
xor eax, eax
shl ecx, 8
cmp dword [ebp - 0xc], eax
pop edx
setne al
mov dword [ebp + 0x1c], edx
or ecx, eax
xor esi, esi
movzx eax, byte [ebp - 1]
and eax, 7
shl ecx, 3
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
and eax, 0xf
shl ecx, 4
or ecx, eax
mov eax, dword [ebp - 8]
mov dword [edi], ecx
cmp eax, esi
ja 0x1001143b
jb 0x100113ea
cmp ebx, 0x7e
jae 0x10011412
movzx eax, bl
and eax, 0x7f
shl eax, 8
or eax, ecx
mov dword [edi], eax
jmp 0x10011468
cmp eax, edx
ja 0x100113a0
jb 0x10011403
cmp ebx, edi
jae 0x100113a0
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x100114b5
cmp eax, esi
ja 0x1001143b
jb 0x10011420
cmp ebx, 0xffff
ja 0x1001143b
or ecx, 0x7e00
push ebx
mov dword [edi], ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
shl eax, 0x10
or dword [edi], eax
push 4
jmp 0x10011464
mov esi, dword [sym.imp.WS2_32.dll_htonl]
or ecx, 0x7f00
push eax
mov dword [edi], ecx
call esi
push ebx
mov edi, eax
call esi
xor ecx, ecx
xor esi, esi
or ecx, edi
or eax, esi
mov edi, dword [ebp + 0x20]
push 0xa
mov dword [edi + 2], ecx
mov dword [edi + 6], eax
pop edx
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x100114a1
push 4
push eax
lea eax, [edx + edi]
push eax
call fcn.10021e60
mov edx, dword [ebp + 0x14]
add esp, 0xc
test edx, edx
jle 0x1001149b
mov ecx, dword [ebp + 0xc]
mov eax, esi
and eax, 3
mov al, byte [eax + ecx]
xor byte [esi + ebx], al
inc esi
cmp esi, edx
jl 0x1001148b
mov edx, dword [ebp + 0x1c]
add edx, 4
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], edi
mov dword [eax], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100117f7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push eax
push dword [ebp - 0xc]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x1001183e
call fcn.1000a89f
jmp 0x1001187b
mov eax, dword [ebp - 0x10]
push 4
pop edx
push ebx
push eax
push ebx
push ebx
push edx
push ecx
mov dword [edi + 4], eax
mov dword [edi + 0x18], edx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x10011879
call fcn.1000a89f
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 8], ebx
mov eax, esi
jmp 0x1001187b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret 0x18

Function at 0x100119b5
Capabilities:
Resolve dns

Disassembly:
push 0xb8
mov eax, 0x10040f24
call fcn.1003a17c
mov dword [ebp - 0x38], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x1a
mov dword [ebp - 0x3c], eax
add eax, 2
push ebx
push eax
mov dword [ebp - 0x40], eax
call fcn.10022cd0
add esp, 0xc
mov dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x2c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc4]
push esi
mov dword [ebp - 0x30], 0x100
movzx eax, word [edi]
mov dword [ebp - 0x2c], eax
call fcn.1000d92f
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc0]
cmp dword [ebp - 0xc4], eax
je 0x10011a40
push dword [ebp - 0xc4]
call fcn.100245a4
pop ecx
test esi, esi
je 0x10011a4f
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x10011aab
mov ecx, dword [ebp - 0x34]
mov eax, ecx
test ecx, ecx
je 0x10011a82
cmp dword [eax + 4], 2
je 0x10011a6d
cmp dword [eax + 4], 0x17
je 0x10011a6d
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10011a58
jmp 0x10011a82
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call fcn.10021e60
mov ecx, dword [ebp - 0x34]
xor ebx, ebx
add esp, 0xc
inc ebx
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x10011a9e
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x40]
mov word [ecx], ax
jmp 0x10011aa9
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
call fcn.1003a12b
ret
Function at 0x10011b3a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10059400]
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, edx
mov word [ebp - 0x24], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 8], 0x1c
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10011b79
xor eax, eax
jmp 0x10011b8a
push ebx
push edi
push esi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.10011ab1
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret

Function at 0x10011bbe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x10011be9
sub esp, 0x18
push ecx
mov ecx, dword [esi + 4]
call fcn.10011787
jmp 0x10011c02
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
jne 0x10011c0e
call fcn.1000a89f
jmp 0x10011c12
mov dword [esi], eax
xor eax, eax
test eax, eax
js 0x10011c70
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
jne 0x10011c38
call fcn.1000a89f
mov ecx, dword [ebp - 0x10]
test eax, eax
js 0x10011c3a
xor eax, eax
mov edx, dword [ebp - 0xc]
test eax, eax
js 0x10011c70
test edx, edx
jne 0x10011c4b
test ecx, ecx
je 0x10011c62
test edx, edx
ja 0x10011c62
jb 0x10011c54
cmp ecx, dword [ebp + 0xc]
ja 0x10011c62
sub esp, 0x14
mov ecx, edi
push dword [esi]
call fcn.100117f7
jmp 0x10011c70
or ecx, edx
mov eax, 0x800703ee
je 0x10011c70
mov eax, 0x800700df
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10021e50
mov esp, ebp
pop ebp
ret

Function at 0x10011d14
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
mov eax, ecx
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], eax
inc ecx
mov dword [ebp - 0xc], ecx
push esi
push edi
test edx, edx
jne 0x10011d58
lea ecx, [ebp - 0xc]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, 0xffff
push 4
push ecx
push 0xfffffffffffffffb
push ebx
push eax
call esi
mov edi, eax
lea eax, [ebp - 8]
jmp 0x10011d82
cmp edx, ecx
jne 0x10011d61
lea ecx, [ebp - 8]
jmp 0x10011d3d
cmp edx, 2
jne 0x10011d91
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 8]
push 4
push ecx
push 0xfffffffffffffffb
mov ebx, 0xffff
push ebx
push eax
call esi
mov edi, eax
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push ebx
push dword [ebp - 0x10]
call esi
or edi, eax
jmp 0x10011d9c
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret