joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412f00
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
xor eax, eax
mov word [ebp - 0x4c], ax
xor ecx, ecx
mov word [ebp - 0x4a], cx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x7c], 0x44
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00406040
push eax
push 0
mov ecx, dword [ebp + 0x38]
push ecx
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00406040
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40fb7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
push 0
push 0
lea edx, [ebp - 0x34]
push edx
push 0x400
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404d30
mov byte [ebp - 0x2a], 0
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00404f80
mov al, byte [ebp - 0x2a]
jmp 0x40fbb7
movzx edx, byte [ebp + 0x3c]
test edx, edx
je 0x40fb95
push 0xffffffffffffffff
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00404f80
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret

Function at 0x40fd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], 0x3e8
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.0040fbe0
mov dword [ebp - 0x210], eax
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], 0
je 0x40fe1e
xor al, al
jmp 0x40fe20
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fe30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x25c], 0x3e8
mov dword [ebp - 0x258], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x260]
call fcn.0040fbe0
mov dword [ebp - 0x254], eax
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x258]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x250], 0
je 0x40ff59
mov edx, dword [ebp + 0x14]
push edx
push 0x415d00
mov eax, dword [ebp + 0x10]
push eax
push 0x415d20
mov ecx, dword [ebp - 0x250]
push ecx
push str.Get_Registry_Key__String____Result_:_Failed___Reason_:_Can_not_get_registry___Error_:
mov edx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push edx
call fcn.00410530
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___long_int_]
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push 0x415c2e
mov ecx, dword [ebp + 8]
call fcn.00404d30
mov eax, dword [ebp - 0x24c]
or eax, 1
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 8]
jmp 0x40ffe5
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040d4f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x230]
call fcn.0040e7c0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e680
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x248]
call fcn.0040cad0
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404c40
mov ecx, dword [ebp - 0x24c]
or ecx, 1
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x248]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040d720
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.0040fbe0
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4100b4
mov edx, dword [ebp + 0x10]
push edx
push str.___Key_Name_:
mov eax, dword [ebp + 0xc]
push eax
push str.___Key_Path_:
mov ecx, dword [ebp - 8]
push ecx
push str.Get_Registry_Key__Number____Result_:_Failed___Reason_:_Can_not_get_registry___Error_:
mov edx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push edx
call fcn.00410530
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___long_int_]
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
or eax, 0xffffffff
jmp 0x4100b7
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x410180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040fbe0
mov dword [ebp - 0xc], eax
push 4
lea edx, [ebp + 0x14]
push edx
push 4
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41021b
mov edx, dword [ebp + 0x10]
push edx
push 0x416174
mov eax, dword [ebp - 8]
push eax
push 0x41618c
mov ecx, dword [ebp + 0xc]
push ecx
push str.Set_Registry_Key__Number____Result_:_Failed___Reason_:_Can_not_set_registry___Key_:
mov edx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push edx
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___long_int_]
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x10
Function at 0xe05058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e051a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe0507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe0506a
add dl, dl
jne 0xe05089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe050dc
xor eax, eax
add dl, dl
jne 0xe05096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe0517d
add dl, dl
jne 0xe050a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe050b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe050bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe050c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe050d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe05075
mov eax, 1
add dl, dl
jne 0xe050ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe050f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe050e1
sub eax, ebx
mov ebx, 1
jne 0xe05128
mov ecx, 1
add dl, dl
jne 0xe0510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe05119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe05105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe05075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe0513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe0514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe05136
cmp eax, 0x7d00
jae 0xe0516d
cmp eax, 0x500
jb 0xe05168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe05075
cmp eax, 0x7f
ja 0xe05170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe05075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe0519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe05075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x412570
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0x18], bl
jne 0x412582
pop esi
xor al, al
pop ebx
ret 4
cmp byte [esp + 0xc], 1
jne 0x4125d0
mov al, byte [esi + 0x19]
cmp al, 1
je 0x41257b
call fcn.00412750
test eax, eax
jne 0x41257b
push edi
mov edi, esi
call fcn.004128d0
mov byte [esi + 0x1a], bl
mov dword [esi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebx
push 0x412600
mov dword [esi + 0x2c], eax
call fcn.004a8bf7
add esp, 0xc
pop edi
cmp eax, 0xffffffff
je 0x41257b
mov byte [esi + 0x19], 1
pop esi
mov al, 1
pop ebx
ret 4
mov cl, byte [esi + 0x19]
test cl, cl
je 0x41257b
mov eax, dword [esi + 0x24]
mov byte [esi + 0x19], bl
cmp eax, ebx
je 0x4125e8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esi + 0x1a], bl
pop esi
mov al, 1
pop ebx
ret 4

Function at 0x4126e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x412735
mov eax, dword [esp]
cmp al, 2
jne 0x41272f
shr eax, 8
cmp al, 2
jne 0x41272f
mov al, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor al, al
call fcn.004a58c9
mov esp, ebp
pop ebp
ret
Function at 0x412750
Capabilities:
Create raw socket
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x88
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x84], eax
push 0
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x412792
mov eax, 1
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a58c9
add esp, 0x88
ret
push 0x40
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4127be
mov eax, 2
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a58c9
add esp, 0x88
ret
push edi
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, 2
push 0x20a8
mov edi, eax
mov word [esp + 0x3c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3a], ax
movsx eax, word [edi + 0xa]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004a7d10
mov edx, dword [esi + 0x24]
add esp, 0xc
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x412851
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call edi
cmp eax, 0xffffffff
je 0x412851
mov eax, dword [esi + 0x24]
push 4
lea edx, [esp + 8]
push edx
push 2
push 0
push eax
call edi
cmp eax, 0xffffffff
jne 0x41286c
mov eax, 1
pop edi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a58c9
add esp, 0x88
ret
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x24]
push 0x28
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x98000001
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esp + 0x88]
xor edx, edx
cmp eax, 0xffffffff
sete dl
pop edi
xor ecx, esp
mov eax, edx
call fcn.004a58c9
add esp, 0x88
ret

Function at 0x412bf0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4e8670
mov eax, dword fs:[0]
push eax
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0xf0]
mov dword [esp + 0x10], 3
call fcn.00403920
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x10c]
call fcn.00403920
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0x128]
call fcn.00403920
lea eax, [esp + 0x68]
push eax
lea ecx, [esi + 0x144]
call fcn.00403920
lea ecx, [esp + 0x14]
mov byte [esi + 0x160], 1
call fcn.00401270
lea ecx, [esp + 0x30]
call fcn.00401270
lea ecx, [esp + 0x4c]
call fcn.00401270
lea ecx, [esp + 0x68]
call fcn.00401270
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x70
Function at 0x416860
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
xor edi, edi
push edi
push 4
push eax
push ecx
push edi
push edi
call fcn.004a82c6
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x416890
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4168a7
and eax, 0xffff
or eax, 0x80070000
pop edi
ret 4
mov edx, dword [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
ret 4

Function at 0x4168b0
Capabilities:
Terminate thread

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esi], ebp
je 0x41690b
mov eax, dword [ebx + 0x4c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call edi
mov ecx, dword [ebx + 0x50]
push ecx
call edi
mov edx, dword [ebx + 0x54]
push edx
call edi
mov eax, dword [ebx + 0x58]
push eax
call edi
mov ecx, dword [esi]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
cmp eax, 0x102
jne 0x4168fc
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, 1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [ebx + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebp
pop ebp
ret

Function at 0x4173d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, eax
mov eax, dword [0x536ea8]
cmp eax, 5
mov ebx, ecx
mov ecx, dword [0x536eac]
jl 0x4173f4
cmp edi, ecx
jne 0x4173ef
pop edi
xor al, al
pop ebx
ret
cmp eax, 5
jg 0x417404
cmp edi, ecx
je 0x417404
mov dword [0x536ea8], 0
jmp 0x41740a
inc eax
mov dword [0x536ea8], eax
mov eax, dword [ebx + 0x50]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea esi, [ebx + 0x44]
call fcn.004168b0
lea ecx, [ebx + 8]
call fcn.004e2080
push 0
push 4
push ebx
push 0x416920
push 0
mov dword [ebx + 0xf8], edi
mov edi, dword [ebx + 0x128]
push 0
call fcn.004a82c6
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x41746b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x417463
and eax, 0xffff
or eax, 0x80070000
test eax, eax
je 0x41747c
pop esi
pop edi
xor al, al
pop ebx
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebx + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x418790
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8b58
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
lea esi, [eax + 0x280]
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.00405e90
cmp al, 1
jne 0x4187da
push str.HTTPOut.txt
mov ecx, esi
call fcn.00403940
push 0x5122b4
mov ecx, esi
call fcn.00401290
push eax
call fcn.004a90d2
mov esi, eax
add esp, 8
test esi, esi
je 0x41881a
push esi
lea ecx, [esp + 0x20]
call fcn.00401990
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00401290
push eax
call fcn.004a924b
push esi
call fcn.004a887c
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.00401270
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x20

Function at 0x4195f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e8a62
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push edi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x234], ebx
push 0x512310
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
call fcn.004012b0
push 0x206
lea ecx, [esp + 0x26]
mov dword [esp + 0x238], ebx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], 1
mov word [esp + 0x2c], ax
call fcn.004a7be0
add esp, 0xc
push 0x512368
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x419730
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x4196ce
call fcn.00419760
cmp edx, 0x50000
jb 0x4196bd
ja 0x4196aa
cmp eax, ebx
jb 0x4196bd
mov eax, dword [esp + 0x23c]
push ebx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call ebp
jmp 0x41971d
push ebx
mov eax, 0x1a
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call ebp
jmp 0x41971d
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x419729
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push str.CommonFilesDir
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00404ee0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a58c9
add esp, 0x228
ret
Function at 0x419a40
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push edi
push 0x11c
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
mov dword [esi], 0xc
push eax
mov dword [ebp], 5
call fcn.004a7be0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x11c
call edi
cmp eax, 1
sete bl
test bl, bl
jne 0x419af0
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x114
call edi
test eax, eax
jne 0x419af0
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a58c9
add esp, 0x144
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
sub eax, 0
je 0x419c4a
sub eax, 1
je 0x419be9
sub eax, 1
jne 0x419c50
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov cl, byte [esp + 0x14a]
cmp edi, 6
jne 0x419b54
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x419b43
xor eax, eax
cmp cl, 1
setne al
mov dword [esi], eax
jmp 0x419ba4
test eax, eax
jne 0x419ba4
cmp cl, 1
setne al
add eax, 2
mov dword [esi], eax
jmp 0x419ba4
cmp edi, 5
jne 0x419b99
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x419b80
cmp cl, 1
jne 0x419b78
cmp dx, 9
jne 0x419b78
mov dword [esi], 7
mov dword [ebp], eax
jmp 0x419ba4
mov dword [esi], 4
jmp 0x419ba4
cmp eax, 1
jne 0x419b8d
mov dword [esi], 7
jmp 0x419ba4
test eax, eax
jne 0x419ba4
mov dword [esi], 5
jmp 0x419ba4
cmp edi, 4
ja 0x419ba4
mov dword [esi], 6
test bl, bl
je 0x419c50
cmp cl, 1
jne 0x419c50
cmp dx, 9
je 0x419c50
cmp edi, 4
jne 0x419bd0
mov dword [ebp], 0
jmp 0x419c50
mov ecx, dword [esp + 0x148]
and ecx, 0x200
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [ebp], ecx
jmp 0x419c50
cmp dword [esp + 0x34], 4
jne 0x419c50
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x419c18
mov ax, word [esp + 0x46]
mov dword [esi], 9
cmp ax, 0x43
je 0x419c0f
cmp ax, 0x42
jne 0x419c50
mov dword [ebp], 4
jmp 0x419c50
cmp eax, 0xa
jne 0x419c3d
mov ax, word [esp + 0x46]
mov dword [esi], 8
cmp ax, 0x41
je 0x419c34
cmp ax, 0x42
jne 0x419c50
mov dword [ebp], 3
jmp 0x419c50
cmp eax, 0x5a
jne 0x419c50
mov dword [esi], 0xa
jmp 0x419c50
mov dword [esi], 0xb
mov ecx, dword [esp + 0x14c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004a58c9
add esp, 0x144
ret