joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f690
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.00487500
add esp, 0xc
test eax, eax
jle 0x47f6d4
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.0047ef00
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.0047f290
add esp, 8
test al, al
je 0x47f6f8
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.004872e0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0047cb60
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47f745
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004872e0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0047cb60
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.0047edd0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482950
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 0x482990
cmp ebp, ebx
jne 0x482990
mov eax, dword [esp + 0x334]
call fcn.00482930
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4829ab
mov esi, edi
call fcn.00484110
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 0x4829df
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 0x482a26
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x482a0e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x482a0e
add eax, 1
cmp eax, ecx
jb 0x482a01
cmp eax, ecx
jne 0x482a20
cmp ecx, 0x40
jae 0x482a20
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x482a26
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 0x482a71
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 0x482a7b
jne 0x482a7b
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 0x482ae5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x482aae
cmp eax, 0x2714
jne 0x482ae9
test edi, edi
jle 0x482a40
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00484110
push edx
push eax
call fcn.00484140
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x482a40
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x482af7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x482b06
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 0x482b3d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482b2b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482b3d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x482b70
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482b5e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482b70
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4835a0
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.00484110
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.00484140
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x483655
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.00482950
add esp, 0xc
test eax, eax
jle 0x483655
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0047c880
add esp, 0x10
test eax, eax
jne 0x483658
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x483660
test eax, eax
je 0x483655
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.00484110
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00484140
add esp, 0x10
cmp eax, ebx
jle 0x4835f0
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 0x484da0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x484daf
jmp dword [ecx*4 + 0x484e04]
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 0x484f90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d315c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0049171c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x484ff5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x484ff5
lea edx, [esp]
push edx
call dword [0x4d300c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00490175
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00490175
add esp, 0x108
ret
jmp 0x484f90
Function at 0x485010
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d315c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0049171c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x484ff5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x484ff5
lea edx, [esp]
push edx
call dword [0x4d300c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00490175
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00490175
add esp, 0x108
ret
jmp 0x484f90

Function at 0x48892e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d315c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048886d
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.0048b810
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 0x48897d
cmp dword [ebp - 0x1c], 5
jb 0x488995
jmp 0x488991
cmp dword [ebp - 0x10], 1
jne 0x488995
cmp dword [ebp - 0x1c], 4
ja 0x488991
jne 0x488995
cmp dword [ebp - 0x18], 0
jbe 0x488995
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b0508
call fcn.00409290
test eax, eax
jge 0x4889b6
mov byte [0x4d8fec], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00490175
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x4d8090], 0
push esi
jne 0x488ba8
call fcn.00488ad3
test eax, eax
je 0x488beb
mov eax, dword [0x4d8090]
cmp eax, 1
jne 0x488bc9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x488beb
pop esi
ret
push eax
call dword [0x4d8098]
test eax, eax
jne 0x488c33
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 0x488bef
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4d8090]
call dword [0x4d8098]
mov edi, eax
test edi, edi
je 0x488c16
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x488c32
lea edi, [esi + 0xff0]
push esi
push dword [0x4d8090]
call dword [0x4d8094]
add esi, 0x10
cmp esi, edi
jb 0x488c1c
mov eax, esi
pop edi
pop esi
ret
jmp 0x488b95
Function at 0x48b550
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 0x48b58d
cmp dword [ebp + 0x14], edi
je 0x48b58d
cmp ecx, edi
jne 0x48b594
call fcn.00491190
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048b1ea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48b5a8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48b5c9
cmp ebx, 0xffffffff
je 0x48b5b8
push ebx
push edi
push ecx
call fcn.0048b810
add esp, 0xc
cmp esi, edi
je 0x48b575
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48b575
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48b5e5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48b5ec
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48b6dd
test word [esi + 0xc], 0x10c
je 0x48b640
mov eax, dword [esi + 4]
test eax, eax
je 0x48b640
jl 0x48b73e
cmp ebx, eax
mov edi, ebx
jb 0x48b611
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48b6e5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048aaf8
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 0x48b6d5
cmp ebx, dword [ebp - 0xc]
jb 0x48b6ad
cmp dword [ebp - 0xc], 0
je 0x48b66a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48b65f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48b666
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48b675
mov eax, SysReAllocString
cmp ebx, eax
ja 0x48b675
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48b711
push eax
push dword [ebp - 8]
push esi
call fcn.0048d73f
pop ecx
push eax
call fcn.00497b8a
add esp, 0xc
test eax, eax
je 0x48b750
cmp eax, 0xffffffff
je 0x48b73e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48b6d5
push esi
call fcn.004974a9
cmp eax, 0xffffffff
pop ecx
je 0x48b742
cmp dword [ebp - 4], 0
je 0x48b711
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 0x48b5f4
mov eax, dword [ebp + 0x14]
jmp 0x48b58f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48b6fc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048b810
add esp, 0xc
call fcn.00491190
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48b585
cmp dword [ebp + 0xc], 0xffffffff
je 0x48b727
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048b810
add esp, 0xc
call fcn.00491190
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48b585
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48b58f
or dword [esi + 0xc], 0x10
jmp 0x48b742
Function at 0x48e983
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48e9b0
call fcn.004911a3
mov dword [eax], esi
call fcn.00491190
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048b1ea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48e98c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48e9df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004911b6
pop ecx
call fcn.00491190
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48ea06
test al, 1
je 0x48ea06
test byte [esp + 0xc], 2
je 0x48ea06
call fcn.004911a3
mov dword [eax], 5
call fcn.00491190
mov dword [eax], 0xd
jmp 0x48e9d6
xor eax, eax
pop esi
ret

Function at 0x490175
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d315c]
jne 0x49017f
repz ret
jmp fcn.0049f26d

Function at 0x494f56
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 + 0x4d3cb8]
je 0x494f71
inc edi
cmp edi, 0x17
jb 0x494f62
cmp edi, 0x17
jae 0x4950f1
push ebp
push 3
call fcn.004a12d9
cmp eax, 1
pop ecx
je 0x4950bd
push 3
call fcn.004a12d9
test eax, eax
pop ecx
jne 0x494fa5
cmp dword [0x4d3158], 1
je 0x4950bd
cmp ebx, 0xfc
je 0x4950f0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d8190
push ebp
call fcn.0048eb51
add esp, 0xc
test eax, eax
je 0x494fdb
push esi
push esi
push esi
push esi
push esi
call fcn.0048b0ee
add esp, 0x14
push 0x104
mov esi, 0x4d81a9
push esi
push 0
mov byte [0x4d82ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49501f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048eb51
add esp, 0xc
test eax, eax
je 0x49501f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048b0ee
add esp, 0x14
push esi
call fcn.00488cd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x495064
push esi
call fcn.00488cd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d84a4
push 0x4b195c
sub ecx, eax
push ecx
push eax
call fcn.004a077d
add esp, 0x14
test eax, eax
je 0x495064
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048b0ee
add esp, 0x14
jmp 0x495066
xor esi, esi
push 0x4b1958
push ebx
push ebp
call fcn.004a0ad5
add esp, 0xc
test eax, eax
je 0x495086
push esi
push esi
push esi
push esi
push esi
call fcn.0048b0ee
add esp, 0x14
push dword [edi*8 + 0x4d3cbc]
push ebx
push ebp
call fcn.004a0ad5
add esp, 0xc
test eax, eax
je 0x4950a8
push esi
push esi
push esi
push esi
push esi
call fcn.0048b0ee
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a111c
add esp, 0xc
jmp 0x4950f0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4950f0
cmp ebp, 0xffffffff
je 0x4950f0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d3cbc]
push dword [esi]
call fcn.00488cd0
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 0x4a111c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004949d7
xor ebx, ebx
cmp dword [0x4d8c40], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a11f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a12d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a12d2
push eax
call fcn.00494969
mov dword [esp], 0x4b1d44
push edi
mov dword [0x4d8c40], eax
call esi
push eax
call fcn.00494969
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d8c44], eax
call esi
push eax
call fcn.00494969
mov dword [0x4d8c48], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048fcb4
test eax, eax
pop ecx
pop ecx
je 0x4a11c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048b0ee
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a11f2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00494969
cmp eax, ebx
pop ecx
mov dword [0x4d8c50], eax
je 0x4a11f2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00494969
pop ecx
mov dword [0x4d8c4c], eax
mov eax, dword [0x4d8c4c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a1277
cmp dword [0x4d8c50], ecx
je 0x4a1277
push eax
call fcn.004949e0
push dword [0x4d8c50]
mov esi, eax
call fcn.004949e0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a1277
cmp edi, ebx
je 0x4a1277
call esi
cmp eax, ebx
je 0x4a1244
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a1244
test byte [ebp - 0x18], 1
jne 0x4a1277
lea eax, [ebp - 0x10]
push eax
call fcn.0048fceb
test eax, eax
pop ecx
je 0x4a125f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048b0ee
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a126e
or dword [ebp + 0x10], 0x200000
jmp 0x4a12b2
or dword [ebp + 0x10], 0x40000
jmp 0x4a12b2
mov eax, dword [0x4d8c44]
cmp eax, dword [ebp - 8]
je 0x4a12b2
push eax
call fcn.004949e0
cmp eax, ebx
pop ecx
je 0x4a12b2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a12b2
mov eax, dword [0x4d8c48]
cmp eax, dword [ebp - 8]
je 0x4a12b2
push eax
call fcn.004949e0
cmp eax, ebx
pop ecx
je 0x4a12b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d8c40]
call fcn.004949e0
cmp eax, ebx
pop ecx
je 0x4a12d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a12d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x996520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x410000]
push edi
or ebp, 0xffffffff
jmp 0x996542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x996549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x996538
mov eax, 1
add ebx, ebx
jne 0x99655b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x99656c
jne 0x99658b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x99658b
dec eax
add ebx, ebx
jne 0x996578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x996550
add ebx, ebx
jne 0x996587
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9965dd
xor ecx, ecx
sub eax, 3
jb 0x9965a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x996612
sar eax, 1
mov ebp, eax
jmp 0x9965ae
add ebx, ebx
jne 0x9965ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x99657c
inc ecx
add ebx, ebx
jne 0x9965bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x99657c
add ebx, ebx
jne 0x9965c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9965be
jne 0x9965da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9965be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9965fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9965ee
jmp 0x99653e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9965fc
add edi, ecx
jmp 0x99653e
pop esi
mov edi, esi
mov ecx, 0x3266
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x99661a
cmp byte [edi], 0x13
jne 0x99661a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x99661f
lea edi, [esi + 0x593000]
mov eax, dword [edi]
or eax, eax
je 0x996697
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d3e5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d3fa8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x99664c
mov ecx, edi
jns 0x99667b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d3fb0]
or eax, eax
je 0x996691
mov dword [ebx], eax
add ebx, 4
jmp 0x996669
call dword [esi + 0x5d3fac]
mov ebp, dword [esi + 0x5d3fb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9966cb
sub esp, 0xffffff80
jmp 0x49d2f0
Function at 0x401647
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405120], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40508e], ecx
mov dword [0x405124], 0x30
mov dword [0x405128], 3
mov dword [0x405130], 0
mov dword [0x405134], 0
mov dword [0x40512c], 0x403148
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x405086], ebx
mov dword [0x405138], ebx
mov dword [0x405144], 0xf
mov dword [0x40514c], 0x405067
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x40513c], eax
mov dword [0x405150], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x405140], eax
push 0x405124
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x405086]
push 0
push 0
push 0x2bc
push 0x1f4
push 0xa0
push 0x12c
push 0x40000
push str.Hello_word
push str.2class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x405118], eax
push 0
push dword [0x405118]
call sub.user32.dll_ShowWindow
push dword [0x405118]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x405154
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40176b
push 0x405154
call sub.user32.dll_TranslateMessage
push 0x405154
call sub.user32.dll_DispatchMessageA
jmp 0x401741
mov eax, dword [0x40515c]
mov esi, dword [0x4051b4]
lea ecx, [0x405086]
add esi, eax
call esi
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x43227f87
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x11d95dd7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219