joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2950
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x55b3d4]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x4a297e
mov ecx, dword [0x55b3c8]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x55b3d8], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x4a2a53
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53469c
push esi
call edi
cmp eax, ebx
mov dword [0x55b3b8], eax
je 0x4a2a53
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x55b3bc], eax
je 0x4a2a53
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x55b3c0], eax
je 0x4a2a53
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x55b3c4], eax
je 0x4a2a53
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x55b3cc], eax
je 0x4a2a53
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x55b3c8], eax
je 0x4a2a53
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x55b3d0], eax
je 0x4a2a53
mov eax, 1
mov dword [0x55b3d4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x55b3b8], ebx
mov dword [0x55b3bc], ebx
mov dword [0x55b3c0], ebx
mov dword [0x55b3c4], ebx
mov dword [0x55b3c8], ebx
mov dword [0x55b3cc], ebx
mov dword [0x55b3d0], ebx
mov dword [0x55b3d4], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1d99
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004b6cbd
xor esi, esi
inc esi
cmp dword [0x55b870], esi
pop ecx
jne 0x4b1dc1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x55b86c], esi
mov byte [0x55b868], al
jne 0x4b1e27
mov ecx, dword [0x55d80c]
test ecx, ecx
je 0x4b1e08
mov eax, dword [0x55d808]
sub eax, 4
cmp eax, ecx
jmp 0x4b1e01
mov eax, dword [eax]
test eax, eax
je 0x4b1df3
call eax
mov eax, dword [0x55d808]
sub eax, 4
cmp eax, dword [0x55d80c]
mov dword [0x55d808], eax
jae 0x4b1deb
mov eax, 0x5510f4
mov esi, 0x5510fc
cmp eax, esi
mov edi, eax
jae 0x4b1e27
mov eax, dword [edi]
test eax, eax
je 0x4b1e20
call eax
add edi, 4
cmp edi, esi
jb 0x4b1e18
mov eax, 0x551100
mov esi, 0x551108
cmp eax, esi
mov edi, eax
jae 0x4b1e46
mov eax, dword [edi]
test eax, eax
je 0x4b1e3f
call eax
add edi, 4
cmp edi, esi
jb 0x4b1e37
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4b1e57
push 8
call fcn.004b6c29
jmp 0x4b1e69
push dword [ebp + 8]
mov dword [0x55b870], 1
call fcn.004b1cf2
pop ecx
pop ebp
ret

Function at 0x4b3748
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004af8b0
mov eax, dword [0x555bd8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004bee11
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4b3872
push 2
push esi
push dword [ebp + 8]
call fcn.004bee11
add esp, 0xc
cmp eax, ebx
je 0x4b3872
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4b3815
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004b01f0
push 0x8000
push dword [ebp + 8]
call fcn.004bef30
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4b37ce
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004be622
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b37ee
sub edi, eax
test edi, edi
jg 0x4b37c6
jmp 0x4b3806
call fcn.004b4fd2
cmp dword [eax], 5
jne 0x4b3803
call fcn.004b4fc9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004bef30
pop ecx
pop ecx
jmp 0x4b385d
jge 0x4b385d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bee11
push dword [ebp + 8]
call fcn.004be96d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4b385d
call fcn.004b4fc9
mov dword [eax], 0xd
call fcn.004b4fd2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004bee11
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4b3874
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004bcec4
leave
ret
Function at 0x4b62cb
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x53a560
call fcn.004b4ec0
mov edi, 0x94
mov eax, edi
call fcn.004af8b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x55b830], ecx
mov eax, dword [esi + 4]
mov dword [0x55b83c], eax
mov edx, dword [esi + 8]
mov dword [0x55b840], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x55b834], esi
cmp ecx, 2
je 0x4b632b
or esi, 0x8000
mov dword [0x55b834], esi
shl eax, 8
add eax, edx
mov dword [0x55b838], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b6366
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b6366
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b637e
cmp eax, 0x20b
je 0x4b636b
mov dword [ebp - 0x1c], esi
jmp 0x4b6392
cmp dword [ecx + 0x84], 0xe
jbe 0x4b6366
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4b638c
cmp dword [ecx + 0x74], 0xe
jbe 0x4b6366
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b6d08
pop ecx
test eax, eax
jne 0x4b63a6
push 0x1c
call fcn.004b62a7
pop ecx
call fcn.004b8384
test eax, eax
jne 0x4b63b7
push 0x10
call fcn.004b62a7
pop ecx
call fcn.004bb155
mov dword [ebp - 4], esi
call fcn.004bec13
test eax, eax
jge 0x4b63d0
push 0x1b
call fcn.004b6282
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x55c594], eax
call fcn.004c21da
mov dword [0x55b8a0], eax
call fcn.004c2138
test eax, eax
jge 0x4b63f6
push 8
call fcn.004b6282
pop ecx
call fcn.004c1f05
test eax, eax
jge 0x4b6407
push 9
call fcn.004b6282
pop ecx
call fcn.004b1d34
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4b641a
push eax
call fcn.004b6282
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004c1e9c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4b643b
movzx eax, word [ebp - 0x34]
jmp 0x4b643e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004d1d70
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4b645c
push edi
call fcn.004b1e6c
call fcn.004b1e8e
jmp 0x4b648e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004b4efb
ret
Function at 0x4b6692
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4b66af
call fcn.004b4fc9
mov dword [eax], 0x16
xor eax, eax
jmp 0x4b6719
push esi
push 0x88
push 1
call fcn.004b0d51
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b6704
push esi
call fcn.004b8195
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4b66e2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4b65ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4b6718
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004af839
test ebx, ebx
pop ecx
je 0x4b6716
push ebx
call fcn.004b4fdb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b92f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4b94bd
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x55c460]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b94bd
test cl, 0x48
je 0x4b935d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4b935d
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b93af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b9397
call fcn.004b4fc9
mov dword [eax], 9
call fcn.004b4fd2
mov dword [eax], esi
jmp 0x4b93a7
cmp eax, 0x6d
je 0x4b94bd
push eax
call fcn.004b4fdb
pop ecx
or eax, 0xffffffff
jmp 0x4b94bf
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4b94b8
test edx, edx
je 0x4b93d2
cmp byte [ebx], 0xa
jne 0x4b93d2
or al, 4
jmp 0x4b93d4
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4b94b2
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b94a2
cmp al, 0xd
je 0x4b9408
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b9494
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b9422
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b941d
add dword [ebp + 0x10], 2
jmp 0x4b9476
mov dword [ebp + 0x10], eax
jmp 0x4b9490
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b944a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b9490
cmp dword [ebp - 0xc], 0
je 0x4b9490
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b946b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b9476
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b9493
cmp ebx, dword [ebp + 0xc]
jne 0x4b947b
cmp byte [ebp - 1], 0xa
jne 0x4b947b
mov byte [ebx], 0xa
jmp 0x4b9493
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bee11
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b9494
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b93ec
jmp 0x4b94b2
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4b94b2
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b94bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bcb97
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004af8b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4bcc2c
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x55b830]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4bcc2c
cmp eax, 1
je 0x4bcc44
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4bcc2c
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4bcc01
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4bcc28
xor eax, eax
inc eax
jmp 0x4bcc60
cmp esi, ebx
jae 0x4bcc30
xor eax, eax
jmp 0x4bcc60
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x55b830]
jmp 0x4bcc46
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4be622
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x555bd8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4be64b
xor eax, eax
jmp 0x4be7b9
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x55c460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4be67e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004beb90
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4be750
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4be78b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4be6d9
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4be6ca
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4be6ad
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4be719
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4be722
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4be69e
jmp 0x4be724
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4be7b4
cmp dword [ebp - 8], edi
je 0x4be78b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4be77d
call fcn.004b4fc9
mov dword [eax], 9
call fcn.004b4fd2
mov dword [eax], esi
jmp 0x4be786
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4be772
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4be724
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4be724
push dword [ebp - 8]
call fcn.004b4fdb
pop ecx
or eax, 0xffffffff
jmp 0x4be7b7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4be7a0
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4be7a0
xor eax, eax
jmp 0x4be7b7
call fcn.004b4fc9
mov dword [eax], 0x1c
call fcn.004b4fd2
mov dword [eax], edi
jmp 0x4be786
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004bcec4
leave
ret
Function at 0x4c1acd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x555bd8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x555f90]
je 0x4c1afa
inc eax
cmp eax, 0x12
jb 0x4c1aeb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x555f90]
jne 0x4c1c2e
mov eax, dword [0x55b8a8]
cmp eax, 1
je 0x4c1c09
cmp eax, edx
jne 0x4c1b2a
cmp dword [0x555774], 1
je 0x4c1c09
cmp ecx, 0xfc
je 0x4c1c2e
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c1b63
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004b0430
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004b0250
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c1ba5
lea eax, [ebp - 0x10c]
push eax
call fcn.004b0250
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x506d18
push edi
call fcn.004b2ba0
add esp, 0x10
push edi
call fcn.004b0250
push dword [esi + 0x555f94]
mov ebx, eax
call fcn.004b0250
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004af8b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b0430
push edi
push ebx
call fcn.004b0440
push 0x53fbd0
push ebx
call fcn.004b0440
push dword [esi + 0x555f94]
push ebx
call fcn.004b0440
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004c54c9
add esp, 0x2c
jmp 0x4c1c2e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x555f94]
push dword [esi]
call fcn.004b0250
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004bcec4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5314
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4c537f
push 0x3d
push dword [ebp + 8]
call fcn.004b098d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4c537f
cmp dword [ebp + 8], esi
je 0x4c537f
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x55b850]
cmp eax, dword [0x55b854]
jne 0x4c5365
mov edi, eax
call fcn.004c52b3
mov dword [0x55b850], eax
cmp eax, ebx
jne 0x4c53be
cmp dword [ebp + 0xc], ebx
je 0x4c5387
cmp dword [0x55b858], ebx
je 0x4c5387
call fcn.004c18bb
test eax, eax
je 0x4c53be
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4c54c2
push 4
call fcn.004af827
cmp eax, ebx
pop ecx
mov dword [0x55b850], eax
je 0x4c537f
mov dword [eax], ebx
cmp dword [0x55b858], ebx
jne 0x4c53be
push 4
call fcn.004af827
cmp eax, ebx
pop ecx
mov dword [0x55b858], eax
je 0x4c537f
mov dword [eax], ebx
mov ebx, dword [0x55b850]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004c5266
mov edi, eax
test edi, edi
pop ecx
jl 0x4c5417
cmp dword [ebx], 0
je 0x4c5417
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004af839
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c53ff
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4c544d
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4c53f6
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004b2042
test eax, eax
pop ecx
pop ecx
je 0x4c544d
jmp 0x4c5448
cmp dword [ebp - 4], 0
jne 0x4c54bb
test edi, edi
jge 0x4c5427
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004b2042
test eax, eax
pop ecx
pop ecx
je 0x4c537f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x55b850], eax
cmp dword [ebp + 0xc], 0
je 0x4c54a4
push dword [ebp + 8]
call fcn.004b0250
inc eax
inc eax
push eax
call fcn.004af827
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c54a4
push dword [ebp + 8]
push esi
call fcn.004b0430
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c549d
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004af839
pop ecx
cmp dword [ebp - 4], 0
je 0x4c54b3
push dword [ebp + 8]
call fcn.004af839
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4c5382
push esi
call fcn.004af839
pop ecx
xor eax, eax
jmp 0x4c5382
Function at 0x4c54c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x55bcbc], ebx
push esi
push edi
jne 0x4c5549
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c5584
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5425d0
push edi
call esi
test eax, eax
mov dword [0x55bcbc], eax
je 0x4c5584
push 0x5425c0
push edi
call esi
push 0x5425ac
push edi
mov dword [0x55bcc0], eax
call esi
cmp dword [0x55b830], 2
mov dword [0x55bcc4], eax
jne 0x4c5549
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x55bccc], eax
je 0x4c5549
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x55bcc8], eax
mov eax, dword [0x55bcc8]
test eax, eax
je 0x4c558e
call eax
test eax, eax
je 0x4c5575
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x55bccc]
test eax, eax
je 0x4c5575
test byte [ebp - 8], 1
jne 0x4c558e
cmp dword [0x55b83c], 4
jb 0x4c5588
or byte [ebp + 0x12], 0x20
jmp 0x4c55ad
xor eax, eax
jmp 0x4c55bd
or byte [ebp + 0x12], 4
jmp 0x4c55ad
mov eax, dword [0x55bcc0]
test eax, eax
je 0x4c55ad
call eax
mov ebx, eax
test ebx, ebx
je 0x4c55ad
mov eax, dword [0x55bcc4]
test eax, eax
je 0x4c55ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x55bcbc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5ff2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x542600
call fcn.004b4ec0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x55bcdc], edi
jne 0x4c6036
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6021
mov dword [0x55bcdc], ebx
jmp 0x4c6036
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c6036
mov dword [0x55bcdc], 2
mov eax, dword [0x55bcdc]
cmp eax, ebx
jne 0x4c6056
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4c6119
cmp eax, 2
je 0x4c605f
cmp eax, edi
jne 0x4c6087
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4c6072
mov eax, dword [0x55bb44]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4c608e
xor eax, eax
jmp 0x4c6119
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004af8b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4c60c1
cmp esi, edi
jne 0x4c60d7
push dword [ebp - 0x24]
call fcn.004af827
pop ecx
mov esi, eax
cmp esi, edi
je 0x4c6087
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c610a
cmp dword [ebp + 0x14], edi
jne 0x4c60f4
push edi
push edi
jmp 0x4c60fa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4c6116
push esi
call fcn.004af839
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b4efb
ret