joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c40
Capabilities:
Check if file exists
Get file size
Write file on windows

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.004049f0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404d2e
mov edx, dword [esp + 4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404cb1
mov eax, dword [esp + 4]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404d5d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404d5d
jmp 0x404d4d
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
push 0
mov eax, dword [edi]
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [esp + 0xc]
xor ecx, ecx
pop edi
mov edx, dword [eax - 8]
mov eax, dword [esp + 4]
cmp edx, esi
mov edx, dword [0x425060]
sete cl
mov esi, ecx
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404d25
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404d25
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
mov eax, esi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 4]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404d5d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404d5d
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x405820
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 8]
test eax, eax
jle 0x40593e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4058ac
mov ecx, dword [0x425060]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
cmp eax, ecx
je 0x405878
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x405878
push esi
call fcn.00419d30
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405987
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x405987
push esi
call fcn.00419d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
mov eax, dword [ebx - 8]
mov dword [esp + 0x1c], 0
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx - 8]
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp edx, esi
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
sete cl
mov dword [esp + 0x18], ecx
mov ecx, dword [0x425060]
cmp eax, ecx
je 0x405914
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x405914
push esi
call fcn.00419d30
add esp, 4
mov eax, dword [0x425060]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x405933
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x405933
push esi
call fcn.00419d30
add esp, 4
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [0x425060]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, eax
je 0x405963
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x405963
push esi
call fcn.00419d30
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405987
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x405987
push esi
call fcn.00419d30
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x405b50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov al, byte [0x428120]
mov edx, ecx
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.00405990
mov edx, dword [eax]
lea eax, [esp + 8]
push edx
push 0x104
push eax
push 0x425138
push str.official
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 4]
mov edx, dword [0x425060]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405bd0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405bd0
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
lea eax, [esp + 4]
push 0x425138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
inc eax
add esp, 0x108
ret
Function at 0x405c60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov al, byte [0x428120]
mov edx, ecx
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.00405990
mov edx, dword [eax]
lea eax, [esp + 8]
push edx
push 0x104
push eax
push 0x425138
push str.custom
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 4]
mov edx, dword [0x425060]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405ce0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405ce0
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
lea eax, [esp + 4]
push 0x425138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
inc eax
add esp, 0x108
ret
Function at 0x405d70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
mov al, byte [0x428120]
push ebp
push esi
mov edx, ecx
push edi
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.00405990
mov edx, dword [eax]
lea eax, [esp + 0x10]
push edx
push 0x104
push eax
push 0x428120
push str.lasttime
push str.official
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0xc]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405df9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405df9
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
mov ebp, dword [esp + 0x218]
mov eax, dword [0x42505c]
lea ecx, [esp + 0x10]
test ecx, ecx
mov dword [ebp], eax
je 0x405f3f
lea edx, [esp + 0x10]
shr edx, 0x10
jne 0x405eec
mov ecx, dword [0x428118]
xor edi, edi
lea eax, [esp + 0x10]
lea edx, [esp + 0x114]
mov di, ax
mov eax, dword [ecx + 8]
push pe_nt_image_headers32
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x405e53
mov byte [esp + 0x114], al
mov ecx, pe_nt_image_headers32
sub ecx, eax
cmp ecx, 2
jle 0x405e9a
lea edx, [esp + 0x114]
test edx, edx
jne 0x405e6e
xor eax, eax
jmp 0x405e7c
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x114]
push ecx
push eax
mov ecx, ebp
call fcn.004085c0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret 4
push 0x1ff
mov ecx, ebp
mov esi, 0x200
call fcn.00408450
test eax, eax
je 0x405ed5
push esi
push eax
push edi
call fcn.004088f0
mov edx, esi
sub edx, eax
cmp edx, 2
jg 0x405ed5
add esi, 0x100
mov ecx, ebp
lea eax, [esi - 1]
push eax
call fcn.00408450
test eax, eax
jne 0x405eaf
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00408500
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret 4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x405f3f
lea edx, [esi + 0xd]
push edx
call fcn.0041a14f
add esp, 4
test eax, eax
je 0x405f3f
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea edi, [eax + 0xc]
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp], edi
jb 0x405f3f
mov ecx, esi
lea esi, [esp + 0x10]
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]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret 4
Function at 0x409470
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x201c], ebx
call fcn.00409820
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x409496
pop esi
mov eax, 3
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x2128]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x200c], eax
jne 0x4094d1
mov eax, 1
mov dword [esi + 0x2020], eax
pop esi
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov dword [esp + 0x10], ebx
lea edi, [esi + 0xc]
mov ecx, dword [esi + 0x2018]
lea eax, [esp + 0x10]
push eax
push 0x1fff
push edi
push ecx
call ebp
mov ecx, dword [esp + 0x10]
cmp eax, ebx
je 0x4094ff
add dword [esi + 8], ecx
cmp eax, ebx
mov dword [esi + 0x201c], eax
je 0x40952b
cmp ecx, ebx
je 0x40952b
mov byte [edi + ecx], bl
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x200c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4094e0
mov edx, dword [esi + 0x200c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov dword [esi + 0x200c], ebx
call fcn.00409750
mov eax, dword [esi + 0x201c]
pop edi
neg eax
sbb eax, eax
pop ebp
and al, 0xfc
pop esi
add eax, 4
pop ebx
add esp, 8
ret
Function at 0x409560
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov al, byte [0x428120]
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 0x160], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x15f]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x212c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
je 0x409697
lea ecx, [ebp - 0x5c]
test ecx, ecx
je 0x409697
lea edx, [ebp - 0x5c]
mov ecx, 1
push edx
push ebx
push ebx
push eax
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, ebx
je 0x409697
cmp dword [ebp - 0x50], 3
jne 0x409697
push ebx
push ebx
push ebx
push ebx
push str.Mozila_4.0__compatible__MSIE_5.0__
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x2010], eax
je 0x409697
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
lea edx, [ebp - 0x160]
push ecx
push edx
mov dword [ebp - 0x20], 0x3a98
call fcn.0041a920
mov ecx, dword [esi + 0x2010]
add esp, 0xc
lea eax, [ebp - 0x20]
push 4
push eax
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [ebp - 0x44]
mov ecx, dword [esi + 0x2010]
push ebx
push ebx
push 3
push ebx
push ebx
lea eax, [ebp - 0x160]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x2014], eax
jne 0x4096ab
mov edx, dword [esi + 0x2010]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
push ebx
push 0x80000800
push 0x4251dc
push ebx
push str.HTTP_1.1
push ecx
push 0x4251e8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0x2018], eax
jne 0x4096f0
mov edx, dword [esi + 0x2010]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
mov eax, dword [esi + 0x2014]
push eax
call edi
jmp 0x409697
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x409709
mov ecx, esi
call fcn.00409750
mov edx, dword [esi + 0x2018]
lea ecx, [ebp - 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00409800
cmp eax, ebx
je 0x409697
cmp dword [ebp - 0x18], 0xc8
je 0x409697
mov ecx, esi
call fcn.00409750
mov dword [ebp - 0x14], ebx
jmp 0x409697
Function at 0x409ca0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x8e4
push ebx
push ebp
xor ebx, ebx
push str.360ACTIVEDEF
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, ebx
je 0x409cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409cd7
pop ebp
xor eax, eax
pop ebx
add esp, 0x8e4
ret 0x10
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call sub.ATL.DLL_AtlAxWinInit
mov ecx, dword [esp + 0x8f0]
mov dword [0x428198], 0x425250
push ecx
push ebx
push 0x428128
mov dword [0x428118], 0x428128
mov dword [0x428128], 0x84
mov dword [0x42818c], 0x300
call fcn.00409f10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x4281ac], eax
mov dword [0x4281b0], ebx
call fcn.0041a14f
add esp, 4
cmp eax, ebx
je 0x409d6c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x409d6e
xor eax, eax
cmp eax, ebx
mov dword [0x4281b0], eax
je 0x409d7d
mov dword [0x4281b4], ebx
push esi
push edi
push 0x425260
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0040b4c0
lea ecx, [esp + 0x12c]
call fcn.0040f2d0
push ebx
push 8
lea ecx, [esp + 0x180]
call fcn.0040f080
lea ecx, [esp + 0x1c4]
call fcn.0040a3e0
lea ecx, [esp + 0x454]
call fcn.0040a9f0
lea ecx, [esp + 0x7a4]
call fcn.0040b4c0
lea ecx, [esp + 0x8b8]
call fcn.0040e250
mov dword [esp + 0x7a4], 0x421398
mov dword [esp + 0x18], 0x421388
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0x428128
call fcn.0040a9b0
mov eax, dword [0x428130]
push ebx
push 0x40e1a0
push edi
push 0x81
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [esp + 0x8b8]
mov edi, eax
call fcn.0040e2a0
lea ecx, [esp + 0x7a4]
call fcn.00416da0
lea ecx, [esp + 0x454]
call fcn.0040af70
lea ecx, [esp + 0x1c4]
call fcn.0040a850
lea ecx, [esp + 0x178]
call fcn.00402290
lea ecx, [esp + 0x12c]
call fcn.0040f4b0
lea ecx, [esp + 0x18]
call fcn.00416da0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x428118]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4281b4]
cmp ecx, ebx
je 0x409ebc
cmp dword [ecx + 4], ebx
jle 0x409eb1
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x4281b4]
cmp ecx, ebx
je 0x409ebc
push 1
call fcn.0040b410
mov ecx, dword [0x428118]
mov dword [0x4281b4], ebx
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4281b0]
cmp ecx, ebx
je 0x409ee3
push 1
call fcn.0040b3c0
push 0x428128
call fcn.00409fa0
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e4
ret 0x10
Function at 0x410910
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x1b0]
push 0
push eax
call edi
mov ecx, dword [esi + 0x440]
push 0
push ecx
call edi
mov edx, dword [esi + 0x790]
push 0
push edx
call edi
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x410988
dec eax
je 0x410969
dec eax
jne 0x410974
mov eax, dword [esi + 0x790]
push 5
push eax
call edi
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
ret 0x10
mov edx, dword [esi + 0x440]
push 5
push edx
call edi
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [eax], 1
mov eax, 1
ret 0x10
mov ecx, dword [esi + 0x1b0]
push 5
push ecx
call edi
mov edx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword [edx], 1
ret 0x10
Function at 0x4109c0
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421490
push 0x41ab44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x834
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 5
xor ebx, ebx
push ebx
push ebx
mov esi, dword [ebp + 8]
push esi
push str.Open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x410a1a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
push 0x421528
push 0x15
push ebx
push 0x421508
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410b60
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x410b34
mov dword [ebp - 0x830], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x830]
push edx
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x830]
cmp eax, ebx
je 0x410a87
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
mov eax, dword [ebp - 0x830]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410b2b
mov ecx, 0x200
lea edi, [ebp - 0x81c]
rep stosd dword es:[edi], eax
push 0x7ff
lea ecx, [ebp - 0x81c]
push ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp - 0x82c], bx
mov word [ebp - 0x840], 8
lea edx, [ebp - 0x81c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x840]
push edx
push eax
call dword [ecx + 0xd0]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4125a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x420540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x34]
push edi
mov eax, dword [ebp + 4]
xor ebx, ebx
push ecx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x30], eax
push 1
push eax
mov dword [esp + 0x88], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x42505c]
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
mov ecx, 0x3e8
cmp edx, 1
mov byte [esp + 0x80], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
jg 0x412638
cmp dword [eax - 4], ecx
jge 0x412693
mov edi, dword [eax - 8]
cmp edi, ecx
mov dword [esp + 0x1c], edi
jle 0x412647
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004037d0
test eax, eax
je 0x412693
mov edx, dword [esp + 0x14]
lea ecx, [edi + 1]
inc edx
cmp edx, ecx
jb 0x412682
mov edi, dword [esp + 0x10]
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx - 8], edi
call fcn.004088c0
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push 0x3e8
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x10]
call fcn.00408780
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], bl
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [ebp + 0x24]
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edx
call esi
mov edi, eax
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push 0x14
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x30]
push edi
push eax
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x425060]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x41273d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41273d
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 4