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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x49503c]
xor ecx, ebp
mov dword [esp + 0x68], ecx
lea edi, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.0042d960
add esp, 4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x42df41
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004503b0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x4c]
movaps xmmword [esp + 0x30], xmm0
xor eax, eax
mov dword [esp + 0x5c], eax
mov ebx, 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x4c], ax
lea edi, [esp + 0x18]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], eax
mov word [edi], ax
sub esp, 0xc
mov al, byte [esp + 0x1c]
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
mov ecx, edi
call fcn.00452270
mov dword [esp + 0xc], 8
cmp dword [esp + 0x44], ebx
jbe 0x42dfad
mov eax, dword [esp + 0x30]
jmp 0x42dfb1
lea eax, [esp + 0x30]
cmp dword [esp + 0x2c], ebx
jbe 0x42dfbb
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
xor ecx, ecx
push ecx
push 0x40
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x42dfe8
cmp eax, 2
jne 0x42e002
xorps xmm0, xmm0
movups xmmword [esi], xmm0
jmp 0x42dff9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
mov dword [esi + 0x10], 0
jmp 0x42e02d
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
mov edx, str.RegistryGetValueQword
push 0xeb
call fcn.0042bc70
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edi
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x42e052
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42e080
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [esp + 0x44]
cmp ecx, 8
jb 0x42df2c
mov eax, dword [esp + 0x30]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42e098
push edx
push eax
call fcn.0044fbc2
add esp, 8
jmp 0x42df2c
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42e0b0
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x42e048
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42e0b0
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x42e071
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x42e0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, edx
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x49503c]
xor edx, ebp
mov dword [esp + 0x58], edx
mov esi, 7
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, eax
cmp eax, 7
ja 0x42e137
lea eax, [esp + 0x40]
mov dword [eax + 0x10], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + ebx*2 + 0x40], 0
jmp 0x42e152
sub esp, 0xc
mov al, byte [esp + 0x24]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [esp + 0x4c]
call fcn.00452270
movzx eax, word [esp + 0x40]
movsd xmm0, qword [esp + 0x42]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x36], xmm0
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov word [esp + 0x40], ax
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x36]
movsd qword [esp + 0x42], xmm0
movsd qword [esp + 0x48], xmm1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
lea edi, [esp + 0x18]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], 0
sub esp, 0xc
mov al, byte [esp + 0x20]
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
mov ecx, edi
call fcn.00452270
cmp ebx, 7
jbe 0x42e1db
mov eax, dword [esp + 0x40]
jmp 0x42e1df
lea eax, [esp + 0x40]
mov esi, dword [esp + 4]
cmp dword [esp + 0x2c], 7
jbe 0x42e1ee
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
push 8
push ecx
push 0xb
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x42e22c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
mov edx, str.RegistrySetValueQword
push 0x106
call fcn.0042bc70
add esp, 4
jmp 0x42e22e
xor edi, edi
mov dword [esi], edi
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x42e255
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42e28f
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [esp + 0x54]
cmp ecx, 8
jb 0x42e27a
mov eax, dword [esp + 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42e2ab
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004503b0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42e2c7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [esp + 4]
jmp 0x42e24b
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42e2c7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [esp + 4]
jmp 0x42e270
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x431660
Capabilities:
Check os version
Create process on windows
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x560
mov esi, esp
mov dword [esi + 8], edx
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [esi + 0x558], eax
mov edx, 0xf
mov dword [esi + 0x20], ecx
mov eax, dword [ecx]
jmp dword [eax*4 + 0x4619fc]
Function at 0x437750
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov al, 1
cmp byte [ecx + 4], 0
jne 0x43780a
mov esi, ecx
mov edi, dword [ecx]
test edi, edi
jne 0x437791
xor eax, eax
push str.MozillaFirefoxDefaultBrowserAgentRegistryMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x43778b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
test edi, edi
je 0x43780e
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4377cf
cmp eax, 0x80
je 0x4377e8
test eax, eax
je 0x4377ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb8
push str.Acquire
push str.Failed_to_wait_on_registry_mutex:__X
call fcn.00429d90
add esp, 0x10
jmp 0x437803
push 0xab
push str.Acquire
push str.Timed_out_waiting_for_registry_mutex
call fcn.00429d90
add esp, 0xc
jmp 0x437803
push 0xb2
push str.Acquire
push str.Found_abandoned_registry_mutex._Continuing...
call fcn.00429d90
add esp, 0xc
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
setne al
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa1
push str.Acquire
push str.Couldnt_open_registry_mutex:__X
call fcn.00429d90
add esp, 0x10
xor eax, eax
jmp 0x43780a
Function at 0x438890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0x14]
mov dword [ebx], edi
push ebx
push 0x20019
push edi
push str.SOFTWAREPoliciesMozillaFirefox
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebx]
test ebx, ebx
je 0x43894b
lea eax, [ebp - 0x18]
mov dword [eax], edi
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, 2
test eax, eax
jne 0x438942
lea ecx, [ebp - 0x20]
mov dword [ecx], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [eax], 4
xor edi, edi
push eax
push ecx
push edi
push 0x10
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
lea edx, [ebp - 0x20]
cmp dword [edx], edi
sete cl
test eax, eax
mov edi, 2
cmove edi, ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438950
mov edi, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x451300
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x280
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [esp + 0x278], eax
lea esi, [esp + 0x6e]
push 0x20a
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x451355
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
add eax, 0xb
cmp eax, 0x103
jbe 0x45136f
xor ebx, ebx
mov ecx, dword [esp + 0x278]
xor ecx, ebp
call fcn.004503b0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.control.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ebx, ebx
test eax, eax
je 0x451357
lea edi, [esp + 0x68]
mov dword [edi], ebx
mov ecx, edi
call fcn.00451160
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov ecx, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
push eax
push ecx
call fcn.00451240
add esp, 8
mov edi, eax
inc edi
mov dword [esp + 8], edi
xor ecx, ecx
dec ecx
add edi, edi
cmovb edi, ecx
push edi
call fcn.0044fc05
add esp, 4
push edi
push ebx
mov edi, eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 0xc]
mov eax, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
push eax
push 0xffffffffffffffff
push dword [esp + 0x14]
push edi
call fcn.004512a0
add esp, 0x14
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 4], xmm0
mov dword [eax], 0x44
mov dword [eax + 0x2c], 1
mov word [eax + 0x30], 0xa
lea ecx, [esp + 0x10]
movaps xmmword [ecx], xmm0
sub esp, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x30], edi
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x451453
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
test edi, edi
setne bl
push dword [esp + 8]
call fcn.0044fc0e
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x451357
push eax
call fcn.0044fc0e
add esp, 4
jmp 0x451357
Function at 0x451480
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4955a8]
cmp eax, 0x3a74
ja 0x45150e
mov eax, dword [0x49505c]
cmp eax, 0x3a76
jb 0x4515b6
lea esi, [ebp - 0x210]
push 0x118
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi - 4], 0x11c
mov dword [esi + 8], 0x3a75
sub esp, 0x10
movaps xmm0, xmmword [0x461380]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea ecx, [ebp - 0x214]
push edx
push eax
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4515ab
mov eax, 0x3a75
xchg dword [0x4955a8], eax
lea eax, [ebp - 0x214]
push eax
push 0x45d06c
push 3
push 0
push 0x45d09c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4515a7
mov edi, dword [ebp - 0x214]
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
lea esi, [ebp - 0x218]
push esi
push 0
push str.pageSettingsPageAppsDefaults
push str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
push edi
call ecx
test eax, eax
setns bl
js 0x45157c
mov edi, dword [ebp - 0x214]
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
push esi
push 0
push str.pageSettingsPageAppsDefaultstargetSystemSettings_DefaultApps_Browser
push str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
push edi
call ecx
mov esi, dword [ebp - 0x214]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x451590
mov eax, 0x3a75
xchg dword [0x49505c], eax
lea esi, [ebp - 0x218]
mov dword [esi], 0x101
lea edi, [ebp - 0x214]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4515e9
lea eax, [ebp - 0x21c]
push eax
push 0x18
push edi
push 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x451639
xor eax, eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 4
push esi
push edi
push eax
push 0xffff
push str.IsConnectedAtLogon
push str.SOFTWAREMicrosoftWindowsShellAssociations
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x45150e
cmp dword [ebp - 0x214], 0
je 0x45150e
call fcn.00451300
mov ebx, eax
jmp 0x451590
mov eax, dword [ebp - 0x21c]
mov ebx, dword [eax]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
test ebx, ebx
jne 0x45150e
jmp 0x4515e9
Function at 0x452ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x452f73
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x452f73
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x452f71
mov edi, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call ebx
cmp eax, 3
je 0x452f87
cmp eax, 1
je 0x452f4a
test eax, eax
jne 0x452f71
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x452f68
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x452f71
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x452f73
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x452f73

Function at 0x457d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, edx
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
mov edi, dword [ebp + 8]
je 0x457d97
mov dword [ebp - 0x14], eax
mov esi, eax
cmp esi, dword [eax]
je 0x457dc8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x14]
mov ecx, ebx
call fcn.00456f10
mov al, 1
mov dword [ebp - 0x20], eax
mov ebx, dword [ebx]
lea ecx, [ebx + 0x10]
mov edx, edi
call fcn.00402fd0
test al, al
je 0x457de3
movzx eax, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov edx, ebx
push dword [ebp + 0xc]
push esi
push eax
call fcn.00402d40
add esp, 0xc
mov al, 1
mov byte [ebx + 4], al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], ecx
mov esi, edx
add edx, 0x10
mov ecx, edi
call fcn.00402fd0
mov ecx, eax
xor cl, 1
movzx ecx, cl
mov edx, dword [esi + ecx*8]
cmp byte [edx + 0xd], 0
je 0x457d9a
mov dword [ebp - 0x14], esi
test al, al
je 0x457dd2
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
jmp 0x457d38
mov edx, ebx
push dword [ebp + 0xc]
push esi
push 1
jmp 0x457d76
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0
mov ebx, esi
jmp 0x457d57
mov ecx, dword [ebp + 0xc]
call fcn.00457e00
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov ebx, eax
xor eax, eax
jmp 0x457d80
Function at 0x40102c
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40108f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.clitolocal_socket_create_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
jmp 0x4010e4
lea ecx, [ebp - 0x14]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4010af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.clitolocal_bind_error__error_num:
jmp 0x4010ce
push bind
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4010e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.clitolocal_listen_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x401107
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40110d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
pop edi
pop esi
leave
ret 4

Function at 0x40131e
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x4013b3
cmp byte [eax], bl
je 0x4013b3
cmp dword [ebp + 0xc], ebx
je 0x4013b3
cmp dword [ebp + 0x10], ebx
jbe 0x4013b3
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4013b6
push 2
push ebx
push ebx
push esi
call dword [0x4047e8]
cmp dword [ebp + 0x14], ebx
jbe 0x401387
cmp eax, dword [ebp + 0x14]
jbe 0x401387
push ebx
push ebx
push ebx
push esi
call dword [0x4047e8]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x4013ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [ebp + 8]
jmp 0x4013b6
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret

Function at 0x4013ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x4013dc
cmp dword [ebp + 0xc], eax
jbe 0x4013dc
mov dl, byte [ebp + 0x10]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x4013cb
push 1
pop eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401b72
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
and word [ebp - reloc.crtdll.dll_sscanf], 0
push edi
push 0x63
xor eax, eax
pop ecx
lea edi, [ebp - 0x18e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x401bc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sock_envir_init_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
jmp 0x401bf0
cmp byte [ebp - 0x190], 2
jne 0x401bdf
xor eax, eax
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x401bdf
push 1
pop eax
leave
ret
push 0x404174
call fcn.00401598
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
leave
ret

Function at 0x401c9c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401d5c
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x10c]
push bind
push eax
call dword [0x4047f0]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x401d5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
add eax, 0xffffff44
push ebx
push eax
push esi
call dword [0x4047e8]
cmp eax, 0xffffffff
jne 0x401d29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401d79
mov esi, 0xbc
mov edi, 0x404828
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x401d61
or eax, 0xffffffff
jmp 0x401d79
push 1
push edi
push 0xac
push 0x404838
call fcn.00401815
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f42
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push str.Proxy
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push ebx
push 3
push ebx
push 2
push bind
push eax
call dword [0x4047f0]
mov esi, eax
cmp esi, 0xffffffff
je 0x401fde
lea eax, [ebp + 8]
push ebx
push eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edi - 1]
dec eax
cmp cl, 0xd
je 0x401fd0
cmp cl, 0xa
jne 0x401fd9
cmp eax, ebx
jl 0x401fd9
mov byte [eax + edi], bl
jmp 0x401fc1
push 1
pop eax
jmp 0x401fe0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021b1
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.Proxy
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push 0x404234
push eax
call sub.MSVCRT.dll_fopen
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
jne 0x402241
push esi
push esi
push 4
push esi
push 2
lea eax, [ebp - 0x108]
push 0x40000000
push eax
call dword [0x4047f0]
mov edi, eax
cmp edi, 0xffffffff
je 0x402248
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x40224a
push eax
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret