joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43576e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042cf78
xor ebx, ebx
cmp dword [0x4555f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x435844
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x435924
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x442474
push edi
call esi
cmp eax, ebx
je 0x435924
push eax
call fcn.0042cf0a
mov dword [esp], 0x442464
push edi
mov dword [0x4555f0], eax
call esi
push eax
call fcn.0042cf0a
mov dword [esp], 0x442450
push edi
mov dword [0x4555f4], eax
call esi
push eax
call fcn.0042cf0a
mov dword [0x4555f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00429c99
test eax, eax
pop ecx
pop ecx
je 0x435812
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427fb1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x435844
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042cf0a
cmp eax, ebx
pop ecx
mov dword [0x455600], eax
je 0x435844
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042cf0a
pop ecx
mov dword [0x4555fc], eax
mov eax, dword [0x4555fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4358c9
cmp dword [0x455600], ecx
je 0x4358c9
push eax
call fcn.0042cf81
push dword [0x455600]
mov esi, eax
call fcn.0042cf81
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4358c9
cmp edi, ebx
je 0x4358c9
call esi
cmp eax, ebx
je 0x435896
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435896
test byte [ebp - 0x18], 1
jne 0x4358c9
lea eax, [ebp - 0x10]
push eax
call fcn.00429cd0
test eax, eax
pop ecx
je 0x4358b1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427fb1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4358c0
or dword [ebp + 0x10], 0x200000
jmp 0x435904
or dword [ebp + 0x10], 0x40000
jmp 0x435904
mov eax, dword [0x4555f4]
cmp eax, dword [ebp - 8]
je 0x435904
push eax
call fcn.0042cf81
cmp eax, ebx
pop ecx
je 0x435904
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x435904
mov eax, dword [0x4555f8]
cmp eax, dword [ebp - 8]
je 0x435904
push eax
call fcn.0042cf81
cmp eax, ebx
pop ecx
je 0x435904
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4555f0]
call fcn.0042cf81
cmp eax, ebx
pop ecx
je 0x435924
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435926
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ad6b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043ad00
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.00428f90
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 0x43adba
cmp dword [ebp - 0x1c], 5
jb 0x43add2
jmp 0x43adce
cmp dword [ebp - 0x10], 1
jne 0x43add2
cmp dword [ebp - 0x1c], 4
ja 0x43adce
jne 0x43add2
cmp dword [ebp - 0x18], 0
jbe 0x43add2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44345c
call fcn.0043abf1
test eax, eax
jge 0x43adf3
mov byte [0x455808], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004271b8
add ebp, 0x78
leave
ret
Function at 0x401360
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
xor ebp, ebp
mov ebx, 0x10
push edi
mov dword [esp + 0xc], ebp
cmp dword [esp + 0x2c], ebx
jae 0x40137d
lea eax, [esp + 0x18]
push ebp
push 0x80
push 2
push ebp
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4013db
cmp dword [esp + 0x2c], ebx
jb 0x4013ae
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
cmp dword [esp + 0x48], ebx
jb 0x4013d2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041e1fe
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x38
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4013e9
lea eax, [esp + 0x34]
push esi
push eax
push 0x65
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp dword [esp + 0x2c], ebx
jb 0x401434
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
cmp dword [esp + 0x48], ebx
jb 0x40145c
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041e1fe
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x38
Function at 0x402570
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push eax
mov ecx, 0x32
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push 0x4024e0
call fcn.0041efe2
mov edx, dword [ebp + 8]
sub esp, 0xd0
mov edi, esp
sub esp, 0x1c
mov ebx, eax
mov ecx, 0x34
lea esi, [esp + 0xfc]
mov dword [esp + 0xf8], esp
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x1c8], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
push 0xffffffffffffffff
mov dword [ebx + 0x28], 0
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00403f10
call fcn.00402620
add esp, 0xec
cmp byte [ebp + 0xc], 0
jne 0x402615
mov eax, dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402940
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x447990
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x458ad0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
push 0x44e244
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [0x45cfb4]
add edi, 0xe0
mov ecx, 0x44e187
call fcn.00406d80
test al, al
jne 0x402a29
push edi
mov ecx, str.C:ProgramDataAppleLockdown_
lea edi, [esp + 0x18]
call fcn.00406fb0
xor ebx, ebx
push eax
mov edi, str..plist
lea esi, [esp + 0x38]
mov dword [esp + 0x60], ebx
call fcn.00406de0
add esp, 8
mov esi, 0x10
mov byte [esp + 0x58], 2
cmp dword [esp + 0x2c], esi
jb 0x4029de
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e1fe
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
mov eax, 0xf
push ebx
lea edx, [esp + 0x54]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [ecx + 4], bl
call fcn.00403f10
call fcn.00407950
add esp, 0x1c
cmp dword [esp + 0x48], esi
jb 0x402a29
mov eax, dword [esp + 0x34]
push eax
call fcn.0041e1fe
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00428e93
add esp, 0x4c
ret 4
Function at 0x407270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4072c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4072c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4072c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4072b0
cmp esi, eax
jb 0x4072ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407950
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x10
cmp dword [esp + 0x20], esi
jae 0x407964
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0043ff7d
add esp, 8
cmp eax, 0xffffffff
je 0x4079bb
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x407982
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4079a6
mov ecx, dword [esp + 0xc]
and eax, 0xfffffffe
cmp dword [esp + 0x20], esi
jae 0x40799e
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x4079b4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x20], esi
pop esi
jb 0x4079cf
mov eax, dword [esp + 8]
push eax
call fcn.0041e1fe
add esp, 4
mov eax, 1
ret
Function at 0x4113b0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x45cfc0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44ec00
push eax
xor bl, bl
call edi
push esi
call eax
dec eax
add esp, 4
cmp eax, 3
ja case.default.0x4113d8
jmp dword [eax*4 + 0x41145c]
mov ecx, dword [0x45cfc0]
push 0x44ec10
push ecx
call edi
push ebp
push 1
push esi
call eax
add esp, 0xc
pop edi
pop ebp
mov bl, al
pop ebx
ret 4
mov edx, dword [0x45cfc0]
push 0x44ec10
push edx
call edi
push ebp
push 2
push esi
call eax
add esp, 0xc
pop edi
pop ebp
mov bl, al
pop ebx
ret 4
mov eax, dword [0x45cfc0]
push 0x44ec10
push eax
call edi
push ebp
push 3
push esi
call eax
add esp, 0xc
pop edi
pop ebp
mov bl, al
pop ebx
ret 4
mov ecx, dword [0x45cfc0]
push 0x44ec10
push ecx
call edi
push ebp
push 4
push esi
call eax
mov bl, al
add esp, 0xc
pop edi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x4116d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x448889
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 2
push ebx
mov dword [esp + 0x14], VariantCopy
mov dword [esp + 0x18], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x44e187
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004051d0
mov eax, dword [esp + 0x34]
mov ebp, 0x10
mov dword [esp + 0x18], 1
cmp dword [esp + 0x48], ebp
jae 0x411749
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x411897
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x411770
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call ebp
test eax, eax
jne 0x41184e
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e1f3
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
push ebx
push esi
call fcn.0042a320
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp dword [esp + 0x64], 0x10
jae 0x4117bb
lea eax, [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
test eax, eax
jne 0x4117f9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4117d4
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.004051d0
push esi
call fcn.0041e1fe
add esp, 4
mov ebp, 0x10
jmp 0x4118d9
push 0x44ecc4
push ecx
lea ecx, [esp + 0x54]
push ecx
push ecx
push 0x44eccc
push 0x45cd58
call fcn.0040f930
add esp, 0xc
push eax
call fcn.0040fb60
add esp, 0xc
push eax
call fcn.0040f930
add esp, 8
mov ebp, eax
push 0xa
mov ecx, ebp
call fcn.0040cb50
mov ecx, ebp
call fcn.0040cc70
push esi
call fcn.0041e1fe
add esp, 4
mov ebp, 0x10
jmp 0x4118d9
push 0x44ecc4
push ecx
lea edx, [esp + 0x54]
push edx
push ecx
push 0x44ecd4
push 0x45cd58
call fcn.0040f930
add esp, 0xc
push eax
call fcn.0040fb60
add esp, 0xc
push eax
call fcn.0040f930
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040cb50
mov ecx, esi
call fcn.0040cc70
mov ebp, 0x10
jmp 0x4118d9
push 0x44ecc4
push ecx
lea eax, [esp + 0x38]
push eax
push ecx
push 0x44ecd4
push 0x45cd58
call fcn.0040f930
add esp, 0xc
push eax
call fcn.0040fb60
add esp, 0xc
push eax
call fcn.0040f930
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040cb50
mov ecx, esi
call fcn.0040cc70
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x48], ebp
jb 0x4118f7
mov edx, dword [esp + 0x34]
push edx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], ebp
jb 0x41191a
mov eax, dword [esp + 0x50]
push eax
call fcn.0041e1fe
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x38
Function at 0x416500
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
push 0
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x416541
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41653e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
ret
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
ret
Function at 0x416830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41685a
test al, 0x10
jne 0x41685a
push 0x44f450
lea eax, [esp + 4]
push esi
push eax
call fcn.004408c9
mov eax, dword [esp + 0xc]
add esp, 0xc
pop ecx
ret
push 0x44f454
lea ecx, [esp + 4]
push esi
push ecx
call fcn.004408c9
mov eax, dword [esp + 0xc]
add esp, 0xc
pop ecx
ret

Function at 0x416af0
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
mov eax, 0x1114
call fcn.0042cd10
mov eax, dword [0x458ad0]
xor eax, esp
mov dword [esp + 0x1110], eax
mov edx, dword [0x44f474]
mov eax, dword [esp + 0x1118]
push esi
push edi
mov edi, ecx
mov ecx, dword [str.UnknownProcess]
xor esi, esi
push 0xf4
mov dword [esp + 0x101c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x44f478]
mov dword [esp + 0x1018], ecx
mov ecx, dword [0x44f47c]
lea edx, [esp + 0x1028]
push esi
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1028], eax
mov dword [esp + 0x102c], ecx
call fcn.0042a320
add esp, 0xc
push str.SeDebugPrivilege
mov ecx, edi
call sym..exe_public:_int___thiscall_ProcessHelper::AddPrivilege_char_const__
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x1c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x416c0e
push ebx
mov ebx, dword [esp + 0xc]
shr ebx, 2
xor edi, edi
push ebp
cmp ebx, esi
jbe 0x416c03
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + edi*4 + 0x1c]
push edx
push 0
push 0x410
call ebp
mov esi, eax
test esi, esi
je 0x416bfe
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x416bfe
mov eax, dword [esp + 0x14]
push 0x104
lea edx, [esp + 0x1020]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x1020]
push edx
call fcn.0043c4a4
add esp, 8
test eax, eax
je 0x416c27
inc edi
cmp edi, ebx
jb 0x416ba3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x1118]
pop edi
pop esi
xor ecx, esp
call fcn.00428e93
add esp, 0x1114
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + edi*4 + 0x1c]
jmp 0x416c0c
Function at 0x416cc0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor ecx, ecx
push edi
xor edi, edi
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x10], vtable.CWindowIterator.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
neg ecx
or ecx, eax
push ecx
call fcn.0041e1f3
mov ebp, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov ebx, 1
push 0x416a40
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x18], vtable.CMainWindowIterator.0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x416d89
cmp dword [esp + 0x1c], edi
jbe 0x416d89
mov eax, dword [eax]
mov dword [esp + 0x20], ebx
cmp eax, edi
je 0x416d89
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov edi, edi
lea ecx, [esp + 0x30]
push ecx
push 0x64
push 0xa
push edi
push edi
push 0x11
push eax
mov dword [esp + 0x4c], edi
call esi
cmp dword [esp + 0x30], edi
je 0x416dbc
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x416d89
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x1c]
jae 0x416d89
mov eax, dword [eax + ecx*4]
add ecx, ebx
mov dword [esp + 0x20], ecx
cmp eax, edi
jne 0x416d50
push ebp
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x416de6
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416ddf
cmp dword [esp + 0x34], edi
je 0x416ddd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x416ddf
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x14], vtable.CWindowIterator.0
call fcn.0041e1fe
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x14], vtable.CWindowIterator.0
call fcn.0041e1fe
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8

Function at 0x416e10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.0042a320
add esp, 0xc
cmp dword [esp + 0x58], 0x10
mov dword [esp], 0x3c
mov dword [esp + 8], 0
mov dword [esp + 0xc], str.open
jb 0x416e4c
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
jmp 0x416e54
lea edx, [esp + 0x44]
mov dword [esp + 0x10], edx
lea eax, [esp]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x58], 0x10
jb 0x416e8f
mov edx, dword [esp + 0x44]
push edx
call fcn.0041e1fe
add esp, 4
add esp, 0x3c
ret 0x1c
Function at 0x4176d0
Capabilities:
Receive http response
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x448190
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 1
xor ebp, ebp
push 0xc
mov dword [esp + 0x18], ebp
call fcn.0041e1c4
add esp, 4
cmp eax, ebp
je 0x417721
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ebx, eax
jmp 0x417723
xor ebx, ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x50]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebp
push eax
mov byte [ecx + 4], 0
call fcn.00403f10
mov ecx, ebx
call fcn.004170f0
mov edi, 0x10
cmp eax, ebp
je 0x417834
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x417769
lea eax, [esp + 0x4c]
push 0x44f254
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004408c9
add esp, 0xc
test eax, eax
jne 0x417834
push 0x80000
call fcn.0041e1f3
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x417834
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
push 0x80000
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4177e5
push esi
call fcn.0041e1fe
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ee48
add esp, 8
mov esi, ebx
call fcn.00417330
lea ecx, [esp + 0x2c]
call fcn.004034f0
lea ecx, [esp + 0x48]
call fcn.004034f0
jmp 0x4178db
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x417821
sub eax, ebp
mov edi, eax
cmp eax, 0x80000
jb 0x4177fd
mov edi, 0x80000
mov edx, dword [esp + 0x18]
push edx
push edi
push 1
push esi
call fcn.00440d3b
add esp, 0x10
cmp eax, edi
jne 0x41781c
mov eax, dword [esp + 0x14]
add ebp, edi
cmp ebp, eax
jb 0x4177ed
xor ebp, ebp
lea edi, [ebp + 0x10]
push esi
call fcn.0041e1fe
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043ee48
add esp, 8
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp eax, ebp
je 0x417844
push eax
call esi
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x41784e
push eax
call esi
mov eax, dword [ebx]
cmp eax, ebp
je 0x417857
push eax
call esi
push ebx
call fcn.0041e1fe
add esp, 4
cmp dword [esp + 0x14], ebp
jbe 0x4178a4
cmp dword [esp + 0x44], edi
jb 0x417879
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
cmp dword [esp + 0x60], edi
jb 0x41789d
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041e1fe
add esp, 4
mov eax, 1
jmp 0x4178dd
cmp dword [esp + 0x44], edi
jb 0x4178b7
mov eax, dword [esp + 0x30]
push eax
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
cmp dword [esp + 0x60], edi
jb 0x4178db
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041e1fe
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x38