joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d9f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x48da40
mov eax, esi
call fcn.00477008
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48da40
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x48da40
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x48db7f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x48da80
cmp eax, 0x108
ja 0x48da80
mov eax, esi
call fcn.00477008
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48db76
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x48db7f
jmp 0x48db76
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x48db5f
cmp eax, 0x20a
ja 0x48db5f
test byte [esi + 0x50], 0x80
jne 0x48dab2
sub eax, 0x203
je 0x48daaf
sub eax, 3
je 0x48daaf
sub eax, 3
jne 0x48dab2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48dac6
dec eax
je 0x48dadb
dec eax
je 0x48daf8
dec eax
je 0x48dadb
jmp 0x48daff
mov ecx, ebx
mov eax, dword [0x4e518c]
mov eax, dword [eax]
mov edx, esi
call fcn.00480a04
jmp 0x48db76
cmp byte [esi + 0x5d], 1
jne 0x48daf1
mov eax, esi
mov si, 0xffed
call fcn.0044dee0
jmp 0x48db7f
or word [esi + 0x54], 1
jmp 0x48db76
and word [esi + 0x54], 0xfffe
jmp 0x48db76
mov eax, dword [0x5173d4]
cmp byte [eax + 0x20], 0
je 0x48db76
mov eax, dword [0x5173d4]
cmp dword [eax + 0x1c], 0
je 0x48db76
mov eax, dword [ebx]
mov edx, dword [0x5173d4]
cmp eax, dword [edx + 0x1c]
jne 0x48db76
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00476f4c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0044dee0
jmp 0x48db7f
cmp eax, 0xb00b
jne 0x48db76
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0048c2fc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491148
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x491164
cmp dword [esi + 4], 0
je 0x491191
test byte [ebx + 0x55], 1
jne 0x491183
mov eax, ebx
call fcn.0048fda0
test eax, eax
jne 0x491183
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4912a1
mov edx, esi
mov eax, ebx
call fcn.00490c68
jmp 0x4912a1
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49129a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00492f18
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0048d928
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00491148
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00492f18
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4912a1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4977c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e5178]
cmp byte [eax + 0xc], 0
je 0x497931
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49792a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x517428], 0
jne 0x497818
push 0x497938
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x497940
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517428], eax
cmp dword [0x4e103c], 0
jne 0x497913
push 0x497950
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4e103c], eax
cmp dword [0x4e103c], 0
je 0x497913
push 0x49795c
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51742c], eax
push 0x49796c
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517430], eax
push 0x497980
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517434], eax
push 0x497998
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517438], eax
push 0x4979b0
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51743c], eax
push 0x4979c4
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517440], eax
push 0x4979dc
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517444], eax
push 0x4979f4
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517448], eax
push 0x497a10
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51744c], eax
push 0x497a1c
mov eax, dword [0x4e103c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x517450], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497931
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x49fd40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49fe18
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x517464], 0
jne 0x49fdfc
lea eax, [ebp - 4]
mov edx, 0x49fe30
call fcn.0044e8c8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0044ece0
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x49fdfc
mov eax, ebx
call fcn.0044ce00
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49fdf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x49fddf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49fe40
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x49fddf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x517464], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fdfc
mov eax, dword [ebp - 0xc]
call fcn.0044ce20
ret
mov ebx, dword [0x517464]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fe1f
lea eax, [ebp - 4]
call fcn.0044e830
ret

Function at 0x4b5d04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4b5d33
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4b5d3d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4b5d48
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4b5dae
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4b5dae
call fcn.004b651c
jmp 0x4b5de9
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4b5dbe
call fcn.004b651c
jmp 0x4b5de9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4b5de4
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4b5de2
cmp ebx, 1
je 0x4b5de2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4b5dcf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5f48
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4b5f8e
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x4b5f7c
cmp eax, dword [ebp + 0x10]
jle 0x4b6017
call fcn.004bc810
mov dword [eax], 8
xor eax, eax
jmp 0x4b6084
cmp dword [0x517d08], 1
jne 0x4b5fd3
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4b6017
xor eax, eax
jmp 0x4b6084
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4b6013
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x4b6017
xor eax, eax
jmp 0x4b6084
lea edx, [ebp - 0x10c]
push edx
call fcn.004b4818
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4b6038
call fcn.004bc810
mov dword [eax], 0x22
xor eax, eax
jmp 0x4b6084
test edi, edi
jne 0x4b605b
mov edx, dword [ebp + 0x10]
push edx
call fcn.004b404c
pop ecx
mov edi, eax
test eax, eax
jne 0x4b605b
call fcn.004bc810
mov dword [eax], 8
xor eax, eax
jmp 0x4b6084
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b942c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b470c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004b4818
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b4818
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4e2de5
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b470c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004b4818
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004ba61c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4b953d
push esi
call fcn.004b4818
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004b4818
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004b404c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4b9514
xor eax, eax
jmp 0x4b95c4
push esi
call fcn.004b4818
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004b4818
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004b4668
add esp, 0xc
jmp 0x4b957d
mov edi, dword [ebx + 0x24]
push edi
call fcn.004b4818
pop ecx
push eax
push esi
call fcn.004b4818
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004b4818
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004b406c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4b957d
xor eax, eax
jmp 0x4b95c4
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b470c
add esp, 8
push 0x4e2de7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b470c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b470c
add esp, 8
push 0x4e2de9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b470c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bc7a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4bc80a
call fcn.004bc758
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004b4818
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004b4818
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4bc888
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4e33f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4bc962
cmp dword [0x4e33f0], 0
jne 0x4bc962
cmp dword [0x4e35fc], 0
je 0x4bc91c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004bc658
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4bc902
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004bc658
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4bc902
lea ebx, [ebp - 0x84]
jmp 0x4bc903
inc ebx
call fcn.004bc844
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4bc99d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e33f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004b4818
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e33fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4bc99d
cmp dword [0x4e33f0], 0
je 0x4bc97c
cmp dword [0x4e33f0], 0xffffffff
je 0x4bc99d
push esi
call dword [0x4e33f0]
pop ecx
mov eax, dword [0x4e33f4]
test eax, eax
je 0x4bc99d
cmp dword [0x4e33f4], 0xffffffff
je 0x4bc99d
cmp byte [eax], 0
je 0x4bc99d
push esi
push eax
call fcn.004bc7a8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43c618
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401279
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401279
push 0xc00
call eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00420ec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4012b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x43c650
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420eaf
mov esp, ebp
pop ebp
ret

Function at 0x4029ac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43cbc8
call fcn.00412b8a
mov dword [esi + 0xc], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0xc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4029e6
cmp dword [eax + 0x20], ebx
jne 0x4029f6
cmp edi, 0x14
jge 0x4029f6
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4029da
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x14], eax
pop esi
pop ebx
ret
Function at 0x402c92
Capabilities:
Get file version info

Disassembly:
push 0x40
mov eax, 0x4390c8
call fcn.00421793
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0040b317
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x30]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x402d03
push dword [ebp + 0xc]
push str.Unable_to_get__s_file_version._n
push 0x453994
call fcn.004014f0
add esp, 0xc
mov ecx, 0x4538c8
call fcn.0040a616
push ebx
call fcn.0040b312
pop ecx
jmp 0x402ddc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
push eax
push 0x43cf30
push ebx
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x28]
push ebx
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x4c], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x48], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x44], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x40], eax
call fcn.0040b312
pop ecx
lea eax, [ebp - 0x2c]
mov edi, 0x43d290
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.0040327d
mov ebx, 0x43c650
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x24]
call fcn.004027af
test eax, eax
je 0x402db9
lea esi, [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00421665
pop ecx
mov dword [esi], eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0040327d
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040132a
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
push ebx
lea ecx, [ebp - 0x24]
lea esi, [esi + 4]
call fcn.004027af
test eax, eax
jne 0x402d71
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004027d3
mov ecx, dword [ebp - 0x24]
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.00401856
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401856
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.00421742
ret 8
Function at 0x403b91
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x439330
call fcn.004217ff
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x220]
call fcn.004012cf
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push 0x43da1c
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], eax
call fcn.00404283
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 1
call edi
xor ecx, ecx
mov esi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b317
mov ebx, eax
mov dword [ebp - 0x230], ebx
pop ecx
test ebx, ebx
je 0x403dae
lea ecx, [esi + esi]
push ecx
push 0
push ebx
call fcn.00420ec0
add esp, 0xc
push ebx
push esi
call edi
test eax, eax
setne al
test al, al
je 0x403dae
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00420ec0
push str.TRANSFORMS_
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00421ff1
push ebx
call fcn.0042164c
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0042164c
add eax, 2
xor ecx, ecx
add esi, eax
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b317
mov edi, eax
add esp, 0x24
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x403cd2
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.00420ec0
push ebx
push esi
push edi
call fcn.00421ff1
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.00421ed7
add esp, 0x24
mov eax, dword [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x403d13
mov ecx, dword [ebp - 0x234]
and dword [ebp - 0x224], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x403d0a
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call fcn.004014f0
pop ecx
pop ecx
jmp 0x403d94
push eax
push edi
push str.TRANSFORMS__s_s_
jmp 0x403d85
mov ecx, dword [ebp - 0x228]
add eax, 0xa
push eax
push 0x22
call fcn.004042bd
mov esi, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x224], eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403d50
push ecx
lea eax, [ebp - 0x220]
push 0x43da98
push eax
call fcn.004014f0
add esp, 0xc
jmp 0x403d94
mov ecx, dword [ebp - 0x228]
push eax
push 0x5c
call fcn.004042bd
cmp eax, 0xffffffff
jne 0x403d7d
push ebx
push dword [esi]
lea eax, [ebp - 0x220]
push edi
push str._s_s__s_
push eax
call fcn.004014f0
add esp, 0x14
jmp 0x403d94
push dword [esi]
push edi
push str._s_s_
lea eax, [ebp - 0x220]
push eax
call fcn.004014f0
add esp, 0x10
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
push esi
push dword [ebp - 0x224]
call fcn.00404afa
jmp 0x403dd8
push ebx
call fcn.0040b312
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403ded
and dword [ebp - 4], 0
push edi
call fcn.0040b312
push ebx
call fcn.0040b312
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.00421751
ret 4
Function at 0x404b8a
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x439547
call fcn.00421760
cmp dword [0x4539b4], 0
je 0x404ba9
call fcn.00404cac
jmp 0x404ca6
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403eb1
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00420ec0
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00420ec0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017e6
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x453994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4538c8
call fcn.0040a616
mov eax, dword [ebp - 0x10]
add eax, dword [0x4539e0]
mov dword [ebp - 0x10], eax
mov dword [0x453a30], eax
jmp 0x404c9b
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
mov ecx, 0xbc2
cmp eax, ecx
jne 0x404c75
cmp dword [0x4539a8], 0
jne 0x404c86
mov dword [0x4539a8], 1
test eax, eax
je 0x404c86
cmp eax, ecx
je 0x404c86
add eax, dword [0x4539e0]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x453a30], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
call fcn.0042172e
ret