joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4387b0
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 + 0x1f8], 0
je 0x4387d1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x438806
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x4387f6
mov eax, dword [ebp - 4]
call fcn.00436f38
test eax, eax
jne 0x4387f6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x438930
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00438184
jmp 0x438930
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 + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x438929
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0043af74
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.004342e4
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.004387b0
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 + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.0043af74
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438930
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 0x440b34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x48c7a8]
cmp byte [eax + 0xc], 0
je 0x440ca6
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x440c9f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48cb90], 0
jne 0x440b8d
push 0x440cac
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 4], eax
push 0x440cb4
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cb90], eax
cmp dword [0x488204], 0
jne 0x440c88
push 0x440cc4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x488204], eax
cmp dword [0x488204], 0
je 0x440c88
push 0x440cd0
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cb94], eax
push 0x440ce0
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cb98], eax
push 0x440cf4
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cb9c], eax
push 0x440d0c
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cba0], eax
push 0x440d24
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cba4], eax
push 0x440d38
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cba8], eax
push 0x440d50
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cbac], eax
push 0x440d68
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cbb0], eax
push 0x440d84
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cbb4], eax
push 0x440d90
mov eax, dword [0x488204]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48cbb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ca6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x44a5b4
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 0x44a5ea
push ebp
call fcn.0044a544
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 0x44a610
push ebp
call fcn.0044a544
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.0044a178
mov esp, ebp
pop ebp
ret 4
Function at 0x45157c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x48ccb8], 0
jne 0x451629
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [0x48ccb4]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x488258
mov ecx, 2
call fcn.00464b90
mov edx, 0x451538
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00451558
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.00451558
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x48ccb8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x48ccb8], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x4515e3
mov eax, dword [ebp - 8]
mov dword [0x48ccb4], eax
mov eax, dword [0x48ccb8]
mov dword [ebp - 4], eax
mov eax, dword [0x48ccb8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x48ccb8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4547f0
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 0x454821
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x454828
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 0x454859
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x454bbc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00466900
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x456640
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 0x456688
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00466540
jmp 0x456693
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004664a4
mov esp, ebp
pop ebp
ret 4

Function at 0x45669c
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 0x4566ca
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x4566d0
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x456e58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00456ca0
mov eax, dword [0x48c95c]
cmp byte [eax], 0
je 0x456ed8
mov eax, dword [0x48c960]
call fcn.00465098
call fcn.00464afc
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00454be4
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x456f1c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x456f0e
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x48c814]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48ca30]
call fcn.00467b9c
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
pop ebp
ret

Function at 0x457d44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457dae
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.004666b8
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00454670
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457db5
lea eax, [ebp - 0x14]
call fcn.00466450
ret
Function at 0x464cbc
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.00466450
test esi, esi
jne 0x464cf2
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.00466540
jmp 0x464d10
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00464bd0
mov edi, eax
test esi, esi
je 0x464d10
cmp dword [ebx], 0
je 0x464d10
dec esi
jmp 0x464cf9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x465774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488790]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46580c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4657ec
xor eax, eax
push ebp
push 0x4657e5
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 0x465828
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 0x4657ec
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x488790]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488790], ax
mov esp, ebp
pop ebp
ret

Function at 0x4662d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48cfdc], 0
je 0x466335
cmp word [0x48d1b0], 0xd7b2
jne 0x4662fd
cmp dword [0x48d1b8], 0
jbe 0x4662fd
mov eax, 0x48d1ac
call dword [0x48d1c8]
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 0x46635c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4887a0], 0
jne 0x466351
push 0
push 0x4887f8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x467d90
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 0x467fc0
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x467e13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x467fc0
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x467e13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x467fdc
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x467e9c
xor eax, eax
push ebp
push 0x467e95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00467bd8
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 0x467e7a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x467ffc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x467e7a
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 0x467e9c
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 0x467fb6
cmp byte [ebp - 0xd], 0
jne 0x467ee3
cmp byte [ebp - 0x12], 0
je 0x467fb6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x467efc
dec ebx
cmp byte [ebx], 0x2e
je 0x467f0b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x467efb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x467fb6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x467f48
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 0x467fb6
cmp byte [ebp - 0xd], 0
je 0x467fb6
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 0x467fb6
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 0x468734
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x48d550], 1
jae 0x4687ba
mov byte [0x48878c], 2
mov dword [0x48cfa0], 0x485f36
mov dword [0x48cfa4], 0x485f48
mov byte [0x48cfde], 2
mov dword [0x48cf8c], 0x4673c0
call fcn.00465744
test al, al
je 0x468777
call fcn.00465774
call fcn.00465838
mov word [0x48cfe4], 0xd7b0
mov word [0x48d1b0], 0xd7b0
mov word [0x48d37c], 0xd7b0
call fcn.004672a0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48cfd0], eax
call fcn.004635c8
mov dword [0x48cfcc], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48cfc4], eax
ret

Function at 0x46d0e0
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 0x46d142
call fcn.0046d090
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004693e0
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.004693e0
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 0x46d1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x48a3ec], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46d29a
cmp dword [0x48a3e8], 0
jne 0x46d29a
cmp dword [0x48a5cc], 0
je 0x46d254
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.0046cf90
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46d23a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0046cf90
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46d23a
lea ebx, [ebp - 0x84]
jmp 0x46d23b
inc ebx
call fcn.0046d17c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46d2d5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x48a3f0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004693e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x48a3f3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46d2d5
cmp dword [0x48a3e8], 0
je 0x46d2b4
cmp dword [0x48a3e8], 0xffffffff
je 0x46d2d5
push esi
call dword [0x48a3e8]
pop ecx
mov eax, dword [0x48a3ec]
test eax, eax
je 0x46d2d5
cmp dword [0x48a3ec], 0xffffffff
je 0x46d2d5
cmp byte [eax], 0
je 0x46d2d5
push esi
push eax
call fcn.0046d0e0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46da6c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48def0], 0
jne 0x46daed
cmp dword [0x48df10], 0
jne 0x46da9c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48df10], eax
test eax, eax
jne 0x46da9c
push str.GetEnvironmentStrings_failed
call fcn.0046d2ec
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48df10]
jmp 0x46dab0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004693e0
pop ecx
mov edi, eax
test eax, eax
jne 0x46daa8
lea edi, [ebp + 1]
push edi
call fcn.00468ce4
pop ecx
mov ebx, eax
mov dword [0x48def4], ebx
test ebx, ebx
jne 0x46dada
xor eax, eax
jmp 0x46dbb0
push edi
mov edx, dword [0x48df10]
push edx
push ebx
call fcn.00469290
add esp, 0xc
jmp 0x46db0d
xor esi, esi
mov ebx, dword [0x48def0]
jmp 0x46db07
push eax
call fcn.004693e0
pop ecx
test eax, eax
jne 0x46db03
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46daf7
lea ebx, [esi + 4]
push 4
mov dword [0x48def8], ebx
inc ebx
push ebx
call fcn.004687bc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x46db30
xor eax, eax
jmp 0x46dbb0
cmp dword [0x48def0], 0
jne 0x46db61
xor esi, esi
mov ebx, dword [0x48def4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x46db52
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004693e0
pop ecx
mov edi, eax
test eax, eax
jne 0x46db48
jmp 0x46db92
xor esi, esi
mov ebx, dword [0x48def0]
mov eax, dword [esp]
mov edi, eax
jmp 0x46db8c
push eax
call fcn.004693e0
pop ecx
test eax, eax
je 0x46db81
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x46db85
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46db70
mov eax, dword [0x48def0]
test eax, eax
je 0x46dba2
push eax
call fcn.00468cf4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48def0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x474700
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47472e
mov eax, ebx
call fcn.004751b8
cmp dword [ebx + 0x3c], 0
je 0x474727
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47479f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x474791
cmp dword [ebx + 8], 0
je 0x474750
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 0x474762
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x474791
cmp dword [ebx + 8], 0
je 0x474743
cmp eax, 3
je 0x474775
dec eax
jne 0x474743
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 0x474743
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x474743
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4747bd
cmp dword [ebx + 0x10], 0xcc
je 0x4747bd
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.004747c8
pop ebx
ret