joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41471c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x41473d
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x4147d1
dec eax
je 0x4147bc
dec eax
je 0x41479c
dec eax
jne 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x4147ec
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x414755
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Get disk size

Disassembly:
sub esp, 0x34
mov eax, dword [0x412190]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00404d08
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401069
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401069
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
push ecx
call eax
test eax, eax
je 0x4010ba
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x40109b
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4010ba
mov eax, dword [esp + 8]
imul eax, dword [esp]
imul eax, dword [esp + 4]
xor ecx, ecx
cmp ecx, dword [esp + 0x3c]
jl 0x4010a9
jg 0x4010ba
cmp eax, dword [esp + 0x38]
ja 0x4010ba
xor eax, eax
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00404d54
add esp, 0x34
ret
mov ecx, dword [esp + 0x30]
xor ecx, esp
mov eax, 1
call fcn.00404d54
add esp, 0x34
ret
Function at 0x4012c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x412190]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412e84], eax
test eax, eax
je 0x401317
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x412e84]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
push ecx
and esi, 0x100
add esi, 0xf003f
push esi
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013b6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ebx
push ecx
mov dword [esp + 0x2c], 0x800
call ebp
test eax, eax
jne 0x4013ab
lea edx, [esp + 0x18]
push 0x40d264
push edx
call fcn.00404a8c
add esp, 8
test eax, eax
jne 0x40139f
lea eax, [esp + 0x18]
push 0x40d25c
push eax
call fcn.00404a8c
add esp, 8
test eax, eax
je 0x4013ab
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call edi
pop edi
pop esi
test eax, eax
jne 0x401433
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x24], 0x800
call ebp
test eax, eax
jne 0x401428
lea ecx, [esp + 0x10]
push 0x40d264
push ecx
call fcn.00404a8c
add esp, 8
test eax, eax
jne 0x40141c
lea edx, [esp + 0x10]
push 0x40d25c
push edx
call fcn.00404a8c
add esp, 8
test eax, eax
je 0x401428
mov eax, dword [esp + 8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x810]
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d54
add esp, 0x80c
ret
Function at 0x401450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x412190]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x410]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [esp + 0x41c]
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
call esi
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xa
lea ecx, [esp + 0x20]
push ecx
call esi
push eax
call fcn.004052e8
add esp, 0xc
cmp dword [esp + 0x420], 0
je 0x4015a0
test edi, edi
jne 0x4014e0
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x30]
push str._s._Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40150f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014e5
sub eax, edx
cmp eax, 0x104
ja 0x40150f
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
lea edx, [esp + 0x34]
push str._s.__s_Error_ID_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push 0x413098
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401546
push 0x10
push str.IDM_Setup
push str.Could_not_create_open_error_log_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4015a0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401560
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
push esi
call edi
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401584
push 0
sub eax, ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x424], 0
je 0x40160b
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40160b
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015b7
sub eax, edx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0xff]
push eax
call fcn.0040523f
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push str._s_r_n_s_r_nError_ID:__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x10
push str.IDM_Setup
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004051ca
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x410]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
add eax, edx
call fcn.00404d54
add esp, 0x404
ret
Function at 0x4016b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa80
mov eax, dword [0x412190]
xor eax, esp
mov dword [esp + 0xa7c], eax
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00405150
mov eax, dword [0x4132a0]
add esp, 0xc
mov ecx, 5
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], cx
test eax, eax
je 0x401713
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x4132a0]
push 0x413090
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.IDM1.tmp
push 0x412e88
lea eax, [esp + 0x268]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x270]
push ecx
call fcn.004012c0
add esp, 0x14
cmp dword [0x4132a8], 0
je 0x4017a9
push 0x104
lea edx, [esp + 0x5c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401857
cmp dword [0x4132ac], 0
mov eax, str.__skdlgs
jne 0x401779
mov eax, 0x40d42c
lea ecx, [esp + 0x58]
push ecx
push eax
push 0x412e88
push str.IDM1.tmp
push 0x412e88
lea edx, [esp + 0x274]
push str.__s_s___d___s__s__rmsetup___s_
push edx
call esi
add esp, 0x1c
cmp dword [0x4132a8], 0
jne 0x4017de
cmp dword [0x4132ac], 0
mov eax, str.__skdlgs
jne 0x4017bc
mov eax, 0x40d42c
push eax
push 0x412e88
push str.IDM1.tmp
push 0x412e88
lea eax, [esp + 0x270]
push str.__s_s___d___s__s
push eax
call esi
add esp, 0x18
xor eax, eax
cmp dword [0x413090], 0xfffffc18
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jae 0x4018c6
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x412e88
push eax
push 0x20
push 1
push eax
push eax
lea eax, [esp + 0x280]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401866
push 0x40d3c4
push 1
push 1
push eax
push str.Could_not_create_process_in_unpacker
call fcn.00401450
add esp, 0x14
pop esi
mov ecx, dword [esp + 0xa7c]
xor ecx, esp
call fcn.00404d54
add esp, 0xa80
ret
mov dword [0x4132a8], 0
jmp 0x4017a9
cmp dword [esp + 8], 0
je 0x4018da
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.AllowSetForegroundWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40188f
mov ecx, dword [esp + 0xc]
push ecx
call eax
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [0x412e80]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
mov ecx, dword [esp + 0xa7c]
xor ecx, esp
call fcn.00404d54
add esp, 0xa80
ret
push 0x40
push str.IDM_Setup
push str.Install_process_has_been_stopped_because_of_errors_in_unpacker_procedure
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xa80]
pop esi
xor ecx, esp
call fcn.00404d54
add esp, 0xa80
ret
Function at 0x401dd0
Capabilities:
Get file size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40f888
push 0x405410
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x412190]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 1
mov ebx, dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ed7
mov ecx, edi
lea edx, [ebp - 0x224]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x401e46
mov eax, edi
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401e60
mov edx, dword [0x40d800]
mov dword [eax], edx
mov cx, word [0x40d804]
mov word [eax + 4], cx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
push 0
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ed7
push 0x40d3c4
push 1
push 1
push 0
push str.Could_not_create_file_in_GetViewFile
call fcn.00401450
add esp, 0x14
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00404d54
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x228]
add dword [ecx], eax
mov ecx, dword [ecx]
cmp ebx, 0x80000000
jne 0x401f03
mov eax, 2
mov dword [ebp - 0x228], 4
jmp 0x401f22
cmp ebx, 0xc0000000
jne 0x401f1c
mov eax, 4
mov dword [ebp - 0x228], 2
jmp 0x401f22
mov eax, dword [ebp - 0x228]
push 0
push ecx
push 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp dword [ebp + 0x18], 0
je 0x401f4f
push 0x4132c0
push 0x4132b8
push 0x4132b0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp + 0x1c], 0
je 0x401f6b
push 0x4132c0
push 0x4132b8
push 0x4132b0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test edi, edi
jne 0x401f8c
push 0x40d3c4
push 1
push 1
push edi
push str.Could_not_create_map_file_in_GetViewFile
jmp 0x401eaa
push 0
push 0
push 0
mov eax, dword [ebp - 0x228]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x22c], esi
test esi, esi
jne 0x401fc3
push 0x40d3c4
push 1
push 1
push eax
push str.Could_not_create_map_view_file_in_GetViewFile
call fcn.00401450
add esp, 0x14
push edi
call ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401ebb
Function at 0x404d54
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412190]
jne 0x404d5e
repz ret
jmp fcn.00405ee3

Function at 0x40b16e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406d14
and dword [ebp - 4], 0
cmp dword [0x413c54], 0
mov ebx, eax
jne 0x40b21f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e5dc
push edi
call esi
test eax, eax
je 0x40b2d0
push eax
call fcn.00406ca2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413c54], eax
call esi
push eax
call fcn.00406ca2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413c58], eax
call esi
push eax
call fcn.00406ca2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x413c5c], eax
call esi
push eax
call fcn.00406ca2
pop ecx
mov dword [0x413c64], eax
test eax, eax
je 0x40b21f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ca2
pop ecx
mov dword [0x413c60], eax
mov eax, dword [0x413c60]
cmp eax, ebx
je 0x40b277
cmp dword [0x413c64], ebx
je 0x40b277
push eax
call fcn.00406d1d
push dword [0x413c64]
mov esi, eax
call fcn.00406d1d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b277
test edi, edi
je 0x40b277
call esi
test eax, eax
je 0x40b26e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b26e
test byte [ebp - 0xc], 1
jne 0x40b277
or dword [ebp + 0x10], 0x200000
jmp 0x40b2b0
mov eax, dword [0x413c58]
cmp eax, ebx
je 0x40b2b0
push eax
call fcn.00406d1d
pop ecx
test eax, eax
je 0x40b2b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2b0
mov eax, dword [0x413c5c]
cmp eax, ebx
je 0x40b2b0
push eax
call fcn.00406d1d
pop ecx
test eax, eax
je 0x40b2b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413c54]
call fcn.00406d1d
pop ecx
test eax, eax
je 0x40b2d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version
Get disk information
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x400
push 0
push esi
call fcn.00518f10
push 0x400
lea edi, [esi + 0x400]
push 0
push edi
call fcn.00518f10
push 0x400
lea eax, [esi + 0x800]
push 0
push eax
call fcn.00518f10
push 0x400
lea eax, [esi + 0xc00]
push 0
push eax
call fcn.00518f10
push 0x400
lea eax, [esi + 0x1004]
push 0
push eax
mov dword [esi + 0x1000], 0
call fcn.00518f10
push 0x400
lea eax, [esi + 0x1404]
push 0
push eax
call fcn.00518f10
add esp, 0x48
push 0x288
mov dword [ebp - 4], 0x288
call fcn.00515d7a
mov ebx, eax
add esp, 4
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4010c6
push ebx
call fcn.00515e0e
mov ecx, dword [ebp - 4]
push ecx
call fcn.00515d7a
add esp, 8
lea edx, [ebp - 4]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x401156
lea eax, [ebx + 0x1b0]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4010d8
lea eax, [ebx + 0x1c0]
sub edi, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4010f0
lea eax, [ebx + 0x1d8]
lea edx, [esi + 0x800]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401108
movzx eax, byte [ebx + 0x199]
movzx ecx, byte [ebx + 0x198]
movzx edx, byte [ebx + 0x197]
push eax
movzx eax, byte [ebx + 0x196]
push ecx
movzx ecx, byte [ebx + 0x195]
push edx
movzx edx, byte [ebx + 0x194]
push eax
push ecx
push edx
lea eax, [esi + 0xc00]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00515f66
add esp, 0x20
push ebx
call fcn.00515e0e
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edi, [esi + 0x1000]
push edi
push ebx
push ebx
push 0x57046c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40117f
mov dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push eax
push ecx
lea eax, [esi + 0x1004]
push str._08X_08X
push eax
call fcn.00515f66
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
pop edi
movzx eax, al
pop ebx
cmp ecx, 4
ja 0x4011cd
push str.windows_NT
jmp 0x40122f
cmp ecx, 5
jne 0x40120e
test eax, eax
lea eax, [esi + 0x1404]
jne 0x4011f5
push str.windows_2000
push 0x400
push eax
call fcn.00515fea
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
push str.windows_XP
push 0x400
push eax
call fcn.00515fea
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
cmp ecx, 6
jne 0x40122a
test eax, eax
jne 0x40121e
push str.windows_Vista
jmp 0x40122f
cmp eax, 1
jne 0x40122a
push str.windows_7
jmp 0x40122f
push str.windows_8
lea eax, [esi + 0x1404]
push 0x400
push eax
call fcn.00515fea
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x401250
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540db0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 8
mov dword [ebp - 0x14], 0x59cbdc
mov dword [0x59cbdc], esi
call fcn.00416a25
add esp, 4
cmp eax, esi
je 0x401353
mov dword [0x59cbdc], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [0x59cbdc]
mov dword [eax], 0x59cbdc
mov dword [0x59cbe0], esi
mov dword [0x59cbe4], esi
mov dword [0x59cbe8], esi
mov dword [0x59cbec], esi
push 0x59cbfc
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
push ecx
mov dword [0x59cbf4], esi
mov dword [0x59cbf8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
add eax, eax
xor ecx, ecx
mov dword [0x59cbf8], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416a54
mov dword [0x59cbf4], eax
add esp, 4
xor eax, eax
cmp dword [0x59cbf8], esi
jle 0x401338
mov ecx, dword [0x59cbf4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [0x59cbf8]
jl 0x401326
mov dword [0x59cc14], esi
mov eax, 0x59cbdc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esi
call fcn.0051662b
push 0x58a110
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00517eca
int3
Function at 0x4016a0
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x59cbf8], esi
jle 0x4016d9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0x59cbdc
push 0x4018e0
push 0
push 0
call edi
mov ecx, dword [0x59cbf4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x59cbf8]
jl 0x4016b2
pop edi
pop esi
ret

Function at 0x402070
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 1
push 0x5704d8
mov esi, edx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x4020cd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005155a4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x4020ba
push 1
push 0x4000000
lea edx, [ebp - 0x420]
push edx
push 0
push 0
push ebx
push esi
push eax
mov dword [ebp - 0x420], 0x5704e0
mov dword [ebp - 0x41c], 0x5704e4
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x4020ba
mov edx, dword [ebp - 0x418]
test edx, edx
je 0x40213b
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402130
sub eax, edi
jmp 0x40213d
xor eax, eax
push 0
push 0
push eax
push edx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4020ba
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00518f10
mov ecx, dword [ebp - 0x414]
push 0x570524
push ecx
mov dword [ebp - 0x408], 0
call fcn.00516280
mov edi, eax
add esp, 0x14
test edi, edi
je 0x402203
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
test eax, eax
je 0x4021fa
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4021fa
push edi
push eax
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.00516546
push 0x400
lea edx, [ebp - 0x404]
push 0
push edx
call fcn.00518f10
add esp, 0x1c
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
jne 0x4021b0
push edi
call fcn.0051634b
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [ebp - 0x40c]
push edx
call esi
mov eax, dword [ebp - 0x410]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005155a4
mov esp, ebp
pop ebp
ret