joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x41a952
cmp dword [ebp + 8], 0
jne 0x41a957
jmp 0x41aa5c
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x2a
jne 0x41a96e
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x2a
je 0x41a973
jmp 0x41aa5c
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x19], al
add dword [ebp - 0x14], 1
cmp byte [ebp - 0x19], 0
jne 0x41a994
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x41a9d2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jge 0x41aa53
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ebp - 0xb], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ebp - 0xd], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
movzx edx, byte [ebp - 0xb]
push edx
call fcn.0041a8b0
add esp, 4
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 0xd]
push eax
call fcn.0041a8b0
add esp, 4
mov byte [ebp - 9], al
movzx ecx, byte [ebp - 0xc]
shl ecx, 4
movzx edx, byte [ebp - 9]
add ecx, edx
mov byte [ebp - 0xa], cl
movzx eax, byte [ebp + 0x10]
movzx ecx, byte [ebp - 0xa]
xor ecx, eax
mov byte [ebp - 0xa], cl
movzx edx, byte [ebp + 0x10]
add edx, 0xd
mov byte [ebp + 0x10], dl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0xa]
mov byte [eax], cl
jmp 0x41a9c9
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov esp, ebp
pop ebp
ret

Function at 0x42a0b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452618
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x46401c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x45d950
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x10], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [0x456158]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [0x456158]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call dword [0x456158]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ab90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, ecx
mov ecx, dword [eax + 4]
fcomp dword [edi + 0x24]
pop edi
and al, 0x2b
invalid
mov dword [esp + 0x2c], ecx
and al, 0x2c
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
dec eax
or bh, bl
loopne 0x40ab30
dec esp
and al, 0x30
test ah, 0x44
jp 0x40abb3
invalid
fld1
jmp 0x40abba
fld dword [edi + 0x24]
fld1
fdivrp st(1)
mov esi, dword [esp + 0x98]
fstp dword [esp + 0x1c]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ebp, dword [esi + 0xc]
sub ebp, dword [esi + 8]
mov edx, dword [esp + 0x8c]
and al, 0x8c
add byte [eax], al
invalid
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x78], eax
inc esp
and al, 0x78
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]

Function at 0x40abd8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, ecx
mov ecx, dword [eax + 4]
fcomp dword [edi + 0x24]
pop edi
and al, 0x2b
invalid
mov dword [esp + 0x2c], ecx
and al, 0x2c
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
dec eax
or bh, bl
loopne 0x40ab30
dec esp
and al, 0x30
test ah, 0x44
jp 0x40abb3
invalid
fld1
jmp 0x40abba
fld dword [edi + 0x24]
fld1
fdivrp st(1)
mov esi, dword [esp + 0x98]
fstp dword [esp + 0x1c]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ebp, dword [esi + 0xc]
sub ebp, dword [esi + 8]
mov edx, dword [esp + 0x8c]
and al, 0x8c
add byte [eax], al
invalid
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x78], eax
inc esp
and al, 0x78
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
Function at 0x4011b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44488c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push edi
mov eax, dword [0x4551b0]
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.00433170
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.00431b07
add esp, 0x13c
ret
Function at 0x403a30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44798e
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x844], eax
push ebx
push ebp
push esi
mov eax, dword [0x4551b0]
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 0x44b33c
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00401a90
cmp byte [esp + 0x884], bl
mov byte [esp + 0x860], 1
je 0x403aae
mov eax, esi
push eax
call fcn.00403be0
jmp 0x403ab8
lea ecx, [esp + 0x30]
push ecx
call fcn.00403e00
add esp, 4
push 0x800
lea edx, [esp + 0x52]
push ebx
push edx
mov word [esp + 0x58], bx
call fcn.00433170
mov ecx, dword [esp + 0x40]
mov ebp, 8
add esp, 0xc
cmp dword [esp + 0x48], ebp
jae 0x403ae6
lea ecx, [esp + 0x34]
cmp dword [esp + 0x880], ebp
mov eax, dword [esp + 0x86c]
jae 0x403afd
lea eax, [esp + 0x86c]
push ecx
push 0x400
lea ecx, [esp + 0x54]
push ecx
push 0x44b33c
push eax
push 0x44b344
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 0x403b31
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x1c]
call fcn.00401a90
push 0xffffffffffffffff
push ebx
mov eax, esi
mov ecx, edi
mov byte [esp + 0x868], 2
call fcn.004019a0
cmp dword [esp + 0x2c], ebp
jb 0x403b76
mov eax, dword [esp + 0x18]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x48], ebp
jb 0x403b89
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x880], ebp
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x403bb3
mov edx, dword [esp + 0x86c]
push edx
call fcn.00431474
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.00431b07
add esp, 0x854
ret

Function at 0x404040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444d33
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4551b0]
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 0x4051d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4551b0]
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.004040a0
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.00404b90
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40525c
xor esi, esi
jmp 0x40526b
mov esi, dword [esp + 0x14]
push eax
sub esi, eax
call fcn.00431474
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 0x405288
push eax
call fcn.00431474
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 0x4052a5
push eax
call fcn.00431474
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 0x4052c2
push eax
call fcn.00431474
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 0x406560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447cf6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4551b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00409380
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 0x409860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444728
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4551b0]
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.004019a0
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.00408a90
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 0x409e80
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x445dbb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4551b0]
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 0x409ec9
push edi
call fcn.0042fc0a
push edi
call fcn.00431474
add esp, 4
mov dword [esi], 0
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x409ee8
cmp dword [esi + 0x1c], edi
jb 0x409ede
mov eax, dword [esi + 8]
jmp 0x409ee1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x1c], edi
jb 0x409ef9
mov eax, dword [esi + 8]
push eax
call fcn.00431474
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 0x40a240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x447c3c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551b0]
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.00401a90
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.00401a90
mov dword [esp + 0x84], 2
lea esi, [esp + 0x3c]
lea esp, [esp]
push esi
lea edi, [esp + 0x24]
call fcn.0040b5b0
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x8c], 3
call fcn.004019a0
mov byte [esp + 0x84], 2
cmp dword [esp + 0x38], 8
jb 0x40a31c
mov eax, dword [esp + 0x24]
push eax
call fcn.00431474
add esp, 4
mov ecx, esi
call fcn.0042faac
test al, al
jne 0x40a388
add ebx, 1
add esi, 0x1c
cmp ebx, 2
jb 0x40a2e0
push fcn.00401940
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.0043173a
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.00431b07
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.004019a0
push fcn.00401940
push 2
push 0x1c
lea ecx, [esp + 0x48]
push ecx
jmp 0x40a350

Function at 0x40a6f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x445d88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4551b0]
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.004019a0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a744
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.0040a5f0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004019a0
cmp dword [esp + 0x24], 8
jb 0x40a78a
mov eax, dword [esp + 0x10]
push eax
call fcn.00431474
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 0x40b6d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x445d18
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push esi
mov eax, dword [0x4551b0]
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.004030b0
push ebx
mov byte [esp + 0x644], 3
call fcn.00431db5
push eax
call fcn.00431d86
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00433170
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 0x40b83a
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00433170
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 0x40b811
cmp eax, ebx
je 0x40b811
push esi
lea edx, [esp + 0x224]
mov word [esp + eax*2 + 0x224], bx
call fcn.00401970
jmp 0x40b83a
lea eax, [esp + 0x14]
lea edx, [eax + 2]
jmp 0x40b820
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b820
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401a90
mov eax, dword [edi + 0x38]
cmp eax, ebx
je 0x40b871
lea ebp, [eax - 1]
cmp ebp, dword [esi + 0x14]
jbe 0x40b84e
call fcn.00431c40
cmp dword [esi + 0x18], 8
jb 0x40b859
mov eax, dword [esi + 4]
jmp 0x40b85c
lea eax, [esi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x40b871
push 1
push 0x44b338
mov ecx, esi
call fcn.0040a5f0
cmp dword [edi + 0x38], ebx
jne 0x40b882
push 3
push 0x44b784
call fcn.00401a90
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.00431b07
add esp, 0x634
ret 4
Function at 0x40b8b0
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x54], ebx
push ebp
mov ebp, 8
je 0x40b8d2
cmp dword [esi + 0x58], ebp
jb 0x40b8c8
mov eax, dword [esi + 0x44]
jmp 0x40b8cb
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x40b8e4
mov eax, dword [esi + 0x60]
push eax
call fcn.00431474
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
cmp dword [esi + 0x58], ebp
jb 0x40b902
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00431474
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
cmp dword [esi + 0x3c], ebp
jb 0x40b921
mov edx, dword [esi + 0x28]
push edx
call fcn.00431474
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
cmp dword [esi + 0x20], ebp
jb 0x40b940
mov eax, dword [esi + 0xc]
push eax
call fcn.00431474
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 0x40e1c0
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 0x40e208
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 0x40e208
cmp dword [esp], 0xc8
setne al
add esp, 8
ret
mov al, 1
add esp, 8
ret

Function at 0x40e2f0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x40e32f
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 0x40e32f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x40fff0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x28
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x457a34]
test eax, eax
je 0x41001a
mov dword [ebx], eax
mov al, 1
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00431b07
add esp, 0x28
ret
mov eax, dword [0x44bbb4]
mov ecx, dword [str.html.dll]
mov edx, dword [0x44bbbc]
mov dword [esp + 0xc], eax
mov eax, dword [0x44bbc0]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x44bbc4]
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dx, word [0x44bbc8]
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 0x4100f2
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4100df
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 0x4100d8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x44b338
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4100d8
cmp dword [esp + 8], 0
je 0x4100d8
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0xa]
mov dword [0x457a34], 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.00431b07
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop edi
xor ecx, esp
xor al, al
call fcn.00431b07
add esp, 0x28
ret