joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x432dbb
call fcn.0041b53c
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x40bc6a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00423970
add esp, 0xc
test eax, eax
js 0x40bc6a
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x40bc4e
push esi
call fcn.00402aa1
pop ecx
test al, al
je 0x40bc4e
mov eax, esi
call fcn.0041b560
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40bc5a
push esi
lea ecx, [ebp - 0x18]
call fcn.00423970
mov edi, dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 8]
push eax
call fcn.00423970
cmp eax, ebx
jne 0x40bc9c
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40bc8e
lea ecx, [ebp - 0x424]
call fcn.0040a6ea
jmp 0x40bc8e
push edi
mov edi, dword [edi]
call fcn.00423970
pop ecx
cmp edi, ebx
jne 0x40bc85
mov eax, 0x8007000e
jmp 0x40bd9a
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40bcbb
call fcn.00403f7a
mov esi, eax
jmp 0x40bd70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40bcd8
call fcn.00403f7a
jmp 0x40bd65
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40bcce
push esi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 8], esi
cmp eax, esi
jae 0x40bd02
mov esi, 0x8007000e
jmp 0x40bd67
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00423970
mov dword [ebp - 4], 1
jmp 0x40bd2e
cmp dword [ebp - 0x424], 0
je 0x40bcfb
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x424]
call fcn.00423970
mov eax, dword [ebp - 0x424]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.00423970
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40bd94
lea ecx, [ebp - 0x424]
call fcn.0040a6ea
jmp 0x40bd94
push edi
mov edi, dword [edi]
call fcn.00423970
pop ecx
test edi, edi
jne 0x40bd8b
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ed58
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x45c
push 0x440190
call fcn.0041b9f0
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.wininet.dll_InternetGetConnectedState]
test eax, eax
je 0x40ed8c
mov eax, ebx
jmp 0x40eed3
push str.http:__java.sun.com
push 0x436834
lea eax, [ebp - 0x16c]
push eax
call fcn.00423970
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x436838
call dword [sym.imp.wininet.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x40eec7
push 0x3c
pop edi
push edi
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0041b010
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x5c], eax
mov eax, 0x100
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov word [ebp - 0x54], cx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.wininet.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x436752
push 0x436753
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x40eec7
push esi
push 0x4400000
push esi
push 0x43675a
push 0x436840
lea ecx, [ebp - 0x26c]
push ecx
push 0x43684c
push eax
call dword [sym.imp.wininet.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x40eec7
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.wininet.dll_HttpSendRequestA]
test eax, eax
jne 0x40ee9f
call dword [sym.imp.kernel32.dll_GetLastError]
sub eax, 0x2ee2
je 0x40ee9c
sub eax, 5
je 0x40ee9c
sub eax, 0x16
jne 0x40ee9f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.wininet.dll_HttpQueryInfoA]
test eax, eax
je 0x40eec7
cmp dword [ebp - 0x20], 0x197
jne 0x40eec7
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.0040eedb
mov eax, dword [ebp - 0x1c]
call fcn.0041ba2b
ret
Function at 0x410901
Capabilities:
Get geographical location

Disassembly:
push esi
push 0
push 0x436db4
push 0
call fcn.00423970
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410924
push str.Country_Code_deleted
call fcn.00423970
pop ecx
mov eax, esi
pop esi
ret

Function at 0x4114e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xff
push dword [ebp + 0xc]
lea esi, [edi + 0x108]
push esi
call dword [sym.imp.kernel32.dll_lstrcpynA]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x4116d6
push esi
call fcn.00423970
pop ecx
test eax, eax
je 0x4116d6
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x437138
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4116d6
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x988]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437160
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x588]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437170
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437184
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1408]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437198
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1008]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371a8
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xd88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371b4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xe88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371c4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [edi + 0xf88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371d0
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1560]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371dc
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x80
call esi
test eax, eax
jne 0x411686
cmp dword [ebp + 8], 3
jb 0x411686
mov dword [edi + 0x15e0], 1
mov dword [ebp + 8], 0x50
cmp dword [edi + 0x15e0], ebx
je 0x4116bf
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1510]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371e8
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x4116b9
cmp dword [ebp + 8], 0x28
je 0x4116bf
mov dword [edi + 0x15e0], ebx
push dword [ebp + 0xc]
mov dword [edi + 0x150c], 1
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
jmp 0x4116db
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4117ae
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x437248
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4117dd
mov eax, 0x80004005
jmp 0x4119af
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x108]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4117ed
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
push 1
push ebx
push 0x437270
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x988]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411819
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437280
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x588]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411840
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437290
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x208]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411867
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x4372a4
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1408]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x4118b8
lea eax, [edi + 0x1408]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41189a
sub eax, ecx
push eax
lea eax, [edi + 0x1408]
push eax
push 1
push ebx
push 0x4372b8
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1008]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x4118f0
lea eax, [edi + 0x1008]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4118d2
sub eax, ecx
push eax
lea eax, [edi + 0x1008]
push eax
push 1
push ebx
push 0x4372c8
push dword [ebp - 4]
call esi
lea eax, [edi + 0xd88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411928
lea eax, [edi + 0xd88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41190a
sub eax, ecx
push eax
lea eax, [edi + 0xd88]
push eax
push 1
push ebx
push 0x4372d4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xf88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411960
lea eax, [edi + 0xf88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411942
sub eax, ecx
push eax
lea eax, [edi + 0xf88]
push eax
push 1
push ebx
push 0x4372e4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xe88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411998
lea eax, [edi + 0xe88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41197a
sub eax, ecx
push eax
lea eax, [edi + 0xe88]
push eax
push 1
push ebx
push 0x4372f0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ecx, edi
call fcn.00423970
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x4150ef
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4330d0
call fcn.0041b53c
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x4151e4
cmp byte [esi + 0x49], bl
je 0x4151e4
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x415127
xor al, al
jmp 0x4151e6
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00423970
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415187
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x41518c
dec eax
je 0x415190
dec eax
dec eax
je 0x4151e0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00423970
mov al, bl
pop edi
jmp 0x4151e6
mov edx, dword [ebp - 0x2c]
jmp 0x415151
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41519c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x4151c2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4151af
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415174
cmp byte [esi + 0x49], 0
je 0x4151e0
test edi, edi
jne 0x415143
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00423970
jmp 0x415143
mov bl, 1
jmp 0x415176
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415906
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x433098
call fcn.0041b53c
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x415912
xor eax, eax
jmp 0x41593a
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x41594a
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x41594a
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x41596a
mov ecx, esi
call fcn.004121d5
cmp dword [esi + 0x44], edi
jne 0x41596f
push dword [esi + 0x54]
push ebx
call fcn.00423970
pop ecx
pop ecx
test al, al
jne 0x415937
or eax, 0xffffffff
jmp 0x415939
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00423970
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x415a22
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x415a40
cmp eax, 1
jg 0x415a2a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159d6
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x4159fc
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159e9
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415a40
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x415a56
test edi, edi
jne 0x41598e
cmp dword [ebp - 0x24], 0x20
jae 0x415a40
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00423970
jmp 0x41598e
mov edx, dword [ebp - 0x34]
jmp 0x4159a0
cmp eax, 3
jne 0x415a40
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.00423970
pop ecx
pop ecx
test al, al
jne 0x415a56
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00423970
mov eax, esi
jmp 0x415939
mov esi, dword [ebp + 8]
jmp 0x415a43
Function at 0x417596
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x439088
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4175bd
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.advapi32.dll_RegDeleteValueA]
push 0x4390b0
push dword [ebp - 4]
call esi
push str.InstallOptions
push dword [ebp - 4]
call esi
push str.UpdateDescription
push dword [ebp - 4]
call esi
push str.UpdateTitle1
push dword [ebp - 4]
call esi
push str.UpdateTitle2
push dword [ebp - 4]
call esi
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
push str.BalloonTitle
push dword [ebp - 4]
call esi
push str.BalloonTip
push dword [ebp - 4]
call esi
push str.DlgCaption
push dword [ebp - 4]
call esi
push str.MoreInfoTxt
push dword [ebp - 4]
call esi
push str.PreDownld
push dword [ebp - 4]
call esi
push str.UrlInfo
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push str.LastUDCheckTime
push dword [ebp - 4]
call esi
push str.VersionXmlChecksum
push dword [ebp - 4]
call esi
push 0x439190
push dword [ebp - 4]
call esi
call fcn.00423970
test eax, eax
je 0x417677
push str.TransferJobID
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x41974f
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.00423970
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
js 0x419782
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
call fcn.00423970
pop ecx
test eax, eax
je 0x4197ab
lea eax, [ebp - 0x41c]
push eax
push eax
call fcn.00423970
pop ecx
pop ecx
lea eax, [ebp - 0x41c]
push eax
call esi
call fcn.00423970
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.00423970
mov ebx, dword [sym.imp.advapi32.dll_RegEnumKeyA]
add esp, 0xc
push edi
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 4], esi
push esi
mov esi, SysStringLen
jmp 0x41984c
inc dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 0x41c]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00423970
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x419834
push 0x2001f
push 0x439050
push dword [ebp - 0x1c]
call fcn.00423970
test eax, eax
jne 0x419831
push str.VersionXmlURL
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x10]
call fcn.0040a137
lea ecx, [ebp - 0x1c]
call fcn.0040a137
push edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 4]
push esi
call ebx
test eax, eax
je 0x4197da
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a6a5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4470e0], 0
push esi
push edi
jne 0x41a61b
call fcn.0041a587
test eax, eax
je 0x41a660
mov eax, dword [0x4470e0]
cmp eax, 1
jne 0x41a63c
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x41a660
jmp 0x41a6a2
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41a6a2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41a664
xor eax, eax
jmp 0x41a6a2
mov eax, dword [esi]
push dword [0x4470e0]
call edi
mov edi, eax
test edi, edi
je 0x41a686
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x41a6a2
lea edi, [esi + 0xff0]
push esi
push dword [0x4470e0]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41a68c
mov eax, esi
pop edi
pop esi
ret
jmp 0x41a607

Function at 0x42208d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445e00]
jne 0x422097
repz ret
jmp fcn.004281f4
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x420bbf
pop dword [ebp - 0x24]
mov eax, 0xab38c479
add eax, 0x55094746
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3b4a2
push 0
mov eax, 0x95ffbce8
add eax, 0x6a429530
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xb9b88136
sub ecx, 0xb9b84477
xor esi, esi
add esi, eax
mov edx, 0xbbb1d62
add edx, 0xf488369e
add edx, dword [ebp - 0x24]
mov ebx, 0x4eac5569
mov dword [ebp - 0x18], 0x92a369a4
mov edi, dword [edx]
xor dword [ebp - 0x20], ecx
xor edi, ebx
xor dword [ebp - 0x18], 0x8a416b2
mov dword [esi], edi
add dword [ebp - 0x18], 0xd124baf
add esi, 0x27c5b5a8
add esi, 0xd83a4a5c
add edx, 4
loop 0x420c1a
add eax, 0xbd63a2aa
sub eax, 0xbd62bcdb
xor ebx, ebx
add ebx, eax
add eax, 0x55383fe9
add eax, 0xaac7c01c
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x41b0bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41b0ca
pop dword [ebp - 0x50]
mov eax, 0xfbb0138b
add eax, 0x4919d3f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3e5ed
push 0
mov eax, 0x46313683
add eax, 0xba10bb8d
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x6e8bd94c
sub ecx, 0x6e8b9076
xor edi, edi
add edi, eax
mov edx, 0x1a9cb15a
sub edx, 0x1a592f5a
add edx, dword [ebp - 0x50]
mov esi, 0xb08dd43e
sub esi, 0x645277bd
sub dword [ebp - 0x38], esi
mov ebx, dword [edx]
add dword [ebp - 0x24], 0x8c320919
add ebx, esi
sub dword [ebp - 0x30], edx
mov dword [edi], ebx
xor dword [ebp - 0x18], 0x1c49db7b
add edi, 0x2c365799
add edi, 0xd3c9a86b
add edx, 0x706e97e9
sub edx, 0x706e97e5
loop 0x41b12b
add eax, 0xd0a8e7e3
add eax, 0x2f582e48
mov ebx, eax
add eax, 0xfa954ab3
add eax, 0x56ab552
mov ecx, 0x3b107a3d
sub ecx, 0x3ad07a3d
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10012880
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.mozglue.dll_malloc
Function at 0x10013960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov eax, dword [0x1007a00c]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x100139d7
lea esi, [ebp - 0x820]
lea ebx, [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x824], ebx
call sym.mozglue.dll_protected:_void___thiscall_mozilla::PrintfTarget::constructor_void_
lea edi, [ebp - 0x810]
mov dword [esi], 0x1006bb68
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x800
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sym.mozglue.dll_public:_bool___thiscall_mozilla::PrintfTarget::vprint_char_const___char__
mov eax, dword [esi + 4]
mov ecx, 0x7ff
cmp eax, ecx
cmovb ecx, eax
mov byte [ebp + ecx - 0x810], 0
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
cmp eax, 0xfffffffe
je 0x10013a3b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
add esp, 4
push 0x1006ea25
push eax
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
add esp, 8
test eax, eax
je 0x10013a3b
lea edi, [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0x810], edi
call fcn.10013e70
push edi
push 0
push ebx
push esi
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
add esp, 0x18
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret