joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f40
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x416f67
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 8], 0x3c
mov dword [esp + 0x14], str.open
pop edi
mov ecx, dword [eax - 8]
mov dword [esp + 0x14], str.IEXPLORE.exe
test ecx, ecx
je 0x416f9c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x416fb3
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x18], edx
jmp 0x416fb7
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x40
push eax
mov dword [esp + 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x416fdd
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], ecx
pop esi
add esp, 0x3c
ret 4

Function at 0x4170a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
xor edx, edx
mov ebx, 1
movsx eax, dx
cmp word [eax*8 + 0x434908], 0
jne 0x4170c0
cmp word [ecx + eax*2 + 0x2c], bx
je 0x4170fa
inc edx
cmp dx, 0x21
jb 0x4170ab
mov edi, dword [0x437114]
test edi, edi
je 0x417145
mov esi, dword [0x437110]
xor edx, edx
test esi, esi
jle 0x417145
xor eax, eax
cmp word [edi + eax*8], 0
jne 0x4170ed
cmp word [ecx + eax*2 + 0x6e], bx
je 0x417112
inc edx
movsx eax, dx
cmp eax, esi
jl 0x4170df
pop edi
pop esi
pop ebx
pop ecx
ret
mov edi, dword [ecx + 0x1c]
movsx eax, dx
and edi, 0xfe
mov dword [ecx + 8], eax
mov dword [ecx + 0x1c], edi
lea edx, [esp + 0xc]
jmp 0x41712b
mov edi, dword [ecx + 0x1c]
movsx eax, dx
add eax, 0x21
and edi, 0xfe
mov dword [ecx + 8], eax
mov dword [ecx + 0x1c], edi
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push 0x416940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x417150
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp + 4]
push edx
push 0
push ecx
push 0x417180
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x417fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bf3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42e768
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x418040
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x418007
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x418031
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x418046
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x418046
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x42d854
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x42d868
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4188b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
sete al
add esp, 0x190
ret
Function at 0x4188f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x114
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0xc], eax
je 0x418ae3
mov eax, dword [eax + 0xc]
push ebp
xor ebp, ebp
mov ecx, dword [eax]
mov dword [esp + 8], ebp
test ecx, ecx
je 0x418ad9
push ebx
push esi
mov esi, dword [esp + 0x124]
push edi
mov edx, dword [eax]
mov eax, dword [esi + 8]
mov ebx, ebp
mov edi, eax
add ebx, edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov dword [esp + 0x20], ebx
sar edx, 2
cmp edx, 1
jae 0x418a38
mov edx, dword [esi + 4]
test edx, edx
je 0x41896e
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x418973
mov ecx, 1
test edx, edx
jne 0x41897b
xor eax, eax
jmp 0x418980
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x41898c
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], eax
mov ebx, eax
je 0x4189b9
push ebp
push ebx
call fcn.00406760
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x4189a5
mov ecx, dword [esp + 0x20]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00406510
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004064d0
mov edx, dword [esi + 4]
push edx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
jne 0x418a1d
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x418ac0
mov ecx, dword [esi + 8]
mov ebp, dword [esp + 0x14]
sub ecx, eax
mov dword [esi + 4], edx
sar ecx, 2
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x418ac0
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x418a80
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00406510
mov eax, dword [esi + 8]
cmp edi, eax
je 0x418abc
mov edx, dword [ebx]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x418a73
jmp 0x418abc
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x18], ecx
push ecx
mov ecx, esi
call fcn.004064e0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x418aaa
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x418a9b
lea eax, [edi + 4]
cmp edi, eax
je 0x418abc
mov ecx, dword [ebx]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x418ab1
add dword [esi + 8], 4
mov edx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x14], ebp
mov eax, dword [edx + 0xc]
cmp dword [eax + ebp*4], 0
jne 0x41893b
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x114
ret
xor al, al
add esp, 0x114
ret
Function at 0x4193b0
Capabilities:
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x174]
test al, al
je 0x4193c6
call fcn.004194b0
mov eax, dword [esp + 0x28]
push 0
push 2
push 2
mov dword [esi + 0x16c], eax
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x148], eax
jne 0x4193f1
pop edi
xor al, al
pop esi
add esp, 0x14
ret 0xc
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x154], eax
call edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esi + 0x150], eax
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 0x148]
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp dword [esi + 0x148], 0xffffffff
jne 0x419455
pop edi
xor al, al
pop esi
add esp, 0x14
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 8]
push ebx
push edx
push 0
push esi
push 0x41b760
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xf
push eax
mov dword [esi + 0x164], eax
call ebx
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x419a30
push 0
push 0
call edi
push 0xf
push eax
mov dword [esi + 0x160], eax
call ebx
mov al, 1
pop ebx
mov byte [esi + 0x174], al
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x41e6c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
mov ebx, dword [esp + 0x1b0]
push ebp
push esi
test ebx, ebx
push edi
je 0x41e799
mov ebp, dword [esp + 0x1c0]
test ebp, ebp
je 0x41e799
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x41e711
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1b4]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e793
xor edx, edx
lea edi, [esp + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
movsx ecx, word [eax + 0xa]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1b8]
mov ax, word [eax + 8]
push ecx
mov word [esp + 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WSOCK32.dll_socket]
lea edx, [esp + 0x10]
mov edi, eax
push 0x10
push edx
push edi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x41e7a7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1a0
ret
mov esi, ebp
mov ebp, dword [sym.imp.WSOCK32.dll_send]
push 0
push esi
push ebx
push edi
call ebp
cmp eax, 0xffffffff
je 0x41e78d
sub esi, eax
add ebx, eax
test esi, esi
jne 0x41e7af
mov eax, dword [esp + 0x1c0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
Function at 0x420720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
xor ecx, ecx
test ecx, ecx
je 0x420750
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
add esp, 4
mov dword [ebp - 0x10], 0xfff0
cmp dword [ebp - 0x10], 0xfff0
jne 0x420766
xor ecx, ecx
test ecx, ecx
je 0x420780
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042297b
add esp, 4
mov dword [ebp - 0xc], eax
push 0x50
mov edx, dword [ebp + 8]
push edx
call fcn.00422910
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4207d8
mov eax, dword [ebp + 8]
push eax
call fcn.00422982
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x14], 0x35
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx], fcn.00420913
mov eax, dword [ebp - 8]
mov dword [eax + 4], fcn.00420b03
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], fcn.00420bf5
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], fcn.00420cf6
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0x420e0b
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], 0x420eb0
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 0x420f55
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0x421230
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], 0x421565
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], fcn.004218a0
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0x421a56
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x2c], edx
mov dword [ebp - 4], 1
jmp 0x420860
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x420884
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x30], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x38], 0
jmp 0x420857
mov edx, dword [ebp - 8]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x48], 0x50
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42090f
mov byte [ebp - 0x18], 0x78
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
push str._ld_c
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x42090f
movsx ecx, byte [ebp - 0x18]
cmp ecx, 0x6d
je 0x4208f4
movsx edx, byte [ebp - 0x18]
cmp edx, 0x4d
jne 0x420900
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40225c
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41c060]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push esi
push edi
push 0x6b
push dword [0x41e1c0]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 6
push 0x168
push 0x1f4
xor esi, esi
push esi
push esi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
mov dword [ebp - 0x80], 0x83
mov dword [ebp - 0x7c], 0x84
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 0x28]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
movzx eax, word [ebp + eax*4 - 0x80]
push 0x41828c
push eax
push dword [0x41e1c0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x70], eax
cmp eax, esi
je 0x40232f
push eax
push dword [0x41e1c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, esi
je 0x40232f
push dword [ebp - 0x70]
push dword [0x41e1c0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov esi, dword [ebp - 0x6c]
push eax
call fcn.00404f20
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
inc dword [ebp - 0x68]
add dword [ebp - 0x6c], 0x1c
cmp dword [ebp - 0x68], 2
jl 0x4022d0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push dword [ebx + 4]
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ec
push dword [ebx + 4]
call edi
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0x3eb
push dword [ebx + 4]
call edi
push 0
push eax
call esi
mov esi, str.D:Program_Files
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3ef
lea eax, [ebp - 0x53]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.00407f00
push 0x4182a8
lea eax, [ebp - 0x64]
push 0x3ff
push eax
call fcn.00407b0c
add esp, 0x18
lea eax, [ebp - 0x64]
push eax
push 0x3eb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x86
push dword [0x41d5b4]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov ecx, dword [ebp + 0x39c]
pop edi
mov dword [ebx + 0x9c], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00407451
add ebp, 0x3a0
leave
ret
Function at 0x4023ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ec
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 0
push eax
call ebx
xor eax, eax
inc eax
mov word [esi + 0x98], ax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x40245d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41c060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.00407f00
movzx eax, word [esi + 0x98]
add esp, 0xc
dec eax
je 0x40258a
dec eax
jne 0x4025d1
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push dword [esi + 4]
call edi
push ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3e9
push dword [esi + 4]
call edi
push ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ec
push dword [esi + 4]
call edi
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3eb
push dword [esi + 4]
call edi
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0x408]
push eax
lea ecx, [esi + 0xb8]
call fcn.00403def
push 3
pop eax
mov word [esi + 0x98], ax
mov byte [esi + 0xa4], 1
mov dword [esi + 0xa0], ebx
cmp dword [esi + 0xa8], ebx
jne 0x40255b
lea eax, [ebp - 0x40c]
push eax
push ebx
push esi
push 0x4032c5
push ebx
push ebx
call fcn.00407c81
add esp, 0x18
mov dword [esi + 0xa8], eax
mov byte [esi + 0xa5], 1
cmp dword [esi + 0xac], ebx
jne 0x4025d1
lea eax, [ebp - 0x40c]
push eax
push ebx
push esi
push 0x4026d5
push ebx
push ebx
call fcn.00407c81
add esp, 0x18
mov dword [esi + 0xac], eax
jmp 0x4025d1
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push dword [esi + 4]
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ec
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 5
push eax
call ebx
push 2
pop eax
mov word [esi + 0x98], ax
lea eax, [ebp - 0x41c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x41c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00407451
leave
ret
Function at 0x40376e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x415939
call fcn.0040876d
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x40378b
lea eax, [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x4037bb
push 1
lea ecx, [ebp + 8]
call fcn.00403e2e
xor eax, eax
call fcn.00408845
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ecx + 4], eax
je 0x4037d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x4037a9
push eax
call fcn.0040735f
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4037cd
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00406e10
add esp, 0xc
push esi
call fcn.0040786e
mov edi, dword [ebp + 0x24]
pop ecx
push 4
add edi, 8
pop ecx
lea esi, [ebp - 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x403835
xor esi, esi
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00403e2e
mov eax, esi
jmp 0x4037b5
xor esi, esi
inc esi
jmp 0x403826
Function at 0x403976
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0x30
mov eax, 0x415b3b
call fcn.004087d6
mov eax, dword [ebp + 8]
xor edi, edi
push edi
mov esi, ecx
mov dword [ebp - 0x38], eax
mov ebx, edx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x30]
push eax
push 0x4183f8
push 0x17
push edi
push 0x4162cc
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x403aa5
and dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403ad3
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
lea ebx, [ebp - 0x2c]
push 0x418328
call fcn.00403b94
push eax
mov ecx, ebx
call fcn.00403b25
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x403a09
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push 0x4162dc
push eax
call dword [ecx]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x403a7a
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
cmp edi, ebx
jl 0x403a6a
push dword [ebp - 0x38]
lea esi, [ebp - 0x38]
call fcn.00404eee
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x18]
mov byte [ebp - 4], 2
push dword [ebp - 0x38]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x403a7a
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x403a8a
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403e2e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x403aa5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x403abc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
call fcn.00408859
ret 4