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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4806d4
mov eax, esi
call fcn.0046ed84
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4806d4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4806d4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x480813
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x480714
cmp eax, 0x108
ja 0x480714
mov eax, esi
call fcn.0046ed84
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48080a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x480813
jmp 0x48080a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4807f3
cmp eax, 0x20a
ja 0x4807f3
test byte [esi + 0x50], 0x80
jne 0x480746
sub eax, 0x203
je 0x480743
sub eax, 3
je 0x480743
sub eax, 3
jne 0x480746
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48075a
dec eax
je 0x48076f
dec eax
je 0x48078c
dec eax
je 0x48076f
jmp 0x480793
mov ecx, ebx
mov eax, dword [0x4db094]
mov eax, dword [eax]
mov edx, esi
call fcn.004787f8
jmp 0x48080a
cmp byte [esi + 0x5d], 1
jne 0x480785
mov eax, esi
mov si, 0xffed
call fcn.004bf34c
jmp 0x480813
or word [esi + 0x54], 1
jmp 0x48080a
and word [esi + 0x54], 0xfffe
jmp 0x48080a
mov eax, dword [0x4dbd58]
cmp byte [eax + 0x20], 0
je 0x48080a
mov eax, dword [0x4dbd58]
cmp dword [eax + 0x1c], 0
je 0x48080a
mov eax, dword [ebx]
mov edx, dword [0x4dbd58]
cmp eax, dword [edx + 0x1c]
jne 0x48080a
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0046ecc8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004bf34c
jmp 0x480813
cmp eax, 0xb00b
jne 0x48080a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0047ef74
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483d10
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 0x483d2c
cmp dword [esi + 4], 0
je 0x483d59
test byte [ebx + 0x55], 1
jne 0x483d4b
mov eax, ebx
call fcn.00482968
test eax, eax
jne 0x483d4b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x483e69
mov edx, esi
mov eax, ebx
call fcn.00483830
jmp 0x483e69
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 0x483e62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00485b18
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.004805bc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00483d10
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.00485b18
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e69
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 0x48a380
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4db300]
cmp byte [eax + 0xc], 0
je 0x48a4ed
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a4e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dbdac], 0
jne 0x48a3d4
push 0x48a4f4
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x48a4fc
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdac], eax
cmp dword [0x4d6db8], 0
jne 0x48a4cf
push 0x48a50c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4d6db8], eax
cmp dword [0x4d6db8], 0
je 0x48a4cf
push 0x48a518
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdb0], eax
push 0x48a528
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdb4], eax
push 0x48a53c
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdb8], eax
push 0x48a554
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdbc], eax
push 0x48a56c
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdc0], eax
push 0x48a580
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdc4], eax
push 0x48a598
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdc8], eax
push 0x48a5b0
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdcc], eax
push 0x48a5cc
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdd0], eax
push 0x48a5d8
mov eax, dword [0x4d6db8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4dbdd4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a4ed
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x48dc68
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 0x48dd40
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dbde8], 0
jne 0x48dd24
lea eax, [ebp - 4]
mov edx, 0x48dd58
call fcn.004bfd50
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004c0168
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48dd24
mov eax, ebx
call fcn.004be0cc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48dd1d
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 0x48dd07
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48dd68
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x48dd07
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4dbde8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dd24
mov eax, dword [ebp - 0xc]
call fcn.004be0ec
ret
mov ebx, dword [0x4dbde8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dd47
lea eax, [ebp - 4]
call fcn.004bfcb8
ret

Function at 0x4ab2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4dbf44
cmp dword [edi], 0
jne 0x4ab36c
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4dbf40]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d6fac
mov ecx, 2
call fcn.004be330
mov edx, 0x4ab2c8
lea eax, [esi + 5]
call fcn.004ab2e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004ab2e8
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 0x4ab341
mov dword [0x4dbf40], 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 0x4aca64
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004ac658
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004c0168
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4acac2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4db2b8]
mov dl, 1
mov eax, dword [0x4ac550]
call fcn.004b1dec
call fcn.004bf8fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4acacc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004c0168
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4acb24
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4db2b0]
mov dl, 1
mov eax, dword [0x4ac550]
call fcn.004b1dec
call fcn.004bf8fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004ac688
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ad5f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x49d0d8]
call fcn.004c0694
xor eax, eax
push ebp
push 0x4ad734
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d6ff4], 0
jne 0x4ad643
mov ecx, dword [0x4db2e4]
mov dl, 1
mov eax, dword [0x4ae6e4]
call fcn.004b1db0
call fcn.004bf8fc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004be9ec
mov eax, ebx
call fcn.004c0504
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4ad744
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004c1a14
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004c0514
test eax, eax
jle 0x4ad6db
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4ad6d4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004bff38
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004bff20
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004af5f0
test eax, eax
jne 0x4ad6d4
mov ebx, 0x15
jmp 0x4ad6e0
mov ebx, 0x10
jmp 0x4ad6e0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4d6ff4]
call fcn.004ad548
mov eax, dword [ebp - 8]
call fcn.004ad548
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004c1a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad73b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004bfcdc
lea eax, [ebp - 0x10]
mov edx, dword [0x49d0d8]
call fcn.004c0764
ret
Function at 0x4b153c
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 0x4b1575
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004bfda8
jmp 0x4b157e
mov eax, ebx
mov edx, esi
call fcn.004bfd0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b1588
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 0x4b15a9
mov al, byte [esp]
jmp 0x4b15ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b2880
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 0x4b28e4
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.004bff20
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004af958
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b28eb
lea eax, [ebp - 0xc]
call fcn.004bfcb8
ret

Function at 0x4be45c
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.004bfcb8
test esi, esi
jne 0x4be492
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.004bfda8
jmp 0x4be4b0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004be370
mov edi, eax
test esi, esi
je 0x4be4b0
cmp dword [ebx], 0
je 0x4be4b0
dec esi
jmp 0x4be499
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4befc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d7514]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4bf058
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4bf038
xor eax, eax
push ebp
push 0x4bf031
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 0x4bf074
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 0x4bf038
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4d7514]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d7514], ax
mov esp, ebp
pop ebp
ret
Function at 0x4bfb3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc284], 0
je 0x4bfb9d
cmp word [0x4dc458], 0xd7b2
jne 0x4bfb65
cmp dword [0x4dc460], 0
jbe 0x4bfb65
mov eax, 0x4dc454
call dword [0x4dc470]
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 0x4bfbc4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d7524], 0
jne 0x4bfbb9
push 0
push 0x4d757c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4c1638
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 0x4c1868
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c16bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c1868
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c16bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c1884
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c1744
xor eax, eax
push ebp
push 0x4c173d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004c1480
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 0x4c1722
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4c18a4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c1722
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 0x4c1744
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 0x4c185e
cmp byte [ebp - 0xd], 0
jne 0x4c178b
cmp byte [ebp - 0x12], 0
je 0x4c185e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4c17a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4c17b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4c17a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4c185e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4c17f0
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 0x4c185e
cmp byte [ebp - 0xd], 0
je 0x4c185e
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 0x4c185e
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 0x4c1fdc
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4dc7f8], 1
jae 0x4c2062
mov byte [0x4d7510], 2
mov dword [0x4dc248], 0x4cdf56
mov dword [0x4dc24c], 0x4cdf68
mov byte [0x4dc286], 2
mov dword [0x4dc234], 0x4c0c68
call fcn.004bef90
test al, al
je 0x4c201f
call fcn.004befc0
call fcn.004bf084
mov word [0x4dc28c], 0xd7b0
mov word [0x4dc458], 0xd7b0
mov word [0x4dc624], 0xd7b0
call fcn.004c0b38
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4dc278], eax
call fcn.004bcd68
mov dword [0x4dc274], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4dc26c], eax
ret

Function at 0x4c8040
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 0x4c80a2
call fcn.004c7ff0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c2c88
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.004c2c88
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 0x4c8120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d9358], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c81fa
cmp dword [0x4d9354], 0
jne 0x4c81fa
cmp dword [0x4d9538], 0
je 0x4c81b4
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.004c7ef0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c819a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c7ef0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c819a
lea ebx, [ebp - 0x84]
jmp 0x4c819b
inc ebx
call fcn.004c80dc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4c8235
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d935c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c2c88
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d935f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c8235
cmp dword [0x4d9354], 0
je 0x4c8214
cmp dword [0x4d9354], 0xffffffff
je 0x4c8235
push esi
call dword [0x4d9354]
pop ecx
mov eax, dword [0x4d9358]
test eax, eax
je 0x4c8235
cmp dword [0x4d9358], 0xffffffff
je 0x4c8235
cmp byte [eax], 0
je 0x4c8235
push esi
push eax
call fcn.004c8040
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1a8]
test ecx, ecx
jne 0x100025c2
mov edx, dword [ebp - 4]
add edx, 0xa4
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x100025b8
push str.c:DWGTOOLCommon
mov eax, dword [ebp - 4]
add eax, 0xa4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1a8], 1
mov eax, dword [ebp - 4]
add eax, 0xa4
mov esp, ebp
pop ebp
ret

Function at 0x100066c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x100066c9
xor ecx, ecx
jne 0x100066c9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000670e
mov eax, dword [ebp - 0xc]
jmp 0x10006764
cmp dword [ebp - 4], 1
je 0x10006721
cmp dword [ebp - 4], 2
je 0x10006721
mov eax, 0xd
jmp 0x10006764
cmp dword [ebp + 0xc], 0
je 0x1000675a
cmp dword [ebp - 8], 0
je 0x10006754
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 1
div ecx
test edx, edx
jne 0x1000674b
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movsx eax, byte [edx - 1]
test eax, eax
je 0x10006752
mov eax, 0xd
jmp 0x10006764
jmp 0x1000675a
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100067a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x100067a9
xor ecx, ecx
jne 0x100067a9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x100067ca
mov eax, 0xd
jmp 0x100067f6
xor eax, eax
jne 0x100067b1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc