joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423019
Capabilities:
Get graphical window text

Disassembly:
push 0x18
mov eax, 0x46c467
call fcn.00452117
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x10], 0
test eax, eax
je 0x423046
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x423162
mov eax, dword [0x492934]
mov ecx, 0x492934
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
and dword [ebp - 4], 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
lea esi, [ebp + 0x10]
call fcn.00401877
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.0040a10e
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x423157
cmp dword [ebx + 0x14], edi
je 0x423157
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x14]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
add dword [ebp - 0x24], 3
inc dword [ebp - 0x20]
sub dword [ebp - 0x1c], 2
mov eax, dword [ebx + 0x1c]
dec dword [ebp - 0x18]
push 0x904
lea ecx, [ebp - 0x24]
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
test esi, esi
je 0x423157
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00401976
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0x10]
call fcn.004521ef
ret 0x10

Function at 0x4237e3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
mov esi, eax
call edi
mov ebx, 0xff00
and ax, bx
cmp ax, bx
je 0x423813
push 2
call edi
and ax, bx
cmp ax, bx
je 0x423813
push 1
push esi
call fcn.004238da
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0042341d
mov edi, eax
test edi, edi
je 0x423843
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423843
push dword [esp + 0x10]
mov eax, dword [edi]
push 0
push 0
push edi
call dword [eax + 0x28]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x42565d
Capabilities:
Find taskbar

Disassembly:
push 0x214
mov eax, 0x46e8cb
call fcn.00452180
xor ebx, ebx
push ebx
push 0x4826f0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x425823
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425823
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
lea esi, [ebp - 0x220]
mov dword [ebp - 4], ebx
call fcn.00425d64
mov eax, esi
push eax
push 0x425643
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
xor edi, edi
cmp eax, ebx
jne 0x4256d8
xor ecx, ecx
jmp 0x4256df
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jge 0x425814
cmp eax, ebx
je 0x4256f6
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x425707
call fcn.0044d6f0
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
mov esi, edi
shl esi, 2
cmp dword [esi + eax], ebx
je 0x4257d4
cmp eax, ebx
je 0x425722
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x42572d
call fcn.0044d6f0
mov eax, dword [ebp - 0x21c]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4257c8
cmp dword [ebp - 0x21c], ebx
je 0x42575a
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 2
cmp edi, eax
jb 0x42575f
call fcn.0044d6f0
push 0xff
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x21c]
push dword [esi + eax]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x210]
push str.Button
push eax
call fcn.0044db7c
test eax, eax
pop ecx
pop ecx
jne 0x4257c8
cmp dword [ebp - 0x21c], ebx
je 0x4257ac
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 2
cmp edi, eax
jb 0x4257b1
call fcn.0044d6f0
mov eax, dword [ebp - 0x21c]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x5de
je 0x4257da
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
inc edi
jmp 0x4256d0
mov ecx, dword [ebp - 0x21c]
cmp ecx, ebx
je 0x4257f3
mov eax, dword [ebp - 0x218]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4257fe
call fcn.0044d6f0
mov ecx, dword [ebp - 0x21c]
mov esi, dword [ecx + edi*4]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x425810
push ecx
call fcn.00449d28
pop ecx
mov eax, esi
jmp 0x425825
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x425823
push eax
call fcn.00449d28
pop ecx
xor eax, eax
call fcn.00452203
ret
Function at 0x425912
Capabilities:
Find taskbar

Disassembly:
push 0x28
mov eax, 0x46ee88
call fcn.00452117
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 0x14], edi
je 0x425a23
cmp dword [esi + 0x2c], 0xffffffff
je 0x425a23
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push edi
push 0x4826f0
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x42596e
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00425af6
add esp, 0xc
cmp dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x1c]
jne 0x42597a
xor ebx, ebx
jmp 0x425982
mov ebx, eax
sub ebx, dword [ebp - 0x20]
sar ebx, 2
test ebx, ebx
jle 0x4259e3
jmp 0x42598b
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x42599b
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp edi, eax
jb 0x4259a0
call fcn.0044d6f0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
push dword [esi + 0x2c]
lea eax, [eax + edi*4]
push dword [esi + 0x30]
mov ecx, dword [eax]
call fcn.00425b44
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x4259d8
mov eax, dword [ebp - 0x34]
lea edx, [eax + 8]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x30]
add edx, 8
mov dword [eax + 4], edx
mov dword [ebp - 0x14], ecx
inc edi
cmp edi, ebx
jl 0x425988
cmp dword [ebp - 0x14], 0
jne 0x425a0b
call fcn.00409eec
test eax, eax
je 0x4259f8
mov esi, dword [ebp + 8]
call fcn.0042582b
test eax, eax
jne 0x425a04
mov esi, dword [ebp + 8]
call fcn.0042588f
test eax, eax
je 0x425a0b
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x425a1e
push dword [ebp - 0x20]
call fcn.00449d28
pop ecx
mov eax, dword [ebp - 0x14]
jmp 0x425a25
xor eax, eax
call fcn.004521ef
ret 4
Function at 0x42a7d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x46e858
call fcn.00452117
mov edi, ecx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x42a839
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42a849
mov dword [ebp - 0x28], vtable.CxMemFile.0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], bl
push ebx
push edi
lea edi, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0042a853
mov esi, edi
mov bl, al
call fcn.0042ee61
mov al, bl
jmp 0x42a84b
add edi, 0x44
push str.Unable_to_load_resource_
push edi
call fcn.0044fd50
pop ecx
pop ecx
xor al, al
call fcn.004521ef
ret 8
Function at 0x4358cd
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x43591c
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
call dword [eax]
mov dword [esi + 0x180], eax
mov dword [eax], 0x434a55
mov dword [eax + 4], 0x434b81
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.0043487a
cmp byte [esi + 0x40], 0
je 0x435915
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x435989
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x43597e
mov eax, dword [esi + 8]
test eax, eax
je 0x43593d
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x43597a
cmp eax, 2
je 0x43597e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x435932
cmp eax, 3
je 0x435961
cmp eax, 1
jne 0x435932
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x435932
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x435932
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4359a7
cmp eax, 0xcc
je 0x4359a7
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.004359ae
pop esi
ret
Function at 0x435fdc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x436069
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0044a360
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x436029
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x43604b
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x436126
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x436091
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x43609c
xor eax, eax
jmp 0x4360e7
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4360b9
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.004461c0
jmp 0x4360ca
cmp ecx, 2
jne 0x4360d1
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0043e4bd
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0044a360
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x436112
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x436126
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x435fe7
pop edi
pop ebx
leave
ret
Function at 0x447d50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x48f600]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
xor edx, edx
cmp ecx, edx
push esi
je 0x447dc3
cmp eax, edx
jle 0x447dc3
cmp edi, edx
je 0x447dc3
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00447ec0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00447f80
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00449d43
add esp, 0x64
ret
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
xor al, al
call fcn.00449d43
add esp, 0x64
ret

Function at 0x448904
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48f600]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00448843
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.0044a1a0
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 0x448953
cmp dword [ebp - 0x1c], 5
jb 0x44896b
jmp 0x448967
cmp dword [ebp - 0x10], 1
jne 0x44896b
cmp dword [ebp - 0x1c], 4
ja 0x448967
jne 0x44896b
cmp dword [ebp - 0x18], 0
jbe 0x44896b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47063c
call fcn.00412ccd
test eax, eax
jge 0x44898c
mov byte [0x49377c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449d43
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x492950], 0
push esi
jne 0x448d69
call fcn.00448c94
test eax, eax
je 0x448dac
mov eax, dword [0x492950]
cmp eax, 1
jne 0x448d8a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x448dac
pop esi
ret
push eax
call dword [0x492958]
test eax, eax
jne 0x448df4
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 0x448db0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x492950]
call dword [0x492958]
mov edi, eax
test edi, edi
je 0x448dd7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x448df3
lea edi, [esi + 0xff0]
push esi
push dword [0x492950]
call dword [0x492954]
add esi, 0x10
cmp esi, edi
jb 0x448ddd
mov eax, esi
pop edi
pop esi
ret
jmp 0x448d56

Function at 0x449d43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48f600]
jne 0x449d4d
repz ret
jmp fcn.00455657
Function at 0x44fe48
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 0x44fe85
cmp dword [ebp + 0x14], edi
je 0x44fe85
cmp ecx, edi
jne 0x44fe8c
call fcn.004548e8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044d6cc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44fea0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44fec1
cmp ebx, 0xffffffff
je 0x44feb0
push ebx
push edi
push ecx
call fcn.0044a1a0
add esp, 0xc
cmp esi, edi
je 0x44fe6d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44fe6d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44fedd
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44fee4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44ffd5
test word [esi + 0xc], 0x10c
je 0x44ff38
mov eax, dword [esi + 4]
test eax, eax
je 0x44ff38
jl 0x450036
cmp ebx, eax
mov edi, ebx
jb 0x44ff09
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44ffdd
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00449d82
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 0x44ffcd
cmp ebx, dword [ebp - 0xc]
jb 0x44ffa5
cmp dword [ebp - 0xc], 0
je 0x44ff62
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x44ff57
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44ff5e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44ff6d
mov eax, closesocket
cmp ebx, eax
ja 0x44ff6d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x450009
push eax
push dword [ebp - 8]
push esi
call fcn.0045d5b5
pop ecx
push eax
call fcn.00460a49
add esp, 0xc
test eax, eax
je 0x450048
cmp eax, 0xffffffff
je 0x450036
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44ffcd
push esi
call fcn.0045d241
cmp eax, 0xffffffff
pop ecx
je 0x45003a
cmp dword [ebp - 4], 0
je 0x450009
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 0x44feec
mov eax, dword [ebp + 0x14]
jmp 0x44fe87
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44fff4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044a1a0
add esp, 0xc
call fcn.004548e8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44fe7d
cmp dword [ebp + 0xc], 0xffffffff
je 0x45001f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044a1a0
add esp, 0xc
call fcn.004548e8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44fe7d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44fe87
or dword [esi + 0xc], 0x10
jmp 0x45003a
Function at 0x459a93
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 + 0x490078]
je 0x459aae
inc edi
cmp edi, 0x17
jb 0x459a9f
cmp edi, 0x17
jae 0x459c2e
push ebp
push 3
call fcn.00467b4a
cmp eax, 1
pop ecx
je 0x459bfa
push 3
call fcn.00467b4a
test eax, eax
pop ecx
jne 0x459ae2
cmp dword [0x48f2b4], 1
je 0x459bfa
cmp ebx, 0xfc
je 0x459c2d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4931a8
push ebp
call fcn.00458bf1
add esp, 0xc
test eax, eax
je 0x459b18
push esi
push esi
push esi
push esi
push esi
call fcn.0044d5d0
add esp, 0x14
push 0x104
mov esi, 0x4931c1
push esi
push 0
mov byte [0x4932c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x459b5c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00458bf1
add esp, 0xc
test eax, eax
je 0x459b5c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044d5d0
add esp, 0x14
push esi
call fcn.0044a110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x459ba1
push esi
call fcn.0044a110
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4934bc
push 0x471ab4
sub ecx, eax
push ecx
push eax
call fcn.00465aae
add esp, 0x14
test eax, eax
je 0x459ba1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044d5d0
add esp, 0x14
jmp 0x459ba3
xor esi, esi
push 0x471ab0
push ebx
push ebp
call fcn.00465a3d
add esp, 0xc
test eax, eax
je 0x459bc3
push esi
push esi
push esi
push esi
push esi
call fcn.0044d5d0
add esp, 0x14
push dword [edi*8 + 0x49007c]
push ebx
push ebp
call fcn.00465a3d
add esp, 0xc
test eax, eax
je 0x459be5
push esi
push esi
push esi
push esi
push esi
call fcn.0044d5d0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046798d
add esp, 0xc
jmp 0x459c2d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x459c2d
cmp ebp, 0xffffffff
je 0x459c2d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49007c]
push dword [esi]
call fcn.0044a110
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 0x46798d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004558a5
xor ebx, ebx
cmp dword [0x49374c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x467a63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x467b43
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x467b43
push eax
call fcn.00455837
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49374c], eax
call esi
push eax
call fcn.00455837
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x493750], eax
call esi
push eax
call fcn.00455837
mov dword [0x493754], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045160b
test eax, eax
pop ecx
pop ecx
je 0x467a31
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044d5d0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x467a63
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00455837
cmp eax, ebx
pop ecx
mov dword [0x49375c], eax
je 0x467a63
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00455837
pop ecx
mov dword [0x493758], eax
mov eax, dword [0x493758]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x467ae8
cmp dword [0x49375c], ecx
je 0x467ae8
push eax
call fcn.004558ae
push dword [0x49375c]
mov esi, eax
call fcn.004558ae
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x467ae8
cmp edi, ebx
je 0x467ae8
call esi
cmp eax, ebx
je 0x467ab5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x467ab5
test byte [ebp - 0x18], 1
jne 0x467ae8
lea eax, [ebp - 0x10]
push eax
call fcn.00451642
test eax, eax
pop ecx
je 0x467ad0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044d5d0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x467adf
or dword [ebp + 0x10], 0x200000
jmp 0x467b23
or dword [ebp + 0x10], 0x40000
jmp 0x467b23
mov eax, dword [0x493750]
cmp eax, dword [ebp - 8]
je 0x467b23
push eax
call fcn.004558ae
cmp eax, ebx
pop ecx
je 0x467b23
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x467b23
mov eax, dword [0x493754]
cmp eax, dword [ebp - 8]
je 0x467b23
push eax
call fcn.004558ae
cmp eax, ebx
pop ecx
je 0x467b23
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49374c]
call fcn.004558ae
cmp eax, ebx
pop ecx
je 0x467b43
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x467b45
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx