joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415aac
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x44b094]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x415aec
cmp dword [ebp - 0x364], 6
jne 0x415aec
cmp dword [ebp - 0x360], 0
je 0x415b16
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415b16
push 0xc00
call eax
test eax, eax
jne 0x415bab
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x415bab
cmp eax, 0x104
ja 0x415bab
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x415b56
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [0x43f2b0], 0
push esi
mov esi, 0x43f2b0
je 0x415baa
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x415b71
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x415b6f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee8b
leave
ret
Function at 0x4192e3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ebx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esi + 0x78], ecx
cmova eax, ebx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x88], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x58], ecx
cmp eax, dword [esi + 0x20]
je 0x41938b
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ecx
je 0x41936c
push edi
call fcn.00419293
xor ecx, ecx
add edi, 0x28
sub ebx, 1
jne 0x41935f
cmp dword [esi + 0x5c], ebx
je 0x419386
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00419808
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.0041925c
mov edi, eax
test edi, edi
jne 0x4193f3
lea eax, [ebx + 0x20]
push eax
call fcn.0041a2d8
mov edi, eax
test edi, edi
jne 0x4193f3
lea eax, [ebx + 0x1c]
push eax
call fcn.0041a2d8
mov edi, eax
test edi, edi
jne 0x4193f3
push ebx
call fcn.0041a1dc
mov edi, eax
test edi, edi
je 0x4193f3
and dword [esi + 0x44], 0
push esi
call fcn.004192be
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x419407
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], 0
jne 0x41941d
cmp dword [esi + 0x40], 0
jne 0x41941d
cmp dword [esi + 0x3c], 0
jne 0x41941d
and dword [esi + 0x44], 0
xor ecx, ecx
cmp dword [esi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x41a3e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00433e1e
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.0041a23b
leave
ret 0xc

Function at 0x41acd5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c049
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44b094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00414748
lea ecx, [esi + 0x30]
call fcn.00412c36
push dword [esi + 0x24]
call fcn.0042ef12
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040bf45
mov ecx, esi
call fcn.0041ac9b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41b373
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x43c208
call fcn.0042f19a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041aef9
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0040fdf0
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.00410101
push dword [ebp - 0x18]
call fcn.0042ef12
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0042f168
ret 8
Function at 0x42e0cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44b094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.004306c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e16b
push edi
push esi
call fcn.0042e2f0
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.0042ef09
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee8b
leave
ret 8

Function at 0x42e2f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42e31b
xor al, al
jmp 0x42e32f
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8
Function at 0x515f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc1000]
push edi
jmp 0x515f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515f70
mov eax, 1
add ebx, ebx
jne 0x515f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x515fa4
jne 0x515fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515fc3
dec eax
add ebx, ebx
jne 0x515fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515f88
add ebx, ebx
jne 0x515fbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x516015
xor ecx, ecx
sub eax, 3
jb 0x515fdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51604a
sar eax, 1
mov ebp, eax
jmp 0x515fe6
add ebx, ebx
jne 0x515fe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515fb4
inc ecx
add ebx, ebx
jne 0x515ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515fb4
add ebx, ebx
jne 0x516001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x515ff6
jne 0x516012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x515ff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x516034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x516026
jmp 0x515f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x516034
add edi, ecx
jmp 0x515f76
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x516052
cmp byte [edi], 0x11
jne 0x516052
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x516057
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x5160cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x152ddc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x152f58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x516084
mov ecx, edi
jns 0x5160b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x152f5c]
or eax, eax
je 0x5160c9
mov dword [ebx], eax
add ebx, 4
jmp 0x5160a1
call dword [esi + 0x152f6c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x516100
cmp al, 0xef
ja 0x5160f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5160d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5160e2
mov ebp, dword [esi + 0x152f60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x516134
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x402518
Capabilities:
Delete file
Query environment variable

Disassembly:
push str.MOZ_CRASHREPORTER_NO_DELETE_DUMP
call dword [sym.imp.MOZCRT19.dll_getenv]
test eax, eax
pop ecx
je 0x40252d
cmp byte [eax], 0
jne 0x402553
cmp dword [0x41417c], 0
je 0x402540
mov ecx, 0x414168
call fcn.0040aa36
cmp dword [0x414198], 0
je 0x402553
mov ecx, 0x414184
jmp fcn.0040aa36
ret
Function at 0x404ec8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x28], edi
je 0x404fdc
cmp byte [edi + 0x41], 0
je 0x404fdc
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x404f07
xor al, al
jmp 0x404fde
lea esi, [ebp - 0x20]
call fcn.00404468
lea eax, [edi + 0x44]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.00404868
mov esi, eax
call fcn.00403d14
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
call fcn.00404868
mov esi, eax
call fcn.00403d14
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x24]
push esi
mov esi, dword [ebp - 0x30]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x2c]
call dword [edx + 0x18]
sub eax, 0
je 0x404f73
dec eax
je 0x404f77
dec eax
dec eax
je 0x404fd8
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00404a2b
mov al, bl
jmp 0x404fde
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.00404868
mov esi, eax
call fcn.00403d14
mov ebx, dword [ebp - 0x24]
sub ebx, eax
je 0x404fb6
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x20]
call fcn.00404868
mov esi, eax
call fcn.00403d14
push dword [edi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.MOZCRT19.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x404f61
cmp byte [edi + 0x41], 0
je 0x404fd8
test ebx, ebx
jne 0x404f15
push ebx
push 8
pop ebx
lea edi, [ebp - 0x20]
call fcn.004044bb
mov edi, dword [ebp - 0x28]
jmp 0x404f15
mov bl, 1
jmp 0x404f63
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
leave
ret

Function at 0x407d90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push 0x80000002
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x407dce
push str.SubmitReport
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push 0x80000001
call esi
test eax, eax
jne 0x407df3
push str.SubmitReport
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call fcn.00407d90
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407ea9
cmp byte [ebp + 0x10], al
push 4
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x407eab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.0040f890
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp + 0xf88], eax
mov eax, dword [ebp + 0xf94]
push esi
mov esi, ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push str.Email
push eax
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f0a
cmp dword [ebp - 0x7c], 1
jne 0x407f0a
lea eax, [ebp - 0x78]
call fcn.004050ff
mov al, 1
jmp 0x407f0c
xor al, al
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
pop esi
call fcn.0040e380
add ebp, 0xf8c
leave
ret

Function at 0x40831a
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b0]
push ebx
push esi
push edi
push 0x800
lea ecx, [ebp - 0x5c]
push ecx
push 0x3f1
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.0040424e
cmp dword [0x41421c], 8
mov eax, dword [0x414208]
mov ebx, 0x414208
jae 0x408376
mov eax, ebx
lea ecx, [ebp - 0x64]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4083ba
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x408396
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.Email
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea esi, [ebp - 0x80]
call fcn.0040516c
cmp dword [0x41421c], 8
mov edi, dword [0x414208]
jae 0x4083d7
mov edi, ebx
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3f2
push dword [ebp - 0x60]
call esi
test eax, eax
setne al
push eax
push str.IncludeURL
push edi
call fcn.00407e5d
mov edi, dword [0x414208]
add esp, 0xc
cmp dword [0x41421c], 8
jae 0x40840c
mov edi, ebx
push 0x3f0
push dword [ebp - 0x60]
call esi
test eax, eax
setne al
push eax
push str.EmailMe
push edi
call fcn.00407e5d
mov edi, dword [0x414208]
add esp, 0xc
cmp dword [0x41421c], 8
jae 0x40843b
mov edi, ebx
push 0x3ef
push dword [ebp - 0x60]
call esi
test eax, eax
setne al
push eax
push str.SubmitCrashReport
push edi
call fcn.00407e5d
add esp, 0xc
push dword [ebp + 0x7b4]
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp + 0x7a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
add ebp, 0x7a8
leave
ret
Function at 0x408480
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x3f6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4084c8
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x81c]
push eax
push ebx
push edi
call fcn.004080f9
add esp, 0xc
push 0x400
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MOZCRT19.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x408618
mov eax, dword [ebp - 0x814]
sub eax, dword [ebp - 0x81c]
cmp dword [ebp - 0x824], eax
mov dword [ebp - 0x80c], eax
jl 0x408618
fild dword [ebp - 0x824]
push ecx
push ecx
fidiv dword [ebp - 0x80c]
fstp dword [ebp - 0x80c]
fld dword [ebp - 0x80c]
fstp qword [esp]
call dword [sym.imp.MOZCRT19.dll_ceil]
fstp dword [ebp - 0x80c]
fld dword [ebp - 0x80c]
pop ecx
fstp dword [ebp - 0x80c]
pop ecx
fld dword [ebp - 0x80c]
call fcn.0040f7e0
imul eax, dword [ebp - 0x820]
mov esi, dword [ebp - 0x818]
sub esi, dword [ebp - 0x810]
add esi, eax
test esi, esi
jle 0x408618
push 1
push eax
mov eax, dword [ebp - 0x814]
sub eax, dword [ebp - 0x81c]
push eax
push dword [ebp - 0x818]
push dword [ebp - 0x81c]
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
call fcn.0040b0ad
lea eax, [ebp - 0x80c]
push eax
lea edi, [ebp - 0x830]
mov dword [ebp - 0x80c], 0x3ed
call fcn.0040af6b
lea eax, [ebp - 0x80c]
push eax
lea edi, [ebp - 0x830]
mov dword [ebp - 0x80c], 0x3f4
call fcn.0040af6b
push esi
push ebx
call fcn.0040813c
pop ecx
pop ecx
push 0xa
mov esi, 0x410b28
pop ebx
push esi
lea edi, [ebp - 0x830]
call fcn.0040af6b
add esi, 4
dec ebx
jne 0x408606
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
leave
ret
Function at 0x408627
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, 0x3ef
push esi
push edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
push 0
jne 0x40864f
push edi
call fcn.0040831a
pop ecx
pop ecx
jmp 0x408776
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0x3ee
push edi
call ebx
push eax
call esi
push 0
push 0x3f3
push edi
call ebx
push eax
call esi
push 0
push 0x3f2
push edi
call ebx
push eax
call esi
push 0
push 0x3f0
push edi
call ebx
push eax
call esi
push 0
push 0x3f1
push edi
call ebx
push eax
call esi
push 0
push 0x3ed
push edi
call ebx
push eax
call esi
push 0
push 0x3f4
push edi
call ebx
push eax
call esi
lea eax, [ebp - 0x24]
push str.ReportDuringSubmit2
push eax
call fcn.00407d1c
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x4086d8
mov eax, dword [eax + 4]
jmp 0x4086db
add eax, 4
push eax
push 0x3f6
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 1
lea esi, [ebp - 0x24]
call fcn.0040516c
mov ecx, edi
call fcn.00408480
push 0xffff0000
push 0xffffffffffffffff
push 0x465
mov esi, 0x3f7
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
call ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 0x4141c0
xor esi, esi
mov eax, ebx
cmp eax, 0x41490c
mov dword [0x4148bc], esi
mov dword [0x4141a0], edi
je 0x40875d
mov eax, dword [0x4141c4]
mov ecx, dword [eax]
push eax
mov edx, ebx
push edx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040bad3
mov eax, ebx
call fcn.0040bbba
push esi
push esi
push 0x4141a0
push 0x408223
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4148bc], eax
pop esi
pop ebx
leave
ret
Function at 0x40877a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov eax, 0x4148f0
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], edi
mov word [ebp - 0x1c], di
mov dword [ebp - 0x24], edi
call fcn.004051b3
cmp eax, edi
jbe 0x40886f
cmp edi, eax
mov dword [ebp - 0x28], edi
jb 0x4087c2
call dword [sym.imp.MOZCRT19.dll__invalid_parameter_noinfo]
mov eax, dword [0x4148f4]
mov ecx, dword [ebp - 0x28]
lea ebx, [ecx + eax]
lea eax, [ebp - 0xd8]
push eax
call fcn.0040a0d4
pop ecx
mov ebx, eax
mov eax, 0x410d08
lea ecx, [ebp - 0xf4]
call fcn.0040424e
push 0xffffffffffffffff
mov esi, eax
push edi
mov eax, ebx
call fcn.0040c03e
lea esi, [ebp - 0x54]
call fcn.0040abdb
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0xf4]
call fcn.0040516c
lea eax, [ebp - 0xbc]
push 0x410d00
push eax
lea eax, [ebp - 0x54]
call fcn.0040cb4e
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
lea esi, [ebp - 0x20]
call fcn.0040c03e
push edi
push ebx
lea esi, [ebp - 0xbc]
call fcn.0040516c
push edi
push ebx
lea esi, [ebp - 0x54]
call fcn.0040516c
push edi
push ebx
lea esi, [ebp - 0xd8]
call fcn.0040516c
inc dword [ebp - 0x24]
add dword [ebp - 0x28], 0x1c
mov eax, 0x4148f0
call fcn.004051b3
cmp dword [ebp - 0x24], eax
jb 0x4087c2
push 0x44
pop esi
push esi
lea eax, [ebp - 0xa0]
push edi
push eax
call sub.MOZCRT19.dll_memset
mov dword [ebp - 0xa0], esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x38]
inc esi
push edi
push eax
mov dword [ebp - 0x74], esi
mov word [ebp - 0x70], si
call sub.MOZCRT19.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0x18
cmp dword [ebp - 8], 8
jae 0x4088ab
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4088d8
push dword [ebp - 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x34]
call ebx
push edi
push esi
lea esi, [ebp - 0x20]
call fcn.0040516c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
leave
ret
Function at 0x408d18
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x768]
sub esp, 0x7e8
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp + 0x764], eax
mov eax, dword [ebp + 0x770]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
mov edi, 0x1f5
push edi
lea eax, [ebp - 0x74]
mov esi, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0xb0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
xor esi, esi
xor ebx, ebx
sub eax, ecx
je 0x408db5
push eax
lea eax, [ebp + ecx*2 - 0x74]
push eax
lea eax, [ebp + 0x378]
push edi
push eax
call dword [sym.imp.MOZCRT19.dll_wcsncpy_s]
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x78]
add esp, 0x10
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
mov word [ebp + eax*2 + 0x378], si
lea eax, [ebp + 0x378]
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
dec ebx
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x80]
mov esi, eax
dec esi
call fcn.00408cfe
pop ecx
mov ecx, dword [ebp + 0x764]
sub esi, ebx
pop edi
add eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
add ebp, 0x768
leave
ret