joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f1a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x47f1cd
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x47f1cd
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x47f229
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47f27f
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47f249
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x47f330
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x47f29b
push ebp
mov esi, ebp
call fcn.00486710
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.0047c960
add esp, 0x10
jmp 0x47f330
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x47f239
cmp byte [edi + 0x2c8], 0
je 0x47f301
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x47f2db
call fcn.00487050
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.0047c960
add esp, 0x18
mov esi, 5
jmp 0x47f330
call fcn.00487050
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.0047c960
add esp, 0x18
mov esi, 6
jmp 0x47f330
cmp ebp, 0xffffffff
je 0x47f312
cmp dword [edi + 0x2cc], 0x2afc
jne 0x47f32b
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.0047c960
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.0047ef20
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x47f350
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47f400
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.00487270
add esp, 0xc
test eax, eax
jle 0x47f444
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.0047ec70
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.0047f000
add esp, 8
test al, al
je 0x47f468
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00487050
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0047c8d0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47f4b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00487050
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0047c8d0
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.0047eb40
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4826c0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x482700
cmp ebp, ebx
jne 0x482700
mov eax, dword [esp + 0x334]
call fcn.004826a0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x48271b
mov esi, edi
call fcn.00483e80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x48274f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x482796
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x48277e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x48277e
add eax, 1
cmp eax, ecx
jb 0x482771
cmp eax, ecx
jne 0x482790
cmp ecx, 0x40
jae 0x482790
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x482796
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x4827e1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x4827eb
jne 0x4827eb
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x482855
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x48281e
cmp eax, 0x2714
jne 0x482859
test edi, edi
jle 0x4827b0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00483e80
push edx
push eax
call fcn.00483eb0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4827b0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x482867
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x482876
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x4828ad
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48289b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4828ad
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4828e0
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4828ce
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4828e0
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x483310
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00483e80
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00483eb0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4833c5
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.004826c0
add esp, 0xc
test eax, eax
jle 0x4833c5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0047c5f0
add esp, 0x10
test eax, eax
jne 0x4833c8
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4833d0
test eax, eax
je 0x4833c5
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.00483e80
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00483eb0
add esp, 0x10
cmp eax, ebx
jle 0x483360
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x484b10
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x484b1f
jmp dword [ecx*4 + 0x484b74]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x484d00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d6160]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0049250c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x484d65
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x484d65
lea edx, [esp]
push edx
call dword [0x4d600c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00490f63
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00490f63
add esp, 0x108
ret
jmp 0x484d00
Function at 0x484d80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d6160]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0049250c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x484d65
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x484d65
lea edx, [esp]
push edx
call dword [0x4d600c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00490f63
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00490f63
add esp, 0x108
ret
jmp 0x484d00

Function at 0x48869e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d6160]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004885dd
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.0048b640
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 0x4886ed
cmp dword [ebp - 0x1c], 5
jb 0x488705
jmp 0x488701
cmp dword [ebp - 0x10], 1
jne 0x488705
cmp dword [ebp - 0x1c], 4
ja 0x488701
jne 0x488705
cmp dword [ebp - 0x18], 0
jbe 0x488705
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b2458
call fcn.004094ac
test eax, eax
jge 0x488726
mov byte [0x4dbf94], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00490f63
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x4db030], 0
push esi
jne 0x488918
call fcn.00488843
test eax, eax
je 0x48895b
mov eax, dword [0x4db030]
cmp eax, 1
jne 0x488939
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48895b
pop esi
ret
push eax
call dword [0x4db038]
test eax, eax
jne 0x4889a3
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 0x48895f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4db030]
call dword [0x4db038]
mov edi, eax
test edi, edi
je 0x488986
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4889a2
lea edi, [esi + 0xff0]
push esi
push dword [0x4db030]
call dword [0x4db034]
add esi, 0x10
cmp esi, edi
jb 0x48898c
mov eax, esi
pop edi
pop esi
ret
jmp 0x488905
Function at 0x48b37e
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 0x48b3bb
cmp dword [ebp + 0x14], edi
je 0x48b3bb
cmp ecx, edi
jne 0x48b3c2
call fcn.00491f80
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048afaa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48b3d6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48b3f7
cmp ebx, 0xffffffff
je 0x48b3e6
push ebx
push edi
push ecx
call fcn.0048b640
add esp, 0xc
cmp esi, edi
je 0x48b3a3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48b3a3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48b413
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48b41a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48b50b
test word [esi + 0xc], 0x10c
je 0x48b46e
mov eax, dword [esi + 4]
test eax, eax
je 0x48b46e
jl 0x48b56c
cmp ebx, eax
mov edi, ebx
jb 0x48b43f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48b513
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048a868
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 0x48b503
cmp ebx, dword [ebp - 0xc]
jb 0x48b4db
cmp dword [ebp - 0xc], 0
je 0x48b498
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48b48d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48b494
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48b4a3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x48b4a3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48b53f
push eax
push dword [ebp - 8]
push esi
call fcn.0048d94d
pop ecx
push eax
call fcn.00498bd2
add esp, 0xc
test eax, eax
je 0x48b57e
cmp eax, 0xffffffff
je 0x48b56c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48b503
push esi
call fcn.004984f1
cmp eax, 0xffffffff
pop ecx
je 0x48b570
cmp dword [ebp - 4], 0
je 0x48b53f
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 0x48b422
mov eax, dword [ebp + 0x14]
jmp 0x48b3bd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48b52a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048b640
add esp, 0xc
call fcn.00491f80
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48b3b3
cmp dword [ebp + 0xc], 0xffffffff
je 0x48b555
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048b640
add esp, 0xc
call fcn.00491f80
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48b3b3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48b3bd
or dword [esi + 0xc], 0x10
jmp 0x48b570
Function at 0x48e863
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48e890
call fcn.00491f93
mov dword [eax], esi
call fcn.00491f80
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048afaa
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48e86c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48e8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00491fa6
pop ecx
call fcn.00491f80
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48e8e6
test al, 1
je 0x48e8e6
test byte [esp + 0xc], 2
je 0x48e8e6
call fcn.00491f93
mov dword [eax], 5
call fcn.00491f80
mov dword [eax], 0xd
jmp 0x48e8b6
xor eax, eax
pop esi
ret

Function at 0x490f63
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d6160]
jne 0x490f6d
repz ret
jmp fcn.004a189a

Function at 0x495da5
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 + 0x4d6cb8]
je 0x495dc0
inc edi
cmp edi, 0x17
jb 0x495db1
cmp edi, 0x17
jae 0x495f40
push ebp
push 3
call fcn.004a3397
cmp eax, 1
pop ecx
je 0x495f0c
push 3
call fcn.004a3397
test eax, eax
pop ecx
jne 0x495df4
cmp dword [0x4d615c], 1
je 0x495f0c
cmp ebx, 0xfc
je 0x495f3f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4db130
push ebp
call fcn.0048ea31
add esp, 0xc
test eax, eax
je 0x495e2a
push esi
push esi
push esi
push esi
push esi
call fcn.0048aeae
add esp, 0x14
push 0x104
mov esi, 0x4db149
push esi
push 0
mov byte [0x4db24d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x495e6e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048ea31
add esp, 0xc
test eax, eax
je 0x495e6e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048aeae
add esp, 0x14
push esi
call fcn.00488a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x495eb3
push esi
call fcn.00488a40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4db444
push 0x4b393c
sub ecx, eax
push ecx
push eax
call fcn.004a0621
add esp, 0x14
test eax, eax
je 0x495eb3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048aeae
add esp, 0x14
jmp 0x495eb5
xor esi, esi
push 0x4b3938
push ebx
push ebp
call fcn.004a05b0
add esp, 0xc
test eax, eax
je 0x495ed5
push esi
push esi
push esi
push esi
push esi
call fcn.0048aeae
add esp, 0x14
push dword [edi*8 + 0x4d6cbc]
push ebx
push ebp
call fcn.004a05b0
add esp, 0xc
test eax, eax
je 0x495ef7
push esi
push esi
push esi
push esi
push esi
call fcn.0048aeae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a31da
add esp, 0xc
jmp 0x495f3f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x495f3f
cmp ebp, 0xffffffff
je 0x495f3f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d6cbc]
push dword [esi]
call fcn.00488a40
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 0x4a31da
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00495826
xor ebx, ebx
cmp dword [0x4dbbe4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a32b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a3390
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a3390
push eax
call fcn.004957b8
mov dword [esp], 0x4b4520
push edi
mov dword [0x4dbbe4], eax
call esi
push eax
call fcn.004957b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dbbe8], eax
call esi
push eax
call fcn.004957b8
mov dword [0x4dbbec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00490aa2
test eax, eax
pop ecx
pop ecx
je 0x4a327e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048aeae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a32b0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004957b8
cmp eax, ebx
pop ecx
mov dword [0x4dbbf4], eax
je 0x4a32b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004957b8
pop ecx
mov dword [0x4dbbf0], eax
mov eax, dword [0x4dbbf0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a3335
cmp dword [0x4dbbf4], ecx
je 0x4a3335
push eax
call fcn.0049582f
push dword [0x4dbbf4]
mov esi, eax
call fcn.0049582f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a3335
cmp edi, ebx
je 0x4a3335
call esi
cmp eax, ebx
je 0x4a3302
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a3302
test byte [ebp - 0x18], 1
jne 0x4a3335
lea eax, [ebp - 0x10]
push eax
call fcn.00490ad9
test eax, eax
pop ecx
je 0x4a331d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048aeae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a332c
or dword [ebp + 0x10], 0x200000
jmp 0x4a3370
or dword [ebp + 0x10], 0x40000
jmp 0x4a3370
mov eax, dword [0x4dbbe8]
cmp eax, dword [ebp - 8]
je 0x4a3370
push eax
call fcn.0049582f
cmp eax, ebx
pop ecx
je 0x4a3370
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a3370
mov eax, dword [0x4dbbec]
cmp eax, dword [ebp - 8]
je 0x4a3370
push eax
call fcn.0049582f
cmp eax, ebx
pop ecx
je 0x4a3370
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dbbe4]
call fcn.0049582f
cmp eax, ebx
pop ecx
je 0x4a3390
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a3392
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407525
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x407562
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x40755b
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x407567
add edx, 0x28
cmp edx, esi
jne 0x40754c
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x407564

Function at 0x40e23a
Capabilities:
Encode data using xor

Disassembly:
call 0x40e1b3
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40e1e3
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40e1ff
xor edx, 0
jmp 0x40e20a
xor edx, edx
jmp 0x40e221
jmp 0x40e22d
xor eax, eax
push 0x8427d7c0
call 0x40e23a
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40e276
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40e24f
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40e28d
add eax, 0
jno 0x40e292
add esi, 0
ret 0x10