joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a760
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
xor esi, esi
cmp dword [0x52a88c], esi
push edi
jne 0x48a77d
xor eax, eax
jmp 0x48a8c3
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x48a8c0
cmp eax, 4
je 0x48a8c0
cmp eax, 8
je 0x48a8c0
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push esi
push 0x400
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
je 0x48a8c0
xor eax, eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 8]
call dword [0x52a88c]
test eax, eax
jne 0x48a8ab
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x48a8ab
cmp eax, 8
je 0x48a8ab
push eax
push esi
push 0x410
call ebx
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x48a8ab
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - 0x238], si
call fcn.00497490
add esp, 0xc
push 0x103
lea eax, [ebp - 0x238]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x48a889
push ebx
lea eax, [ebp - 0x43e]
push esi
push eax
mov word [ebp - 0x440], si
call fcn.00497490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x440]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x48a8ab
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0048a9ac
test eax, eax
je 0x48a8ab
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x48a895
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 8]
call fcn.00401b57
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
cmp dword [ebp - 4], esi
je 0x48a8c0
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48a8ca
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x48a9a4
cmp eax, 4
je 0x48a9a4
cmp eax, 8
je 0x48a9a4
push ebx
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x48a9a3
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00497490
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x48a985
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call fcn.00497490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x48a99b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0048a9ac
test eax, eax
je 0x48a99b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00401b57
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x48a9ac
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 0x48a9c6
xor eax, eax
jmp 0x48aa89
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x48aa79
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x48aa79
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x50f208
push esi
call ebx
test eax, eax
je 0x48aa63
push 0x50f210
push esi
call ebx
test eax, eax
je 0x48aa63
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 0x48aa85
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.00499f6a
add esp, 0xc
test eax, eax
je 0x48aa91
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x48a9fe
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 0x48aa87
Function at 0x48b06c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x522464]
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 0x48b15c
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 0x48b15c
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 0x48b11a
cmp dword [ebp - 0x6c], 1
jne 0x48b15c
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 0x48b15c
mov esi, 0x50f328
push esi
call fcn.00499a10
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0049cc56
add esp, 0x10
test eax, eax
jne 0x48b15c
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x70], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x48b16c
push dword [ebp - 0x70]
call esi
cmp dword [ebp - 0x74], ebx
je 0x48b176
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.004a079b
add ebp, 0xa0
leave
ret

Function at 0x48bb6d
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x522464]
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.00497490
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 0x48bbc4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x48bbc4
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.004a079b
add ebp, 0x78
leave
ret
Function at 0x48bbd6
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.004963f3
mov edi, eax
test edi, edi
pop ecx
je 0x48bc23
push dword [ebp - 4]
push 0
push edi
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x48bc29
push edi
call fcn.0049750a
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x48bbec
test esi, esi
jne 0x48bc70
test edi, edi
mov esi, edi
je 0x48bc7b
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0049d1fc
add esp, 0xc
test eax, eax
jne 0x48bc55
mov esi, dword [esi]
test esi, esi
jne 0x48bc33
jmp 0x48bc70
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.00497ba0
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x48bc7b
push edi
call fcn.0049750a
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48bc83
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efd21
mov eax, dword fs:[0]
push eax
mov eax, 0x385c
call fcn.004ab830
mov eax, dword [0x522464]
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.0042351e
lea eax, [ebp - 0x3710]
call fcn.0042bf16
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
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.00497490
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
jne 0x48bdfb
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.0042c061
test al, al
je 0x48bdf5
cmp dword [ebp - 0x1c4], 0xc8
jne 0x48bdf5
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.00426dd5
push 0x504420
lea eax, [ebp - 0x3714]
push eax
call fcn.00426db2
mov ebx, dword [ebp - 0x3714]
push ebx
lea esi, [ebp - 0x3864]
call fcn.004020c5
mov byte [ebp - 4], 2
push dword [eax]
push dword [ebp - 0x3718]
call fcn.00401b57
lea eax, [ebp - 0x3860]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3864], eax
je 0x48bde8
push dword [ebp - 0x3864]
call fcn.00497b0f
pop ecx
mov eax, dword [ebp - 0x3718]
call fcn.00426e93
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.00427c28
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.004a079b
leave
ret
Function at 0x48bf13
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x128
mov eax, 0x4ef7ef
call fcn.004a0e77
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.00497490
add esp, 0xc
push str.mo:_72Bilrqgb8ls5kn8z
lea esi, [ebp - 0xb4]
call fcn.00427c0d
mov dword [ebp - 4], edi
mov esi, dword [eax]
cmp esi, ebx
je 0x48bfca
push esi
call fcn.00499a10
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jle 0x48bfca
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 0x48bfac
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0
cmp dword [ebp - 0xb4], eax
je 0x48bfe8
push dword [ebp - 0xb4]
call fcn.00497b0f
pop ecx
lea eax, [ebp]
push eax
lea esi, [ebp - 0x134]
call fcn.004020c5
mov dword [ebp - 4], 2
push dword [eax]
mov eax, dword [ebp - 0x14]
call fcn.004019c5
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x134], eax
mov dword [ebp - 0x18], edi
je 0x48c029
push dword [ebp - 0x134]
call fcn.00497b0f
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.004a079b
add ebp, 0x84
leave
ret
Function at 0x495e97
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00495dd6
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.00497490
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 0x495ee6
cmp dword [ebp - 0x1c], 5
jb 0x495efe
jmp 0x495efa
cmp dword [ebp - 0x10], 1
jne 0x495efe
cmp dword [ebp - 0x1c], 4
ja 0x495efa
jne 0x495efe
cmp dword [ebp - 0x18], 0
jbe 0x495efe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4f19dc
call fcn.0043915d
test eax, eax
jge 0x495f1f
mov byte [0x52aa48], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a079b
add ebp, 0x78
leave
ret

Function at 0x496367
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x528a10], 0
push esi
jne 0x4962da
call fcn.00496205
test eax, eax
je 0x49631d
mov eax, dword [0x528a10]
cmp eax, 1
jne 0x4962fb
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x49631d
pop esi
ret
push eax
call dword [0x528a18]
test eax, eax
jne 0x496365
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 0x496321
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x528a10]
call dword [0x528a18]
mov edi, eax
test edi, edi
je 0x496348
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x496364
lea edi, [esi + 0xff0]
push esi
push dword [0x528a10]
call dword [0x528a14]
add esi, 0x10
cmp esi, edi
jb 0x49634e
mov eax, esi
pop edi
pop esi
ret
jmp 0x4962c7

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x49974d
call fcn.0049d031
mov dword [eax], esi
call fcn.0049d01e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00498517
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x499729
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49977c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0049d044
pop ecx
call fcn.0049d01e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4997a3
test al, 1
je 0x4997a3
test byte [esp + 0xc], 2
je 0x4997a3
call fcn.0049d031
mov dword [eax], 5
call fcn.0049d01e
mov dword [eax], 0xd
jmp 0x499773
xor eax, eax
pop esi
ret
Function at 0x49e45c
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 0x49e499
cmp dword [ebp + 0x14], edi
je 0x49e499
cmp ecx, edi
jne 0x49e4a0
call fcn.0049d01e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00498517
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49e4b4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x49e4d5
cmp ebx, 0xffffffff
je 0x49e4c4
push ebx
push edi
push ecx
call fcn.00497490
add esp, 0xc
cmp esi, edi
je 0x49e481
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49e481
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49e4f1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x49e4f8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x49e5e9
test word [esi + 0xc], 0x10c
je 0x49e54c
mov eax, dword [esi + 4]
test eax, eax
je 0x49e54c
jl 0x49e64a
cmp ebx, eax
mov edi, ebx
jb 0x49e51d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49e5f1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004977a7
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 0x49e5e1
cmp ebx, dword [ebp - 0xc]
jb 0x49e5b9
cmp dword [ebp - 0xc], 0
je 0x49e576
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x49e56b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49e572
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49e581
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49e581
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49e61d
push eax
push dword [ebp - 8]
push esi
call fcn.004ade91
pop ecx
push eax
call fcn.004add94
add esp, 0xc
test eax, eax
je 0x49e65c
cmp eax, 0xffffffff
je 0x49e64a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49e5e1
push esi
call fcn.004ad6b3
cmp eax, 0xffffffff
pop ecx
je 0x49e64e
cmp dword [ebp - 4], 0
je 0x49e61d
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 0x49e500
mov eax, dword [ebp + 0x14]
jmp 0x49e49b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x49e608
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00497490
add esp, 0xc
call fcn.0049d01e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49e491
cmp dword [ebp + 0xc], 0xffffffff
je 0x49e633
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00497490
add esp, 0xc
call fcn.0049d01e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49e491
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x49e49b
or dword [esi + 0xc], 0x10
jmp 0x49e64e
Function at 0x4a079b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x522464]
jne 0x4a07a5
repz ret
jmp fcn.004b19c9

Function at 0x4a8f67
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 + 0x522c00]
je 0x4a8f82
inc edi
cmp edi, 0x17
jb 0x4a8f73
cmp edi, 0x17
jae 0x4a9102
push ebp
push 3
call fcn.004b3bb4
cmp eax, 1
pop ecx
je 0x4a90ce
push 3
call fcn.004b3bb4
test eax, eax
pop ecx
jne 0x4a8fb6
cmp dword [0x522460], 1
je 0x4a90ce
cmp ebx, 0xfc
je 0x4a9101
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x528ea0
push ebp
call fcn.0049d0a7
add esp, 0xc
test eax, eax
je 0x4a8fec
push esi
push esi
push esi
push esi
push esi
call fcn.0049841b
add esp, 0x14
push 0x104
mov esi, 0x528eb9
push esi
push 0
mov byte [0x528fbd], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4a9030
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049d0a7
add esp, 0xc
test eax, eax
je 0x4a9030
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049841b
add esp, 0x14
push esi
call fcn.00499a10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a9075
push esi
call fcn.00499a10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5291b4
push 0x4f2dac
sub ecx, eax
push ecx
push eax
call fcn.004ac5b6
add esp, 0x14
test eax, eax
je 0x4a9075
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049841b
add esp, 0x14
jmp 0x4a9077
xor esi, esi
push 0x4f2da8
push ebx
push ebp
call fcn.004ac545
add esp, 0xc
test eax, eax
je 0x4a9097
push esi
push esi
push esi
push esi
push esi
call fcn.0049841b
add esp, 0x14
push dword [edi*8 + 0x522c04]
push ebx
push ebp
call fcn.004ac545
add esp, 0xc
test eax, eax
je 0x4a90b9
push esi
push esi
push esi
push esi
push esi
call fcn.0049841b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b39f7
add esp, 0xc
jmp 0x4a9101
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a9101
cmp ebp, 0xffffffff
je 0x4a9101
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x522c04]
push dword [esi]
call fcn.00499a10
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 0x4b39f7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a4daa
xor ebx, ebx
cmp dword [0x529828], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b3acd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b3bad
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4b3bad
push eax
call fcn.004a4d3c
mov dword [esp], 0x4f5218
push edi
mov dword [0x529828], eax
call esi
push eax
call fcn.004a4d3c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x52982c], eax
call esi
push eax
call fcn.004a4d3c
mov dword [0x529830], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a8cf4
test eax, eax
pop ecx
pop ecx
je 0x4b3a9b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049841b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b3acd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a4d3c
cmp eax, ebx
pop ecx
mov dword [0x529838], eax
je 0x4b3acd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a4d3c
pop ecx
mov dword [0x529834], eax
mov eax, dword [0x529834]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b3b52
cmp dword [0x529838], ecx
je 0x4b3b52
push eax
call fcn.004a4db3
push dword [0x529838]
mov esi, eax
call fcn.004a4db3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b3b52
cmp edi, ebx
je 0x4b3b52
call esi
cmp eax, ebx
je 0x4b3b1f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b3b1f
test byte [ebp - 0x18], 1
jne 0x4b3b52
lea eax, [ebp - 0x10]
push eax
call fcn.004a8d2b
test eax, eax
pop ecx
je 0x4b3b3a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049841b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b3b49
or dword [ebp + 0x10], 0x200000
jmp 0x4b3b8d
or dword [ebp + 0x10], 0x40000
jmp 0x4b3b8d
mov eax, dword [0x52982c]
cmp eax, dword [ebp - 8]
je 0x4b3b8d
push eax
call fcn.004a4db3
cmp eax, ebx
pop ecx
je 0x4b3b8d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b3b8d
mov eax, dword [0x529830]
cmp eax, dword [ebp - 8]
je 0x4b3b8d
push eax
call fcn.004a4db3
cmp eax, ebx
pop ecx
je 0x4b3b8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x529828]
call fcn.004a4db3
cmp eax, ebx
pop ecx
je 0x4b3bad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b3baf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret