joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413701
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e357
xor ebx, ebx
cmp dword [0x420140], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4137d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x413741
xor eax, eax
jmp 0x41389a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41373a
push eax
call fcn.0040e2f4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420140], eax
call esi
push eax
call fcn.0040e2f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420144], eax
call esi
push eax
call fcn.0040e2f4
mov dword [0x420148], eax
lea eax, [ebp - 8]
push eax
call fcn.00410509
test eax, eax
pop ecx
pop ecx
je 0x4137a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cd12
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4137d6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e2f4
cmp eax, ebx
pop ecx
mov dword [0x420150], eax
je 0x4137d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e2f4
pop ecx
mov dword [0x42014c], eax
mov eax, dword [0x42014c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41384f
cmp dword [0x420150], esi
je 0x41384f
push eax
call fcn.0040e360
pop ecx
call eax
cmp eax, ebx
je 0x41381c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x420150]
call fcn.0040e360
pop ecx
call eax
test eax, eax
je 0x41381c
test byte [ebp - 0x18], 1
jne 0x41384f
lea eax, [ebp - 0xc]
push eax
call fcn.00410540
test eax, eax
pop ecx
je 0x413837
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cd12
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x413846
or dword [ebp + 0x10], 0x200000
jmp 0x413880
or dword [ebp + 0x10], 0x40000
jmp 0x413880
mov eax, dword [0x420144]
cmp eax, esi
je 0x413880
push eax
call fcn.0040e360
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413880
mov eax, dword [0x420148]
cmp eax, esi
je 0x413880
push dword [ebp - 4]
push eax
call fcn.0040e360
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x420140]
call fcn.0040e360
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409416
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094f0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409409
test ebx, ebx
je 0x409414
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4266a8
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406e00
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409414
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40945c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x18283ebf
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x282710a
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4db008], 0x8088405
inc edx
mov dword [ebx + 0x4db008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4bf54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4c08af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x4dd348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x4dd348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x4dc178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c08b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401009
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0041b010
push 0xff
lea eax, [ebp - 0x213]
push ebx
push eax
mov byte [ebp - 0x214], bl
call fcn.0041b010
lea eax, [ebp - 0x10]
push eax
call fcn.0041ab5d
lea eax, [ebp - 0x10]
push eax
call fcn.0041ab36
add esp, 0x20
cmp eax, ebx
je 0x401085
push eax
call fcn.0041ae29
pop ecx
cmp eax, ebx
je 0x401085
push eax
push 0x434674
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.0041abae
add esp, 0x10
mov edi, 0x104
push edi
lea eax, [ebp - 0x114]
push eax
push 0x43467c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x114]
jne 0x4010b7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4010bf
push 0x434684
push eax
call esi
push 0x434688
lea eax, [ebp - 0x114]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x401143
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
push eax
lea eax, [ebp - 0x214]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401148
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0041b010
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x401285
cmp eax, edi
ja 0x401285
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0041b010
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x4346d0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041abae
add esp, 0x20
cmp eax, ebx
jg 0x401215
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str._snprintf_failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0041abae
mov byte [ebp + eax - 0xa0c], bl
jmp 0x4012c4
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x401281
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.LoadLibrary__s__failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0041abae
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call fcn.00401009
add esp, 0x18
mov eax, edi
jmp 0x4012d5
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xa0c]
push str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
push esi
push eax
call fcn.0041abae
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call fcn.00401009
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f87
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov esi, 0x80004005
mov byte [ebp - 0x434], bl
call fcn.0041b010
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.00417dde
add esp, 0x10
test eax, eax
je 0x40205b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00417c5b
mov eax, dword [ebp - 4]
imul eax, eax, 0xa
add esp, 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 0x434]
push eax
push 0x400
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40205b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x434a24
lea eax, [ebp - 0x434]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40205b
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xa]
cmp ecx, dword [ebp - 8]
jg 0x402059
jne 0x40205b
movzx ecx, word [eax + 8]
cmp ecx, dword [ebp - 0xc]
jg 0x402059
jne 0x40205b
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 4]
jl 0x40205b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x402995
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor esi, esi
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0041b010
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402a22
cmp dword [ebp + 0xc], esi
je 0x402a0d
push dword [ebp - 0x14]
call fcn.00401b4e
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x669
jne 0x402a10
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x402a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40367c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b010
push 0xff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b010
mov esi, dword [ebp + 8]
add esp, 0x18
cmp dword [esi + 0x184c], ebx
jne 0x4036d1
cmp dword [esi + 0x58], ebx
je 0x4036d1
xor ecx, ecx
jmp 0x4036d4
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x403715
mov eax, dword [esi + 0x1848]
cmp eax, ebx
je 0x4036e7
cmp ecx, ebx
je 0x403715
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40370b
push 1
call fcn.0040de64
pop ecx
test eax, eax
je 0x403715
mov eax, 0x80070204
jmp 0x40380a
call fcn.00417596
jmp 0x403808
cmp dword [esi + 0x184c], ebx
je 0x40372b
push 0x80
lea eax, [esi + 8]
push eax
call fcn.004092fe
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.004031f7
mov edi, eax
cmp edi, ebx
jl 0x4037f4
push str.Download_Status:_Download_Complete
call fcn.00418c78
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x403789
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x403808
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x403802
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4470b0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4470b0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0040d83f
call fcn.0041974f
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x403802
push 0xffffffffffffffc3
call fcn.0040d83f
mov dword [esp], str.Download_Status:_Download_Failed
call fcn.00418c78
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8