joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403db0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
push 1
push 2
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x403e95
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 8]
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x10
push eax
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x403e45
xor ebx, ebx
cmp edi, 0xffffffff
setne bl
jmp 0x403e81
push 0
push 0x2710
push 0
lea ecx, [ebp - 0x44]
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x403e81
cmp eax, 0x102
je 0x403e81
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x403e81
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
sete bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x403eb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x418]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x418], edi
call fcn.004155e0
add esp, 8
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x403f08
push str.TestChain:_Unable_to_enumerate_catalog__n
call fcn.00413260
add esp, 4
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov dword [ebp - 0x41c], edi
cmp dword [ebp - 0x418], edi
jle 0x404035
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea esi, [eax + 0x74]
jmp 0x403f30
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [esi - 0x60]
push edx
mov dword [ebp - 0x424], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x404051
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40407b
lea edx, [ebp - 0x20c]
push edx
push esi
push str.Trying_to_load_provider:__S__file_name:__S__result__
call fcn.004131d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x403fba
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str._Success_n
call fcn.004131d0
add esp, 4
jmp 0x404010
push str._Failure_n
call fcn.004131d0
lea ecx, [ebp - 0x20c]
push ecx
push esi
push str.Failed_to_load_provider:__S__file_name:__S_n
call fcn.00413260
add esp, 0x10
call fcn.00409830
mov ecx, eax
call fcn.00409870
push eax
push esi
call fcn.0041a2de
add esp, 8
test eax, eax
je 0x404007
push str.This_is_our_LSP_that_broke_the_chain__n
call fcn.00413260
add esp, 4
mov edi, 2
jmp 0x404010
test edi, edi
jne 0x404010
mov edi, 1
mov eax, dword [ebp - 0x41c]
inc eax
add esi, 0x274
mov dword [ebp - 0x41c], eax
cmp eax, dword [ebp - 0x418]
jl 0x403f30
mov eax, dword [ebp - 0x420]
push eax
call fcn.004154c0
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TestChain:_WSCGetProviderPath_failed_with_error_code:__i_n
call fcn.004131d0
add esp, 8
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TestChain:_ExpandEnvironmentStrings_failed_with_error_code:__i_n
call fcn.004131d0
mov ecx, dword [ebp - 4]
add esp, 8
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x4048e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test byte [0x43c474], 1
jne 0x40493d
or dword [0x43c474], 1
push 0x42d040
mov dword [0x43c46c], 0xf
mov dword [0x43c468], 0
mov byte [0x43c458], 0
call fcn.0041a2c7
add esp, 4
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404946
push esi
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, 0x43c458
call fcn.00402640
push 0x5c
push 1
mov ecx, 0x43c458
call fcn.00404510
call fcn.00409830
mov ecx, eax
call fcn.00409850
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404981
sub ecx, esi
push ecx
push eax
mov ecx, 0x43c458
call fcn.00404770
push 4
push str..dll
mov ecx, 0x43c458
call fcn.00404770
cmp dword [0x43c46c], 0x10
mov eax, dword [0x43c458]
pop esi
jae 0x4049bb
mov eax, 0x43c458
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x4049d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x154], eax
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404a60
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x168]
call fcn.00402640
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x168]
push eax
push 0x5c
mov byte [ebp - 4], 2
call fcn.00418710
add esp, 0x10
test al, al
mov edi, 0x10
sete byte [ebp - 0x169]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x154], edi
jb 0x404ac2
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00418f39
add esp, 4
cmp byte [ebp - 0x169], bl
je 0x404ae6
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404ad0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.00402640
test byte [0x43c494], 1
jne 0x404b19
or dword [0x43c494], 1
push 0x42d070
mov dword [0x43c48c], 0xf
mov dword [0x43c488], ebx
mov byte [0x43c478], bl
call fcn.0041a2c7
add esp, 4
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404b22
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, 0x43c478
call fcn.00402640
push 0x5c
push 1
mov ecx, 0x43c478
call fcn.00404510
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x14c]
push eax
mov ecx, 0x43c478
call fcn.00404680
mov esi, dword [0x43c478]
cmp dword [0x43c48c], edi
jae 0x404b72
mov esi, 0x43c478
cmp dword [ebp - 0x11c], edi
jb 0x404b89
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x404bb6
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00418f39
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x404fd0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b72b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x130]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405125
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x405125
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x13c]
push ecx
push 0
push str.ProxyEnable
push eax
mov dword [ebp - 0x134], 0x100
call esi
test eax, eax
jne 0x405118
cmp dword [ebp - 0x110], eax
je 0x405118
lea edx, [ebp - 0x134]
push edx
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x13c]
push ecx
push 0
push str.ProxyServer
push edx
mov dword [ebp - 0x134], 0x100
call esi
mov ecx, dword [ebp - 0x130]
mov esi, eax
mov eax, dword [ebp - 0x134]
push ecx
mov byte [ebp + eax - 0x110], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405125
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00402740
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x140]
push eax
push ecx
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 4], esi
call fcn.00404be0
add esp, 0xc
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00402170
mov eax, esi
jmp 0x405127
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x405150
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b760
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4051b2
push eax
push str.Unable_to_load_Winsock:__d_n
call fcn.00413260
add esp, 8
xor eax, eax
jmp 0x405234
push str.www.google.com
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4051ab
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x50
push eax
call fcn.00403db0
add esp, 8
test eax, eax
jne 0x40522f
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.00404fd0
add esp, 8
test eax, eax
je 0x4051ab
mov esi, dword [ebp - 0x1ac]
mov edi, dword [ebp - 0x1a8]
movzx edx, si
push edx
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Proxy_detected:__s:_i__trying_to_connect_n
call fcn.004131d0
add esp, 0xc
push esi
push edi
call fcn.00403db0
add esp, 8
jmp 0x405234
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x40ef70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40efb9
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x210], 0
call fcn.004155e0
add esp, 8
test eax, eax
jne 0x40efca
push str.GetLSPFileByID:_Unable_to_enumerate_catalog__n
call fcn.00413260
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 0x210]
xor ecx, ecx
test esi, esi
jle 0x40f049
lea edx, [eax + 0x24]
lea ebx, [ebx]
cmp dword [edx], edi
je 0x40f001
inc ecx
add edx, 0x274
cmp ecx, esi
jl 0x40efe0
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
imul ecx, ecx, 0x274
lea edx, [ebp - 0x218]
push edx
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ecx + eax + 0x14]
push eax
mov dword [ebp - 0x214], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
jne 0x40f05b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLSPFileByID:_WSCGetProviderPath_failed_with_error_code:__i_n
call fcn.004131d0
add esp, 8
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push 0x104
push 0x43c7b0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40f084
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLSPFileByID:_ExpandEnvironmentStrings_failed_with_error_code:__i_n
jmp 0x40f041
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x43c7b0
pop edi
call fcn.00419ad1
mov esp, ebp
pop ebp
ret

Function at 0x411ab0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
xor esi, esi
push 8
push esi
call fcn.00411a70
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x4c11db7
add ecx, ecx
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x4c11db7
add ecx, ecx
xor eax, ecx
mov edx, eax
and edx, 0x80000000
neg edx
sbb edx, edx
and edx, 0x4c11db7
add eax, eax
xor edx, eax
push 0x20
push edx
call fcn.00411a70
mov dword [esi*4 + 0x43c9b8], eax
inc esi
add esp, 0x10
cmp esi, 0xff
jle 0x411ab3
pop esi
ret
Function at 0x411b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x411ba0
mov eax, dword [eax]
not eax
jmp 0x411ba3
or eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x411bcd
push esi
push edi
nop
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x43c9b8]
inc edx
dec ecx
jne 0x411bb0
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x411be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.00419e70
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00411ab0
push 0x4324a4
push esi
call fcn.0041a18d
mov esi, eax
add esp, 8
test esi, esi
jne 0x411c23
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
push esi
mov dword [ebp - 0x10008], edi
call fcn.0041a0a9
add esp, 4
test eax, eax
jne 0x411c7d
lea esp, [esp]
push esi
push 0xffff
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.0041b3b8
lea ecx, [ebp - 0x10008]
push ecx
push eax
lea edx, [ebp - 0x10004]
push edx
call fcn.00411b90
mov edi, eax
push esi
mov dword [ebp - 0x10008], edi
call fcn.0041a0a9
add esp, 0x20
test eax, eax
je 0x411c40
push esi
call fcn.00419b4d
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x412540
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c07b
mov eax, dword fs:[0]
push eax
mov eax, 0xc494
call fcn.00419e70
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc4a0], eax
cmp dword [0x43b0f0], ebx
je 0x4127a2
test byte [0x43cde8], 1
jne 0x4125bc
or dword [0x43cde8], 1
push 0x42d0b0
mov dword [0x43cde0], 0xf
mov dword [0x43cddc], ebx
mov byte [0x43cdcc], bl
call fcn.0041a2c7
add esp, 4
cmp dword [0x43cddc], ebx
jne 0x41261d
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4125e0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, 0x43cdcc
call fcn.00402640
push 0x1b
push str.RegisterServiceProvider.ini
mov ecx, 0x43cdcc
call fcn.00404770
push 4
push str..log
mov ecx, 0x43cdcc
call fcn.00404770
mov eax, dword [0x43cdcc]
mov edi, 0x10
cmp dword [0x43cde0], edi
jae 0x412634
mov eax, 0x43cdcc
push 0x432a50
push eax
call fcn.0041a18d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4126da
push 2
push ebx
push esi
call fcn.0041b658
push esi
call fcn.0041b569
add esp, 0x10
cmp eax, 0xf4240
jle 0x4127be
push 2
push 0xc350
push esi
call fcn.0041b658
push esi
push 0xc350
lea eax, [ebp - 0xc464]
push 1
push eax
call fcn.0041b3b8
push esi
mov edi, eax
call fcn.00419b4d
mov eax, dword [0x43cdcc]
add esp, 0x20
cmp dword [0x43cde0], 0x10
jae 0x4126a8
mov eax, 0x43cdcc
push 0x432a50
push eax
call fcn.0041a18d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4126d5
push esi
push edi
lea ecx, [ebp - 0xc464]
push 1
push ecx
call fcn.00419d18
push esi
call fcn.00419b4d
add esp, 0x14
mov edi, 0x10
mov eax, dword [0x43cdcc]
cmp dword [0x43cde0], edi
jae 0x4126ec
mov eax, 0x43cdcc
push 0x433c94
push eax
call fcn.0041a18d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4127a2
mov dword [ebp - 0xc46c], 0xf
mov dword [ebp - 0xc470], ebx
mov byte [ebp - 0xc480], bl
push 7
push str._s____s
lea ecx, [ebp - 0xc480]
mov dword [ebp - 4], ebx
call fcn.00402640
lea edx, [ebp - 0xc49c]
push edx
call fcn.004123a0
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x412745
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc480]
cmp dword [ebp - 0xc46c], edi
jae 0x412759
lea ecx, [ebp - 0xc480]
mov edx, dword [ebp - 0xc4a0]
push edx
push eax
push ecx
push esi
call fcn.0041ac56
add esp, 0x10
cmp dword [ebp - 0xc488], edi
jb 0x412782
mov eax, dword [ebp - 0xc49c]
push eax
call fcn.00418f39
add esp, 4
push esi
call fcn.00419b4d
add esp, 4
cmp dword [ebp - 0xc46c], edi
jb 0x4127a2
mov ecx, dword [ebp - 0xc480]
push ecx
call fcn.00418f39
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push esi
call fcn.00419b4d
add esp, 4
jmp 0x4126da
Function at 0x413b90
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x413c62
lea eax, [ebp - 0x214]
mov edx, str._SYSTEMROOT__system32
mov ecx, eax
xor edi, edi
mov esi, 0x105
sub edx, ecx
lea ecx, [esi + 0x7ffffef9]
test ecx, ecx
je 0x413bee
mov cl, byte [edx + eax]
test cl, cl
je 0x413bee
mov byte [eax], cl
inc eax
dec esi
jne 0x413bd5
jmp 0x413bf2
test esi, esi
jne 0x413bf8
dec eax
mov edi, 0x8007007a
mov byte [eax], 0
test edi, edi
jns 0x413c1f
push edi
push str.LoadUpdateProviderFunctions:_StringCchCopyA_failed:_0x_x_n
call fcn.00413260
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push 0x105
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x413c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadUpdateProviderFunctions:_Unable_to_expand_environment_string:__d_n
call fcn.00413260
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push str.ws2_32.dll
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004041e0
test eax, eax
jns 0x413c9c
push eax
push str.LoadUpdateProviderFunctions:_StringCchCatA_failed:_0x_x_n
call fcn.00413260
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x413cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10c]
push eax
push str.LoadUpdateProviderFunctions:_Unable_to_load__s:__d_n
call fcn.00413260
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push str.WSCUpdateProvider
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [0x43c44c], eax
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
Function at 0x413f80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43b0f4]
cmp eax, 0xf
jne 0x4140cf
push esi
push edi
push 0x9c
lea esi, [eax - 2]
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041a340
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call edi
test eax, eax
jne 0x414003
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call edi
test eax, eax
jne 0x414003
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
mov ecx, 1
sub eax, ecx
je 0x41409b
sub eax, ecx
jne 0x4140c5
mov eax, dword [ebp - 0x9c]
cmp eax, 4
ja 0x41402c
lea esi, [ecx + 2]
cmp eax, 5
jne 0x414060
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x414043
lea esi, [eax + 4]
jmp 0x4140c5
cmp eax, ecx
jne 0x41404e
mov esi, 5
jmp 0x4140c5
cmp eax, 2
jne 0x4140c5
xor eax, eax
cmp byte [ebp - 6], cl
setne al
lea esi, [eax + 5]
jmp 0x4140c5
cmp eax, 6
jne 0x4140c5
mov eax, dword [ebp - 0x98]
cmp eax, 2
jne 0x41407d
xor edx, edx
cmp byte [ebp - 6], cl
setne dl
lea esi, [edx + 0xb]
jmp 0x4140c5
cmp eax, ecx
jne 0x41408e
xor eax, eax
cmp byte [ebp - 6], cl
sete al
lea esi, [eax + 9]
jmp 0x4140c5
xor edx, edx
cmp byte [ebp - 6], cl
setne dl
lea esi, [edx + 7]
jmp 0x4140c5
cmp dword [ebp - 0x9c], 4
jne 0x4140c5
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4140b2
xor esi, esi
jmp 0x4140c5
cmp eax, 0xa
jne 0x4140bb
mov esi, ecx
jmp 0x4140c5
cmp eax, 0x5a
jne 0x4140c5
mov esi, 2
pop edi
mov dword [0x43b0f4], esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret