joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dfd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x45e173
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041aebc
cmp byte [ebp + 8], 0
je 0x45e029
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041ad8c
jmp 0x45e037
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041ad8c
mov eax, dword [ebx + 0x10]
call fcn.0041aeb4
dec eax
jle 0x45e07d
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041ad84
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041aeb4
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041ae4c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.004032c0
test al, al
je 0x45e0c6
test esi, esi
jne 0x45e0c6
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x45e0fc
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041bc58
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4676a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x467743
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404118
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46771d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4b5324]
call fcn.00406248
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x467228]
call fcn.0040c514
call fcn.004037d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00467370
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46774a
lea eax, [ebp - 0x10]
call fcn.00403cd8
ret

Function at 0x4708c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x470a22
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470a02
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403e7c
lea eax, [ebp - 0x118]
mov edx, 0x470a38
call fcn.00403f5c
mov eax, dword [ebp - 0x118]
call fcn.00404118
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x470974
lea eax, [ebp - 0x111]
call fcn.004097f0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403dbc
jmp 0x47097b
mov eax, esi
call fcn.00403cd8
cmp bl, 0x61
jae 0x47099c
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040d0e4
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d70
jmp 0x4709b6
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040d058
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d70
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x470a44
call fcn.00409f4c
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470a09
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404118
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4730b1
test al, 0x10
jne 0x4730b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47c22c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c304
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b6910], 0
jne 0x47c2e8
lea eax, [ebp - 4]
mov edx, 0x47c31c
call fcn.00403d70
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404118
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47c2e8
mov eax, ebx
call fcn.00402770
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47c2e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47c2cb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47c32c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47c2cb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4b6910], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c2e8
mov eax, dword [ebp - 0xc]
call fcn.00402788
ret
mov ebx, dword [0x4b6910]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c30b
lea eax, [ebp - 4]
call fcn.00403cd8
ret

Function at 0x48cf10
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4b6934], 0
jne 0x48cf33
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48ce94
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b6934], eax
ret
Function at 0x49ed1c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x49ed25
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49ee9f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [edx + 0xa], 0
jbe 0x49ed58
mov byte [ebx + 0xb4], 0
jmp 0x49ed5f
mov byte [ebx + 0xb4], 1
mov eax, dword [edx]
sub eax, 0x465
je 0x49ed82
dec eax
je 0x49ee59
dec eax
je 0x49ee85
dec eax
je 0x49ee8e
jmp 0x49ee95
movzx eax, word [edx + 8]
cmp eax, 8
jg 0x49eda4
je 0x49ee41
dec eax
je 0x49ee2f
dec eax
je 0x49ee38
jmp 0x49ee95
sub eax, 0x10
je 0x49edb3
sub eax, 0x10
je 0x49eddf
jmp 0x49ee95
cmp byte [ebx + 0xb4], 0
je 0x49ee95
mov byte [ebx + 0x2a0], 1
cmp word [ebx + 0x3a], 0
je 0x49ee95
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
jmp 0x49ee95
push 0
push 0x3fff
lea eax, [ebp - 0x4000]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.wsock32.dll_recv
mov esi, eax
test esi, esi
jle 0x49ee13
lea edx, [ebp - 0x4000]
mov eax, dword [ebx + 0x29c]
mov ecx, esi
call fcn.00413974
dec esi
jl 0x49ee1f
cmp byte [ebx + 0x84], 0
je 0x49eddf
mov byte [ebx + 0x2a0], 0
mov eax, ebx
call fcn.0049f348
jmp 0x49ee95
mov eax, ebx
call fcn.0049eeb0
jmp 0x49ee95
mov eax, ebx
call fcn.0049f0e4
jmp 0x49ee95
mov byte [ebx + 0x2a0], 1
cmp word [ebx + 0x32], 0
je 0x49ee95
mov edx, ebx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
jmp 0x49ee95
mov byte [ebx + 0xd4], 1
cmp word [edx + 8], 8
jne 0x49ee95
mov byte [ebx + 0x2a0], 1
test byte [ebx + 0x20], 8
jne 0x49ee95
cmp word [ebx + 0x42], 0
je 0x49ee95
mov edx, ebx
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x49ee95
mov eax, ebx
call fcn.0049f0e4
jmp 0x49ee95
mov eax, ebx
call fcn.0049eeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49eea9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49eeb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x49eeb9
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x4010], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f0d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84], 0
je 0x49ef34
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov eax, dword [ebp - 4]
cmp word [eax + 0x28e], 0
je 0x49ef34
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x290]
call dword [ebx + 0x28c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x79], 0
jne 0x49f0b5
xor eax, eax
push ebp
push 0x49f0ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 1
lea edx, [ebp - 0x4010]
mov eax, dword [0x4b4dd4]
call fcn.00406248
mov ecx, dword [ebp - 0x4010]
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0049f500
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x29c]
mov eax, ebx
call fcn.004138c0
mov edx, eax
mov eax, ebx
call fcn.004138b4
push 0
push 0x3fff
lea eax, [ebp - 0x4009]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49f023
lea edx, [ebp - 0x4009]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov ecx, ebx
call fcn.00413974
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x49effb
mov eax, dword [ebp - 4]
add dword [eax + 0xc0], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0xc6], 0
je 0x49effb
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc8]
call dword [esi + 0xc4]
mov byte [ebp - 9], 1
cmp ebx, 0x3fff
jne 0x49f07d
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
call sub.user32.dll_PostMessageA
jmp 0x49f07d
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], ebx
lea ecx, [ebp - 8]
mov edx, ebx
cmp edx, 0xffff
jbe 0x49f045
call fcn.0040302c
mov eax, dword [ebp - 4]
call fcn.0049e7b4
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
je 0x49f07d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
cmp ecx, 0xffff
jbe 0x49f071
call fcn.0040302c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f0b5
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 0
cmp byte [ebp - 9], 0
je 0x49f0ad
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x49f0ad
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f0dd
lea eax, [ebp - 0x4010]
call fcn.00403cd8
lea eax, [ebp - 8]
call fcn.00403cd8
ret
Function at 0x49f0e4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x49f0ed
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4004], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f339
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x79], 0
jne 0x49f320
mov byte [ebx + 0x79], 1
lea edx, [ebp - 0x4004]
mov eax, dword [0x4b522c]
call fcn.00406248
mov ecx, dword [ebp - 0x4004]
mov dl, 8
mov eax, ebx
call fcn.0049f500
cmp byte [ebx + 0x288], 0
je 0x49f167
mov eax, dword [ebx + 0xa8]
call fcn.004138a4
mov esi, eax
mov eax, dword [ebx + 0xa8]
call fcn.004138c0
cmp esi, eax
jl 0x49f187
cmp byte [ebx + 0x288], 0
jne 0x49f31c
mov eax, dword [ebx + 0xa8]
call fcn.004138c0
test eax, eax
je 0x49f31c
cmp byte [ebx + 0x84], 0
jne 0x49f31c
cmp byte [ebx + 0x288], 0
jne 0x49f1ac
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.004138b4
jmp 0x49f1bd
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0xa8]
call fcn.004138b4
lea edx, [ebp - 0x4000]
mov ecx, 0x3fff
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax]
call dword [esi + 4]
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x4000]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f300
mov eax, dword [ebx + 0xa8]
call fcn.004138a4
sub eax, edi
add eax, esi
push eax
mov eax, dword [ebx + 0xa8]
call fcn.004138c0
pop edx
cmp edx, eax
jl 0x49f237
cmp byte [ebx + 0x288], 0
jne 0x49f22b
mov eax, dword [ebx + 0xa8]
call fcn.00413d68
mov byte [ebx + 0x286], 1
jmp 0x49f2da
cmp byte [ebx + 0x288], 0
jne 0x49f2aa
mov eax, dword [ebx + 0xac]
call fcn.00413d68
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004138b4
mov edi, dword [ebx + 0xa8]
mov eax, edi
call fcn.004138c0
mov ecx, eax
sub ecx, esi
mov edx, edi
mov eax, dword [ebx + 0xac]
call fcn.004139f0
mov eax, dword [ebx + 0xa8]
call fcn.00413d68
mov eax, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
mov dword [ebx + 0xac], edx
mov edx, eax
mov dword [ebx + 0xa8], edx
mov eax, edx
xor edx, edx
call fcn.004138b4
mov byte [ebx + 0x79], 0
jmp 0x49f2c6
mov eax, dword [ebx + 0xa8]
call fcn.004138a4
mov edx, eax
sub edx, edi
add edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004138b4
push ebx
push 0
push 0x467
mov eax, dword [ebx + 0x298]
push eax
call sub.user32.dll_PostMessageA
add dword [ebx + 0x80], esi
cmp byte [ebx + 0x78], 0
je 0x49f31c
cmp word [ebx + 0xce], 0
je 0x49f31c
mov edx, ebx
mov eax, dword [ebx + 0xd0]
call dword [ebx + 0xcc]
jmp 0x49f31c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebx + 0x88], eax
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.004138b4
mov byte [ebx + 0x79], 0
mov byte [ebx + 0x79], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f340
lea eax, [ebp - 0x4004]
call fcn.00403cd8
ret
Function at 0x49f348
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x49f416
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4b50b0]
call fcn.00406248
mov ecx, dword [ebp - 4]
mov dl, 4
mov eax, ebx
call fcn.0049f500
mov byte [ebx + 0x2a0], 0
mov si, word [ebx + 0x294]
cmp si, 0xffff
je 0x49f400
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x49f3f2
test byte [ebx + 0x20], 8
jne 0x49f3af
cmp word [ebx + 0x42], 0
je 0x49f3af
mov edx, ebx
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
cmp byte [ebx + 0x85], 0
jne 0x49f400
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x49f3d2
call fcn.0040302c
mov word [ebx + 0x294], si
push 0x3f
push 0x465
mov eax, dword [ebx + 0x298]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x49f400
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0049f424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f41d
lea eax, [ebp - 4]
call fcn.00403cd8
ret
Function at 0x403340
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg eax
imul esi
neg eax
not edi
rol esi, 0xc5
mov esi, 0x6e
add edi, 0x27
rol esi, 0x12
sub esi, 0xcd
ror eax, 0x62
and eax, 8
imul ebx
rcl eax, 0xae
mov ebx, 0x8b
rcl esi, 0x1c
inc eax
rcr edx, 0x9d
rcl edi, 2
neg edi
imul edi
inc ebx
imul edi
bswap edx
dec eax
imul edx
add ebx, 0xc7
imul edi
neg esi
neg ebx
imul edi
imul esi
or edi, 7
sbb eax, 0xdc
sub esi, 0x9d
not esi
add edi, 0xb9
neg edi
or edi, 0xcd
and esi, 0x16
imul edx
ror eax, 7
neg edi
not edi
inc edx
inc esi
add ebx, 0x95
sub edx, 0xef
inc ebx
not eax
imul edx
xor ecx, ecx
xor edi, edi
add edx, 0x38
imul esi
rol edi, 0x39
not edi
sub ebx, 0x64
mov edx, 0x5a
bswap edi
mov ebx, 0xda
imul edi
and edx, 0xb4
rcr esi, 0xa7
inc ebx
dec esi
dec eax
and esi, 0xc8
or edx, 0xf7
neg edx
dec edx
sbb edi, 0x4c
sub ebx, 0x78
inc ebx
rcl edx, 0xc4
dec ebx
neg ebx
not esi
imul esi
ror edi, 0x4b
imul eax
ror ebx, 0xdb
mov esi, 0x83
dec edi
dec edi
add ebx, 0xc3
and edi, 0x6f
and ebx, 0x7c
rcl ebx, 0x95
and edi, 0xc9
dec esi
inc ebx
bswap eax
add edi, 0x65
sbb ebx, 0x8c
dec edi
or eax, 0x79
bswap edx
add ebx, 0x26
neg eax
sub ebx, 0x5a
add edi, 0xe6
bswap eax
mov ecx, dword [ebp + 0xc]
add ebx, 0xec
imul edx
imul edx
sub esi, 7
rcr eax, 0xac
sub esi, 0x43
and esi, 0xbd
bswap eax
imul ebx
neg eax
imul edx
rol esi, 0xe
bswap edi
mov esi, 0x1b
rol edi, 0xdc
sbb eax, 0x92
neg edi
sbb esi, 0x6b
bswap edx
sub edx, 0x6d
bswap esi
inc esi
imul ebx
imul edi
imul ebx
dec esi
sbb edx, 0x36
mov edx, 0x68
rcr ebx, 0xfc
inc eax
mov eax, 0x9a
ror edi, 0x71
rcr edx, 0x88
mov edx, 0x43
bswap eax
mov eax, 0x33
neg eax
dec esi
and esi, 0xea
not edx
and ebx, 0x6d
and edx, 0xa
not ebx
dec edx
ror ebx, 0xd1
rcr esi, 0x7c
ror esi, 0xb2
dec edx
dec esi
bswap ebx
mov edi, dword [ebp + 8]
mov esi, eax
xor eax, ebx
mov ebx, esi
not byte [edi]
xor ebx, eax
mov esi, esi
xor ebx, eax
mov ebx, esi
mov eax, eax
xor ebx, eax
xor ebx, eax
mov eax, esi
mov ebx, esi
add byte [edi], 0x68
mov ebx, esi
xor esi, esi
xor ebx, ebx
xor esi, esi
xor ebx, esi
xor eax, ebx
xor ebx, eax
mov eax, ebx
mov eax, esi
sub byte [edi], 0x44
xor esi, eax
xor ebx, esi
mov esi, ebx
mov ebx, ebx
xor eax, ebx
xor eax, eax
mov ebx, eax
mov esi, eax
mov esi, esi
imul byte [edi]
inc edi
loop 0x4034fe
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408eea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418484]
jne 0x408ef4
repz ret
jmp fcn.0040d8c5
Function at 0x40f0cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040be8f
and dword [ebp - 4], 0
cmp dword [0x4199f4], 0
mov ebx, eax
jne 0x40f17e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f22f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f22f
push eax
call fcn.0040be1d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4199f4], eax
call esi
push eax
call fcn.0040be1d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4199f8], eax
call esi
push eax
call fcn.0040be1d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4199fc], eax
call esi
push eax
call fcn.0040be1d
pop ecx
mov dword [0x419a04], eax
test eax, eax
je 0x40f17e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040be1d
pop ecx
mov dword [0x419a00], eax
mov eax, dword [0x419a00]
cmp eax, ebx
je 0x40f1d6
cmp dword [0x419a04], ebx
je 0x40f1d6
push eax
call fcn.0040be98
push dword [0x419a04]
mov esi, eax
call fcn.0040be98
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f1d6
test edi, edi
je 0x40f1d6
call esi
test eax, eax
je 0x40f1cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f1cd
test byte [ebp - 0xc], 1
jne 0x40f1d6
or dword [ebp + 0x10], 0x200000
jmp 0x40f20f
mov eax, dword [0x4199f8]
cmp eax, ebx
je 0x40f20f
push eax
call fcn.0040be98
pop ecx
test eax, eax
je 0x40f20f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f20f
mov eax, dword [0x4199fc]
cmp eax, ebx
je 0x40f20f
push eax
call fcn.0040be98
pop ecx
test eax, eax
je 0x40f20f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4199f4]
call fcn.0040be98
pop ecx
test eax, eax
je 0x40f22f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f231
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x5ee84285
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x29a9543e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4010a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.BINRES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010c1
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x411030
push ecx
mov edi, eax
call fcn.00407765
mov esi, eax
add esp, 8
test esi, esi
jne 0x4010fe
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004075fb
push esi
call fcn.0040757e
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret