joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004564
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esi], edi
call fcn.01002cbd
push 0x10142cc
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0xa
mov ecx, ebx
call fcn.01002d18
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jl 0x10045f2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 0x64
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x10045c5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x10045fb
call edi
jmp 0x1004607
push edi
push 1
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x10045b5
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1004558
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x10045b5
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10045f2

Function at 0x10046dd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x1014344], 1
push ebx
push esi
push edi
jne 0x1004700
or dword [0x1014344], 1
call fcn.0100468f
mov dword [0x1014340], eax
push 4
pop eax
call fcn.01007230
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100478c
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1014294]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100478c
cmp eax, 1
je 0x10047a4
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100478c
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1004761
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1004788
xor eax, eax
inc eax
jmp 0x10047c0
cmp esi, ebx
jae 0x1004790
xor eax, eax
jmp 0x10047c0
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1014294]
jmp 0x10047a6
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004a12
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x100547e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10140b8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call fcn.010049c3
cmp eax, esi
jne 0x1005501
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10054ca
lea eax, [ebp - 0x114]
push eax
call fcn.0100547e
cmp eax, esi
jne 0x1005500
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
lea ecx, [ebp - 8]
je 0x10054ba
call fcn.0100495e
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0100495e
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.0100701d
leave
ret 4
Function at 0x1006947
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
je 0x10069a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x1006990
push esi
call fcn.010047c8
test al, al
je 0x1006990
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov eax, esp
jmp 0x1006999
push esi
lea ecx, [ebp - 4]
call fcn.010055e7
push ebx
push esi
push dword [ebp + 8]
push eax
call fcn.01004858
cmp eax, ebx
jne 0x10069b2
mov esi, 0x8007000e
jmp 0x1006ab4
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], esi
jne 0x10069ef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10069da
call esi
mov esi, eax
jmp 0x1006ab4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006ab4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x1006a10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x1006a35
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1006a23
call esi
jmp 0x1006aa9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006aab
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x1006a92
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x1006a6f
push edi
call fcn.010047c8
test al, al
je 0x1006a6f
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov eax, esp
jmp 0x1006a78
push edi
lea ecx, [ebp - 4]
call fcn.010055e7
test eax, eax
je 0x1006a96
mov ecx, edi
mov edx, ecx
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 byte [eax + ebx], 0
test eax, eax
jne 0x1006a9d
mov esi, 0x8007000e
jmp 0x1006aab
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0100664e
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 4]
call fcn.0100535e
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100702b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001900
call fcn.010072a8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x100707f
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100707f
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1007097
cmp ecx, 0x20b
je 0x1007084
mov dword [ebp - 0x60], ebx
jmp 0x10070ae
cmp dword [eax + 0x1000084], 0xe
jbe 0x100707f
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x10070a8
cmp dword [eax + 0x1000074], 0xe
jbe 0x100707f
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10155cc], edi
mov dword [0x10155d0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1014378]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1014374]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10155c8], eax
call fcn.01007318
cmp dword [0x10140c0], ebx
jne 0x100710b
push fcn.01007318
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007306
push 0x1014040
push 0x101403c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1014370]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x101436c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x1014038
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x1007196
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1007176
cmp cl, 0x22
jne 0x1007167
cmp byte [eax], 0x22
jne 0x100717f
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x100718a
cmp cl, 0x20
jbe 0x100717b
test byte [ebp - 0x30], 1
je 0x10071a1
movzx ecx, word [ebp - 0x2c]
jmp 0x10071a4
cmp byte [eax], 0x20
jbe 0x100717f
inc eax
mov dword [ebp - 0x78], eax
jmp 0x1007196
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01006d9e
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x10071c2
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10071fe
mov eax, esi
jmp 0x1007212
call fcn.010072e3
ret
Function at 0x100b798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x10143b0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [0x10143b0], 0x114
call fcn.0100e46d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x10020d0
push bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push 4
pop edi
jne 0x100b829
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10020b8
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x100b829
cmp dword [ebp - 8], edi
jne 0x100b829
cmp dword [ebp - 0xc], esi
je 0x100b829
mov ebx, esi
jmp 0x100b88e
cmp dword [0x10143c0], 2
jne 0x100b847
cmp dword [0x10143b4], edi
jbe 0x100b847
cmp dword [0x10143b8], esi
jbe 0x100b847
push 3
pop edi
jmp 0x100b8ac
push 0x10020ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x100b88e
push 0x1002094
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x10144d4], eax
je 0x100b88e
lea eax, [ebp - 0x10]
push eax
call fcn.0100b744
test eax, eax
jl 0x100b888
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100b888
call fcn.0100b785
jmp 0x100b899
mov dword [0x10144d4], esi
xor edi, edi
cmp dword [0x10143c0], 1
jne 0x100b89c
xor edi, edi
inc edi
cmp ebx, esi
je 0x100b8ac
cmp edi, 1
je 0x100b8ac
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10140d8], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c5c3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1001528
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100c617
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100c625
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x100c62d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x100c64e
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x100c656
push 0x57
pop eax
jmp 0x100c712
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x100c690
cmp edi, 2
jne 0x100c701
push esi
mov dword [esi], ebx
call fcn.0100c2f4
mov edi, eax
cmp edi, ebx
jne 0x100c701
xor edi, edi
jmp 0x100c6f8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x100c6b1
cmp eax, 0x7a
jne 0x100c6ea
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100c6c5
push 0xe
pop edi
jmp 0x100c701
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x100c701
mov eax, dword [esi]
cmp eax, ebx
je 0x100c6ea
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov dword [esi], ebx
call fcn.0100c2f4
mov edi, eax
cmp edi, ebx
jne 0x100c701
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
cmp dword [ebp - 4], ebx
je 0x100c70f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x100cbd1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x100cbea
cmp dword [ebp + 0xc], esi
jne 0x100cbef
push 0x57
pop eax
jmp 0x100cc6d
push 2
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov eax, dword [ebp - 0x18]
cmp eax, esi
jbe 0x100cc6a
mov esi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [eax - 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x100cc38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100cc62
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
je 0x100cc4b
cmp cl, 1
je 0x100cc4b
cmp cl, 2
jne 0x100cc62
add eax, 8
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100cc62
push edi
push dword [ebp + 8]
call esi
and dword [ebp - 4], 0
dec edi
dec dword [ebp - 0xc]
jne 0x100cc1b
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x100e0db
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.0100df28
test al, al
je 0x100e0f7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x100e13d
cmp dword [ebp + 0xc], 0
jne 0x100e104
mov eax, 0x3f2
jmp 0x100e13d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100cc9f
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x100e1bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0100df28
test al, al
je 0x100e1e9
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100e2dd
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x100e223
push dword [ebp + 0xc]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0100cc9f
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x100e295
cmp eax, 2
je 0x100e295
cmp eax, 7
jne 0x100e28c
mov ebx, dword [ebp + 0x18]
xor eax, eax
test ebx, ebx
jne 0x100e242
xor ecx, ecx
jmp 0x100e286
push ebx
call fcn.0100cd1b
cmp eax, 0xffffffff
push ebx
jne 0x100e253
call edi
inc eax
jmp 0x100e258
call fcn.0100cd1b
lea edi, [eax + eax]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov dword [ebp + 0x18], esp
push ebx
call fcn.0100cd1b
push eax
push edi
push ebx
push dword [ebp + 0x18]
call fcn.0100cc9f
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push eax
push ecx
push 7
jmp 0x100e2d0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
jmp 0x100e2d0
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 0x18], ecx
je 0x100e2cb
push dword [ebp + 0x18]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0x18]
push ebx
call fcn.0100cc9f
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x100e2e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0100df28
test al, al
je 0x100e315
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x100e463
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x100e320
xor esi, esi
jmp 0x100e351
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100cc9f
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x100e463
cmp dword [ebp + 0x18], ebx
mov ecx, dword [ebp - 4]
jne 0x100e3af
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x100e39d
cmp ecx, ebx
jbe 0x100e398
cmp ecx, 2
jbe 0x100e391
cmp ecx, 7
jne 0x100e398
mov edx, dword [ebp - 8]
add edx, edx
jmp 0x100e39b
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x100e460
mov dword [eax], ecx
jmp 0x100e460
cmp ecx, ebx
jbe 0x100e3c4
cmp ecx, 2
jbe 0x100e3bd
cmp ecx, 7
jne 0x100e3c4
mov eax, dword [ebp - 8]
add eax, eax
jmp 0x100e3c7
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x1c]
cmp dword [ebx], eax
jae 0x100e3e2
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100e3d9
mov dword [eax], ecx
mov dword [ebp + 0xc], 0xea
jmp 0x100e460
test ecx, ecx
jbe 0x100e44d
cmp ecx, 2
jbe 0x100e3f0
cmp ecx, 7
jne 0x100e44d
add eax, 3
and eax, 0xfffffffc
call fcn.01007230
mov dword [ebp + 0x1c], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x100e460
cmp dword [ebp - 4], eax
jbe 0x100e460
cmp dword [ebp - 4], 2
jbe 0x100e42a
cmp dword [ebp - 4], 7
jne 0x100e460
push dword [ebp - 8]
push dword [ebx]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0100ccbe
shl eax, 1
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100e460
mov ecx, dword [ebp - 4]
jmp 0x100e3a8
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x100e6bd
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx]
push esi
xor esi, esi
test al, al
mov edx, ecx
je 0x100e6e9
cmp al, 0x2e
jne 0x100e6d1
inc esi
inc edx
mov al, byte [edx]
test al, al
jne 0x100e6cc
cmp esi, 3
jne 0x100e6e9
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100e6ed
xor eax, eax
jmp 0x100e6f6
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
pop esi
ret 8
Function at 0x100e760
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x100e7da
cmp word [ebx + 8], 2
jne 0x100e7b6
cmp word [ebx + 0xa], 4
jne 0x100e7b6
mov esi, dword [ebx + 0xc]
jmp 0x100e7b0
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100e6fa
test eax, eax
mov dword [edi], eax
je 0x100e7d5
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100e794
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x100e800
push 8
pop eax
jmp 0x100e800
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x100e800
dec ecx
je 0x100e7fb
dec ecx
je 0x100e7f4
dec ecx
jmp 0x100e800
mov eax, 0x2afb
jmp 0x100e800
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x100ee06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10140b8]
xor eax, dword [ebp + 4]
cmp dword [0x101536c], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0x1002350
mov dword [ebp - 0x18], 0x100e9bb
mov dword [ebp - 0x14], 0x1002344
mov dword [ebp - 0x10], 0x100ec36
mov dword [ebp - 0xc], 0x1002334
mov dword [ebp - 8], fcn.0100e97f
jne 0x100ef6d
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100ef63
xor eax, eax
mov cl, byte [ebp + eax - 0x230]
mov byte [ebp + eax - 0x128], cl
inc eax
test cl, cl
jne 0x100ee6d
push edi
lea edi, [ebp - 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ee88
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x100232c
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x128]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100eecb
push 0x1002350
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100eec7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x100ef22
xor eax, eax
mov cl, byte [ebp + eax - 0x230]
mov byte [ebp + eax - 0x128], cl
inc eax
test cl, cl
jne 0x100eecd
lea edi, [ebp - 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100eee7
mov esi, 0x1002324
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x128]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100ef60
push 0x1002350
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100ef1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100ef60
xor edi, edi
push dword [ebp + edi*8 - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x18], eax
je 0x100ef3f
inc edi
cmp edi, 3
jl 0x100ef24
jmp 0x100ef48
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100ef60
xor eax, eax
mov ecx, dword [ebp + eax - 0x18]
mov dword [eax + 0x101421c], ecx
add eax, 8
cmp eax, 0x18
jl 0x100ef4e
pop esi
pop ebx
pop edi
mov dword [0x101536c], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [eax*8 + 0x101421c]
call fcn.0100701d
leave
ret 4