joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4113f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x52164c]
push edi
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x411438
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x411438
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x41143f
xor eax, eax
jmp 0x4115d5
movzx esi, word [edi + 6]
lea eax, [esi + esi*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
mov eax, esp
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x4114a9
add eax, 8
cmp word [edi + ecx*2 + 8], bx
je 0x411486
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [eax - 8], edx
movzx edx, word [edi + ecx*2 + 8]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], 0
jmp 0x411497
mov dword [eax - 8], 8
mov dword [eax - 4], ebx
mov byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x411465
mov ebx, dword [ebp + 8]
push 0
push 0x14
push 0x41e
add ebx, 4
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 8]
mov eax, ebx
push esi
call fcn.0041a366
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
push ebx
call fcn.0041a282
movzx eax, word [edi + 4]
add eax, 7
push eax
movzx eax, word [edi + 2]
add eax, 7
push eax
push ebx
call fcn.0041a25c
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x10]
jne 0x4114ff
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.00411610
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
push eax
lea esi, [ebp + 0x10]
mov eax, ebx
call fcn.0041a2a8
push dword [0x52164c]
mov ebx, dword [ebp + 8]
call fcn.0041165c
xor esi, esi
push esi
push esi
push 0x439
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test ah, 0x10
je 0x41154c
push 1
jmp 0x41154d
push esi
call fcn.0041192f
cmp dword [ebp + 0x14], 0
je 0x411588
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x14]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.00411610
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x411588
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
add eax, 4
call fcn.0041a2dc
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x18], 0
je 0x4115be
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x18]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.00411610
test eax, eax
mov dword [ebx + 0x70], eax
je 0x4115be
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x1c]
add eax, 4
call fcn.0041a2c2
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
lea esi, [ebx + 0x24]
inc eax
call fcn.0041a653
xor eax, eax
inc eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4121bd
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x517ad4]
push ebx
push esi
push edi
xor eax, ebp
mov dword [ebp + 0x7a0], eax
push 0x400
mov edi, ecx
lea eax, [ebp - 0x60]
push eax
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x68], eax
call edi
push 0x420
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x80]
add dword [ebp - 0x6c], 2
push dword [ebp - 0x68]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x78]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [esi]
call edi
push eax
push ebx
push 0xfffffffffffffff0
push dword [esi]
call edi
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x78]
call fcn.00403dd0
lea esi, [ebp - 0x68]
call fcn.0043acf5
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x7a4
leave
ret

Function at 0x4122a7
Capabilities:
Create process on windows

Disassembly:
test eax, eax
jne 0x4122b2
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4122d7
push 1
push 0
push 0
push eax
push 0x4fb5a0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x4122d7
xor eax, eax
mov dword [esi + 0x38], 1
inc eax
ret
xor eax, eax
ret
Function at 0x412317
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp + 0x810], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000
je 0x412365
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x412365
mov dword [ebp - 0x58], 1
jmp 0x412369
and dword [ebp - 0x58], 0
push 0x400
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x3c]
cmp eax, 1
mov dword [ebp - 0x54], ecx
je 0x41239a
cmp eax, 2
je 0x41239a
test eax, eax
jne 0x4123b8
cmp dword [ebx + 0x28], eax
jne 0x4123b8
lea eax, [ebp - 0x4c]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0x37], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4123ec
jbe 0x4123fd
cmp eax, 2
jbe 0x4123e7
cmp eax, 3
jne 0x4123fd
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x4123fa
mov eax, dword [ebx + 0x30]
jmp 0x4123fa
cmp dword [ebx + 0x38], 0
je 0x4123f7
mov eax, dword [ebx + 0x34]
jmp 0x4123fa
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x50], eax
push esi
push edi
lea esi, [ebp - 0x80]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
push 0x420
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 0x81c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x70]
sub edi, dword [ebp - 0x6c]
push 1
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x50]
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
or eax, 2
push eax
push edi
mov edi, dword [ebp + 0x81c]
push esi
xor esi, esi
push esi
push esi
push dword [ebp - 0x60]
lea eax, [ebp + 0x10]
push eax
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
cmp dword [ebp - 0x58], esi
je 0x412498
push esi
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebx + 0x24]
pop edi
pop esi
je 0x4124b3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
xor ecx, ebp
call fcn.004ebd70
add ebp, 0x814
leave
ret 4
Function at 0x412a22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [esi + 0x3c], 2
push edi
mov edi, eax
jne 0x412ad2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x412a46
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
cmp dword [esi + 0x3c], eax
je 0x412a60
push 0x105
push eax
push eax
push dword [esi + 4]
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
movzx ebx, di
shr edi, 0x10
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebx
je 0x412aab
mov eax, dword [esi + 0x44]
test eax, eax
je 0x412aab
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push 0x4fb5a0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x412aab
mov dword [esi + 0x38], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
leave
ret

Function at 0x41311d
Capabilities:
Resume thread

Disassembly:
push edi
lea edi, [esi + 0x65c]
mov eax, dword [edi]
test eax, eax
je 0x41314e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi]
call fcn.00410ad4
mov dword [esi + 0x664], 1
pop edi
ret

Function at 0x4133ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [esi + 0x668]
push ecx
push 0x412f5d
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x65c], eax
xor eax, eax
leave
ret

Function at 0x413405
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [esi + 0x65c]
test eax, eax
jne 0x413425
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x413497
cmp dword [esi + 0x458], 0
je 0x413497
push edi
lea edi, [esi + 0x45c]
cmp word [edi], 0
mov dword [ebp + 8], 1
je 0x413491
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esi + 0x458]
and dword [esi + 0x458], 0
push 0x24
lea eax, [esi + 0x258]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x413473
and dword [ebp + 8], 0
mov eax, dword [esi + 0x65c]
test eax, eax
mov dword [esi + 0x458], ebx
pop ebx
je 0x41348b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 8], 0
je 0x413496
call fcn.0041311d
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x413547
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
or edx, 0xffffffff
cmp ecx, edx
jne 0x41356a
mov eax, edx
jmp 0x41359b
mov edx, dword [ebp - 4]
push ebx
xor ebx, ebx
xor eax, eax
or edx, ebx
or eax, ecx
cmp dword [esi + 0x20], edi
pop ebx
je 0x41359b
cmp dword [esi + 0x14], edi
je 0x41359b
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x41359b
jb 0x413597
cmp eax, ecx
ja 0x41359b
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x413661
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4136ba
cmp dword [esi + 0x14], edi
je 0x4136b7
cmp dword [esi + 0x1c], edi
je 0x4136b7
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.0041359e
and eax, edx
cmp eax, 0xffffffff
je 0x4136a4
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4136a8
xor eax, eax
jmp 0x4136bd
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
adc dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x4136f8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.004134bf
test eax, eax
je 0x413774
test byte [ebp + 0xf], 0x40
push ebx
jne 0x413770
push edi
lea eax, [ebp + 0xc]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x413762
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, edi
pop edi
je 0x413779
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ebx
xor eax, eax
inc eax
pop ebx
pop esi
pop ebp
ret 0x14
call fcn.00413782
xor eax, eax
jmp 0x413773
Function at 0x4143ca
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x4143e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41440c
xor eax, eax
jmp 0x41446d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x414439
xor eax, eax
jmp 0x41446c
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call esi
mov ebx, dword [esp + 0x18]
mov esi, ebp
call fcn.004144ed
test eax, eax
je 0x414461
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x4160e1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x4160fc
cmp dword [edi + 0xd8], esi
je 0x4160ff
cmp dword [edi + 0xe0], esi
jne 0x4160ff
xor esi, esi
inc esi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x8ac
push dword [edi + 4]
call ebx
push dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
xor eax, eax
cmp dword [esp + 0x10], eax
je 0x41613e
cmp dword [edi + 0xe0], eax
jg 0x416134
cmp dword [edi + 0xf0], eax
jle 0x41613e
mov dword [esp + 0x10], 1
jmp 0x416142
mov dword [esp + 0x10], eax
push 0x8ad
push dword [edi + 4]
call ebx
push dword [esp + 0x10]
push eax
call ebp
push 0x8ae
push dword [edi + 4]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call ebx
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
push dword [edi + 0x5c]
call ebx
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebp
pop ebx
ret 4
Function at 0x416293
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
push 0x176
push dword [ebx]
call fcn.0047b4cf
pop ecx
pop ecx
push 0x8ae
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0xd8]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x51b460
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
xor eax, eax
push eax
movsd dword es:[edi], dword [esi]
push eax
push 0x40000001
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x58]
xor ecx, ecx
call fcn.0041ab38
push 0x8ae
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
mov edi, ebx
call fcn.0040778e
mov eax, dword [esi + 0xd8]
neg eax
sbb eax, eax
and eax, 0x40
add eax, 0x40
push eax
push 0
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x10]
call fcn.00403dd0
push 0x42a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
lea eax, [esi + 0x84]
call fcn.00412190
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 1
push 0x658
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x41e0f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0x14]
push edi
xor edi, edi
cmp edx, edi
mov dword [ebp - 4], edi
jne 0x41e130
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e1fc
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], edi
jmp 0x41e1fc
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x1c]
mov eax, dword [edi]
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jl 0x41e142
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x41e164
push eax
add ecx, edx
push ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add dword [esi + 0x18], eax
add esp, 0xc
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x41e1f8
cmp dword [esi + 0x20], ebx
je 0x41e17a
call fcn.00413661
push esi
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
call fcn.0041e06e
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
sub ecx, edx
cmp ecx, eax
push ebx
jae 0x41e1d8
push edi
push eax
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov edi, dword [edi]
sub eax, ecx
cmp edi, eax
mov dword [ebp - 8], edi
jb 0x41e1bc
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [esi + 0x14]
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi + 0x18], eax
jmp 0x41e1f5
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ecx
add edx, eax
push edx
push dword [esi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e1f8
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x41e263
Capabilities:
Parse url

Disassembly:
push esi
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
mov eax, 0x81
push 0
push dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x41e2c4
push 0x3f
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x41e2c4
push eax
add esi, 0x1486
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x41e411
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
push ebx
mov ebx, eax
je 0x41e42b
cmp word [ecx], dx
je 0x41e42b
xor eax, eax
jmp 0x41e42e
xor eax, eax
inc eax
cmp ebx, edx
mov dword [esi + 4], eax
je 0x41e4f0
cmp dword [ebx], 0x18
jne 0x41e4f0
push edi
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00403098
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
jne 0x41e45e
push edi
push edi
push edi
push 1
jmp 0x41e4ce
cmp eax, 1
je 0x41e4ca
mov eax, dword [ebp - 4]
cmp dword [eax - 8], edi
je 0x41e4ca
push dword [ebx + 0x10]
lea eax, [esi + 0x10]
call fcn.0040315f
push dword [ebx + 0x14]
lea eax, [esi + 0x14]
call fcn.0040315f
push dword [ebx + 0xc]
mov eax, dword [0x51b438]
push dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.00405b51
mov ebx, dword [ebp - 8]
add esp, 0x10
push edi
push str._local_
push ebx
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x41e4d9
push eax
call fcn.004013b2
jmp 0x41e4d9
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
pop edi
je 0x41e4fd
push eax
call fcn.004013b2
jmp 0x41e4fd
push edx
push edx
push edx
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
xor eax, eax
cmp dword [esi], eax
pop ebx
setne al
leave
ret 4
Function at 0x41e97d
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x101c
lea ebp, [esp - 0xf9c]
call fcn.004ebd80
mov eax, dword [0x517ad4]
and dword [ebp - 0x78], 0
push esi
xor eax, ebp
push edi
mov dword [ebp + 0xf98], eax
mov eax, dword [ebp + 0xfa4]
push 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov esi, ecx
push 0x20000005
mov edi, SysReAllocString
push esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41e9d9
mov dword [ebp - 0x74], edi
mov eax, dword [0x51b438]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x41e9eb
inc eax
jmp 0x41e9f0
mov eax, 0x2000
lea ecx, [ebp - 0x70]
call fcn.0040338c
or eax, 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004033b8
and dword [ebp - 0x78], 0
mov edi, 0x1000
mov eax, dword [ebp - 0x7c]
cmp eax, edi
jb 0x41ea15
mov eax, edi
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41ea4d
mov eax, dword [ebp - 0x78]
test eax, eax
jbe 0x41ea4d
mov byte [ebp + eax - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420eda
mov eax, dword [ebp - 0x70]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x74]
jl 0x41ea0c
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0x70]
call fcn.0040333f
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x41ea6c
push eax
call fcn.004013b2
mov ecx, dword [ebp + 0xf98]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ebd70
add ebp, 0xf9c
leave
ret

Function at 0x42320f
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [esi + 0x224]
cmp dword [edi - 8], 0
je 0x423256
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 8]
push edi
push 0x7f9
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x423256
push 1
push eax
push eax
push dword [esi + 0x224]
push 0x4fb5a0
push dword [esi + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004af6f1
xor eax, eax
pop edi
ret