joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e484c
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 0x4e4924
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x59ced0], 0
jne 0x4e4908
lea eax, [ebp - 4]
mov edx, 0x4e493c
call fcn.00523e00
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00524218
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4e4908
mov eax, ebx
call fcn.00521fec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e4901
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 0x4e48eb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4e494c
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4e48eb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x59ced0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4908
mov eax, dword [ebp - 0xc]
call fcn.0052200c
ret
mov ebx, dword [0x59ced0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e492b
lea eax, [ebp - 4]
call fcn.00523d68
ret

Function at 0x4f7ff8
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x59cef4], 0
jne 0x4f801b
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4f7f6c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x59cef4], eax
ret

Function at 0x4f9dc4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f9e36
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4f9e0a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00523f58
jmp 0x4f9e11
mov eax, ebx
call fcn.00523d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9e3d
cmp dword [ebp - 8], 0
je 0x4f9e2d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4f9e44
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4f9ee6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4f9eb9
mov edx, ebx
mov eax, dword [0x4ae02c]
call fcn.004b2778
test al, al
je 0x4f9ea9
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004b2688
call fcn.005238b0
jmp 0x4f9eed
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4f9e74
mov ecx, dword [0x59c3c4]
mov dl, 1
mov eax, dword [0x50faa0]
call fcn.00514854
call fcn.00523804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9eed
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4f9ef4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4f9f4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9f53
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4f9f5c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4f9fb1
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9fb8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4fa028
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fa09d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f9d00
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004b274c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4fa087
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa0a4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4fa0ac
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fa121
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f9d00
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4fa10b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa128
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x50c12c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0050bfb0
dec esi
jne 0x50c14e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x50d278
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x59d030
cmp dword [edi], 0
jne 0x50d2f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x59d02c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x590b40
mov ecx, 2
call fcn.00522250
mov edx, 0x50d250
lea eax, [esi + 5]
call fcn.0050d270
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0050d270
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x50d2c9
mov dword [0x59d02c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5111b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00524218
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5111d1
test al, 0x10
jne 0x5111d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x513fec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x514025
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00523e58
jmp 0x51402e
mov eax, ebx
mov edx, esi
call fcn.00523dbc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x514038
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x514059
mov al, byte [esp]
jmp 0x51405b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5146e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x514558
mov eax, dword [0x59c340]
cmp byte [eax], 0
je 0x51474d
mov eax, dword [0x59c344]
call fcn.00522738
call fcn.005221bc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0051161c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x514794
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x514783
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x59c1f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x59c3ec]
call fcn.005254f4
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x5155b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x515618
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00523fd0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00510d30
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51561f
lea eax, [ebp - 0xc]
call fcn.00523d68
ret
Function at 0x52237c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00523d68
test esi, esi
jne 0x5223b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00523e58
jmp 0x5223d0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00522290
mov edi, eax
test esi, esi
je 0x5223d0
cmp dword [ebx], 0
je 0x5223d0
dec esi
jmp 0x5223b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x522ea8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x591080]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x522f40
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x522f20
xor eax, eax
push ebp
push 0x522f19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x522f5c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522f20
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x591080]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x591080], ax
mov esp, ebp
pop ebp
ret

Function at 0x523b68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59d3ac], 0
je 0x523bc9
cmp word [0x59d580], 0xd7b2
jne 0x523b91
cmp dword [0x59d588], 0
jbe 0x523b91
mov eax, 0x59d57c
call dword [0x59d598]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x523bf0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x591090], 0
jne 0x523be5
push 0
push 0x5910e8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x523d1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00521fec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59d3ad], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x523ce4
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x5256e8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x525918
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x52576b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x525918
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x52576b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x525934
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x5257f4
xor eax, eax
push ebp
push 0x5257ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00525530
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x5257d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x525954
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x5257d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5257f4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x52590e
cmp byte [ebp - 0xd], 0
jne 0x52583b
cmp byte [ebp - 0x12], 0
je 0x52590e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x525854
dec ebx
cmp byte [ebx], 0x2e
je 0x525863
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x525853
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x52590e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x5258a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x52590e
cmp byte [ebp - 0xd], 0
je 0x52590e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x52590e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5260c0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x59d920], 1
jae 0x526146
mov byte [0x59107c], 2
mov dword [0x59d370], 0x55e86e
mov dword [0x59d374], 0x55e886
mov byte [0x59d3ae], 2
mov dword [0x59d35c], 0x524d18
call fcn.00522e78
test al, al
je 0x526103
call fcn.00522ea8
call fcn.00522f6c
mov word [0x59d3b4], 0xd7b0
mov word [0x59d580], 0xd7b0
mov word [0x59d74c], 0xd7b0
call fcn.00524bf8
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x59d3a0], eax
call fcn.00520c88
mov dword [0x59d39c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x59d394], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x529348
call fcn.0052ae6c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x529364
test bl, 1
je 0x529364
call fcn.005321c4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x529548
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0052aa08
test byte [ebp + 0xd], 0xc0
jne 0x52956c
mov eax, dword [0x593318]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x529579
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x5295a6
je 0x5295b8
sub ecx, 0x100
je 0x5295c6
sub ecx, 0x100
je 0x5295cd
sub ecx, 0x100
je 0x5295bf
jmp 0x5295d4
sub ecx, 0x600
je 0x5295cd
sub ecx, 0x100
je 0x5295b8
jmp 0x5295d4
mov edi, 1
jmp 0x5295d9
mov edi, 2
jmp 0x5295d9
mov edi, 4
jmp 0x5295d9
mov edi, 5
jmp 0x5295d9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x529600
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x592d90]
test al, 0x80
je 0x5295f9
mov ebx, 0x80
jmp 0x529612
mov ebx, 1
jmp 0x529612
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x529612
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x529624
je 0x52962d
dec eax
je 0x529636
jmp 0x52963f
mov dword [ebp - 4], SysStringLen
jmp 0x52964e
mov dword [ebp - 4], 0x40000000
jmp 0x52964e
mov dword [ebp - 4], 0xc0000000
jmp 0x52964e
push 1
call fcn.0052ae00
pop ecx
mov ebx, eax
jmp 0x52973e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x52966a
sub eax, 0x10
je 0x529671
sub eax, 0x10
je 0x52967a
sub eax, 0x10
je 0x529683
jmp 0x529683
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x52968a
mov dword [ebp - 8], 1
jmp 0x52968a
mov dword [ebp - 8], 2
jmp 0x52968a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x5296f7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x5296ec
test byte [ebp + 0xd], 1
je 0x5296e7
mov ebx, 0x50
jmp 0x5296ec
mov ebx, 2
push ebx
call fcn.0052ae00
pop ecx
mov ebx, eax
jmp 0x52973e
mov edi, esi
push edi
call fcn.005294ac
pop ecx
test eax, eax
je 0x52970b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x529717
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0052ab28
add esp, 8
mov ebx, eax
inc eax
jne 0x52973e
push 4
call fcn.0052ae00
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0052aa3c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x529900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0052aa08
test byte [ebp + 0xd], 0xc0
jne 0x529924
mov eax, dword [0x593318]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x529931
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x52995e
je 0x529970
sub ecx, 0x100
je 0x52997e
sub ecx, 0x100
je 0x529985
sub ecx, 0x100
je 0x529977
jmp 0x52998c
sub ecx, 0x600
je 0x529985
sub ecx, 0x100
je 0x529970
jmp 0x52998c
mov edi, 1
jmp 0x529991
mov edi, 2
jmp 0x529991
mov edi, 4
jmp 0x529991
mov edi, 5
jmp 0x529991
mov edi, 3
test byte [ebp + 0xd], 1
je 0x5299b8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x592d90]
test al, 0x80
je 0x5299b1
mov ebx, 0x80
jmp 0x5299ca
mov ebx, 1
jmp 0x5299ca
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5299ca
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x5299dc
je 0x5299e5
dec eax
je 0x5299ee
jmp 0x5299f7
mov dword [ebp - 4], SysStringLen
jmp 0x529a06
mov dword [ebp - 4], 0x40000000
jmp 0x529a06
mov dword [ebp - 4], 0xc0000000
jmp 0x529a06
push 1
call fcn.0052ae00
pop ecx
mov ebx, eax
jmp 0x529af6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x529a22
sub eax, 0x10
je 0x529a29
sub eax, 0x10
je 0x529a32
sub eax, 0x10
je 0x529a3b
jmp 0x529a3b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x529a42
mov dword [ebp - 8], 1
jmp 0x529a42
mov dword [ebp - 8], 2
jmp 0x529a42
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x529aaf
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x529aa4
test byte [ebp + 0xd], 1
je 0x529a9f
mov ebx, 0x50
jmp 0x529aa4
mov ebx, 2
push ebx
call fcn.0052ae00
pop ecx
mov ebx, eax
jmp 0x529af6
mov edi, esi
push edi
call fcn.005294ac
pop ecx
test eax, eax
je 0x529ac3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x529acf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0052ab28
add esp, 8
mov ebx, eax
inc eax
jne 0x529af6
push 4
call fcn.0052ae00
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0052aa3c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret