joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476350
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.004918e0
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x47637b
cmp cl, 0x61
jne 0x4763cc
cmp byte [edx + 1], bl
jne 0x4763cc
cmp byte [edi], bl
jne 0x4763cc
cmp byte [eax], bl
jne 0x4763cc
cmp byte [esi], bl
jne 0x4763cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4763ad
cmp byte [ebp + 0xc6], bl
jne 0x4763ad
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4763ad
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x4763c0
cmp esi, ebx
je 0x4763c0
mov dword [ebp + 0xa0], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x4763ed
cmp byte [edi], bl
jne 0x4763ed
cmp byte [eax], bl
jne 0x4763ed
cmp byte [esi], bl
jne 0x4763ed
mov eax, ebp
call fcn.00476540
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x498831
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.00476fb0
test eax, eax
je 0x4764fe
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x47650a
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x4764d6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4764fe
cmp byte [ebp + 0xc6], bl
jne 0x4764cf
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4764cf
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4764fe
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x4764ef
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.004773f0
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.004774b0
test eax, eax
jne 0x47651a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x4765b0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x476534
cmp eax, ebx
je 0x476534
mov dword [ebp + 0xa0], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x476720
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.004918e0
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x476749
mov ecx, edi
call fcn.00412cc0
cmp dword [esp + 0x8038], 0
jne 0x47675e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x476773
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47677d
mov ebp, 1
test esi, esi
je 0x47694a
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x47694a
cmp ebp, dword [esp + 0x20]
jg 0x47694a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.004738a0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x476943
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x4767f0
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x476867
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4768be
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x476867
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4768b9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00475ca0
test al, al
jne 0x4768e4
cmp dword [esp + 0x802c], 0
jne 0x4768c8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476917
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x47689e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4768fc
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401290
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x4767f0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x476917
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00474fa0
mov esi, eax
jmp 0x47691c
mov eax, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x49887c
push eax
call fcn.00474fa0
jmp 0x4768be
mov ecx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee0
push ecx
call fcn.00474fa0
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x499ee0
test edi, edi
jne 0x476958
mov eax, 0x49a028
mov ecx, dword [0x4a6440]
cmp byte [ecx + 0xe4], 0
jne 0x476985
mov edx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00474fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ac0f0]
push 0x498831
push 0
push eax
call fcn.0042e2f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x4773f0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x4774a7
mov eax, dword [esi]
test eax, eax
je 0x4774a7
push edi
test al, 1
jne 0x477419
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x477432
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x477432
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47744d
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x477488
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x477488
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044edf0
add esp, 4
test eax, eax
jne 0x477488
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x4774a7
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x477bd0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.004918e0
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x477c7d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x478310
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x498831
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x477c7d
mov ecx, dword [0x4a6440]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x477c7d
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x477c90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x477cac
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a6440]
push eax
push esi
mov ecx, edi
call fcn.00478150
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x477ce3
test eax, eax
jne 0x477ce7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00477da0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x477d66
test esi, esi
je 0x477d66
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401290
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x477d45
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x477d45
push 1
push 0x8000012f
call fcn.00401290
add esp, 8
push esi
call edi
test eax, eax
jne 0x477d20
mov edx, dword [0x4a6440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x477d5e
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x477d80
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00477da0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00477f20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x477f20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.004918e0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4780a0
xor cl, cl
mov eax, edi
call fcn.004780c0
test eax, eax
jne 0x477f55
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a6440]
push eax
push ebp
mov ecx, edi
call fcn.00478150
test eax, eax
je 0x477f78
xor eax, eax
mov dword [0x4abd20], eax
jmp 0x477f7d
mov eax, dword [0x4abd20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x498831
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x477fc3
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x477fcb
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4abd1c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x478220
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x478078
lea ecx, [esp + 0x10]
push ecx
push 0x476dc0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x478035
mov edx, dword [esp + 0xc48]
call fcn.004778e0
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00475e40
mov edx, dword [esp + 0xc48]
call fcn.004778e0
mov edx, dword [0x4a6440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4780a0
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4abd20]
cmp eax, ebx
je 0x4780a0
cmp eax, 1
setg al
mov dword [0x4abd20], ebx
cmp al, bl
je 0x4780a0
mov edx, ebp
call fcn.004778e0
push ebx
mov ecx, edi
call fcn.00477f20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48c1f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5d90]
jne 0x48c1fe
repz ret
jmp fcn.00490b27

Function at 0x48eb74
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5d90]
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.00489192
and dword [ebp - 0x14], 0
cmp dword [0x4a8554], 0
mov dword [ebp - 0x18], eax
jne 0x48ec27
push 0x498738
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48eccf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49872c
push ebx
call edi
test eax, eax
je 0x48eccf
mov esi, dword [fcn.00484d00]
push eax
call esi
push 0x49871c
push ebx
mov dword [0x4a8554], eax
call edi
push eax
call esi
push 0x498708
push ebx
mov dword [0x4a8558], eax
call edi
push eax
call esi
push 0x4986ec
push ebx
mov dword [0x4a855c], eax
call edi
push eax
call esi
mov dword [0x4a8564], eax
test eax, eax
je 0x48ec27
push 0x4986d4
push ebx
call edi
push eax
call esi
mov dword [0x4a8560], eax
mov eax, dword [0x4a8560]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00484d04]
cmp eax, ecx
je 0x48ec80
cmp dword [0x4a8564], ecx
je 0x48ec80
push eax
call esi
push dword [0x4a8564]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48ec80
test ebx, ebx
je 0x48ec80
call edi
test eax, eax
je 0x48ec77
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48ec77
test byte [ebp - 8], 1
jne 0x48ec80
or dword [ebp + 0x10], 0x200000
jmp 0x48ecb3
mov eax, dword [0x4a8558]
cmp eax, dword [ebp - 0x18]
je 0x48ecb3
push eax
call esi
test eax, eax
je 0x48ecb3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48ecb3
mov eax, dword [0x4a855c]
cmp eax, dword [ebp - 0x18]
je 0x48ecb3
push eax
call esi
test eax, eax
je 0x48ecb3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8554]
call esi
test eax, eax
je 0x48eccf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48ecd1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c1f4
leave
ret
Function at 0x401060
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push 0x64
push eax
mov edi, 0x404158
push 0x405058
push edi
call fcn.0040263e
add esp, 0x10
test eax, eax
je 0x40116c
xor ebx, ebx
cmp byte [ebp - 0x68], bl
je 0x4010b3
lea eax, [ebp - 0x25c]
push 0x63
push eax
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40116c
mov esi, 0x12c
push ebx
lea eax, [ebp - 0x194]
push esi
push eax
push ebx
push 0x40504c
push 0x404264
push edi
call fcn.00402d74
add esp, 0x1c
test eax, eax
je 0x40116c
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
cmp eax, esi
jae 0x40116c
lea eax, [ebp - 0x194]
push str.s_pid.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x194]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40116c
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
shl esi, 1
lea eax, [ebp - 0x25c]
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x40115f
push 1
pop eax
jmp 0x40116e
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401173
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
lea eax, [ebp - 0x17f]
push 0x122
push eax
mov byte [ebp - 0x180], 0x22
push dword [ebp + 8]
call fcn.00402a25
add esp, 0xc
test eax, eax
je 0x40122a
xor eax, eax
cmp byte [ebp - 0x17f], 0x22
sete al
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4011ca
lea eax, [ebp - 0x180]
push 0x40505c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
cmp esi, ebx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 0x17f]
jne 0x4011f0
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40122a
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40121b
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x401225
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x40122c
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push edi
push str.Rstrtmgr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4013e3
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RmStartSession
push eax
call esi
push str.RmRegisterResources
mov ebx, eax
push dword [ebp - 8]
call esi
push str.RmRestart
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
call esi
push str.RmShutdown
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
call esi
push str.RmEndSession
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call esi
cmp ebx, edi
mov dword [ebp - 0x20], eax
je 0x4013d8
cmp dword [ebp - 0x18], edi
je 0x4013d8
cmp dword [ebp - 0x1c], edi
je 0x4013d8
cmp dword [ebp - 0xc], edi
je 0x4013d8
cmp eax, edi
je 0x4013d8
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 4]
push edi
push eax
call ebx
test eax, eax
jne 0x4013d8
lea eax, [ebp - 0x124]
push 0x104
push eax
push 0x405480
push 0x40506c
push 0x80000002
call fcn.004027ab
add esp, 0x14
test eax, eax
je 0x4013d2
lea eax, [ebp - 0x124]
push 0x5c
push eax
call fcn.004022dd
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40133a
lea eax, [ebp - 0x124]
push 0x2f
push eax
call fcn.004022dd
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x4013d2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push 0xc
pop ebx
sub ebx, eax
lea eax, [ebp - 0x124]
push eax
call esi
add ebx, eax
cmp ebx, 0x104
jae 0x4013d2
mov eax, dword [ebp - 0x10]
push 0x405060
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x124]
push eax
call esi
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x124]
push esi
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, eax
jne 0x4013d2
lea eax, [ebp - 0x370]
push edi
mov dword [ebp - 0x14], eax
push edi
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 1
mov word [ebp + esi*2 - 0x370], di
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call dword [ebp - 0x18]
test eax, eax
jne 0x4013d2
push edi
push 0x10
push dword [ebp - 4]
call dword [ebp - 0xc]
test eax, eax
jne 0x4013d2
push edi
push edi
push dword [ebp - 4]
call dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x402572
Capabilities:
Create directory

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40259a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40259a
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x4027ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4027d0
xor eax, eax
jmp 0x40282d
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40281b
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40281b
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40281b
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x402912
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x402946
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402967
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x402988
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40296b
xor eax, eax
jmp 0x4029a8
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x40299d
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x402cfc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x402d6e
push edi
push esi
call fcn.004020f2
mov edi, eax
pop ecx
cmp edi, ebx
je 0x402d66
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402d66
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x405414
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d66
cmp dword [ebp + 8], ebx
je 0x402d66
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
push 1
mov ecx, dword [eax + 8]
pop ebx
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push edi
call fcn.004020fd
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x402fa3
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.004021ea
test eax, eax
pop ecx
je 0x402fff
cmp byte [esi + 1], 0x3a
jne 0x402fff
cmp byte [esi + 2], 0x5c
jne 0x402fff
push 4
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x402fe7
cmp eax, 4
jne 0x402fff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402fff
and eax, 0x10
cmp al, 0x10
je 0x402fff
push 1
pop eax
jmp 0x403001
xor eax, eax
pop esi
leave
ret