joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov bh, byte [ebp + 0x24]
xor bl, bl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x505750
mov dword [eax], 0
test edi, edi
je 0x50575a
mov dword [edi], 0
cmp dword [esi + 0x10], 0
je 0x505842
push 0
push esi
call fcn.0042ba20
add esp, 8
test al, al
jne 0x505842
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x505781
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x505842
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x50579a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x505842
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], 0
cmp dword [ecx + 0x10], 0
jne 0x5057bd
xor ecx, ecx
jmp 0x5057c5
cmp dword [ecx + 0x14], 8
jb 0x5057c5
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 8
jb 0x5057cd
mov esi, dword [esi]
push 0
xor edx, edx
lea eax, [ebp - 8]
test edi, edi
cmove eax, edx
test bh, bh
push eax
push dword [ebp - 0x10]
mov eax, 0x5b77d8
push str.exefile
push dword [ebp + 0x1c]
push 1
push ecx
mov ecx, str.open
push esi
cmove eax, ecx
push eax
push dword [ebp - 0x14]
call fcn.004a4430
add esp, 0x28
test al, al
je 0x505842
test edi, edi
je 0x505840
cmp dword [ebp - 8], 0
je 0x505840
push 1
push 0
push 0
call fcn.00471e40
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push edi
mov eax, dword [eax + 4]
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x505840
mov dword [edi], eax
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5107b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
test edi, edi
je 0x5108fe
test esi, esi
je 0x5108fe
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5ed0b4
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5ed0cc]
mov dword [edi + 8], eax
push 0x5ed0b4
mov dword [0x5ed0cc], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov edi, dword [0x5f4ac0]
mov dword [ebp - 8], edi
call fcn.0051b310
push 5
push 0x71
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5108d5
push 0xf0
push 0x71
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], ebx
test eax, eax
je 0x510855
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5108c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5108c2
push dword [ebp - 4]
push eax
call fcn.005194b0
add esp, 8
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push 0x5197d0
push dword [ebp + 8]
push eax
push dword [ebp - 8]
call fcn.0051b4f0
mov ebx, eax
test ebx, ebx
jne 0x5108a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x5108ca
test eax, eax
je 0x5108ca
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5108ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5108d5
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x24], 0
jge 0x5108f3
test ebx, ebx
je 0x5108f3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc0000005
call fcn.00483540
int3
Function at 0x512dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xec], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov dword [edi + 0x110], 2
mov dword [edi + 0xf4], ebx
jne 0x512e19
mov eax, 2
jmp 0x512f70
push 0
push ebx
call fcn.005107b0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x512f3b
test ebx, ebx
je 0x512e3d
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [edi + 4]
mov byte [edi + 0x10c], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x512f25
nop word [eax + eax]
mov eax, dword [ebp - 0x28]
cmp eax, 0x100
jb 0x512e81
cmp eax, 0x109
jbe 0x512e8b
add eax, 0xfffffe00
cmp eax, 0xe
ja 0x512eed
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x512ec5
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
je 0x512ec5
nop dword [eax]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x512eb0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x37f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x512f01
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x512f01
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [edi + 0x10c], 0
je 0x512f22
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x512e70
mov esi, dword [ebp - 0x30]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
test ebx, ebx
je 0x512f3b
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.00518c80
push eax
mov ecx, esi
call fcn.0040f610
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x512f6a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040a2e0
mov eax, dword [edi + 0x110]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 8
Function at 0x516930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cf2b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x13c], ebx
mov esi, dword [0x5f4ac0]
mov edi, 1
mov eax, dword [ebp + 0x14]
push 0xf0
push 0x71
push esi
mov dword [ebp - 0x144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x516a73
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x516a73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x516a73
mov edx, 0x1234
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x516a73
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x140], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x516aad
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
push 3
push esi
call fcn.00514d60
push dword [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push 0x143
push ebx
mov ebx, dword [ebp - 0x13c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x114]
cmove edi, ecx
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x516a60
push eax
call fcn.00409f38
add esp, 4
mov edx, 0x1234
add esi, dword [ebp - 0x140]
test edi, edi
jne 0x5169b6
push 1
push ebx
call fcn.0050cdf0
mov eax, dword [ebp - 0x144]
add esp, 8
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x10
cmp dx, ax
jne 0x516b2a
push 3
lea eax, [ebp - 0x244]
mov dword [ebp - 0x138], 1
push esi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x248], eax
call fcn.00514d60
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x516aff
push eax
call fcn.00409f38
add esp, 4
lea eax, [ebp - 0x138]
push eax
push 0
push 0x40b
push ebx
mov ebx, dword [ebp - 0x13c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
jmp 0x516a60
mov ebx, dword [ebp - 0x13c]
jmp 0x516a65
Function at 0x51fdb0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d860
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 1
test eax, 0x100000
jne 0x51ff24
and eax, 0x30000
cmp eax, 0x20000
je 0x51ff24
cmp dword [ebp + 0x18], 0
je 0x51ff24
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x51ff24
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x4c]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push 0
push dword [ebp + 0x18]
lea eax, [ebp + 8]
movlpd qword [ebp - 0x40], xmm0
cmovae eax, dword [ebp + 8]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x51ff24
mov eax, dword [ebp - 0x40]
cmp eax, 3
je 0x51fe8e
cmp eax, 4
jne 0x51ff24
cmp dword [ebp + 0x30], 0
je 0x51ff24
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x51ff24
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x4c]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push 0
push dword [ebp + 0x30]
lea eax, [ebp + 0x20]
movlpd qword [ebp - 0x40], xmm0
cmovae eax, dword [ebp + 0x20]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x51ff24
mov eax, dword [ebp - 0x40]
cmp eax, 3
je 0x51ff10
cmp eax, 4
jne 0x51ff24
push 1
lea eax, [ebp + 8]
push eax
push dword [esi + 0xe8]
call fcn.004c9a00
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x51ff3d
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x51ff6d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040a2e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x34
Function at 0x5207b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 5
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 5
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 7
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp + 8], 0
je 0x520813
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x5f16d8]
test eax, eax
jne 0x52082f
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
cmp byte [edi + 0xda], 0
mov dword [ebp - 0x24], eax
je 0x520902
push esi
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
ja 0x520901
test eax, eax
je 0x5208f7
cmp eax, 1
jne 0x5208e8
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x5208e8
mov esi, dword [edi + 4]
test esi, esi
je 0x5208be
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x5208a5
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x5208be
lea eax, [ebp - 0x20]
push eax
push 0
push 0x37f
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x5208d2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x520885
cmp byte [edi + 0xda], 0
jne 0x520840
jmp 0x520901
mov dword [edi + 0xbc], 2
pop esi
cmp dword [edi + 0xbc], 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop edi
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
Function at 0x5212b0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x521356
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5212e0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x521356
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x38], 1
jb 0x521329
mov esi, dword [esi]
lea eax, [ebp - 0x40]
push eax
push 0
push dword [edi]
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, eax
test ecx, ecx
je 0x521343
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x5217d0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d9e9
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x54], 0
cmp dword [esi + 0x10], 0
je 0x521975
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x52181b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x521975
mov edi, dword [esi + 0x10]
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x4c], 0x3c
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
lea eax, [edi + 1]
movlpd qword [ebp - 0x40], xmm0
mul edx
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c49f
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x521896
lea ecx, [edi*2 + 2]
push ecx
push 0
push eax
call fcn.0053f340
lea eax, [edi + 1]
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [esi + 0x14], 8
jb 0x52189e
mov esi, dword [esi]
lea eax, [ebp - 0x4c]
push eax
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x521965
mov eax, dword [ebp - 0x40]
cmp eax, 3
je 0x5218d0
cmp eax, 4
jne 0x521965
mov eax, 0x1bb
cmp word [ebp - 0x34], ax
jmp 0x5218d5
cmp word [ebp - 0x34], 0x50
jne 0x521965
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x521929
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x521929
push ecx
xor edx, edx
mov dword [ebp - 0x5c], 0
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], dx
call fcn.00408f30
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x54], 1
call fcn.00521370
add esp, 4
mov byte [ebp - 0x4d], 0
test al, al
jne 0x52192d
mov byte [ebp - 0x4d], 1
test byte [ebp - 0x54], 1
mov dword [ebp - 4], 0xffffffff
je 0x521956
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x521956
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.0040a2e0
cmp byte [ebp - 0x4d], 0
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x521975
push eax
call fcn.0041c2b1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x521ec0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57da9b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0xdc], 0
mov esi, dword [ebp + 8]
je 0x5220dd
cmp dword [esi + 0x10], 0
je 0x5220dd
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x521f14
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x5220dd
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
mov eax, esi
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x68], 1
jb 0x521f6c
mov eax, dword [esi]
lea ecx, [ebp - 0x7c]
push ecx
push 0
push dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x5220dd
mov eax, dword [ebp - 0x70]
cmp eax, 3
je 0x521f95
cmp eax, 4
jne 0x5220dd
mov eax, dword [ebp - 0x78]
mov byte [ebp - 0x7d], 0
test eax, eax
je 0x5220c8
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x5220c8
cmp dword [ebp - 0x6c], 0
je 0x5220c8
cmp dword [ebp - 0x68], 0
jbe 0x5220c8
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0050d360
push dword [ebp - 0x68]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push dword [ebp - 0x6c]
call fcn.0050d360
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040a1e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040a1e0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebx + 0xfc]
call fcn.0040e960
mov edi, dword [ebp - 0x84]
cmp byte [edi + 0xd], 0
jne 0x522076
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00478880
add esp, 8
test al, al
jne 0x522076
lea eax, [ebp - 0xbc]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00478880
add esp, 8
test al, al
jne 0x52207c
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00478880
add esp, 8
test al, al
je 0x52207c
mov edi, dword [ebx + 0xfc]
lea ecx, [ebp - 0xbc]
call fcn.0040f9d0
cmp edi, dword [ebx + 0xfc]
je 0x5220ab
cmp dword [edi + 0x54], 8
lea eax, [edi + 0x40]
jb 0x52209a
mov eax, dword [eax]
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 0x7d], 1
lea ecx, [ebp - 0x28]
call fcn.0040a280
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a280
cmp byte [ebp - 0x7d], 0
jne 0x5220dd
cmp dword [esi + 0x14], 8
jb 0x5220d0
mov esi, dword [esi]
push esi
push dword [ebx + 0xe4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
Function at 0x523d90
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
cmp byte [esi + 0x134], al
je 0x523de4
push 0x7f02
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, eax
test ebx, ebx
je 0x523dcf
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x523dd1
xor eax, eax
push 0
push dword [esi + 0xe4]
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x523e18
mov edi, dword [esi + 0xe4]
test edi, edi
je 0x523e18
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 5
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 7
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0xda], 0
mov edi, eax
je 0x523e86
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x523e86
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x493e0
ja 0x523e86
cmp byte [esi + 0x134], 0
je 0x523e69
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0xda], 0
jne 0x523e30
cmp byte [esi + 0x134], 0
je 0x523e9d
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x523e9d
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0xbc], 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret