joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e020
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x46e0e5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46e0e5
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jbe 0x46e0ea
cmp edi, 0x7a
je 0x46e0ea
push 0x2e
push ebx
xor edi, edi
call fcn.0044a678
add esp, 8
test eax, eax
je 0x46e092
mov ecx, str..ini
mov esi, eax
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x46e081
jmp 0x46e0ca
mov eax, ebx
add eax, 0xfffffffe
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x46e0a0
mov ecx, dword [str..ini]
mov dword [eax], ecx
mov ecx, dword [0x4a5144]
mov dword [eax + 4], ecx
mov cx, word [0x4a5148]
mov word [eax + 8], cx
mov eax, edx
test eax, eax
je 0x46e0de
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e0ea
lea edi, [eax + 2]
jmp 0x46e0ea
mov edi, 0x7a
jmp 0x46e0ea
mov edi, 0x57
mov eax, ebx
test ebx, ebx
jne 0x46e0f5
mov eax, str.NULL
push eax
push edi
push str._GetIniFile____error____d___path____s_
call fcn.00469110
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x46f7b0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x46f7db
push str._APGetVersionInfo____GetFileVersionInfoSizeW____0
call fcn.00469110
add esp, 4
pop edi
xor eax, eax
pop ebx
ret 4
push esi
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x46f807
push str._APGetVersionInfo____GlobalAllocPtr____NULL
call fcn.00469110
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x46f847
push str._APGetVersionInfo____GetFileVersionInfoW____FALSE
call fcn.00469110
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
add esp, 4
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, esi
pop esi
pop edi
pop ebx
ret 4
Function at 0x4703d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
je 0x4704e6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4704e6
mov eax, dword [eax]
test eax, eax
je 0x4704e6
shr eax, 1
mov ebx, eax
lea eax, [ebx + 8]
mov dword [ebp - 8], ebx
cmp eax, 0x400
ja 0x47042d
call fcn.0044a220
mov edi, esp
test edi, edi
je 0x4704cd
mov dword [edi], 0xcccc
add edi, 8
jmp 0x470445
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x470443
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x4704cd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4704a2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push edi
push eax
call fcn.0040a2d0
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
call fcn.0044a00d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov dword [edx], ecx
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x4704b7
push eax
call fcn.004482e1
add esp, 4
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x471070
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x47108e
push esi
mov esi, eax
lea ecx, [edi + edx]
sub esi, edi
lea esp, [esp]
mov al, byte [esi + ecx - 1]
xor byte [ecx - 1], al
dec ecx
dec edx
test edx, edx
jne 0x471080
pop esi
mov eax, edi
ret

Function at 0x472180
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x220]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
mov word [esp + 0x20], cx
call fcn.00447660
push 1
push 0x208
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004720d0
add esp, 0x1c
test eax, eax
je 0x47221e
push ebp
lea ecx, [esp + 0x18]
push ecx
push 0x4a0878
mov edx, ecx
push 0x104
push edx
call fcn.00447c36
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472214
lea edi, [ebx + 1]
jmp 0x472223
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x472223
mov ebx, 0xa1
cmp dword [esp + 0x230], 0
je 0x472241
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push str._FilePadExists____returns__d__error___d__path:___s_
call fcn.00469110
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47224b
mov dword [eax], ebx
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447645
add esp, 0x210
ret

Function at 0x472370
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
xor ecx, ecx
xor esi, esi
mov dword [esp + 8], ecx
test eax, eax
je 0x4723e0
push edi
push ebx
push 2
push 2
push 0x40000000
push str.Mac.pad
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00472270
mov edi, dword [esp + 0x30]
add esp, 0x1c
mov esi, eax
cmp edi, 0xffffffff
je 0x4723d4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4723d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4723f4
mov edx, esi
neg edx
sbb edx, edx
not edx
and edx, ecx
mov dword [eax], edx
test ebx, ebx
je 0x472407
push ecx
push esi
push str._WriteMacAddressList____returns__d__bytes_written__d
call fcn.00469110
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x472790
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
xor esi, esi
test eax, eax
je 0x4727b4
mov dword [eax], esi
call fcn.00477010
test eax, eax
je 0x47288e
push ebx
mov eax, 0
cpuid
mov dword [esp + 8], eax
movzx eax, word [esp + 8]
cmp eax, 3
jb 0x472829
mov eax, 1
cpuid
mov dword [esp + 0x10], eax
mov eax, 3
cpuid
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea edx, [esp + 0x34]
push str._04lX__04lX__04lX__04lX__04lX__04lX
push edx
call fcn.00447b9e
add esp, 0x20
jmp 0x472875
mov eax, 1
cpuid
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
and eax, 0xf
push eax
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xf
push ecx
mov edx, eax
mov ecx, eax
shr edx, 4
and edx, 0xf
push edx
shr ecx, 8
and ecx, 0xf
push ecx
shr eax, 0xc
and eax, 3
push eax
lea edx, [esp + 0x30]
push str._04lX__04lX__04lX__04lX__04lX
push edx
call fcn.00447b9e
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
call fcn.00472580
add esp, 4
mov esi, eax
pop ebx
cmp esi, 0x10
jae 0x47290e
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x472909
push str._GetCPUIDCookie____HKEY_LOCAL_MACHINEHARDWAREDESCRIPTIONSystemCentralProcessor0_value_Identifier
call fcn.00469110
add esp, 4
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Identifier
push edx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4728fe
cmp dword [esp + 0x10], 1
jne 0x4728fe
lea eax, [esp + 0x18]
push eax
call fcn.00472580
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x10
jb 0x472921
push esi
lea edx, [esp + 0x1c]
push edx
push str._GetCPUIDCookie____Identifier_____s________lX_
call fcn.00469110
add esp, 0xc
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x218
ret
Function at 0x472940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push edi
mov edi, dword [esp + 0x120]
mov dword [esp + 0x10], 0
test edi, edi
je 0x47296f
mov dword [edi], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x4729ad
test edi, edi
je 0x472994
mov dword [edi], eax
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00447645
add esp, 0x114
ret
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push str.ProductId
push eax
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x472a57
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x472a46
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x472a13
test edi, edi
je 0x472a0c
mov dword [edi], eax
xor eax, eax
jmp 0x472ab0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push str.ProductId
push edx
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x472a50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x472a4c
mov dword [edi], esi
xor eax, eax
jmp 0x472ab0
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x472a5c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472a70
sub eax, edx
sar eax, 1
je 0x472aaa
lea eax, [esp + 0x20]
push eax
call fcn.00472580
mov esi, eax
add esp, 4
cmp esi, 0x10
jb 0x472aae
push esi
lea ecx, [esp + 0x24]
push ecx
push str._GetWinIdentCookie____Identifier_____s________lX_
call fcn.00469110
add esp, 0xc
jmp 0x472aae
mov esi, dword [esp + 0x18]
mov eax, esi
mov ecx, dword [esp + 0x120]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.00447645
add esp, 0x114
ret
Function at 0x472ad0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x314
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
mov esi, dword [esp + 0x31c]
test esi, esi
je 0x472af6
mov dword [esi], 0
push 0x104
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x472b31
test esi, esi
je 0x472b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00447645
add esp, 0x314
ret
lea ecx, [esp + 0x108]
push 0x5c
push ecx
call fcn.0044a60d
add esp, 8
test eax, eax
je 0x472b4d
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x472b0d
mov edx, dword [esp + 4]
push edx
push 0x4a81a0
lea eax, [esp + 0x10]
push 0x80
push eax
call fcn.00447c36
lea ecx, [esp + 0x18]
push ecx
call fcn.00472580
mov esi, eax
add esp, 0x14
cmp esi, 0x10
jb 0x472bb0
push esi
lea edx, [esp + 0xc]
push edx
push str._GetSerialNumCookie____Identifier_____s________lX_
call fcn.00469110
add esp, 0xc
mov ecx, dword [esp + 0x314]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x314
ret

Function at 0x473c70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
lea eax, [esp + 0x24]
push 0x104
push eax
or esi, 0xffffffff
call fcn.0046e020
add esp, 8
test eax, eax
jne 0x473cce
lea ecx, [esp + 0x24]
push ecx
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x4a849c
push str.APTimer
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call fcn.0044cc65
add esp, 4
mov esi, eax
push esi
push str._GetTimerValue_____d
call fcn.00469110
mov ecx, dword [esp + 0x234]
add esp, 8
mov eax, esi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x22c
ret
Function at 0x474c60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push edi
mov dword [esi], 0
mov dword [esp + 0x28], 0
test eax, eax
js 0x474cbc
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
jne 0x474cb5
push str._InitAP__ERRAP_BAD_HWND___Checking_the_HWND_passed_as_parameter:_IsWindow_hWndParent___08.8X___FALSE____fatal_error:_ExitProcess_0_
call fcn.00469110
add esp, 8
push 0x10
push str.Fatal_error
push str.The_main_windows_handle_is_mandatory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._InitAP____Checking_the_HWND_passed_as_parameter:_IsWindow_hWndParent___d___TRUE
jmp 0x474cc2
push eax
push str._InitAP____No_verification_of_the_HWND_passed_as_parameter:__dwExtendedProp___08.8X__EXPROPAP_DO_NOT_CLOSE____0
call fcn.00469110
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 8
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
push esi
push edi
push ebx
push ebp
push ecx
push edx
push eax
call fcn.00474820
add esp, 0x20
cmp dword [esi], 0
mov dword [esp + 0x34], eax
jne 0x474d1b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push esi
push edi
push ebx
push ebp
push edx
call fcn.00473f70
add esp, 0x18
or dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
pop ebp
pop ebx
test eax, eax
je 0x474d2b
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
pop edi
pop esi
ret
Function at 0x475a90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
xor ebp, ebp
mov dword [edi], 0xffffffff
test eax, eax
je 0x475aec
cmp byte [eax], 0
je 0x475aec
lea esi, [esp + 0x10]
sub esi, eax
jmp 0x475ae0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x475ae0
jmp 0x475aff
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4ab038]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x475af0
test edx, edx
je 0x475b1a
lea eax, [esp + 0x10]
mov ecx, eax
sub edx, ecx
jmp 0x475b10
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x475b10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x475b65
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.0044a6b0
add esp, 0xc
test ebx, ebx
je 0x475b4a
mov ax, word [esi + 8]
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447645
add esp, 0x104
ret
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
lea ecx, [esp + 0x14]
push ecx
push str._GetIPaddress____gethostbyname___s___has_failed____error___d
call fcn.00469110
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x475bb7
call esi
mov esi, eax
push esi
lea eax, [esp + 0x14]
push eax
push str._GetIPaddress____inet_addr___s___has_failed____error___d
call fcn.00469110
push str._GetIPaddress____unable_to_resolve_the_server_name_or_IPv4_address
call fcn.00469110
add esp, 0x10
mov eax, esi
jmp 0x475b4c
mov eax, ebp
test ebx, ebx
je 0x475b4c
mov ecx, 2
mov word [ebx], cx
jmp 0x475b4c
Function at 0x476580
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.00447660
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x4765f3
push esi
call fcn.004761d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00447645
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.00475cd0
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x118
ret
Function at 0x476800
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x476880
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4b29d8]
or ecx, dword [ebx*4 + 0x4b2bd8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4b2dd8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4b2fd8]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b2ad8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2cd8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2ed8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4b30d8]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4b29d8]
or ecx, dword [ebx*4 + 0x4b2bd8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4b2dd8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4b2fd8]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b2ad8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2cd8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2ed8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4b30d8]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x476880
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x4787e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4d3ab0
xor edi, edi
xor bl, bl
call fcn.004786d0
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ecx], eax
imul eax, dword [0x4d3df0]
add eax, dword [0x4d3dec]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x478847
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x478847
mov bl, 0x19
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47883e
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [0x4d3df0]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x478878
mov bl, 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47882a
mov edx, dword [0x4d3df0]
cmp edx, dword [esp + 0x14]
je 0x478888
mov bl, 0x1a
jmp 0x47882a
mov eax, dword [esi + 2]
cmp dword [0x4d3ab2], eax
jae 0x478898
mov dword [0x4d3ab2], eax
mov eax, dword [esi + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
movzx eax, byte [edx + 0xc]
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
push eax
push edx
mov ecx, 0x4d3ab0
call fcn.00478670
mov eax, dword [esp + 0x28]
push 0x17a
push esi
push 0x17a
push eax
call fcn.0044805c
add esp, 0x10
jmp 0x478834

Function at 0x47a090
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
xor esi, esi
cmp byte [0x4d3dd8], 0
push edi
mov edi, ecx
mov byte [esp + 0xb], 0
jne 0x47a16f
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x47a0d8
call ebx
mov esi, eax
test esi, esi
je 0x47a0d8
mov byte [esp + 0x13], 0x10
jmp 0x47a16d
mov eax, dword [0x4d3dec]
push 0
lea ecx, [esp + 0x18]
push ecx
mov byte [eax + 0x4d3df4], 0
mov edx, dword [0x4d3dec]
push edx
push 0x4d3df4
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a164
mov eax, dword [0x4d3dec]
cmp eax, dword [esp + 0x14]
jne 0x47a15d
push eax
push 0x4d3df4
mov ecx, edi
call fcn.00478630
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x47a156
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0047a030
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x47a147
mov byte [esp + 0x13], 8
jmp 0x47a16d
mov byte [0x4d3dd8], 1
test esi, esi
je 0x47a16d
xor esi, esi
jmp 0x47a16d
mov byte [esp + 0x13], 0x12
jmp 0x47a16d
mov byte [esp + 0x13], 0x11
jmp 0x47a16d
mov byte [esp + 0x13], 0x10
call ebx
mov esi, eax
pop ebp
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47a17d
mov cl, byte [esp + 0xb]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8