joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f47f
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x100d10b0
call fcn.10030644
sub esp, 0x428
push ebx
push esi
push edi
mov esi, 0x100
xor ebx, ebx
push esi
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10031000
push esi
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.10031000
add esp, 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], ebx
call fcn.10041bff
test eax, eax
lea eax, [ebp - 0x14]
push eax
je 0x1004f4d5
push 0xf013f
jmp 0x1004f4da
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkListProfiles
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1004f60b
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1004f5ec
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004f5ec
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
sub esp, 0x10
lea eax, [ebp - 0x15]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.Description
call fcn.10003536
lea eax, [ebp - 0x20]
mov byte [ebp - 4], bl
push eax
call fcn.10041dd8
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10003ab9
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x1004f593
call fcn.10002801
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x1c]
push eax
call fcn.100c10db
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x1004f5b2
mov eax, 0x100d6e28
push eax
push dword [ebp - 0x1c]
call fcn.10030823
pop ecx
cmp eax, ebx
pop ecx
jne 0x1004f5d8
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x1004f5d8
dec dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.100c1067
push esi
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.10031000
add esp, 0xc
inc dword [ebp - 0x10]
cmp edi, ebx
mov dword [ebp - 0x28], esi
je 0x1004f4f3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.1000418b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x1004f633
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x100d10e4
call fcn.10030644
sub esp, 0x434
push ebx
push esi
push edi
mov esi, 0x100
xor ebx, ebx
push esi
lea eax, [ebp - 0x240]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10031000
push esi
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.10031000
add esp, 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
call fcn.10041bff
test eax, eax
lea eax, [ebp - 0x14]
push eax
je 0x1004f689
push 0xf013f
jmp 0x1004f68e
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkListSignaturesUnmanaged
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1004f7e6
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x1004f7c6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004f7c6
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
sub esp, 0x10
lea eax, [ebp - 0x19]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push str.Description
call fcn.10003536
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.10041dd8
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10003ab9
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x1004f748
call fcn.10002801
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x24]
push eax
call fcn.100c10db
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 3
cmp edi, ebx
jne 0x1004f767
mov edi, 0x100d6e28
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x24]
push eax
call fcn.100bab91
push edi
mov byte [ebp - 4], 4
push dword [eax]
call fcn.10030823
pop ecx
cmp eax, ebx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
sete byte [ebp - 0xd]
call fcn.100c1067
cmp byte [ebp - 0xd], bl
je 0x1004f7b2
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x1004f7b2
dec dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.100c1067
push esi
lea eax, [ebp - 0x240]
push ebx
push eax
call fcn.10031000
add esp, 0xc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], esi
je 0x1004f6a7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.1000418b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x1004fb5e
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x100d11b7
call fcn.10030644
mov eax, 0x1870
call fcn.10031830
push ebx
push esi
push edi
push 1
xor ebx, ebx
pop esi
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1004fbb6
mov ecx, dword [ebp + 8]
push 0x10109648
call fcn.100c10db
mov dword [ebp - 0x10], esi
jmp 0x1004fc9b
lea eax, [ebp - 0x87c]
push str.Cmd.exe__C
push eax
call fcn.10031161
push dword [ebp + 0xc]
lea eax, [ebp - 0x87c]
push eax
call fcn.10031137
add esp, 0x10
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x18]
mov word [ebp - 0x3c], bx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x40], 0x101
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
lea eax, [ebp - 0x87c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x18]
test eax, eax
jne 0x1004fc3d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp + 8]
push 0x10109648
call fcn.100c10db
jmp 0x1004fc98
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x187b]
mov byte [ebp - 0x187c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x1c]
push 0xfff
lea eax, [ebp + eax - 0x187c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004fc5e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x187c]
push eax
call fcn.100c1130
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1004fcad
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100d11f4
call fcn.10030644
mov eax, 0x2efc
call fcn.10031830
push ebx
push esi
mov esi, 0x7d0
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0xfc8]
push ebx
push eax
call fcn.10031000
push esi
lea eax, [ebp - 0x1f68]
push ebx
push eax
call fcn.10031000
push esi
lea eax, [ebp - 0x2f08]
push ebx
push eax
call fcn.10031000
add esp, 0x24
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0xd]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
push str.SYSTEMCurrentControlSetServicesRasmanParameters
call fcn.10003536
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.10041dd8
add esp, 0x14
push 1
mov ecx, eax
pop edi
mov dword [ebp - 4], edi
call fcn.10003ab9
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x1004fd51
call fcn.10002801
lea eax, [ebp - 0x24]
mov esi, str.prohibitipsec
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
sub esp, 0x10
lea eax, [ebp - 0xd]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 4
call fcn.10003536
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.10041dd8
add esp, 0x14
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.10003ab9
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
mov dword [ebp - 0x14], eax
je 0x1004fdba
call fcn.10002801
cmp dword [ebp - 0x14], ebx
jne 0x1004fdc9
cmp dword [ebp - 0x18], edi
jne 0x1004fdc9
push 2
pop esi
jmp 0x1004fe32
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push ebx
lea eax, [ebp - 0xd]
sub esp, 0x10
mov dword [ebp - 0x18], edi
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push esi
call fcn.10003536
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.10041dd8
add esp, 0x14
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.10003ab9
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
inc bl
test ecx, ecx
je 0x1004fe27
call fcn.10002801
xor eax, eax
test bl, bl
setne al
mov esi, eax
xor ebx, ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x1004fe43
mov al, 1
jmp 0x1004fe48
cmp esi, edi
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100517fd
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100d157c
call fcn.10030644
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x1010f6bc], ebx
push esi
push edi
jne 0x10051828
call fcn.1005149b
cmp dword [0x1010f6bc], ebx
je 0x1005191a
cmp dword [0x1010f6c4], ebx
je 0x1005191a
cmp dword [0x1010f6c0], ebx
je 0x1005191a
mov esi, str.Data
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
mov al, byte [ebp + 0xb]
sub esp, 0x10
movsb byte es:[edi], byte [esi]
mov esi, esp
mov dword [ebp - 0x10], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.10002424
push dword [ebp + 8]
call fcn.10030730
pop ecx
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.100036bc
lea eax, [ebp - 0x28]
or esi, 0xffffffff
push eax
mov dword [ebp - 4], esi
call fcn.10041fb4
add esp, 0x14
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 1
cmp eax, ebx
jne 0x10051898
mov eax, 0x100d6d1c
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
cmp edi, esi
jne 0x100518a9
mov edi, esi
jmp 0x10051908
call dword [0x1010f6bc]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x100518bb
push 0xfffffffffffffffe
pop edi
jmp 0x10051908
push 0x41
call fcn.100325dc
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x100518ce
push 0xfffffffffffffffd
pop edi
jmp 0x100518ff
push 0x3e8
push 0x41
push esi
push ebx
lea eax, [ebp - 0x18]
push 5
push eax
push edi
push dword [ebp + 8]
call dword [0x1010f6c0]
cmp eax, ebx
je 0x100518f0
mov edi, dword [esi + 8]
jmp 0x100518f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.10032716
pop ecx
push dword [ebp + 8]
call dword [0x1010f6c4]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call fcn.10002424
mov eax, edi
jmp 0x1005191d
push 0xfffffffffffffff6
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10057620
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebx
jle 0x10057664
push edi
lea edi, [esi + 8]
xor eax, eax
cmp dword [edi], eax
jne 0x1005765a
lea ecx, [edi + 0x28]
push ecx
push eax
push ebx
push dword [esi + 4]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
inc dword [0x1010fb78]
inc ebp
add edi, 4
cmp ebp, dword [esi + 0x58]
jl 0x10057637
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x1005766c
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0x58], ebp
jle 0x100576bc
push esi
push edi
lea esi, [ebx + 8]
mov edi, dword [esi]
test edi, edi
je 0x100576b1
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1005769d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x1010fb78]
and dword [esi], 0
and dword [esi + 0x28], 0
inc ebp
add esi, 4
cmp ebp, dword [ebx + 0x58]
jl 0x1005767c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x100576c3
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0x58], ebp
jle 0x10057711
push esi
push edi
lea esi, [ebx + 8]
mov edi, dword [esi]
test edi, edi
je 0x10057706
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100576f2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x1010fb78]
and dword [esi], 0
and dword [esi + 0x28], 0
inc ebp
add esi, 4
cmp ebp, dword [ebx + 0x58]
jl 0x100576d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x10057718
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0x58], ebp
jle 0x10057766
push esi
push edi
lea esi, [ebx + 8]
mov edi, dword [esi]
test edi, edi
je 0x1005775b
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10057747
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x1010fb78]
and dword [esi], 0
and dword [esi + 0x28], 0
inc ebp
add esi, 4
cmp ebp, dword [ebx + 0x58]
jl 0x10057728
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x10057796
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x58], ebx
jle 0x100577bc
push edi
lea edi, [esi + 8]
mov eax, dword [edi]
test eax, eax
je 0x100577b2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x58]
jl 0x100577a5
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100577c1
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebx
jle 0x10057806
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x100577fc
lea eax, [edi + 0x28]
push eax
push 4
push ebx
push dword [esi + 4]
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
inc dword [0x1010fb78]
inc ebp
add edi, 4
cmp ebp, dword [esi + 0x58]
jl 0x100577d8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x1005780e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret

Function at 0x10063731
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x100d32bb
call fcn.10030644
push ecx
push ebx
and dword [ebp - 0x10], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
mov esi, eax
dec esi
dec esi
shr esi, 1
lea eax, [esi + esi + 2]
push eax
call fcn.100c0da0
pop ecx
mov ebx, eax
mov eax, dword [edi]
push 0
push 2
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
add esi, esi
push esi
push ebx
mov ecx, edi
call dword [eax + 0x34]
and word [esi + ebx], 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.100c10db
push 1
pop esi
push ebx
mov dword [ebp - 4], esi
call fcn.100c0dc9
pop ecx
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.100c0dd4
mov dword [ebp - 0x10], esi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100637be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x100d32f7
call fcn.10030644
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 1
pop ebx
mov dword [ebp - 4], ebx
call fcn.100c76cf
mov esi, dword [eax + 0xc]
push str.LANGDATA
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10063807
mov ecx, dword [ebp + 8]
push 0x10109650
call fcn.100c1130
mov dword [ebp - 0x10], ebx
jmp 0x1006387b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10063830
mov ecx, dword [ebp + 8]
push 0x10109650
call fcn.100c1130
mov dword [ebp - 0x10], ebx
jmp 0x1006387b
push 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
push eax
call fcn.100c568c
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10063731
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.100c0dd4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
call fcn.100c1067
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.100c56c8
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100638ba
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x1006447e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100644aa
lea eax, [esp + 4]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x100644a4
or eax, 0xffffffff
jmp 0x100644ac
mov dword [esi], 1
xor eax, eax
pop esi
add esp, 0x190
ret
Function at 0x100649dd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
push 6
push 1
mov dword [ebp - 4], ecx
pop esi
push esi
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x10064a20
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0xe8]
push str.socket_failed__errno:_d
push eax
call fcn.100913f6
add esp, 0xc
jmp 0x10064b7d
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10031000
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x10064a7f
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
jne 0x10064a67
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0xe8]
push str.gethostbyname_and_inet_addr_failed__errno:_d
push eax
call fcn.100913f6
add esp, 0xc
jmp 0x10064b77
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.10030860
add esp, 0xc
jmp 0x10064a82
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov word [ebp - 0x20], 2
call fcn.10064d60
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x10], esi
je 0x10064ab6
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jl 0x10064b77
lea eax, [ebp - 0xc]
push eax
call fcn.10031fe6
pop ecx
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
mov dword [ebp + 0x14], ebx
call sub.WS2_32.dll_connect
mov esi, eax
cmp esi, ebx
je 0x10064b42
lea eax, [ebp - 8]
push eax
call fcn.10031fe6
mov eax, dword [ebp - 8]
pop ecx
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jg 0x10064b77
call fcn.10064d6c
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
mov ebx, eax
jne 0x10064b20
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0x14]
cmp eax, 0xa
jle 0x10064b16
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp + 0x14], 0
cmp ebx, 0x2748
je 0x10064b42
jmp 0x10064b30
cmp ebx, 0x2733
je 0x10064b30
cmp ebx, 0x2735
jne 0x10064b77
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call sub.WS2_32.dll_connect
mov esi, eax
test esi, esi
jne 0x10064ad5
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 0x10104020
push edi
call fcn.100644b4
test eax, eax
jge 0x10064b82
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0xe8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.status:l
push eax
call fcn.100913f6
add esp, 0x14
push edi
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
jmp 0x10064b84
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10