joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1ffddd10
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1ffe7508]
push esi
test eax, eax
push edi
push ebp
jne 0x1ffddd58
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x1ffddd38
mov eax, 2
jmp 0x1ffddd5e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ffddd51
mov eax, 1
jmp 0x1ffddd5e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x1ffe7508], eax
cmp eax, 2
jne 0x1ffddd83
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1ffe7508], eax
cmp eax, 1
jne 0x1ffdde1f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x1ffddd9f
mov edi, dword [0x1ffe5a58]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x1ffdddc0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.1ffda850
add esp, 4
mov esi, eax
test esi, esi
jne 0x1ffddddd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ffdde14
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x1ffdde24
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1ffdde3f
push esi
call fcn.1ffda640
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1ffdde14
push esi
call fcn.1ffda640
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4011b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44671c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x144], edi
mov dword [esi], vtable.CTrayNotifyIcon.0
mov dword [esi + 0x3e0], edi
mov dword [esi + 0x3e4], edi
mov dword [esi + 0x3e8], edi
mov dword [esi + 0x3ec], edi
mov byte [esp + 0x144], 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x3f0], edi
mov dword [esi + 0x3f4], 1
mov dword [esi + 0x3f8], edi
mov dword [esi + 0x3fc], edi
mov dword [esi + 0x400], edi
mov dword [esi + 0x404], edi
mov dword [esi + 0x408], edi
mov dword [esi + 0x40c], edi
mov dword [esp + 0x28], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40128e
cmp dword [esp + 0x28], 6
jb 0x40128e
mov dword [esi + 0x3f8], 3
jmp 0x4012e4
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x4012e4
push str.DllGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4012e4
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x14
call eax
test eax, eax
jl 0x4012e4
mov eax, dword [esp + 0x14]
cmp eax, 6
jb 0x4012d5
mov dword [esi + 0x3f8], 2
jmp 0x4012e4
cmp eax, 5
jb 0x4012e4
mov dword [esi + 0x3f8], 1
push 0x3bc
lea ebp, [esi + 0x24]
push edi
push ebp
call fcn.00434f20
mov eax, dword [esi + 0x3f8]
add esp, 0xc
sub eax, 1
mov ecx, 0x98
je 0x401324
sub eax, 1
je 0x40131a
sub eax, 1
jne 0x40132e
mov eax, 0x3bc
mov dword [ebp], eax
jmp 0x401331
mov eax, 0x3b8
mov dword [ebp], eax
jmp 0x401331
mov eax, 0x3a8
mov dword [ebp], eax
jmp 0x401331
mov dword [ebp], ecx
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004337a7
add esp, 0x13c
ret
Function at 0x4039b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44984e
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x844], eax
push ebx
push ebp
push esi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x860], ebx
push ebx
push 0x44d38c
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00401aa0
cmp byte [esp + 0x884], bl
mov byte [esp + 0x860], 1
je 0x403a2e
mov eax, esi
push eax
call fcn.00403b60
jmp 0x403a38
lea ecx, [esp + 0x30]
push ecx
call fcn.00403d80
add esp, 4
push 0x800
lea edx, [esp + 0x52]
push ebx
push edx
mov word [esp + 0x58], bx
call fcn.00434f20
mov ecx, dword [esp + 0x40]
mov ebp, 8
add esp, 0xc
cmp dword [esp + 0x48], ebp
jae 0x403a66
lea ecx, [esp + 0x34]
cmp dword [esp + 0x880], ebp
mov eax, dword [esp + 0x86c]
jae 0x403a7d
lea eax, [esp + 0x86c]
push ecx
push 0x400
lea ecx, [esp + 0x54]
push ecx
push 0x44d38c
push eax
push 0x44d394
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403ab1
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x1c]
call fcn.00401aa0
push 0xffffffffffffffff
push ebx
mov eax, esi
mov ecx, edi
mov byte [esp + 0x868], 2
call fcn.004019b0
cmp dword [esp + 0x2c], ebp
jb 0x403af6
mov eax, dword [esp + 0x18]
push eax
call fcn.00433114
add esp, 4
cmp dword [esp + 0x48], ebp
jb 0x403b09
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433114
add esp, 4
cmp dword [esp + 0x880], ebp
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x403b33
mov edx, dword [esp + 0x86c]
push edx
call fcn.00433114
add esp, 4
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.004337a7
add esp, 0x854
ret

Function at 0x404060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446bf3
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x4051f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447c60
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0xffffffff
lea esi, [esp + 0x1c]
mov dword [esp + 0x58], 2
call fcn.004040c0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0xc]
mov ecx, esi
mov byte [esp + 0x58], 3
call fcn.00404bb0
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40527c
xor esi, esi
jmp 0x40528b
mov esi, dword [esp + 0x14]
push eax
sub esi, eax
call fcn.00433114
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x4052a8
push eax
call fcn.00433114
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
je 0x4052c5
push eax
call fcn.00433114
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x4052e2
push eax
call fcn.00433114
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
ret
Function at 0x406580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449bf6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.004093c0
mov dword [esi + 4], eax
mov byte [eax + 0x35], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], eax
mov word [esi + 0x14], ax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4098a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447bc8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push esi
mov eax, ebx
mov ecx, edi
mov word [edi + 4], si
call fcn.004019b0
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
lea eax, [ebx + 0x20]
lea esi, [edi + 0x20]
call fcn.00408ad0
mov cl, byte [ebx + 0x30]
mov byte [edi + 0x30], cl
mov dl, byte [ebx + 0x31]
mov byte [edi + 0x31], dl
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x409e60
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x447b4b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edi, dword [esi]
test edi, edi
je 0x409ea9
push edi
call fcn.00431879
push edi
call fcn.00433114
add esp, 4
mov dword [esi], 0
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x409ec8
cmp dword [esi + 0x1c], edi
jb 0x409ebe
mov eax, dword [esi + 8]
jmp 0x409ec1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x1c], edi
jb 0x409ed9
mov eax, dword [esi + 8]
push eax
call fcn.00433114
add esp, 4
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40a220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x449b3c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push 0x2d
mov edi, 7
push str._programfiles_Internet_Exploreriexplore.exe
lea esi, [esp + 0x44]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00401aa0
mov dword [esp + 0x84], 1
push 0x32
push str._programfiles_x86__Internet_Exploreriexplore.exe
lea esi, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.00401aa0
mov dword [esp + 0x84], 2
lea esi, [esp + 0x3c]
lea esp, [esp]
push esi
lea edi, [esp + 0x24]
call fcn.0040c320
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x8c], 3
call fcn.004019b0
mov byte [esp + 0x84], 2
cmp dword [esp + 0x38], 8
jb 0x40a2fc
mov eax, dword [esp + 0x24]
push eax
call fcn.00433114
add esp, 4
mov ecx, esi
call fcn.0043171b
test al, al
jne 0x40a368
add ebx, 1
add esi, 0x1c
cmp ebx, 2
jb 0x40a2c0
push fcn.00401950
push 2
xor eax, eax
push 0x1c
lea edx, [esp + 0x48]
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], eax
mov word [ebp + 4], ax
push edx
mov dword [esp + 0x28], 1
mov byte [esp + 0x94], 0
call fcn.004333da
mov eax, ebp
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004337a7
add esp, 0x74
ret 4
lea eax, [ebx*8]
sub eax, ebx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
lea eax, [esp + eax*4 + 0x40]
push 0
mov ecx, ebp
mov word [ebp + 4], 0
call fcn.004019b0
push fcn.00401950
push 2
push 0x1c
lea ecx, [esp + 0x48]
push ecx
jmp 0x40a330

Function at 0x40a6d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x447b18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004019b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a724
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.0040a5d0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004019b0
cmp dword [esp + 0x24], 8
jb 0x40a76a
mov eax, dword [esp + 0x10]
push eax
call fcn.00433114
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40c240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40c317
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c317
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40c317
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40c317
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40c310
push edi
push ebx
push eax
call fcn.00435020
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40c310
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c310
push eax
call fcn.0040b390
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x40c309
mov eax, dword [edi + 8]
test eax, eax
mov dword [edi + 8], 0
je 0x40c309
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40c440
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x447ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push esi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
mov eax, dword [esp + 0x648]
xor ebx, ebx
mov dword [edi], ebx
mov ecx, 7
mov dword [edi + 0x20], ecx
mov dword [edi + 0x1c], ebx
mov dword [esp + 0x10], edi
mov word [edi + 0xc], bx
lea esi, [edi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x54], ebx
mov word [edi + 0x44], bx
push 0xffffffffffffffff
lea ecx, [edi + 0x5c]
mov byte [esp + 0x644], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00403030
push ebx
mov byte [esp + 0x644], 3
call fcn.00433a55
push eax
call fcn.00433a26
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00434f20
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40c5aa
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00434f20
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40c581
cmp eax, ebx
je 0x40c581
push esi
lea edx, [esp + 0x224]
mov word [esp + eax*2 + 0x224], bx
call fcn.00401980
jmp 0x40c5aa
lea eax, [esp + 0x14]
lea edx, [eax + 2]
jmp 0x40c590
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c590
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401aa0
mov eax, dword [edi + 0x38]
cmp eax, ebx
je 0x40c5e1
lea ebp, [eax - 1]
cmp ebp, dword [esi + 0x14]
jbe 0x40c5be
call fcn.004338e0
cmp dword [esi + 0x18], 8
jb 0x40c5c9
mov eax, dword [esi + 4]
jmp 0x40c5cc
lea eax, [esi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x40c5e1
push 1
push 0x44d388
mov ecx, esi
call fcn.0040a5d0
cmp dword [edi + 0x38], ebx
jne 0x40c5f2
push 3
push 0x44d838
call fcn.00401aa0
mov eax, edi
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.004337a7
add esp, 0x634
ret 4
Function at 0x40c620
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x54], ebx
push ebp
mov ebp, 8
je 0x40c642
cmp dword [esi + 0x58], ebp
jb 0x40c638
mov eax, dword [esi + 0x44]
jmp 0x40c63b
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x40c654
mov eax, dword [esi + 0x60]
push eax
call fcn.00433114
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
cmp dword [esi + 0x58], ebp
jb 0x40c672
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00433114
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
cmp dword [esi + 0x3c], ebp
jb 0x40c691
mov edx, dword [esi + 0x28]
push edx
call fcn.00433114
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
cmp dword [esi + 0x20], ebp
jb 0x40c6b0
mov eax, dword [esi + 0xc]
push eax
call fcn.00433114
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 7
pop ebp
mov word [esi + 0xc], bx
pop ebx
ret
Function at 0x40ef30
Capabilities:
Check http status code

Disassembly:
sub esp, 8
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp], 0
mov dword [esp + 4], 4
je 0x40ef78
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x40ef78
cmp dword [esp], 0xc8
setne al
add esp, 8
ret
mov al, 1
add esp, 8
ret

Function at 0x40f060
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x40f09f
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40f09f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x410df0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x28
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x45afa4]
test eax, eax
je 0x410e1a
mov dword [ebx], eax
mov al, 1
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004337a7
add esp, 0x28
ret
mov eax, dword [0x44dc64]
mov ecx, dword [str.html.dll]
mov edx, dword [0x44dc6c]
mov dword [esp + 0xc], eax
mov eax, dword [0x44dc70]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x44dc74]
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dx, word [0x44dc78]
push eax
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x410ef2
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x410edf
mov edx, dword [esp + 0x10]
push esi
push edi
push edx
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410ed8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x44d388
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410ed8
cmp dword [esp + 8], 0
je 0x410ed8
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0xa]
mov dword [0x45afa4], eax
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, 1
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004337a7
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop edi
xor ecx, esp
xor al, al
call fcn.004337a7
add esp, 0x28
ret
Function at 0x4110f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446b12
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov eax, dword [esp + 0x438]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], esi
mov ebx, edx
mov word [esi + 4], di
mov dword [esp + 0x430], edi
cmp dword [eax + 0x18], 8
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
jb 0x41116b
mov eax, dword [eax + 4]
jmp 0x41116e
add eax, 4
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411225
push 0x3fe
lea edx, [esp + 0x2a]
push edi
push edx
mov word [esp + 0x30], di
call fcn.00434f20
add esp, 0xc
cmp dword [ebx + 0x18], 8
mov dword [esp + 0x14], 0x3fe
mov dword [esp + 0x1c], 1
jb 0x4111c0
mov ebx, dword [ebx + 4]
jmp 0x4111c3
add ebx, 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41121a
mov eax, dword [esp + 0x14]
cmp eax, 0x200
jae 0x4111f3
mov word [esp + eax*2 + 0x24], di
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411200
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401aa0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004337a7
add esp, 0x424
ret