joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487be9
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4bc
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
jne 0x487c03
xor eax, eax
jmp 0x487cc6
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x487cb6
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x487cb6
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x4c9438
push esi
call ebx
test eax, eax
je 0x487ca0
push 0x4c9440
push esi
call ebx
test eax, eax
je 0x487ca0
mov ax, word [esi]
and word [ebp + 0x68], 0
mov word [ebp + 0x64], ax
mov ax, word [ebp + edi - 0x44a]
mov word [ebp + 0x66], ax
push 0x64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x487cc2
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, dword [ebp + 0x78]
mov esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0048d2c5
add esp, 0xc
test eax, eax
je 0x487cce
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x487c3b
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
xor eax, eax
inc eax
jmp 0x487cc4
Function at 0x488023
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4d8454]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
mov esi, 0x20019
push esi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x488113
push edi
lea eax, [ebp - 0x6c]
push str._sConnection
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x488113
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x70]
mov edi, 0x104
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jne 0x4880d1
cmp dword [ebp - 0x6c], 1
jne 0x488113
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x70]
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jne 0x488113
mov esi, 0x4c9558
push esi
call fcn.0048c9a0
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0048dad0
add esp, 0x10
test eax, eax
jne 0x488113
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x70], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x488123
push dword [ebp - 0x70]
call esi
cmp dword [ebp - 0x74], ebx
je 0x48812d
push dword [ebp - 0x74]
call esi
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004937cc
add ebp, 0xa0
leave
ret

Function at 0x488148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 4
je 0x48818a
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x4c964c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48818a
cmp dword [ebp - 8], 4
jne 0x48818a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc edi
mov eax, edi
pop edi
leave
ret 4
Function at 0x488b67
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4d8454]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x9a
lea eax, [ebp - 0x27]
push 0
push eax
mov byte [ebp - 0x28], 0
call fcn.0048a830
add esp, 0xc
push 0x9b
lea eax, [ebp - 0x28]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x488bbe
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x488bbe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004937cc
add ebp, 0x78
leave
ret

Function at 0x488bd0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.0048979d
mov edi, eax
test edi, edi
pop ecx
je 0x488c1d
push dword [ebp - 4]
push 0
push edi
call fcn.0048a830
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x488c23
push edi
call fcn.0048a8aa
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x488be6
test esi, esi
jne 0x488c6a
test edi, edi
mov esi, edi
je 0x488c75
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0049042a
add esp, 0xc
test eax, eax
jne 0x488c4f
mov esi, dword [esi]
test esi, esi
jne 0x488c2d
jmp 0x488c6a
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0048b2f0
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x488c75
push edi
call fcn.0048a8aa
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x488c7d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3887
mov eax, dword fs:[0]
push eax
mov eax, 0x385c
call fcn.0049da80
mov eax, dword [0x4d8454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x371c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3718], eax
lea eax, [ebp - 0x3760]
or esi, 0xffffffff
call fcn.004229ec
lea eax, [ebp - 0x3710]
call fcn.0042b1a3
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x4de4b4]
mov ecx, 0x4de4b4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3714], ebx
push 0x18e
lea eax, [ebp - 0x19e]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x1a0], di
call fcn.0048a830
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
jne 0x488df5
mov edi, dword [ebp - 0x371c]
lea eax, [ebp - 0x3760]
push eax
lea eax, [ebp - 0x3710]
push eax
mov dword [ebp - 0x375c], str.POST
call fcn.0042b2ee
test al, al
je 0x488def
cmp dword [ebp - 0x1c4], 0xc8
jne 0x488def
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x2648]
push dword [ebp - 0x1bc]
add ecx, eax
add ecx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x3714]
push ecx
call fcn.0042603c
push 0x4be818
lea eax, [ebp - 0x3714]
push eax
call fcn.00426019
mov ebx, dword [ebp - 0x3714]
push ebx
lea esi, [ebp - 0x3864]
call fcn.0040208e
mov byte [ebp - 4], 2
push dword [eax]
push dword [ebp - 0x3718]
call fcn.00401af8
lea eax, [ebp - 0x3860]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3864], eax
je 0x488de2
push dword [ebp - 0x3864]
call fcn.0048b25e
pop ecx
mov eax, dword [ebp - 0x3718]
call fcn.004260fa
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
call fcn.0040151c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3710]
call fcn.00426f4c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004937cc
leave
ret
Function at 0x488f0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x4d8454]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x128
mov eax, 0x4b3531
call fcn.00493ea7
mov eax, dword [ebp + 0x8c]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push 0x7f
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp + 1]
push ebx
inc edi
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 5
mov byte [ebp], bl
call fcn.0048a830
add esp, 0xc
push str.mo:_72Bilrqgb8ls5kn8z
lea esi, [ebp - 0xb4]
call fcn.00426f31
mov dword [ebp - 4], edi
mov esi, dword [eax]
cmp esi, ebx
je 0x488fc4
push esi
call fcn.0048c9a0
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jle 0x488fc4
mov dword [ebp - 0x10], esi
lea eax, [ebp]
sub dword [ebp - 0x10], eax
mov eax, ebx
cdq
push 5
pop esi
idiv esi
lea ecx, [ebp + ebx]
mov al, byte [ebp + edx*4 - 0x30]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ecx]
inc ebx
cmp ebx, dword [ebp - 0x1c]
mov byte [ecx], al
jl 0x488fa6
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0
cmp dword [ebp - 0xb4], eax
je 0x488fe2
push dword [ebp - 0xb4]
call fcn.0048b25e
pop ecx
lea eax, [ebp]
push eax
lea esi, [ebp - 0x134]
call fcn.0040208e
mov dword [ebp - 4], 2
push dword [eax]
mov eax, dword [ebp - 0x14]
call fcn.00401994
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x134], eax
mov dword [ebp - 0x18], edi
je 0x489023
push dword [ebp - 0x134]
call fcn.0048b25e
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.004937cc
add ebp, 0x84
leave
ret

Function at 0x489241
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d8454]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00489180
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0048a830
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x489290
cmp dword [ebp - 0x1c], 5
jb 0x4892a8
jmp 0x4892a4
cmp dword [ebp - 0x10], 1
jne 0x4892a8
cmp dword [ebp - 0x1c], 4
ja 0x4892a4
jne 0x4892a8
cmp dword [ebp - 0x18], 0
jbe 0x4892a8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b596c
call fcn.00438224
test eax, eax
jge 0x4892c9
mov byte [0x4dfa84], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004937cc
add ebp, 0x78
leave
ret
Function at 0x489711
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4de4d0], 0
push esi
jne 0x489684
call fcn.004895af
test eax, eax
je 0x4896c7
mov eax, dword [0x4de4d0]
cmp eax, 1
jne 0x4896a5
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x4896c7
pop esi
ret
push eax
call dword [0x4de4d8]
test eax, eax
jne 0x48970f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4896cb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4de4d0]
call dword [0x4de4d8]
mov edi, eax
test edi, edi
je 0x4896f2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x48970e
lea edi, [esi + 0xff0]
push esi
push dword [0x4de4d0]
call dword [0x4de4d4]
add esi, 0x10
cmp esi, edi
jb 0x4896f8
mov eax, esi
pop edi
pop esi
ret
jmp 0x489671

Function at 0x48ca97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48cac4
call fcn.0048e38e
mov dword [eax], esi
call fcn.0048e37b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048cc8f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48caa0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48caf3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0048e3a1
pop ecx
call fcn.0048e37b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48cb1a
test al, 1
je 0x48cb1a
test byte [esp + 0xc], 2
je 0x48cb1a
call fcn.0048e38e
mov dword [eax], 5
call fcn.0048e37b
mov dword [eax], 0xd
jmp 0x48caea
xor eax, eax
pop esi
ret
Function at 0x49168d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4916ca
cmp dword [ebp + 0x14], edi
je 0x4916ca
cmp ecx, edi
jne 0x4916d1
call fcn.0048e37b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048cc8f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4916e5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x491706
cmp ebx, 0xffffffff
je 0x4916f5
push ebx
push edi
push ecx
call fcn.0048a830
add esp, 0xc
cmp esi, edi
je 0x4916b2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4916b2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x491722
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x491729
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x49181a
test word [esi + 0xc], 0x10c
je 0x49177d
mov eax, dword [esi + 4]
test eax, eax
je 0x49177d
jl 0x49187b
cmp ebx, eax
mov edi, ebx
jb 0x49174e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x491822
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048ab47
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x491812
cmp ebx, dword [ebp - 0xc]
jb 0x4917ea
cmp dword [ebp - 0xc], 0
je 0x4917a7
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x49179c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4917a3
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4917b2
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4917b2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49184e
push eax
push dword [ebp - 8]
push esi
call fcn.0049ffd1
pop ecx
push eax
call fcn.0049fed4
add esp, 0xc
test eax, eax
je 0x49188d
cmp eax, 0xffffffff
je 0x49187b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x491812
push esi
call fcn.0049f7f3
cmp eax, 0xffffffff
pop ecx
je 0x49187f
cmp dword [ebp - 4], 0
je 0x49184e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x491731
mov eax, dword [ebp + 0x14]
jmp 0x4916cc
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x491839
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048a830
add esp, 0xc
call fcn.0048e37b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4916c2
cmp dword [ebp + 0xc], 0xffffffff
je 0x491864
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048a830
add esp, 0xc
call fcn.0048e37b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4916c2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4916cc
or dword [esi + 0xc], 0x10
jmp 0x49187f
Function at 0x4937cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d8454]
jne 0x4937d6
repz ret
jmp fcn.004a3ab9

Function at 0x49bdd5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d8ca0]
je 0x49bdf0
inc edi
cmp edi, 0x17
jb 0x49bde1
cmp edi, 0x17
jae 0x49bf70
push ebp
push 3
call fcn.004a5d25
cmp eax, 1
pop ecx
je 0x49bf3c
push 3
call fcn.004a5d25
test eax, eax
pop ecx
jne 0x49be24
cmp dword [0x4d8450], 1
je 0x49bf3c
cmp ebx, 0xfc
je 0x49bf6f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4dea20
push ebp
call fcn.004902d5
add esp, 0xc
test eax, eax
je 0x49be5a
push esi
push esi
push esi
push esi
push esi
call fcn.0048cb93
add esp, 0x14
push 0x104
mov esi, 0x4dea39
push esi
push 0
mov byte [0x4deb3d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x49be9e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004902d5
add esp, 0xc
test eax, eax
je 0x49be9e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048cb93
add esp, 0x14
push esi
call fcn.0048c9a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49bee3
push esi
call fcn.0048c9a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ded34
push 0x4b6d8c
sub ecx, eax
push ecx
push eax
call fcn.0049e6f3
add esp, 0x14
test eax, eax
je 0x49bee3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048cb93
add esp, 0x14
jmp 0x49bee5
xor esi, esi
push 0x4b6d88
push ebx
push ebp
call fcn.0049e682
add esp, 0xc
test eax, eax
je 0x49bf05
push esi
push esi
push esi
push esi
push esi
call fcn.0048cb93
add esp, 0x14
push dword [edi*8 + 0x4d8ca4]
push ebx
push ebp
call fcn.0049e682
add esp, 0xc
test eax, eax
je 0x49bf27
push esi
push esi
push esi
push esi
push esi
call fcn.0048cb93
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a5b68
add esp, 0xc
jmp 0x49bf6f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49bf6f
cmp ebp, 0xffffffff
je 0x49bf6f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d8ca4]
push dword [esi]
call fcn.0048c9a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a5b68
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00498490
xor ebx, ebx
cmp dword [0x4df2f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a5c3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a5d1e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a5d1e
push eax
call fcn.00498422
mov dword [esp], 0x4b91b8
push edi
mov dword [0x4df2f0], eax
call esi
push eax
call fcn.00498422
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4df2f4], eax
call esi
push eax
call fcn.00498422
mov dword [0x4df2f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049bb62
test eax, eax
pop ecx
pop ecx
je 0x4a5c0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048cb93
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a5c3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00498422
cmp eax, ebx
pop ecx
mov dword [0x4df300], eax
je 0x4a5c3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00498422
pop ecx
mov dword [0x4df2fc], eax
mov eax, dword [0x4df2fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a5cc3
cmp dword [0x4df300], ecx
je 0x4a5cc3
push eax
call fcn.00498499
push dword [0x4df300]
mov esi, eax
call fcn.00498499
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a5cc3
cmp edi, ebx
je 0x4a5cc3
call esi
cmp eax, ebx
je 0x4a5c90
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a5c90
test byte [ebp - 0x18], 1
jne 0x4a5cc3
lea eax, [ebp - 0x10]
push eax
call fcn.0049bb99
test eax, eax
pop ecx
je 0x4a5cab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048cb93
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a5cba
or dword [ebp + 0x10], 0x200000
jmp 0x4a5cfe
or dword [ebp + 0x10], 0x40000
jmp 0x4a5cfe
mov eax, dword [0x4df2f4]
cmp eax, dword [ebp - 8]
je 0x4a5cfe
push eax
call fcn.00498499
cmp eax, ebx
pop ecx
je 0x4a5cfe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a5cfe
mov eax, dword [0x4df2f8]
cmp eax, dword [ebp - 8]
je 0x4a5cfe
push eax
call fcn.00498499
cmp eax, ebx
pop ecx
je 0x4a5cfe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4df2f0]
call fcn.00498499
cmp eax, ebx
pop ecx
je 0x4a5d1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a5d20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c10
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
mov edi, 0x4d88e0
xor eax, eax
mov ecx, 0x13
mov byte [0x4d7170], bl
mov byte [0x4d8930], bl
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, dword [esp + 0x14]
mov dword [0x4d88f0], ebx
mov dword [0x4d88e4], edi
mov dword [0x4d88f4], ebx
mov dword [0x4d88e0], 0x4c
mov dword [0x4d88ec], 0x481f48
mov dword [0x4d88f8], 1
mov dword [0x4d88fc], 0x4d7170
mov dword [0x4d8900], 0x1770
mov dword [0x4d8904], 0x4d8930
mov word [0x4d8918], bx
mov dword [0x4d890c], ebx
mov dword [0x4d8908], 0x104
mov word [0x4d891a], bx
cmp al, 4
mov dword [0x4d8910], 0x482050
mov dword [0x4d8914], 0x1a00
mov dword [0x4d891c], 0x482240
jb 0x408cd2
mov dword [0x4d8914], 0x81a00
push 0x4d88e0
call sub.COMDLG32.dll_Ordinal_113
test eax, eax
jne 0x408ce7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x4d7170
call dword [sym.imp.KERNEL32.dll_Ordinal_1602]
mov cl, byte [eax + 0x4d7171]
test cl, cl
jne 0x408d77
push 0x4d7170
mov esi, dword [sym.imp.KERNEL32.dll_Ordinal_1596]
push 0x514980
call esi
push 0x4d7170
push 0x481d38
call esi
push 0x481d38
call fcn.00408940
add esp, 4
test eax, eax
jne 0x408d58
push 0
mov eax, dword [0x481a3c]
push 0x4087e0
cmp eax, 1
sbb eax, eax
push edi
and eax, 0xb
mov ecx, dword [0x481a38]
add eax, 0x6d
push eax
push ecx
call dword [sym.imp.USER32.dll_Ordinal_1694]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x481d2c], 1
mov dword [0x481d30], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Ordinal_1587]
jmp 0x408e68
xor edi, edi
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_Ordinal_1596]
mov ebx, dword [sym.imp.KERNEL32.dll_Ordinal_1587]
mov dword [0x481d2c], edi
lea eax, [edi + 0x4d7170]
push eax
call dword [sym.imp.KERNEL32.dll_Ordinal_1602]
add edi, eax
mov al, byte [edi + 0x4d7171]
inc edi
test al, al
mov eax, dword [0x481d2c]
je 0x408e42
push 0x4d7170
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [ecx*4 + 0x514980]
push eax
call esi
push 0x48223c
mov eax, dword [0x481d2c]
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [ecx*4 + 0x514980]
push eax
call ebx
lea ecx, [edi + 0x4d7170]
mov eax, dword [0x481d2c]
push ecx
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [ecx*4 + 0x514980]
push eax
call ebx
mov eax, dword [0x481d2c]
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [ecx*4 + 0x514980]
push eax
push 0x481d38
call esi
push 0x481d38
call fcn.00408940
add esp, 4
test eax, eax
mov eax, dword [0x481d2c]
je 0x408e30
inc eax
inc ebp
mov dword [0x481d2c], eax
cmp ebp, 0x190
jl 0x408d8d
mov dword [0x481d2c], eax
test eax, eax
jne 0x408e52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x514980
push 0x481d38
call esi
mov dword [0x481d30], 0
push 0x481d38
push 0x481e40
call esi
push 0x481e40
call dword [sym.imp.KERNEL32.dll_Ordinal_1602]
cmp eax, 4
jle 0x408e96
mov cl, byte [eax + 0x481e3c]
cmp cl, 0x2e
jne 0x408e96
mov byte [eax + 0x481e3c], 0
push str..MP1
push 0x481e40
call ebx
push 0x481e40
call dword [sym.imp.KERNEL32.dll_Ordinal_1602]
mov dl, byte [eax + 0x481e3f]
pop ebp
add dl, byte [0x481a44]
pop edi
pop esi
mov byte [eax + 0x481e3f], dl
mov eax, 1
pop ebx
ret