joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e6c4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e8], 0
je 0x45e6e5
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x45e71a
mov eax, dword [ebp - 4]
test byte [eax + 0x45], 1
jne 0x45e70a
mov eax, dword [ebp - 4]
call fcn.0045d17c
test eax, eax
jne 0x45e70a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45e844
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045e240
jmp 0x45e844
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x45e83d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.004610f4
push eax
call sub.USER32.DLL_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0045a7d8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045e6c4
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.004610f4
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e844
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.GDI32.DLL_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x466588
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x4bf088]
cmp byte [eax + 8], 0
je 0x4666fa
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4666f3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bf46c], 0
jne 0x4665e1
push 0x466700
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 4], eax
push 0x466708
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf46c], eax
cmp dword [0x4b8b34], 0
jne 0x4666dc
push 0x466718
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4b8b34], eax
cmp dword [0x4b8b34], 0
je 0x4666dc
push 0x466724
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf470], eax
push 0x466734
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf474], eax
push 0x466748
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf478], eax
push 0x466760
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf47c], eax
push 0x466778
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf480], eax
push 0x46678c
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf484], eax
push 0x4667a4
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf488], eax
push 0x4667bc
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf48c], eax
push 0x4667d8
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf490], eax
push 0x4667e4
mov eax, dword [0x4b8b34]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bf494], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4666fa
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x46d024
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46d109
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bf4ac], 0
jne 0x46d0eb
lea eax, [ebp - 8]
mov edx, 0x46d120
call fcn.004994ac
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00499858
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46d0eb
mov eax, dword [ebp - 0xc]
call fcn.004982b8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46d0e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00499858
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x46d0ce
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x46d130
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x46d0ce
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [0x4bf4ac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d0eb
mov eax, dword [ebp - 0x14]
call fcn.004982d0
ret
mov eax, dword [0x4bf4ac]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d110
lea eax, [ebp - 8]
call fcn.00499414
ret

Function at 0x4824b4
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4bf4d0], 0
jne 0x4824da
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x482414
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4bf4d0], eax
pop ebp
ret

Function at 0x482f7c
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x482fee
mov eax, dword [0x4bee98]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x482fc0
mov eax, dword [ebp - 4]
push eax
push 0x482ff8
call fcn.00443394
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x482fe7
mov ecx, dword [0x4bf27c]
mov dl, 1
mov eax, dword [0x491a48]
call fcn.00494264
call fcn.004990dc
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
inc dword [eax + 4]
pop ecx
pop ebp
ret
Function at 0x483030
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4830a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x483077
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004995cc
jmp 0x48307f
mov eax, dword [ebp - 8]
call fcn.00499414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4830ab
cmp dword [ebp - 0xc], 0
je 0x48309b
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.00482f38
ret

Function at 0x4830b0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
xor eax, eax
push ebp
push 0x483169
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
je 0x48313c
mov dx, word [ebp - 0xe]
mov eax, dword [0x436400]
call fcn.0043b2d8
test al, al
je 0x483127
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.0043b1b8
call fcn.0049917c
jmp 0x483170
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
jne 0x4830e4
mov ecx, dword [0x4bf280]
mov dl, 1
mov eax, dword [0x491a48]
call fcn.00494264
call fcn.004990dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483170
mov eax, dword [ebp - 4]
call fcn.00482f38
ret
mov esp, ebp
pop ebp
ret

Function at 0x483174
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
xor eax, eax
push ebp
push 0x4831d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4831db
mov eax, dword [ebp - 4]
call fcn.00482f38
ret
Function at 0x4831e0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
xor eax, eax
push ebp
push 0x483240
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 3
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483247
mov eax, dword [ebp - 4]
call fcn.00482f38
ret

Function at 0x4832c4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
xor eax, eax
push ebp
push 0x48333a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f0c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.0043b2a0
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x483324
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483341
mov eax, dword [ebp - 4]
call fcn.00482f38
ret

Function at 0x483348
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f7c
xor eax, eax
push ebp
push 0x4833bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f0c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x4833a9
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4833c6
mov eax, dword [ebp - 4]
call fcn.00482f38
ret
Function at 0x488d58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x488d8e
push ebp
call fcn.00488ce8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x488db4
push ebp
call fcn.00488ce8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00488974
mov esp, ebp
pop ebp
ret 4

Function at 0x492c78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x492ca9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x492cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x492ce1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4938b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4938f8
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004994fc
jmp 0x493903
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00499468
mov esp, ebp
pop ebp
ret 4
Function at 0x49390c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x49393a
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x493940
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x4987dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b8fb0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x498874
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x498854
xor eax, eax
push ebp
push 0x49884d
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 0x498890
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 0x498854
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4b8fb0]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b8fb0], ax
mov esp, ebp
pop ebp
ret
Function at 0x49ada0
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 0xf003f
push 0
push 0x49af5c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x49ae01
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x49af78
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49ae73
xor eax, eax
push ebp
push 0x49ae6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0049abf8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x49ae55
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x49af98
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ae73
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
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 0x49af54
cmp byte [ebp - 0xd], 0
jne 0x49aeb5
cmp byte [ebp - 0x12], 0
je 0x49af54
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x49aece
dec ebx
cmp byte [ebx], 0x2e
je 0x49aedd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x49aecd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x49af54
inc ebx
cmp byte [ebp - 0x12], 0
je 0x49af0a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49af54
cmp byte [ebp - 0xd], 0
je 0x49af54
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49af54
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
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 0x49b348
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x49b430
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4bfb14], 1
jae 0x49b422
xor eax, eax
mov dword [0x4bf720], eax
xor eax, eax
mov dword [0x4bf728], eax
xor eax, eax
mov dword [0x4bf72c], eax
mov byte [0x4bf732], 2
mov byte [0x4bf733], 2
mov byte [0x4bf734], 3
mov word [0x4bfadc], 0
mov word [0x4bfaec], 1
mov word [0x4bfafc], 0xa
mov dword [0x4bfb04], 0x80020004
mov dword [0x4bfad0], 0x49a130
mov dword [0x4bfad4], 0x49a128
mov dword [0x4bfad8], 0x49a130
call fcn.004987ac
test al, al
je 0x49b3e1
call fcn.004987dc
call fcn.004988a0
mov eax, 0x4bf738
mov edx, 0x49b43c
call fcn.00495fe6
mov eax, 0x4bf904
mov edx, 0x49b43c
call fcn.00495fe6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4bf718], eax
call fcn.00496f74
mov dword [0x4bf714], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4bf70c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b437
ret

Function at 0x49d1d8
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 0x49d1f4
call fcn.0049e698
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x49d210
test bl, 1
je 0x49d210
call fcn.004a5098
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49d3f4
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.0049e234
test byte [ebp + 0xd], 0xc0
jne 0x49d418
mov eax, dword [0x4b9dd4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x49d425
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x49d452
je 0x49d464
sub ecx, 0x100
je 0x49d472
sub ecx, 0x100
je 0x49d479
sub ecx, 0x100
je 0x49d46b
jmp 0x49d480
sub ecx, 0x600
je 0x49d479
sub ecx, 0x100
je 0x49d464
jmp 0x49d480
mov edi, 1
jmp 0x49d485
mov edi, 2
jmp 0x49d485
mov edi, 4
jmp 0x49d485
mov edi, 5
jmp 0x49d485
mov edi, 3
test byte [ebp + 0xd], 1
je 0x49d4ac
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4b984c]
test al, 0x80
je 0x49d4a5
mov ebx, 0x80
jmp 0x49d4be
mov ebx, 1
jmp 0x49d4be
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x49d4be
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x49d4d0
je 0x49d4d9
dec eax
je 0x49d4e2
jmp 0x49d4eb
mov dword [ebp - 4], 0x80000000
jmp 0x49d4fa
mov dword [ebp - 4], 0x40000000
jmp 0x49d4fa
mov dword [ebp - 4], 0xc0000000
jmp 0x49d4fa
push 1
call fcn.0049e62c
pop ecx
mov ebx, eax
jmp 0x49d5e6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49d516
sub eax, 0x10
je 0x49d51d
sub eax, 0x10
je 0x49d526
sub eax, 0x10
je 0x49d52f
jmp 0x49d52f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49d536
mov dword [ebp - 8], 1
jmp 0x49d536
mov dword [ebp - 8], 2
jmp 0x49d536
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 0x49d59f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x49d594
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x49d594
add ebx, 0xffffffb2
push ebx
call fcn.0049e62c
pop ecx
mov ebx, eax
jmp 0x49d5e6
mov edi, esi
push edi
call fcn.0049d358
pop ecx
test eax, eax
je 0x49d5b3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x49d5bf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0049e354
add esp, 8
mov ebx, eax
inc eax
jne 0x49d5e6
push 4
call fcn.0049e62c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0049e268
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret