joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001171c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
xor edi, edi
push dword [0x10061174]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1001175f
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
jl 0x100117f7
call fcn.10011809
push 4
mov dword [ebp - 4], eax
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x10061188]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100117b0
mov eax, dword [ebp - 4]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [0x10061188]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100117f7
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [0x1006118c]
mov dword [ebp - 0x10], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [0x1006118c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, esi
je 0x10011802
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp edi, esi
je 0x10011802
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10011832
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
xor edi, edi
push dword [0x10061174]
mov dword [ebp - 8], esi
xor ebx, ebx
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x10011874
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
jl 0x100118a6
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [0x10061188]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100118a6
cmp dword [ebp - 8], esi
je 0x100118a6
push 1
pop ebx
cmp edi, esi
je 0x100118b1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x100118b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x10061174]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1001190e
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, esi
jl 0x100119dd
push edi
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
mov dword [ebp - 0x24], esi
push dword [0x10061184]
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1001194c
cmp dword [ebp - 0x10], esi
je 0x1001194c
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [0x1006117c]
mov dword [ebp - 0x24], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1001197a
cmp dword [ebp - 0x14], esi
je 0x1001197a
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [0x10061180]
mov dword [ebp - 0x24], ebx
push dword [ebp - 4]
call edi
test eax, eax
pop edi
jne 0x100119dd
cmp dword [ebp - 0x18], 1
je 0x100119dd
cmp dword [ebp - 0x1c], esi
jne 0x100119dd
cmp dword [ebp - 8], 0x1010117
je 0x100119dd
cmp dword [ebp - 8], 0x101001b
je 0x100119dd
cmp dword [ebp - 8], 0x10101d
je 0x100119dd
push ebx
push str.CDDB_Active_X_Control
push str.There_appears_to_be_a_previous_version_of_nthe_CDDB_ActiveX_Control_installed_by_some_application._nThis_version_doesnt_include_the_default_U_I_so_it_may_cause_other_napplications_to_stop_working_properly._n_nDo_you_want_to_override_the_previous_installation_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x100119dd
mov dword [ebp - 0x20], esi
cmp dword [ebp - 4], esi
pop esi
pop ebx
je 0x100119ed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
leave
ret
Function at 0x100119f2
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [0x10061174]
xor edi, edi
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10011a2d
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, ebx
jl 0x10011a70
mov eax, dword [0x10061190]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 4
push ebx
push dword [0x1006117c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [0x10061180]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
call esi
push dword [0x10061188]
push edi
call esi
push dword [0x1006118c]
push edi
call esi
pop esi
cmp edi, ebx
je 0x10011a7b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret

Function at 0x10011a7f
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push ebp
push 0xf003f
push ebp
push ebp
push ebp
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push dword [0x10061174]
xor esi, esi
mov dword [esp + 0x2c], ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x10011abd
mov esi, dword [esp + 0xc]
xor eax, eax
cmp eax, ebp
jl 0x10011aed
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [0x1006117c]
push esi
call edi
push dword [0x10061188]
push esi
call edi
push dword [0x1006118c]
push esi
call edi
cmp esi, ebp
pop edi
je 0x10011aed
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x10061174]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x10014f61
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x1c0]
lea edi, [esi + 0x1c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
and byte [esi + 0x1bd], bl
or dword [esi + 0x1b4], 0xffffffff
lea eax, [esi + 0x190]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push 0x1002871a
push ebx
push ebx
call fcn.100447e7
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10014fe2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1001506c
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001506e
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
lea ebx, [esi + 0xdc]
push 0
push 0
push ebx
call edi
push eax
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10015040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
and esi, 0xffff
or esi, 0x80070000
neg eax
sbb eax, eax
and eax, esi
jmp 0x1001506e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push dword [ebx]
mov dword [esi + 0x1a0], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x1bc], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1b8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1001a408
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push 0x10061840
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x1001a420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, ecx
test byte [ebp + 0xb], 0x10
je 0x1001a44d
push edi
push edi
push 0x1005d580
push edi
push edi
push ebx
push 0x10059690
call fcn.10015133
mov eax, dword [esi + 0x200]
mov ecx, eax
and ecx, dword [ebp + 8]
test ecx, 0xffffff00
je 0x1001a4d2
test al, 8
je 0x1001a470
push ebx
lea ecx, [esi + 0xa4]
call fcn.1001ab7a
test byte [esi + 0x200], 2
je 0x1001a489
mov ecx, dword [esi + 0xd0]
cmp ecx, edi
je 0x1001a489
mov eax, dword [ecx]
push ebx
call dword [eax + 0x6c]
test byte [esi + 0x200], 4
je 0x1001a4d2
push ebx
push str._s_r_n
lea eax, [ebp - 0x200]
push 0x200
push eax
call fcn.1004465a
add esp, 0x10
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.10044590
pop ecx
push eax
lea eax, [ebp - 0x200]
push eax
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001e624
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x100785e8], 0
jne 0x1001e638
call fcn.1001e2b9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, eax
shr eax, 0xa
mov edi, eax
and ecx, 0x3ff
mov eax, 0xff
cmp ecx, eax
jbe 0x1001e65b
mov ecx, eax
cmp edi, eax
jbe 0x1001e661
mov edi, eax
imul ecx, ecx, 0xff
movzx esi, byte [ecx + 0x10061bc0]
cmp esi, eax
jne 0x1001e677
push 1
pop esi
jmp 0x1001e695
xor edx, edx
cmp byte [ecx + edx + 0x10061bc0], al
je 0x1001e695
cmp edi, edx
je 0x1001e68d
inc edx
cmp edx, eax
jl 0x1001e679
jmp 0x1001e695
movzx esi, byte [ecx + edx + 0x10061bc0]
lea eax, [ebp - 0x20]
push 0xa
push eax
push esi
call fcn.10044cbe
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
pop edi
pop esi
leave
ret

Function at 0x10035cd3
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10035cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, 0x2fa001b
mov eax, esi
pop esi
ret

Function at 0x10035d01
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
cmp ebx, ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
je 0x10035dfe
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10035dfe
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebx], ecx
mov dword [eax], ecx
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call edi
cmp eax, esi
jbe 0x10035d97
lea ebx, [eax + 0xa]
push ebx
call fcn.10035c67
mov esi, eax
pop ecx
test esi, esi
je 0x10035df7
push ebx
push esi
call edi
mov cl, byte [esi]
lea eax, [ebp - 0x110]
cmp cl, 0x5c
je 0x10035d86
mov edx, esi
lea edi, [ebp - 0x110]
sub edx, edi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, 0x5c
jne 0x10035d7a
mov byte [eax], 0x5c
and byte [eax + 1], 0
push esi
call fcn.10035cc8
mov ebx, dword [ebp + 8]
pop ecx
cmp byte [ebp - 0x10f], 0x3a
jne 0x10035da7
and byte [ebp - 0x10d], 0
xor edi, edi
lea eax, [ebp - 8]
push edi
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x110]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10035df1
push 4
pop esi
push esi
call fcn.10035c67
cmp eax, edi
pop ecx
mov dword [ebx], eax
je 0x10035df7
lea ecx, [ebp - 4]
push esi
push ecx
push eax
call fcn.10043b20
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], esi
xor eax, eax
jmp 0x10035e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x2fa0001
jmp 0x10035e03
mov eax, 0x2fa0002
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10035e08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
lea ebx, [ebp - 0x404]
push dword [ebp + 0xc]
call fcn.10044590
and dword [ebp - 4], 0
mov esi, eax
pop ecx
lea eax, [ebp - 0x404]
mov edi, 0x400
push eax
push edi
add esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esi, eax
cmp esi, edi
jbe 0x10035e65
push esi
call fcn.10035c67
mov edi, eax
pop ecx
test edi, edi
jne 0x10035e59
mov eax, 0x2fa0001
jmp 0x10035eb4
push edi
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x10035e68
mov edi, dword [ebp - 4]
push 0x10073340
push ebx
call fcn.100444b0
push ebx
call fcn.10035cd3
push 0x1007333c
push ebx
call fcn.100444b0
push dword [ebp + 0xc]
push ebx
call fcn.100444b0
push ebx
call fcn.10035cd3
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.1003b9ac
add esp, 0x28
mov esi, eax
test edi, edi
je 0x10035eb2
push edi
call fcn.10035cc8
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10035f64
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 0xc], eax
sete al
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10035f83
xor eax, eax
ret
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1003cacb
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
xor ebx, ebx
push edi
xor ecx, ecx
mov edx, dword [ebp + 0xc]
movzx edx, byte [eax + edx]
shl edx, cl
add ecx, 8
or ebx, edx
inc eax
cmp ecx, 0x20
jl 0x1003cada
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
add eax, 4
mov dword [ebp - 0xc], eax
movzx edx, byte [eax]
shl edx, cl
add ecx, 8
or edi, edx
inc eax
cmp ecx, 0x20
jl 0x1003cafb
and dword [ebp - 4], 0
lea esi, [ebp - 0x1c]
xor edx, edx
mov dword [esi], edx
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003cb2d
cmp dword [ebp + 0x10], 0xffff
ja 0x1003cb4f
xor eax, eax
mov al, byte [ebp + 0x11]
jmp 0x1003cb5d
cmp dword [ebp + 0x10], 0xffff
ja 0x1003cb4f
mov eax, dword [ebp + 0x10]
push edx
and eax, 0xff
push eax
call fcn.1003e3e9
mov edx, dword [ebp - 8]
pop ecx
pop ecx
movzx eax, al
jmp 0x1003cb56
mov eax, dword [ebp + 0x10]
movzx eax, byte [edx + eax]
mov ecx, edx
shl ecx, 3
shl eax, cl
or dword [esi], eax
inc edx
cmp edx, 4
mov dword [ebp - 8], edx
jl 0x1003cb19
mov eax, dword [ebp + 0x10]
cmp eax, 0xffff
ja 0x1003cb85
and eax, 0xff
push edx
push eax
call fcn.1003e3e9
pop ecx
pop ecx
movzx eax, al
jmp 0x1003cb89
movzx eax, byte [edx + eax]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
shl eax, cl
or dword [esi], eax
add esi, 4
cmp dword [ebp - 4], 0x20
jl 0x1003cb12
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x1003cbe7
push 0x20
pop ecx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0x18]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x1c]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x1003cbab
jmp 0x1003cc29
push 0x20
mov eax, 0xc6ef3720
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0x18]
shl esi, 4
add esi, dword [ebp - 0x1c]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x1003cbef
xor esi, esi
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, ebx
shr eax, cl
add ecx, 8
mov byte [esi + edx], al
inc esi
cmp ecx, 0x20
jl 0x1003cc2d
mov eax, dword [ebp - 0xc]
xor esi, esi
mov edx, edi
mov ecx, esi
shr edx, cl
add esi, 8
mov byte [eax], dl
inc eax
cmp esi, 0x20
jl 0x1003cc45
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003cecb
Capabilities:
Hash data with md5

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

Function at 0x1003ded7
Capabilities:
Create tcp socket

Disassembly:
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [esp + 4]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x1003def3
mov eax, 0x2fa0009
ret
xor eax, eax
ret
Function at 0x1003def6
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x1003df0f
mov eax, 0x2fa0008
leave
ret
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.10043e70
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
push dword [ebp + 0xc]
mov word [ebp - 0xe], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x1003df64
push dword [ebp + 0xc]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x1003df4c
leave
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.10043b20
add esp, 0xc
jmp 0x1003df67
mov dword [ebp - 0xc], eax
mov eax, dword [0x100789f0]
test eax, eax
je 0x1003df7b
push 0
push 0
push 1
call eax
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_connect
inc eax
neg eax
sbb eax, eax
and eax, 0xfd05fff6
add eax, 0x2fa000a
leave
ret

Function at 0x1003dfa6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100789f0]
push esi
xor esi, esi
cmp eax, esi
je 0x1003dfc2
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
call eax
add esp, 0xc
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x1003dfdb
mov esi, 0x2fa000b
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1003dfe0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2128
call fcn.10043680
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], 1
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10], 0x1388
push 1
lea eax, [ebp - 0x14]
pop esi
push eax
push 0
lea eax, [ebp - 0x118]
push 0
push eax
push esi
mov dword [ebp - 0x118], esi
call sub.WSOCK32.dll_select
cmp eax, esi
je 0x1003e0a2
cmp eax, 0xffffffff
je 0x1003e117
cmp dword [ebp - 8], 0
jne 0x1003e053
mov dword [ebp - 4], esi
call edi
mov dword [ebp - 0xc], eax
jmp 0x1003e08d
call edi
mov ecx, dword [0x10073700]
mov esi, eax
sub esi, dword [ebp - 0xc]
cmp esi, ecx
jae 0x1003e0ff
mov eax, dword [ebp - 4]
push 0x1e
cdq
pop ebx
idiv ebx
inc dword [ebp - 4]
test edx, edx
jne 0x1003e08a
mov eax, dword [0x100789f0]
test eax, eax
je 0x1003e08a
push ecx
push esi
push 5
call eax
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], 1
call fcn.1003acdc
test eax, eax
jne 0x1003e106
jmp 0x1003e018
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x2128]
push 0x2000
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jle 0x1003e112
lea eax, [ebp - 0x2128]
push esi
push eax
push ebx
call fcn.1003ad01
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003e112
mov eax, dword [0x100789f0]
test eax, eax
je 0x1003e0f1
push dword [ebx + 0x40]
mov ecx, dword [ebx + 0x2c]
push dword [ecx]
push 3
call eax
add esp, 0xc
call fcn.1003acdc
test eax, eax
jne 0x1003e10d
jmp 0x1003e018
mov esi, 0x2fa0024
jmp 0x1003e12a
mov esi, 0x2fa0023
jmp 0x1003e12a
mov esi, 0x2fa0023
cmp esi, 0xffffffff
jne 0x1003e126
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x10078e00], eax
mov esi, 0x2fa000c
test esi, esi
je 0x1003e152
mov eax, dword [ebx + 0x28]
xor edi, edi
mov eax, dword [eax]
cmp eax, edi
je 0x1003e152
cmp dword [ebx + 0x44], edi
push eax
je 0x1003e142
call fcn.10035cc8
jmp 0x1003e147
call fcn.10035cc8
mov eax, dword [ebx + 0x28]
pop ecx
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004aaba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100769f0
cmp edx, dword [eax]
je 0x1004aadc
add eax, 8
inc ecx
cmp eax, 0x10076a80
jl 0x1004aacd
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100769f0]
jne 0x1004ac0a
mov eax, dword [0x10078e7c]
cmp eax, 1
je 0x1004abe4
test eax, eax
jne 0x1004ab0d
cmp dword [0x10078e80], 1
je 0x1004abe4
cmp edx, 0xfc
je 0x1004ac0a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ab44
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100444a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10044590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1004ab87
lea eax, [ebp - 0x1a4]
push eax
call fcn.10044590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1005dc88
push edi
call fcn.100449a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100444a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100444b0
lea eax, [ebp - 0xa0]
push 0x1005dc68
push eax
call fcn.100444b0
push dword [esi + 0x100769f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.100444b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1004d29c
add esp, 0x2c
pop edi
jmp 0x1004ac0a
lea eax, [ebp + 8]
lea esi, [esi + 0x100769f4]
push 0
push eax
push dword [esi]
call fcn.10044590
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1004ac0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004ac2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10047a0b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1004ac50
test byte [esp + 8], 2
je 0x1004ac50
call fcn.10047a7e
mov dword [eax], 0xd
call fcn.10047a87
mov dword [eax], 5
jmp 0x1004ac29
xor eax, eax
ret