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

Disassembly:
push 0x18
mov eax, 0x46bb0c
call fcn.004517a7
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x10], 0
test eax, eax
je 0x422a95
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 0x422bb1
mov eax, dword [0x491934]
mov ecx, 0x491934
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.00401897
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.0040a010
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x422ba6
cmp dword [ebx + 0x14], edi
je 0x422ba6
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 0x422ba6
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00401996
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0x10]
call fcn.0045187f
ret 0x10

Function at 0x423232
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 0x423262
push 2
call edi
and ax, bx
cmp ax, bx
je 0x423262
push 1
push esi
call fcn.00423329
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00422e6c
mov edi, eax
test edi, edi
je 0x423292
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423292
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 0x42518f
Capabilities:
Find taskbar

Disassembly:
push 0x214
mov eax, 0x46dedb
call fcn.00451810
xor ebx, ebx
push ebx
push 0x481638
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x425355
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425355
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.00425883
mov eax, esi
push eax
push 0x425175
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 0x42520a
xor ecx, ecx
jmp 0x425211
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jge 0x425346
cmp eax, ebx
je 0x425228
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x425239
call fcn.0044ce00
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
mov esi, edi
shl esi, 2
cmp dword [esi + eax], ebx
je 0x425306
cmp eax, ebx
je 0x425254
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x42525f
call fcn.0044ce00
mov eax, dword [ebp - 0x21c]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4252fa
cmp dword [ebp - 0x21c], ebx
je 0x42528c
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 2
cmp edi, eax
jb 0x425291
call fcn.0044ce00
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.0044d28c
test eax, eax
pop ecx
pop ecx
jne 0x4252fa
cmp dword [ebp - 0x21c], ebx
je 0x4252de
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 2
cmp edi, eax
jb 0x4252e3
call fcn.0044ce00
mov eax, dword [ebp - 0x21c]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x5de
je 0x42530c
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
inc edi
jmp 0x425202
mov ecx, dword [ebp - 0x21c]
cmp ecx, ebx
je 0x425325
mov eax, dword [ebp - 0x218]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x425330
call fcn.0044ce00
mov ecx, dword [ebp - 0x21c]
mov esi, dword [ecx + edi*4]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x425342
push ecx
call fcn.00449438
pop ecx
mov eax, esi
jmp 0x425357
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x425355
push eax
call fcn.00449438
pop ecx
xor eax, eax
call fcn.00451893
ret
Function at 0x425444
Capabilities:
Find taskbar

Disassembly:
push 0x28
mov eax, 0x46e498
call fcn.004517a7
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 0x14], edi
je 0x425555
cmp dword [esi + 0x2c], 0xffffffff
je 0x425555
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 0x481638
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x4254a0
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00425628
add esp, 0xc
cmp dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x1c]
jne 0x4254ac
xor ebx, ebx
jmp 0x4254b4
mov ebx, eax
sub ebx, dword [ebp - 0x20]
sar ebx, 2
test ebx, ebx
jle 0x425515
jmp 0x4254bd
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x4254cd
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp edi, eax
jb 0x4254d2
call fcn.0044ce00
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.00425676
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x42550a
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 0x4254ba
cmp dword [ebp - 0x14], 0
jne 0x42553d
call fcn.00409ea5
test eax, eax
je 0x42552a
mov esi, dword [ebp + 8]
call fcn.0042535d
test eax, eax
jne 0x425536
mov esi, dword [ebp + 8]
call fcn.004253c1
test eax, eax
je 0x42553d
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x425550
push dword [ebp - 0x20]
call fcn.00449438
pop ecx
mov eax, dword [ebp - 0x14]
jmp 0x425557
xor eax, eax
call fcn.0045187f
ret 4
Function at 0x429eec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x46de68
call fcn.004517a7
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 0x429f55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x429f65
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.00429f6f
mov esi, edi
mov bl, al
call fcn.0042e57d
mov al, bl
jmp 0x429f67
add edi, 0x44
push str.Unable_to_load_resource_
push edi
call fcn.0044f3e0
pop ecx
pop ecx
xor al, al
call fcn.0045187f
ret 8
Function at 0x434fe9
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x435038
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
call dword [eax]
mov dword [esi + 0x180], eax
mov dword [eax], 0x434171
mov dword [eax + 4], 0x43429d
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00433f96
cmp byte [esi + 0x40], 0
je 0x435031
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 0x4350a5
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x43509a
mov eax, dword [esi + 8]
test eax, eax
je 0x435059
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x435096
cmp eax, 2
je 0x43509a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43504e
cmp eax, 3
je 0x43507d
cmp eax, 1
jne 0x43504e
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x43504e
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x43504e
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4350c3
cmp eax, 0xcc
je 0x4350c3
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.004350ca
pop esi
ret
Function at 0x4356f8
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 0x435785
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00449a70
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 0x435745
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 0x435767
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x435842
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 0x4357ad
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4357b8
xor eax, eax
jmp 0x435803
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4357d5
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.004458dc
jmp 0x4357e6
cmp ecx, 2
jne 0x4357ed
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0043dbd9
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.00449a70
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 0x43582e
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 0x435842
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x435703
pop edi
pop ebx
leave
ret
Function at 0x447460
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x48e600]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
xor edx, edx
cmp ecx, edx
push esi
je 0x4474d3
cmp eax, edx
jle 0x4474d3
cmp edi, edx
je 0x4474d3
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.004475d0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00447690
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00449453
add esp, 0x64
ret
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
xor al, al
call fcn.00449453
add esp, 0x64
ret

Function at 0x448014
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447f53
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.004498b0
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 0x448063
cmp dword [ebp - 0x1c], 5
jb 0x44807b
jmp 0x448077
cmp dword [ebp - 0x10], 1
jne 0x44807b
cmp dword [ebp - 0x1c], 4
ja 0x448077
jne 0x44807b
cmp dword [ebp - 0x18], 0
jbe 0x44807b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46f63c
call fcn.00412b22
test eax, eax
jge 0x44809c
mov byte [0x49277c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449453
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x491950], 0
push esi
jne 0x448479
call fcn.004483a4
test eax, eax
je 0x4484bc
mov eax, dword [0x491950]
cmp eax, 1
jne 0x44849a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4484bc
pop esi
ret
push eax
call dword [0x491958]
test eax, eax
jne 0x448504
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 0x4484c0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x491950]
call dword [0x491958]
mov edi, eax
test edi, edi
je 0x4484e7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x448503
lea edi, [esi + 0xff0]
push esi
push dword [0x491950]
call dword [0x491954]
add esi, 0x10
cmp esi, edi
jb 0x4484ed
mov eax, esi
pop edi
pop esi
ret
jmp 0x448466

Function at 0x449453
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e600]
jne 0x44945d
repz ret
jmp fcn.00454ce6
Function at 0x44f4d8
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 0x44f515
cmp dword [ebp + 0x14], edi
je 0x44f515
cmp ecx, edi
jne 0x44f51c
call fcn.00453f78
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044cddc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44f530
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44f551
cmp ebx, 0xffffffff
je 0x44f540
push ebx
push edi
push ecx
call fcn.004498b0
add esp, 0xc
cmp esi, edi
je 0x44f4fd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44f4fd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44f56d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44f574
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44f665
test word [esi + 0xc], 0x10c
je 0x44f5c8
mov eax, dword [esi + 4]
test eax, eax
je 0x44f5c8
jl 0x44f6c6
cmp ebx, eax
mov edi, ebx
jb 0x44f599
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44f66d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00449492
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 0x44f65d
cmp ebx, dword [ebp - 0xc]
jb 0x44f635
cmp dword [ebp - 0xc], 0
je 0x44f5f2
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x44f5e7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44f5ee
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44f5fd
mov eax, closesocket
cmp ebx, eax
ja 0x44f5fd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44f699
push eax
push dword [ebp - 8]
push esi
call fcn.0045cc3a
pop ecx
push eax
call fcn.004600cf
add esp, 0xc
test eax, eax
je 0x44f6d8
cmp eax, 0xffffffff
je 0x44f6c6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44f65d
push esi
call fcn.0045c8c6
cmp eax, 0xffffffff
pop ecx
je 0x44f6ca
cmp dword [ebp - 4], 0
je 0x44f699
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 0x44f57c
mov eax, dword [ebp + 0x14]
jmp 0x44f517
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44f684
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004498b0
add esp, 0xc
call fcn.00453f78
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44f50d
cmp dword [ebp + 0xc], 0xffffffff
je 0x44f6af
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004498b0
add esp, 0xc
call fcn.00453f78
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44f50d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44f517
or dword [esi + 0xc], 0x10
jmp 0x44f6ca
Function at 0x4590fe
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 + 0x48f078]
je 0x459119
inc edi
cmp edi, 0x17
jb 0x45910a
cmp edi, 0x17
jae 0x459299
push ebp
push 3
call fcn.004671ca
cmp eax, 1
pop ecx
je 0x459265
push 3
call fcn.004671ca
test eax, eax
pop ecx
jne 0x45914d
cmp dword [0x48e2b4], 1
je 0x459265
cmp ebx, 0xfc
je 0x459298
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4921a8
push ebp
call fcn.0045825c
add esp, 0xc
test eax, eax
je 0x459183
push esi
push esi
push esi
push esi
push esi
call fcn.0044cce0
add esp, 0x14
push 0x104
mov esi, 0x4921c1
push esi
push 0
mov byte [0x4922c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4591c7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045825c
add esp, 0xc
test eax, eax
je 0x4591c7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044cce0
add esp, 0x14
push esi
call fcn.00449820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45920c
push esi
call fcn.00449820
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4924bc
push 0x470ab4
sub ecx, eax
push ecx
push eax
call fcn.0046512e
add esp, 0x14
test eax, eax
je 0x45920c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044cce0
add esp, 0x14
jmp 0x45920e
xor esi, esi
push 0x470ab0
push ebx
push ebp
call fcn.004650bd
add esp, 0xc
test eax, eax
je 0x45922e
push esi
push esi
push esi
push esi
push esi
call fcn.0044cce0
add esp, 0x14
push dword [edi*8 + 0x48f07c]
push ebx
push ebp
call fcn.004650bd
add esp, 0xc
test eax, eax
je 0x459250
push esi
push esi
push esi
push esi
push esi
call fcn.0044cce0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046700d
add esp, 0xc
jmp 0x459298
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x459298
cmp ebp, 0xffffffff
je 0x459298
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x48f07c]
push dword [esi]
call fcn.00449820
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 0x46700d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454f34
xor ebx, ebx
cmp dword [0x49274c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4670e3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4671c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4671c3
push eax
call fcn.00454ec6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49274c], eax
call esi
push eax
call fcn.00454ec6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x492750], eax
call esi
push eax
call fcn.00454ec6
mov dword [0x492754], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00450c9b
test eax, eax
pop ecx
pop ecx
je 0x4670b1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044cce0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4670e3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00454ec6
cmp eax, ebx
pop ecx
mov dword [0x49275c], eax
je 0x4670e3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00454ec6
pop ecx
mov dword [0x492758], eax
mov eax, dword [0x492758]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x467168
cmp dword [0x49275c], ecx
je 0x467168
push eax
call fcn.00454f3d
push dword [0x49275c]
mov esi, eax
call fcn.00454f3d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x467168
cmp edi, ebx
je 0x467168
call esi
cmp eax, ebx
je 0x467135
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x467135
test byte [ebp - 0x18], 1
jne 0x467168
lea eax, [ebp - 0x10]
push eax
call fcn.00450cd2
test eax, eax
pop ecx
je 0x467150
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044cce0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46715f
or dword [ebp + 0x10], 0x200000
jmp 0x4671a3
or dword [ebp + 0x10], 0x40000
jmp 0x4671a3
mov eax, dword [0x492750]
cmp eax, dword [ebp - 8]
je 0x4671a3
push eax
call fcn.00454f3d
cmp eax, ebx
pop ecx
je 0x4671a3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4671a3
mov eax, dword [0x492754]
cmp eax, dword [ebp - 8]
je 0x4671a3
push eax
call fcn.00454f3d
cmp eax, ebx
pop ecx
je 0x4671a3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49274c]
call fcn.00454f3d
cmp eax, ebx
pop ecx
je 0x4671c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4671c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret