joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d77
Capabilities:
Get common file path

Disassembly:
push 0x154
mov eax, 0x42834f
call fcn.00426199
mov esi, ecx
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf
xor eax, eax
pop edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x130], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x148], al
push esi
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.004047b1
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x148]
mov cl, 0x5c
push eax
lea edx, [ebp - 0x160]
call fcn.00410672
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 1
push 0
neg bl
lea ecx, [ebp - 0x160]
push 1
sbb bl, bl
call fcn.004048e6
inc bl
je 0x406e28
push esi
call fcn.00403cb8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x130]
call fcn.00404980
mov eax, dword [0x437a2c]
xor ebx, ebx
test al, 1
jne 0x406e58
or eax, 1
mov dword [0x437a0c], edi
push 0x428c7a
mov dword [0x437a2c], eax
mov dword [0x437a08], ebx
mov byte [0x4379f8], bl
call fcn.00410d5f
pop ecx
lea eax, [ebp - 0x118]
push eax
call fcn.00403cb8
pop ecx
push eax
lea eax, [ebp - 0x118]
mov esi, 0x4379f8
push eax
mov ecx, esi
call fcn.00404980
push 0x5c
mov ecx, esi
call fcn.00409fc1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.0040a13a
cmp dword [0x437a0c], 0x10
lea ecx, [ebp - 0x148]
push ebx
cmovae esi, dword [0x4379f8]
push 1
call fcn.004048e6
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.004048e6
mov eax, esi
call fcn.00426148
ret
Function at 0x406ec5
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x428397
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x94]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406058
and dword [esp + 0x8c], 0
lea eax, [esp + 0x1c]
cmp dword [esp + 0x30], 0x10
push str.http
cmovae eax, dword [esp + 0x20]
push eax
call fcn.004126f0
pop ecx
pop ecx
mov esi, eax
push 0xf
pop edi
test esi, esi
je 0x406f91
add esi, 5
mov dword [esp + 0x78], edi
and dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0x8c], 1
jmp 0x406f67
test bl, bl
je 0x406f6e
push ebx
lea ecx, [esp + 0x68]
call fcn.00409fc1
inc esi
mov bl, byte [esi]
cmp bl, 0x3b
jne 0x406f58
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x28]
call fcn.00404854
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.004048e6
mov ebx, dword [esp + 0x18]
and dword [esp + 0x5c], 0
mov dword [esp + 0x60], edi
mov byte [esp + 0x4c], 0
mov byte [esp + 0x8c], 2
lea esi, [esp + 0x1c]
mov ecx, dword [esp + 0x30]
cmp ecx, 0x10
mov edx, dword [esp + 0x1c]
cmovae esi, edx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
cmp ecx, 0x10
cmovae eax, edx
add eax, edi
cmp esi, eax
je 0x406fe8
mov al, byte [esi]
cmp al, 0x3a
je 0x406fe8
push eax
lea ecx, [esp + 0x50]
call fcn.00409fc1
mov ecx, dword [esp + 0x30]
inc esi
mov edx, dword [esp + 0x1c]
jmp 0x406fb9
cmp ecx, 0x10
lea eax, [esp + 0x1c]
cmovae eax, edx
add eax, edi
cmp esi, eax
jne 0x407001
xor ebx, ebx
mov esi, ebx
jmp 0x407097
inc esi
mov dword [esp + 0x48], 0xf
and dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov byte [esp + 0x8c], 3
cmp ecx, 0x10
lea eax, [esp + 0x1c]
cmovae eax, edx
add eax, edi
cmp esi, eax
je 0x407048
movzx eax, byte [esi]
lea ecx, [esp + 0x34]
push eax
call fcn.00409fc1
mov ecx, dword [esp + 0x30]
inc esi
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
jmp 0x40701c
cmp dword [esp + 0x48], 0x10
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call fcn.00412953
cmp dword [esp + 0x64], 0x10
mov word [ebp], ax
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebx], eax
xor ebx, ebx
cmp word [ebp], bx
je 0x407089
test eax, eax
je 0x407089
xor esi, esi
inc esi
jmp 0x40708b
mov esi, ebx
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004048e6
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00410875
add esp, 0x7c
ret
Function at 0x4070d3
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4283cd
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4071f6
cmp dword [esp + 0x18], eax
je 0x4071f6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
mov ebp, pe_nt_image_headers32
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebp
push eax
push 0
push str.ProxyEnable
push dword [esp + 0x2c]
call esi
test eax, eax
jne 0x4071ec
cmp dword [esp + 0x3c], eax
je 0x4071ec
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.ProxyServer
push dword [esp + 0x2c]
call esi
mov ecx, dword [esp + 0x1c]
mov esi, eax
cmp ecx, ebp
jae 0x4071e7
push dword [esp + 0x18]
mov byte [esp + ecx + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4071f6
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.004047b1
and dword [esp + 0x148], esi
lea ecx, [esp + 0x24]
push ebx
mov edx, edi
call fcn.00406ec5
pop ecx
push 0
push 1
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004048e6
mov eax, esi
jmp 0x4071f8
call fcn.00412c17
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00410875
add esp, 0x138
ret
Function at 0x407220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
push 6
push 1
push 2
pop eax
push eax
mov ebp, edx
mov dword [esp + 0x20], ecx
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x407306
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push ebp
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x10
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4072eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x4072eb
push ebx
push 0x2710
push ebx
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, edi
je 0x4072f3
cmp eax, 0x102
je 0x4072f3
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4072f3
cmp dword [esp + 0x3c], ebx
sete bl
jmp 0x4072f3
xor ebx, ebx
cmp edi, 0xffffffff
setne bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, ebx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410875
add esp, 0x4c
ret

Function at 0x407319
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x1a4
mov eax, 0x4283fb
call fcn.00426205
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407348
xor eax, eax
jmp 0x4073bf
and dword [ebp - 4], 0
push str.www.google.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x407344
mov eax, dword [eax + 0xc]
push 0x50
pop edx
mov ecx, dword [eax]
mov ecx, dword [ecx]
call fcn.00407220
test eax, eax
jne 0x4073bc
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x1ac]
call fcn.004070d3
test eax, eax
je 0x407344
mov esi, dword [ebp - 0x1b0]
movzx eax, si
push eax
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Proxy_detected:__s:_i__trying_to_connect_n
call fcn.00401d4f
mov ecx, dword [ebp - 0x1ac]
add esp, 0xc
mov edx, esi
call fcn.00407220
jmp 0x4073bf
xor eax, eax
inc eax
call fcn.00426157
ret
Function at 0x4073c5
Capabilities:
Get common file path

Disassembly:
push 0x594
mov eax, 0x42844f
call fcn.00426199
mov esi, ecx
lea edx, [ebp - 0x580]
call fcn.0040fa51
test eax, eax
je 0x4073ec
xor eax, eax
jmp 0x4075c7
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x59c], 0x103
push eax
lea eax, [ebp - 0x59c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x580]
push eax
call dword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
je 0x4073e5
push 0xf
xor eax, eax
pop edi
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x548], eax
mov byte [ebp - 0x558], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x55c], edi
mov dword [ebp - 0x560], eax
mov byte [ebp - 0x570], al
push esi
lea ecx, [ebp - 0x598]
mov byte [ebp - 4], 1
call fcn.004047b1
lea eax, [ebp - 0x558]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x570]
mov cl, 0x5c
push eax
lea edx, [ebp - 0x598]
call fcn.00410672
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 1
push 0
neg bl
lea ecx, [ebp - 0x598]
push 1
sbb bl, bl
call fcn.004048e6
inc bl
je 0x4074ab
push esi
call fcn.00403cb8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x558]
call fcn.00404980
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
mov dword [ebp - 0x52c], edi
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 3
push eax
call fcn.00403cb8
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x540]
call fcn.00404980
push 0x5c
lea ecx, [ebp - 0x540]
call fcn.00409fc1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x558]
push eax
lea ecx, [ebp - 0x540]
call fcn.0040a13a
cmp dword [ebp - 0x52c], 0x10
lea eax, [ebp - 0x528]
push esi
push eax
mov eax, dword [ebp - 0x530]
lea ecx, [ebp - 0x540]
cmovae ecx, dword [ebp - 0x540]
inc eax
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x320]
push eax
call fcn.00412e8d
pop ecx
lea eax, [ebp - 0x528]
push eax
call fcn.00412e8d
pop ecx
lea ecx, [ebp - 0x528]
lea eax, [ebp - 0x320]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407591
test dx, dx
je 0x40758d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407591
add eax, 4
add ecx, 4
test dx, dx
jne 0x40756b
mov esi, ebx
jmp 0x407596
sbb esi, esi
or esi, 1
push ebx
push 1
lea ecx, [ebp - 0x540]
call fcn.004048e6
push ebx
push 1
lea ecx, [ebp - 0x570]
call fcn.004048e6
push ebx
push 1
lea ecx, [ebp - 0x558]
call fcn.004048e6
xor eax, eax
test esi, esi
sete al
call fcn.00426148
ret
Function at 0x407a85
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x420
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x41c], eax
mov ecx, dword [0x436310]
lea edx, [esp]
push ebx
push esi
xor esi, esi
mov dword [esp + 8], esi
call fcn.004011a0
mov ebx, eax
test ebx, ebx
jne 0x407abb
inc eax
jmp 0x407b8b
push ebp
mov ebp, esi
push edi
cmp dword [esp + 0x10], esi
jle 0x407b80
lea edi, [ebx + 0x74]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x103
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [edi - 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
je 0x407ba2
push 0x104
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x407ba2
lea eax, [esp + 0x1c]
push eax
push edi
push str.Trying_to_load_provider:__S__file_name:__S__result__
call fcn.00401d4f
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x407b40
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x407b6f
lea eax, [esp + 0x1c]
push eax
push edi
push str.Failed_to_load_provider:__S__file_name:__S_n
call fcn.00401d4f
push str.Lus_Dia
push edi
call fcn.00410ece
add esp, 0x14
test eax, eax
je 0x407b67
push 2
pop esi
jmp 0x407b6f
push 1
test esi, esi
pop eax
cmove esi, eax
inc ebp
add edi, 0x274
cmp ebp, dword [esp + 0x10]
jl 0x407acc
mov ecx, ebx
call fcn.0040124d
mov eax, esi
pop edi
pop ebp
mov ecx, dword [esp + 0x424]
pop esi
pop ebx
xor ecx, esp
call fcn.00410875
add esp, 0x420
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x407b89
Function at 0x40e5a2
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
mov edi, edx
test edi, edi
jne 0x40e5c8
xor eax, eax
jmp 0x40e5fc
mov ecx, dword [0x436310]
lea edx, [ebp - 0x7c]
push esi
xor esi, esi
mov dword [ebp - 0x7c], esi
call fcn.004011a0
mov ecx, eax
test ecx, ecx
je 0x40e5f9
cmp dword [ebp - 0x7c], esi
jle 0x40e5f9
lea eax, [ecx + 0x24]
cmp dword [eax], edi
je 0x40e612
inc esi
add eax, 0x274
cmp esi, dword [ebp - 0x7c]
jl 0x40e5ea
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop edi
call fcn.00410875
lea esp, [ebp + 0x194]
pop ebp
ret
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0x103
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
imul eax, esi, 0x274
add eax, 0x14
add eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
jne 0x40e644
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e5f9
push 0x104
mov esi, 0x437c38
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40e63c
mov eax, esi
jmp 0x40e5fb
Function at 0x40f063
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42899e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebx, edx
mov ebp, ecx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x430c58
call esi
mov edi, eax
test edi, edi
jne 0x40f1b3
lea eax, [esp + 0x44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
and dword [esp + 0x24], edi
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
lea eax, [esp + 0x44]
push eax
call fcn.00405820
and dword [esp + 0x258], edi
lea ecx, [esp + 0x14]
push str.SpOrder.dll
call fcn.00405771
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmovae eax, dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x40f167
and dword [esp + 0x3c], eax
lea ecx, [esp + 0x2c]
push 0x430c7c
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.00405820
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x25c], 1
push eax
lea ecx, [esp + 0x34]
call fcn.004054bd
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 0
call fcn.00405930
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call edi
mov edi, eax
test edi, edi
jne 0x40f19e
push 0x42f7ac
call esi
mov edi, eax
test edi, edi
jne 0x40f19e
push eax
push 1
lea ecx, [esp + 0x1c]
call fcn.00405930
mov eax, 0x2726
jmp 0x40f1d2
or dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.00405930
push 0x430c84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f197
push ebx
push ebp
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00410875
add esp, 0x248
ret
Function at 0x40f7ba
Capabilities:
Encode data using xor
Hash data using crc32b
Read file on windows

Disassembly:
mov eax, 0x10008
call fcn.0041d040
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x10004], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0xc], ecx
push edi
mov ebp, ebx
mov edi, 0x437450
mov dl, 8
mov ecx, ebp
call fcn.0040f790
mov esi, eax
shl esi, 0x18
push 8
mov dword [edi], esi
pop edx
mov ecx, esi
lea eax, [esi + esi]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
mov esi, ecx
xor esi, eax
dec edx
jne 0x40f7f6
mov dl, 0x20
mov ecx, esi
call fcn.0040f790
mov dword [edi], eax
inc ebp
add edi, 4
cmp edi, 0x43784c
jle 0x40f7e3
push 0x42f6b4
push dword [esp + 0x14]
call fcn.00411ec1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40f879
jmp 0x40f88d
push 0xffff
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00413532
mov edx, eax
lea edi, [esp + 0x24]
add esp, 0x10
not ebx
test edx, edx
je 0x40f877
movzx eax, byte [edi]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x437450]
inc edi
dec edx
jne 0x40f861
not ebx
push esi
call fcn.00412439
pop ecx
push esi
test eax, eax
je 0x40f841
call fcn.00411f9a
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410875
add esp, 0x10008
ret

Function at 0x40fade
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40fb55
push SysReAllocString
push str._SYSTEMROOT__system32
push ecx
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0040685c
test eax, eax
js 0x40fb44
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x40fb55
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410875
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea eax, [ebp - 0x10c]
cmp byte [eax], 0
je 0x40fb66
inc eax
dec ecx
jne 0x40fb5d
test ecx, ecx
je 0x40fb44
push closesocket
mov eax, esi
sub eax, ecx
push str.ws2_32.dll
push ecx
sub esi, eax
lea ecx, [ebp - 0x10c]
add ecx, eax
mov edx, esi
call fcn.0040685c
test eax, eax
js 0x40fb44
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40fb3e
push str.WSCUpdateProvider
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437434], eax
mov eax, esi
jmp 0x40fb46
Function at 0x40fd03
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x43634c]
cmp eax, 0x11
jne 0x40fe0a
push ebx
push esi
push 0xf
pop ebx
mov esi, 0x9c
lea eax, [ebp - 0x28]
push esi
push 0
push eax
call fcn.004171f0
add esp, 0xc
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x40fd6b
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x94
push eax
call esi
test eax, eax
jne 0x40fd6b
push 0x10
pop eax
jmp 0x40fe08
mov eax, dword [ebp - 0x18]
dec eax
je 0x40fde0
dec eax
jne 0x40fe00
mov ecx, dword [ebp - 0x20]
push 3
pop eax
push 4
pop esi
cmp dword [ebp - 0x24], esi
push 5
cmovbe ebx, eax
mov al, byte [ebp + 0x72]
pop edx
cmp dword [ebp - 0x24], edx
jne 0x40fdad
test ecx, ecx
cmove ebx, esi
cmp ecx, 1
cmove ebx, edx
cmp ecx, 2
jne 0x40fe00
cmp al, 1
jne 0x40fdaa
mov ebx, edx
jmp 0x40fe00
push 6
pop ebx
cmp dword [ebp - 0x24], 6
jne 0x40fe00
cmp ecx, 2
jne 0x40fdc5
push 0xd
pop ebx
push 0xb
cmp al, 1
pop ecx
cmove ebx, ecx
jmp 0x40fe00
xor ebx, ebx
cmp ecx, 1
jne 0x40fdd6
cmp al, cl
sete bl
add ebx, 9
jmp 0x40fe00
cmp al, 1
setne bl
add ebx, 7
jmp 0x40fe00
cmp dword [ebp - 0x24], 4
jne 0x40fe00
mov ecx, dword [ebp - 0x20]
xor eax, eax
test ecx, ecx
push 2
cmove ebx, eax
inc eax
cmp ecx, 0xa
cmove ebx, eax
cmp ecx, 0x5a
pop eax
cmove ebx, eax
mov dword [0x43634c], ebx
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00410875
lea esp, [ebp + 0x78]
pop ebp
ret

