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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4bbff0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bbfd1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bbfe0
or bl, 4
test esi, 0x20000000
je 0x4bbfeb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4c26b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c26c6
add esp, 0xfffffff0
call fcn.00404270
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00428b48
mov eax, dword [0x579010]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c2a58
mov eax, dword [0x57902c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c2a64
mov eax, ebx
call fcn.004c2a70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41f5e0]
call fcn.00403f08
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41f5e0]
call fcn.00403f08
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41f5e0]
call fcn.00403f08
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41f5e0]
call fcn.00403f08
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41f5e0]
call fcn.00403f08
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4bee88
push eax
push 0
push 0
mov eax, dword [0x579414]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x481ab8]
call fcn.004832f0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x481ab8]
call fcn.004832f0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x481ab8]
call fcn.004832f0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004c2ec0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2d88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2d88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2d88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c2803
call fcn.004042c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c2b6c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c2d17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4c2cf8
mov dl, 1
mov eax, dword [0x41fc44]
call fcn.00403f08
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e48
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c2ce7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004b04e8
test al, al
je 0x4c2cda
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4c2d28
lea eax, [ebp - 0x254]
call fcn.0040da70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c2cda
xor eax, eax
push ebp
push 0x4c2cd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4c2d60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4c2cbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4c2cbc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2cda
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c2bdd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00424520
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2d1e
lea eax, [ebp - 0x260]
call fcn.00404e48
ret

Function at 0x4c3660
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x57e7ec]
cmp byte [eax + 0xa5], 0
jne 0x4c36d1
cmp dword [0x57e804], 0
jne 0x4c3692
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4c361c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x57e804], eax
cmp dword [0x57e800], 0
jne 0x4c36ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x57e800], eax
cmp dword [0x57e808], 0
jne 0x4c36d1
push esp
push 0
push 0
push 0x4c35c0
push 0x3e8
push 0
call fcn.004078a4
mov dword [0x57e808], eax
pop edx
ret
Function at 0x4c3d64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x57e7ec]
cmp dword [eax + 0x30], 0
je 0x4c3e0e
cmp dword [ebx + 0x94], 0
jne 0x4c3e08
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c3cf4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c3e08
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4c3dce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c3e08
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00421ce4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c3ddd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c496c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4c49a1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f38
jmp 0x4c49ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e9c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4c5b78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c5bb9
mov eax, esi
call fcn.004aba6c
test al, al
je 0x4c5bb9
mov eax, dword [ebx + 0x84]
call fcn.004ab768
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c5bb9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004ab768
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4c6ebc
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, edx
mov byte [eax + 0xa5], bl
cmp byte [eax + 0xa4], 0
je 0x4c6f10
mov eax, dword [0x579590]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4c6efa
test bl, bl
je 0x4c6f10
push 0
mov eax, dword [0x579590]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4c6f10
test bl, bl
jne 0x4c6f10
push 9
mov eax, dword [0x579590]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4cf0bc
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x574f44], 0
mov eax, dword [0x5799a4]
cmp dword [eax], 2
jne 0x4cf295
mov eax, dword [0x579140]
cmp dword [eax], 5
jl 0x4cf295
call fcn.004cc1ec
test al, al
jne 0x4cf0ed
call fcn.004cc1f8
call fcn.004cc1e4
mov dword [0x574f4c], eax
push 0x4cf298
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f10], eax
cmp dword [0x574f10], 0
jne 0x4cf148
mov edx, 0x8000
mov eax, 0x4cf2ac
call fcn.00412ea0
mov dword [0x574f48], eax
mov eax, dword [0x574f48]
mov dword [0x574f4c], eax
push 0x4cf298
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f10], eax
cmp dword [0x574f10], 0
je 0x4cf290
push 0x4cf2b8
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f14], eax
cmp dword [0x574f14], 0
je 0x4cf290
push 0x4cf2c4
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f18], eax
cmp dword [0x574f18], 0
je 0x4cf290
mov byte [0x574f44], 1
push 0x4cf2d4
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f1c], eax
push 0x4cf2e0
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f20], eax
push 0x4cf2ec
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f24], eax
push 0x4cf2fc
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f28], eax
push 0x4cf30c
mov eax, dword [0x574f4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f2c], eax
mov edx, 0x8000
mov eax, 0x4cf324
call fcn.00412ea0
mov dword [0x574f50], eax
cmp dword [0x574f50], 0
je 0x4cf295
push 0x4cf334
mov eax, dword [0x574f50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f30], eax
push 0x4cf350
mov eax, dword [0x574f50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f34], eax
push 0x4cf370
mov eax, dword [0x574f50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f38], eax
push 0x4cf38c
mov eax, dword [0x574f50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f3c], eax
push 0x4cf3a4
mov eax, dword [0x574f50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x574f40], eax
ret
call fcn.004cf03c
ret
Function at 0x4d1a58
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d1b80
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d1940
mov eax, dword [esi]
call fcn.004063c8
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c8034]
call fcn.004065a4
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402f38
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402f38
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004063c8
mov dword [ebp - 0xc], eax
mov eax, dword [0x579808]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004c9c28
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403750
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004063c8
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.004c9c04
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.004c9a1c
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004c9c20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1b87
lea eax, [ebp - 8]
mov edx, dword [0x4c8034]
call fcn.004066d0
ret

Function at 0x4dd9b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4dda30
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.0040bd8c
mov eax, dword [ebp - 8]
mov esi, dword [0x578e8c]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x4dda11
mov edx, eax
dec edx
mov eax, ebx
call fcn.004054b0
jmp 0x4dda1a
mov eax, ebx
xor edx, edx
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dda37
lea eax, [ebp - 8]
call fcn.00404e48
ret
Function at 0x4f0e54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4f0eae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004f0e48
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ee89c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004ee4b8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0eb5
lea eax, [ebp - 4]
call fcn.00404e48
ret
Function at 0x504dcc
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.00504d38
mov esi, eax
mov eax, ebx
call fcn.00403f38
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5051e4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x505291
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1dc]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50527b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x505251
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00405040
inc ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x50523f
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 0xc], 0
je 0x505275
mov eax, dword [ebp - 0xc]
mov edx, 0x5052a8
call fcn.00405270
jne 0x505279
xor ebx, ebx
jmp 0x50527b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505298
lea eax, [ebp - 0xc]
call fcn.00404e48
ret

Function at 0x5052b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x505320
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x505311
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x505350
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5052fe
cmp byte [esp + 4], 1
sete bl
jmp 0x505305
call fcn.005051e4
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x505318
call fcn.005051e4
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret
Function at 0x505748
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405314
xor eax, eax
push ebp
push 0x505809
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x505820
call fcn.00405468
test eax, eax
jne 0x505790
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x50582c
call fcn.00405170
test bl, bl
je 0x5057cf
lea edx, [ebp - 8]
mov eax, 0x50583c
call fcn.005053c8
cmp dword [ebp - 8], 0
je 0x5057cf
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
mov eax, dword [ebp - 8]
call fcn.00405324
push eax
push 0x505844
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x5057ee
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
push 0x505844
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505810
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e6c
ret

Function at 0x50584c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x505902
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040d254
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00411c70
mov eax, dword [ebx]
call fcn.00505910
test al, al
jne 0x5058e4
lea edx, [ebp - 0x114]
mov eax, dword [0x579590]
mov eax, dword [eax]
call fcn.004c5528
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040ca80
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.00411c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505909
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404e6c
ret

Function at 0x505910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405324
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x505929
test al, 0x10
jne 0x50592d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x505e84
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405314
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x50600b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x506028
call fcn.00405468
test eax, eax
jne 0x505ecf
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x506034
call fcn.00405170
mov eax, esi
mov edx, 0x3c
call fcn.00506e8c
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402bd4
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402bd4
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402bd4
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402bd4
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402bd4
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402bd4
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405124
push eax
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x505fc5
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00405040
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00405040
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00405040
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00405040
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00405040
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00405040
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 4]
call fcn.00402c04
mov eax, dword [esi + 0x10]
call fcn.00402c04
mov eax, dword [esi + 0x1c]
call fcn.00402c04
mov eax, dword [esi + 0x24]
call fcn.00402c04
mov eax, dword [esi + 0x2c]
call fcn.00402c04
mov eax, dword [esi + 0x34]
call fcn.00402c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506012
lea eax, [ebp - 4]
call fcn.00404e48
ret
Function at 0x506c68
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00405324
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x506d22
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x506d2c]
fnstsw ax
sahf
je 0x506ccc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.00506c14
fld qword [ebp + 8]
fcomp dword [0x506d2c]
fnstsw ax
sahf
je 0x506ce8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00506c14
fld qword [ebp + 0x10]
fcomp dword [0x506d2c]
fnstsw ax
sahf
je 0x506d04
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.00506c14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x506d6c
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00405324
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x506dc7
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00506d30
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x506dd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x506e57
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x506e57
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x506e57
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x506e57
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x506e57
xor edx, edx
push ebp
push 0x506e4d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0042484c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506e57
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4