joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10150a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x10150f4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10150df
call esi
mov esi, eax
jmp 0x10151ba
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10151ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1015115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x101513a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1015128
call esi
jmp 0x10151af
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10151b1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x1015179
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01018150
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x1015181
xor eax, eax
jmp 0x10151a3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.01018150
mov eax, esp
push esi
push edi
push eax
call fcn.010110bb
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.010142e5
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10155c6
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x101cba4
call fcn.01018068
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 0x1003698
push dword [ebp + 8]
call fcn.01011235
add esp, 0x10
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x1015620
push eax
push 0x1003650
push dword [ebp + 8]
call fcn.01011235
add esp, 0xc
jmp 0x101577c
push edi
push esi
push 1
push 0x64
push ebx
call fcn.01015252
mov edi, 0x20006
push edi
push 0x1003640
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.01011afe
mov esi, eax
test esi, esi
je 0x1015667
push esi
push 0x1003600
push dword [ebp + 8]
call fcn.01011235
add esp, 0xc
test esi, esi
jg 0x1015686
mov dword [ebp - 0x10], esi
jmp 0x101577b
push edi
push 0x10035b0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.01011afe
mov esi, eax
test esi, esi
je 0x1015694
push esi
push 0x1003530
jmp 0x1015650
and esi, 0xffff
or esi, 0x80070000
jmp 0x101565f
mov esi, 0x1003514
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x101574e
push 0x10034e4
push edi
call fcn.01011235
pop ecx
pop ecx
push esi
lea eax, [ebx + 0x286]
push eax
lea ecx, [ebp - 0x14]
call fcn.01011b87
push 0x10034c0
push 0x10034ac
lea ecx, [ebp - 0x14]
call fcn.01011b87
push edi
mov ecx, ebx
call fcn.010115ae
test eax, eax
mov ecx, ebx
push edi
je 0x10156f5
call fcn.0101166c
jmp 0x10156fa
call fcn.0101179a
test eax, eax
jne 0x1015719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003448
push edi
call fcn.01011235
mov dword [ebp - 0x10], 0x8007054f
jmp 0x1015772
push 0x1003400
push edi
call fcn.01011235
pop ecx
pop ecx
push edi
mov ecx, ebx
call fcn.010115ae
test eax, eax
jne 0x1015746
push 0x10033a8
push edi
call fcn.01011235
pop ecx
pop ecx
mov dword [ebp - 0x10], 0x8007054f
push edi
mov ecx, ebx
call fcn.010114f2
cmp dword [ebp - 0x10], 0
jl 0x1015775
push 0
push dword [ebp + 0xc]
push ebx
call fcn.01014634
test eax, eax
mov dword [ebp - 0x10], eax
jge 0x1015775
push eax
push 0x1003320
push edi
call fcn.01011235
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
push dword [ebp - 0x10]
push 0x10032c0
push dword [ebp + 8]
call fcn.01011235
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.01011a8b
lea ecx, [ebp - 0x14]
call fcn.01011a8b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1015eac
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1020128]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x1001cc4
push 0x66
push 0x65
push 0x64
push esi
push 0x10200c0
mov ecx, 0x1020398
mov dword [ebp - 0x218], eax
call fcn.010134e5
mov eax, dword [0x102021c]
mov esi, 0x1003fc4
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 0x65
mov dword [0x1020a48], 1
movsw word es:[edi], word [esi]
push dword [eax + 8]
lea ecx, [ebp - 0x220]
call fcn.0100dc4d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x218]
call fcn.010111e5
mov edi, eax
cmp edi, ebx
je 0x1015f79
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1003fac
push edi
call esi
test eax, eax
je 0x1015fb3
push 0x1003f98
push edi
call esi
test eax, eax
je 0x1015fc1
push 0x1003f88
push edi
call esi
test eax, eax
je 0x1015fc5
push 0x1003f74
push edi
call esi
test eax, eax
je 0x1015fc8
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.010111e5
mov edi, eax
cmp edi, ebx
jne 0x1015f39
mov esi, 0x20019
push esi
push 0x1003640
push 0x80000000
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], ebx
call fcn.01011afe
mov edi, eax
cmp edi, ebx
je 0x1015fd4
push ebx
push ebx
push 0x1486
push 1
call fcn.0101c1bf
jmp 0x101605e
push 2
call fcn.010158cc
mov edi, eax
jmp 0x1016069
push 1
jmp 0x1015fb5
push ebx
jmp 0x1015fb5
call fcn.01012177
xor edi, edi
jmp 0x1016069
push esi
push 0x10035b0
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
call fcn.01011afe
mov edi, eax
cmp edi, ebx
je 0x1016007
push ebx
push ebx
push 0x1486
push 1
call fcn.0101c1bf
jmp 0x1016053
lea eax, [ebp - 0x224]
push eax
push 0x1003514
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0x104
call fcn.01011b3a
cmp eax, ebx
mov dword [0x1020a48], ebx
jne 0x1016043
mov dword [0x1020a48], 1
mov ecx, 0x1020398
call fcn.01015e58
mov edi, dword [0x1020a34]
lea ecx, [ebp - 0x21c]
call fcn.01011a8b
lea ecx, [ebp - 0x218]
call fcn.01011a8b
push dword [ebp - 0x220]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01017bb1
leave
ret 0x10
Function at 0x101626f
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
cmp edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x101631e
cmp ebx, eax
je 0x101631e
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x40
mov dword [ebx], eax
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x10162f6
push eax
push edi
call fcn.01016212
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x101632b
lea eax, [ebp - 8]
push eax
push 0
push 1
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
call edi
test eax, eax
je 0x10162f6
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call esi
test eax, eax
mov dword [ebx], eax
je 0x10162f6
lea ecx, [ebp - 8]
push ecx
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1016301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x1016325
mov eax, dword [ebx]
mov ecx, dword [ebp - 8]
cmp word [eax + ecx*2 - 2], 0xa
jne 0x1016338
lea eax, [eax + ecx*2 - 4]
cmp word [eax], 0xd
jne 0x1016338
and word [eax], 0
jmp 0x1016325
mov dword [ebp + 0xc], 0x57
cmp dword [ebp + 0xc], 0
je 0x1016338
mov ebx, dword [ebx]
test ebx, ebx
je 0x1016338
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x101634a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
leave
ret 8
Function at 0x1016b7c
Capabilities:
Add user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push 3
push esi
push 0
call sub.NETAPI32.dll_NetUserGetInfo
mov edi, eax
test edi, edi
jne 0x1016beb
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x18]
mov edx, dword [ecx]
test dl, 0x12
je 0x1016bd8
and edx, 0x10
test dl, 2
mov dword [ecx], edx
je 0x1016bb9
and edx, 0xfffffffd
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 3
push esi
push 0
mov dword [eax], esi
call sub.NETAPI32.dll_NetUserSetInfo
mov edi, eax
mov eax, dword [ebp + 0x20]
push dword [ebp + 8]
mov dword [eax], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1016c31
cmp edi, 0x8ad
jne 0x1016c31
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x20], eax
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
push ecx
push eax
push 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0x10040
call sub.NETAPI32.dll_NetUserAdd
mov edi, eax
mov eax, dword [ebp + 0x20]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret 0x1c
Function at 0x1016e4b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
jne 0x1016e6c
push 0x57
pop eax
jmp 0x1016f67
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1016f67
push edi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1016f3e
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1016f3e
cmp dword [ebp + 0xc], esi
jle 0x1016f3e
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call edi
mov ebx, eax
cmp ebx, esi
jne 0x1016eee
mov dword [ebp + 8], 0xe
jmp 0x1016f3e
cmp dword [ebp + 0xc], esi
jl 0x1016f32
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
mov ecx, eax
push esi
xor eax, eax
push esi
mov edi, ebx
rep stosw word es:[edi], ax
dec dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1016f32
push dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
call dword [ebp + 0x10]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x1016eee
cmp dword [ebp + 8], 0x103
jne 0x1016f3e
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
je 0x1016f4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1016f5c
push dword [ebp - 0x10]
call edi
cmp ebx, esi
je 0x1016f63
push ebx
call edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1016f72
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x1016f93
push 0x57
pop eax
jmp 0x10170b3
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10170b3
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
jne 0x101703d
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call edi
mov ebx, eax
cmp ebx, esi
je 0x101703d
cmp dword [ebp - 0x14], esi
jbe 0x101703d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 8], eax
je 0x101703d
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x18], eax
mov ecx, eax
push esi
xor eax, eax
push esi
rep stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x101703d
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01016f72
cmp eax, esi
je 0x1017005
xor edi, edi
cmp ebx, esi
je 0x101707b
cmp edi, esi
jne 0x101707b
mov eax, dword [ebp - 0x10]
push esi
push esi
mov dword [ebp - 0x1c], eax
mov ecx, eax
push esi
xor eax, eax
push esi
mov edi, ebx
rep stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x101707b
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1017043
cmp dword [ebp - 4], esi
je 0x1017089
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp ebx, esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 8], eax
je 0x10170a5
push ebx
call edi
cmp dword [ebp - 8], esi
je 0x10170af
push dword [ebp - 8]
call edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1017538
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x10175b6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov ebx, eax
cmp ebx, edi
jne 0x10175ac
push 4
pop eax
cmp dword [ebp + 8], eax
jne 0x10175a9
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov ebx, eax
jmp 0x10175ac
push 2
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x1017cc9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004188
call fcn.01017f8c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1017d04
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017d04
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1017d1c
cmp eax, 0x20b
je 0x1017d09
mov dword [ebp - 0x1c], edi
jmp 0x1017d30
cmp dword [ecx + 0x84], 0xe
jbe 0x1017d04
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1017d2a
cmp dword [ecx + 0x74], 0xe
jbe 0x1017d04
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1020b34], 0xffffffff
or dword [0x1020b38], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1020aec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1020ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1020b30], eax
call fcn.01018234
cmp dword [0x1020130], edi
jne 0x1017d8d
push fcn.01018234
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101821d
push 0x1020050
push 0x102004c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1020ae4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1020ae0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1020048
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1017df3
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1017ead
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1017e41
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1017e0f
cmp ax, 0x22
jne 0x1017dfc
cmp word [esi], 0x22
jne 0x1017e1a
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1017e28
cmp ax, 0x20
jbe 0x1017e15
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1017e4e
movzx eax, word [ebp - 0x50]
jmp 0x1017e51
cmp word [esi], 0x20
jbe 0x1017e1a
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1017e41
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1017e72
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1017ea7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01017fc7
ret
Function at 0x1019a35
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1005e10
push 0x80000002
mov dword [ebp - 8], 0xd3d
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019a8d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1005df4
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1019f00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x138c
call fcn.01018150
mov eax, dword [0x1020128]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x138c]
push eax
call sub.msvcrt.dll_vswprintf
lea eax, [ebp - 0x138c]
push 0x1006284
push eax
call sub.ntdll.dll_wcscat
mov eax, dword [0x10201e8]
mov ecx, dword [ebp + 8]
and eax, 0xf
and ecx, 0xf
add esp, 0x14
cmp cl, al
jl 0x1019f92
test byte [ebp + 8], 0x10
je 0x1019f64
lea eax, [ebp - 0x138c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x1020bc0], 0
je 0x1019f92
lea eax, [ebp - 0x138c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x138c]
push eax
push dword [0x1020bc0]
call sub.msvcrt.dll__write
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.01017bb1
leave
ret 0xc
Function at 0x101b099
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
mov eax, dword [0x1020128]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov eax, 0x10077c0
jne 0x101b0c6
mov eax, 0x10077b8
push esi
push edi
push eax
push 0x1007798
call fcn.01019fa3
mov esi, dword [sym.imp.WS2_32.dll_htons]
xor eax, eax
mov edi, 0x1020b80
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
push 0x8ba
mov word [0x1020b80], 2
call esi
mov word [0x1020b82], ax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
mov word [ebp - 0x14], 2
call esi
cmp dword [ebp + 0xc], edi
mov word [ebp - 0x12], ax
je 0x101b130
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 0x7f000001
call esi
push edi
mov dword [0x1020b84], eax
call esi
jmp 0x101b143
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x1020b84], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
push edi
push 2
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
or esi, 0xffffffff
cmp eax, esi
mov dword [0x1020b98], eax
jne 0x101b164
push 0x1007728
jmp 0x101b1ab
push 4
lea ecx, [ebp - 0x20]
push ecx
push 0x20
push 0xffff
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
jne 0x101b190
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10076ec
jmp 0x101b1ab
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x1020b98]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x101b1b3
push 0x1007688
call fcn.01019fd7
pop ecx
jmp 0x101b1c6
mov dword [0x1020b3c], 0x30d4
call fcn.0101aa52
test eax, eax
je 0x101b1df
mov eax, dword [0x1020b98]
cmp eax, esi
mov dword [ebp - 0x18], edi
je 0x101b1df
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x1020b98], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
call fcn.01017bb1
leave
ret 8