Function at 0x410496
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
and dword [esp + 4], 0
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, edx
push edi
mov edi, ecx
inc ebx
mov edx, ebx
mov ecx, str.SeBackupPrivilege
call fcn.00410363
push 0x10
pop ebp
cmp dword [edi + 0x14], ebp
jb 0x4104be
mov edi, dword [edi]
push str.HKCU
push edi
call fcn.00412591
mov edi, eax
neg edi
pop ecx
sbb edi, edi
neg edi
add edi, 0x80000001
pop ecx
cmp dword [esi + 0x14], ebp
jb 0x4104e2
mov eax, dword [esi]
jmp 0x4104e4
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410557
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x14], ebp
jb 0x410509
mov ecx, dword [esi]
jmp 0x41050b
mov ecx, esi
call fcn.00410458
test eax, eax
je 0x410530
cmp dword [esi + 0x14], ebp
jb 0x41051d
mov eax, dword [esi]
jmp 0x41051f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410530
mov eax, dword [esp + 0x14]
jmp 0x410544
cmp dword [esi + 0x14], ebp
jb 0x410537
mov esi, dword [esi]
push 0
push esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push dword [esp + 0x14]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410569
cmp dword [esi + 0x14], ebp
jb 0x41055e
mov esi, dword [esi]
mov edx, esi
mov ecx, edi
call fcn.004103e7
xor ebx, ebx
xor edx, edx
mov ecx, str.SeBackupPrivilege
call fcn.00410363
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret