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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4ecdec
cmp dword [esi + 4], 0
je 0x4ece19
test byte [ebx + 0x55], 1
jne 0x4ece0b
mov eax, ebx
call fcn.004eba1c
test eax, eax
jne 0x4ece0b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4ecf29
mov edx, esi
mov eax, ebx
call fcn.004ec8f0
jmp 0x4ecf29
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ecf22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004eec48
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004e96b8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004ecdd0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004eec48
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecf29
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f34f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x54a7f0]
cmp byte [eax + 0xc], 0
je 0x4f3661
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f365a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.005607a4], 0
jne 0x4f3548
push 0x4f3668
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
push 0x4f3670
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.005607a4], eax
cmp dword [0x546094], 0
jne 0x4f3643
push 0x4f3680
call sub.kernel32.dll_LoadLibraryA
mov dword [0x546094], eax
cmp dword [0x546094], 0
je 0x4f3643
push 0x4f368c
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607a8], eax
push 0x4f369c
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607ac], eax
push 0x4f36b0
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607b0], eax
push 0x4f36c8
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607b4], eax
push 0x4f36e0
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607b8], eax
push 0x4f36f4
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607bc], eax
push 0x4f370c
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607c0], eax
push 0x4f3724
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607c4], eax
push 0x4f3740
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.005607c8], eax
push 0x4f374c
mov eax, dword [0x546094]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x5607cc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3661
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f9f9c
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 0x4fa074
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5607e0], 0
jne 0x4fa058
lea eax, [ebp - 4]
mov edx, 0x4fa08c
call fcn.0046b858
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0046bc70
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4fa058
mov eax, ebx
call fcn.00469a78
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4fa051
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 0x4fa03b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4fa09c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4fa03b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x5607e0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa058
mov eax, dword [ebp - 0xc]
call fcn.00469a98
ret
mov ebx, dword [0x5607e0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa07b
lea eax, [ebp - 4]
call fcn.0046b7c0
ret

Function at 0x50876c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x560804], 0
jne 0x50878f
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x5086e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x560804], eax
ret

Function at 0x50a530
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 0x50a5a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x50a576
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0046b9b0
jmp 0x50a57d
mov eax, ebx
call fcn.0046b7c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a5a9
cmp dword [ebp - 8], 0
je 0x50a599
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 0x50a5b0
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 0x50a652
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x50a625
mov edx, ebx
mov eax, dword [0x4c678c]
call fcn.004caf84
test al, al
je 0x50a615
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.004cae94
call fcn.0046b4cc
jmp 0x50a659
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x50a5e0
mov ecx, dword [0x54ac60]
mov dl, 1
mov eax, dword [0x4584cc]
call fcn.0045d2fc
call fcn.0046b420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a659
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 0x50a660
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 0x50a6b8
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 0x50a6bf
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x50a6c8
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 0x50a71d
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 0x50a724
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x50a794
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 0x50a809
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050a46c
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.004caf58
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 0x50a7f3
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 0x50a810
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x50a818
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 0x50a88d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050a46c
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 0x50a877
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 0x50a894
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x51024c
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 0x510268
call fcn.0051189c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x510284
test bl, 1
je 0x510284
call fcn.00515850
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x510468
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.00511438
test byte [ebp + 0xd], 0xc0
jne 0x51048c
mov eax, dword [0x547174]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x510499
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x5104c6
je 0x5104d8
sub ecx, 0x100
je 0x5104e6
sub ecx, 0x100
je 0x5104ed
sub ecx, 0x100
je 0x5104df
jmp 0x5104f4
sub ecx, 0x600
je 0x5104ed
sub ecx, 0x100
je 0x5104d8
jmp 0x5104f4
mov edi, 1
jmp 0x5104f9
mov edi, 2
jmp 0x5104f9
mov edi, 4
jmp 0x5104f9
mov edi, 5
jmp 0x5104f9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x510520
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x546bec]
test al, 0x80
je 0x510519
mov ebx, 0x80
jmp 0x510532
mov ebx, 1
jmp 0x510532
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x510532
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x510544
je 0x51054d
dec eax
je 0x510556
jmp 0x51055f
mov dword [ebp - 4], 0x80000000
jmp 0x51056e
mov dword [ebp - 4], 0x40000000
jmp 0x51056e
mov dword [ebp - 4], 0xc0000000
jmp 0x51056e
push 1
call fcn.00511830
pop ecx
mov ebx, eax
jmp 0x51065e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x51058a
sub eax, 0x10
je 0x510591
sub eax, 0x10
je 0x51059a
sub eax, 0x10
je 0x5105a3
jmp 0x5105a3
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x5105aa
mov dword [ebp - 8], 1
jmp 0x5105aa
mov dword [ebp - 8], 2
jmp 0x5105aa
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 0x510617
call sub.kernel32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x51060c
test byte [ebp + 0xd], 1
je 0x510607
mov ebx, 0x50
jmp 0x51060c
mov ebx, 2
push ebx
call fcn.00511830
pop ecx
mov ebx, eax
jmp 0x51065e
mov edi, esi
push edi
call fcn.005103cc
pop ecx
test eax, eax
je 0x51062b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x510637
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00511558
add esp, 8
mov ebx, eax
inc eax
jne 0x51065e
push 4
call fcn.00511830
pop ecx
push esi
call sub.kernel32.dll_CloseHandle
call fcn.0051146c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510afc
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
dec eax
je 0x510b18
call fcn.0051189c
jmp 0x510b87
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x510b34
call fcn.0051189c
jmp 0x510b87
cmp dword [0x561088], 1
je 0x510b85
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.005156d0
pop ecx
cmp al, 0x41
jl 0x510b85
cmp al, 0x5a
jg 0x510b85
cmp byte [ebp - 0x107], 0x3a
jne 0x510b85
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA
dec eax
je 0x510b85
call fcn.0051189c
jmp 0x510b87
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x510b8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x510bbb
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x510bc5
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x510bd0
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x510c36
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA
dec eax
je 0x510c36
call fcn.0051189c
jmp 0x510c71
push edi
call sub.kernel32.dll_SetCurrentDirectoryA
dec eax
je 0x510c46
call fcn.0051189c
jmp 0x510c71
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x510c6c
push edi
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x510c6a
cmp ebx, 1
je 0x510c6a
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x510c57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5157e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
test eax, eax
je 0x51584a
call fcn.00515798
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0050f014
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0050f014
pop ecx
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x5158c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x548180], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x5159a2
cmp dword [0x54817c], 0
jne 0x5159a2
cmp dword [0x548388], 0
je 0x51595c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00515678
add esp, 8
mov ebx, eax
test eax, eax
jne 0x515942
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00515678
add esp, 8
mov ebx, eax
test eax, eax
jne 0x515942
lea ebx, [ebp - 0x84]
jmp 0x515943
inc ebx
call fcn.00515884
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.user32.dll_MessageBoxA
jmp 0x5159dd
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x548184
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0050f014
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x548187
push ebx
call sub.kernel32.dll_WriteFile
jmp 0x5159dd
cmp dword [0x54817c], 0
je 0x5159bc
cmp dword [0x54817c], 0xffffffff
je 0x5159dd
push esi
call dword [0x54817c]
pop ecx
mov eax, dword [0x548180]
test eax, eax
je 0x5159dd
cmp dword [0x548180], 0xffffffff
je 0x5159dd
cmp byte [eax], 0
je 0x5159dd
push esi
push eax
call fcn.005157e8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516264
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5610a0], 0
jne 0x5162e5
cmp dword [0x5610c0], 0
jne 0x516294
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x5610c0], eax
test eax, eax
jne 0x516294
push 0x5482c0
call fcn.005159f4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5610c0]
jmp 0x5162a8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0050f014
pop ecx
mov edi, eax
test eax, eax
jne 0x5162a0
lea edi, [ebp + 1]
push edi
call fcn.0050e8f8
pop ecx
mov ebx, eax
mov dword [0x5610a4], ebx
test ebx, ebx
jne 0x5162d2
xor eax, eax
jmp 0x5163a8
push edi
mov edx, dword [0x5610c0]
push edx
push ebx
call fcn.0050eec4
add esp, 0xc
jmp 0x516305
xor esi, esi
mov ebx, dword [0x5610a0]
jmp 0x5162ff
push eax
call fcn.0050f014
pop ecx
test eax, eax
jne 0x5162fb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5162ef
lea ebx, [esi + 4]
push 4
mov dword [0x5610a8], ebx
inc ebx
push ebx
call fcn.0050e0b4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x516328
xor eax, eax
jmp 0x5163a8
cmp dword [0x5610a0], 0
jne 0x516359
xor esi, esi
mov ebx, dword [0x5610a4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x51634a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0050f014
pop ecx
mov edi, eax
test eax, eax
jne 0x516340
jmp 0x51638a
xor esi, esi
mov ebx, dword [0x5610a0]
mov eax, dword [esp]
mov edi, eax
jmp 0x516384
push eax
call fcn.0050f014
pop ecx
test eax, eax
je 0x516379
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x51637d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x516368
mov eax, dword [0x5610a0]
test eax, eax
je 0x51639a
push eax
call fcn.0050e908
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5610a0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x51ce48
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x51ce76
mov eax, ebx
call fcn.0051d900
cmp dword [ebx + 0x3c], 0
je 0x51ce6f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x51cee7
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x51ced9
cmp dword [ebx + 8], 0
je 0x51ce98
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x51ceaa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x51ced9
cmp dword [ebx + 8], 0
je 0x51ce8b
cmp eax, 3
je 0x51cebd
dec eax
jne 0x51ce8b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x51ce8b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x51ce8b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x51cf05
cmp dword [ebx + 0x10], 0xcc
je 0x51cf05
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0051cf10
pop ebx
ret