joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461e02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x461e7d
push ebx
call fcn.00461dcb
test eax, eax
pop ecx
jne 0x461e4f
call fcn.0045a430
mov dword [eax], 0xf
call fcn.0045a427
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00456aa7
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x461e8f
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x461e3f
inc eax
cmp eax, 0x104
ja 0x461e3f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x461ec7
cmp eax, dword [ebp + 0x10]
jg 0x461eaa
mov eax, dword [ebp + 0x10]
push eax
call fcn.00457e62
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x461edc
call fcn.0045a427
mov dword [eax], 0xc
jmp 0x461e3f
cmp eax, dword [ebp + 0x10]
jle 0x461edc
call fcn.0045a427
mov dword [eax], 0x22
jmp 0x461e3f
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0045cf50
pop ecx
pop ecx
jmp 0x461e41

Function at 0x4620dd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49c7e4], ebx
push esi
push edi
jne 0x46215d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x462198
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48a6b4
push edi
call esi
test eax, eax
mov dword [0x49c7e4], eax
je 0x462198
push 0x48a6a4
push edi
call esi
push 0x48a690
push edi
mov dword [0x49c7e8], eax
call esi
cmp dword [0x49c3cc], 2
mov dword [0x49c7ec], eax
jne 0x46215d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49c7f4], eax
je 0x46215d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49c7f0], eax
mov eax, dword [0x49c7f0]
test eax, eax
je 0x4621a2
call eax
test eax, eax
je 0x462189
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49c7f4]
test eax, eax
je 0x462189
test byte [ebp - 8], 1
jne 0x4621a2
cmp dword [0x49c3d8], 4
jb 0x46219c
or byte [ebp + 0x12], 0x20
jmp 0x4621c1
xor eax, eax
jmp 0x4621d1
or byte [ebp + 0x12], 4
jmp 0x4621c1
mov eax, dword [0x49c7e8]
test eax, eax
je 0x4621c1
call eax
mov ebx, eax
test ebx, ebx
je 0x4621c1
mov eax, dword [0x49c7ec]
test eax, eax
je 0x4621c1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49c7e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46386e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4638d9
push 0x3d
push dword [ebp + 8]
call fcn.004589da
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4638d9
cmp dword [ebp + 8], esi
je 0x4638d9
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x49c3ec]
cmp eax, dword [0x49c3f0]
jne 0x4638bf
mov edi, eax
call fcn.0046380d
mov dword [0x49c3ec], eax
cmp eax, ebx
jne 0x463918
cmp dword [ebp + 0xc], ebx
je 0x4638e1
cmp dword [0x49c3f4], ebx
je 0x4638e1
call fcn.00460f5c
test eax, eax
je 0x463918
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x463a1c
push 4
call fcn.00457e62
cmp eax, ebx
pop ecx
mov dword [0x49c3ec], eax
je 0x4638d9
mov dword [eax], ebx
cmp dword [0x49c3f4], ebx
jne 0x463918
push 4
call fcn.00457e62
cmp eax, ebx
pop ecx
mov dword [0x49c3f4], eax
je 0x4638d9
mov dword [eax], ebx
mov ebx, dword [0x49c3ec]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004637c0
mov edi, eax
test edi, edi
pop ecx
jl 0x463971
cmp dword [ebx], 0
je 0x463971
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00457e74
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x463959
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4639a7
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x463950
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00459e23
test eax, eax
pop ecx
pop ecx
je 0x4639a7
jmp 0x4639a2
cmp dword [ebp - 4], 0
jne 0x463a15
test edi, edi
jge 0x463981
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00459e23
test eax, eax
pop ecx
pop ecx
je 0x4638d9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x49c3ec], eax
cmp dword [ebp + 0xc], 0
je 0x4639fe
push dword [ebp + 8]
call fcn.00459cc0
inc eax
inc eax
push eax
call fcn.00457e62
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4639fe
push dword [ebp + 8]
push esi
call fcn.0045cf50
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4639f7
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00457e74
pop ecx
cmp dword [ebp - 4], 0
je 0x463a0d
push dword [ebp + 8]
call fcn.00457e74
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4638dc
push esi
call fcn.00457e74
pop ecx
xor eax, eax
jmp 0x4638dc
Function at 0x464498
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00457240
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00461cac
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4645c2
push 2
push esi
push dword [ebp + 8]
call fcn.00461cac
add esp, 0xc
cmp eax, ebx
je 0x4645c2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x464565
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00459900
push 0x8000
push dword [ebp + 8]
call fcn.00464901
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x46451e
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0046061c
add esp, 0xc
cmp eax, 0xffffffff
je 0x46453e
sub edi, eax
test edi, edi
jg 0x464516
jmp 0x464556
call fcn.0045a430
cmp dword [eax], 5
jne 0x464553
call fcn.0045a427
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00464901
pop ecx
pop ecx
jmp 0x4645ad
jge 0x4645ad
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461cac
push dword [ebp + 8]
call fcn.0045a15b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4645ad
call fcn.0045a427
mov dword [eax], 0xd
call fcn.0045a430
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00461cac
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4645c4
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00456aa7
leave
ret

Function at 0x466cc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x466cf8
call fcn.00472326
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x466d09
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x466d42
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x466d27
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x466d2f
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x466d40
test ax, ax
jne 0x466d40
test si, si
je 0x466d42
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x466d51
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x466fa3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47b9e0
call fcn.00459960
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00472326
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x466ff1
call fcn.00472326
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x467002
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46700e
or eax, 0xffffffff
jmp 0x467111
mov ecx, esi
call fcn.00466aeb
mov dword [ebp - 0x14], eax
call fcn.00468993
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x467051
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x467051
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x467051
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00469bff
push dword [ebp - 0x14]
call fcn.004688eb
push edi
push eax
push ebx
mov ecx, esi
call fcn.00466d96
xor ebx, ebx
cmp eax, ebx
je 0x4670c5
test byte [esi + 0x38], 0x10
je 0x467093
push 4
pop edi
mov ecx, esi
call fcn.0046a876
test ah, 1
je 0x46708b
push 5
pop edi
push edi
mov ecx, esi
call fcn.0046838f
cmp dword [esi + 0x1c], ebx
je 0x4670c5
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0046aaef
jmp 0x4670c5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4670d9
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4670f2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4670f2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00466b25
cmp dword [esi + 0x54], ebx
je 0x46710e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x469349
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x469383
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041e850
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402260
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x46a56c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46a5af
call fcn.00472326
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46a5af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46a5ca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004696d3
test ebx, ebx
mov esi, eax
je 0x46a5c8
test edi, edi
je 0x46a5c8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46aea1
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x47bae8
call fcn.00459960
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x46aebb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x46af07
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402030
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46bae0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47bbe5
call fcn.00459960
sub esp, 0x14c
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x46bb2a
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x46bbbf
push ebx
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0046ba9e
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x46bbb1
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x46bbb4
test byte [ebp + 8], 2
jne 0x46bb7f
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x46bbb1
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46bbb1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00402030
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00456aa7
leave
ret 8
Function at 0x46c7cc
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00459900
add esp, 0xc
call fcn.00472316
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x46c89c
cmp dword [ebp - 8], ebx
je 0x46c897
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x46c69e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00457166
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x46c8a6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x46c86f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x46c889
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x46c8a1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x46c8a8
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x46c8a6
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46c8af
Capabilities:
Resume thread

Disassembly:
mov eax, 0x47bc6c
call fcn.00459960
push ecx
push esi
push 0x40
call fcn.0046b3c3
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x46c8de
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00472d16
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.0046c7cc
test eax, eax
jne 0x46c905
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x46c922
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x46c920
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x46d3e8
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00459900
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x487208]
je 0x46d4ef
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46d458
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x46d45f
cmp ebx, ebx
jne 0x46d45f
xor eax, eax
jmp 0x46d4f2
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x46d46c
mov byte [esi + 0x20], bl
jmp 0x46d480
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406270
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406270
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406270
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x46d4db
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x46d4ef
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46f16b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x46f1bd
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x46f1bd
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x46f1c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00456aa7
leave
ret 8
Function at 0x46f82b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x46f87b
push dword [ebp + 8]
call fcn.00472ec8
mov esi, eax
test esi, esi
je 0x46f8a3
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x46f8a3
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x484268
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00456aa7
leave
ret 0xc

Function at 0x47058b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push esi
push edi
je 0x47061d
cmp dword [ebp + 8], eax
je 0x47061d
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, eax
and eax, 0xc0000000
mov dword [ebp + 0x18], eax
and esi, 0x3e000000
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x830]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x824
call edi
test eax, eax
jne 0x470631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47061d
push dword [ebp - 8]
call fcn.0046b3c3
mov ebx, eax
test ebx, ebx
pop ecx
je 0x47061d
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
call edi
test eax, eax
jne 0x470637
push ebx
call fcn.0046b3f3
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00456aa7
leave
ret 0x14
lea ebx, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x470656
push ebx
call fcn.0046b3f3
pop ecx
test edi, edi
jne 0x47065f
mov eax, dword [ebp + 0x10]
jmp 0x470684
mov ax, word [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x4706cb
dec eax
je 0x4706c0
dec eax
je 0x4706b5
dec eax
je 0x4706aa
dec eax
je 0x47069f
dec eax
je 0x470694
dec eax
mov eax, dword [ebp + 0x10]
je 0x47068c
mov dword [eax], 0x1000
jmp 0x4706d4
mov dword [eax], 0x1002
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1006
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1001
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x100b
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x4706d4
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
jmp 0x47061f