joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adc9
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40ada0
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40adbe
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40ae1c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40ae03
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40ae0c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40ae16
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40adf8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40ad82
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40ae69
dec eax
je 0x40ae60
sub eax, 3
je 0x40ae57
mov dword [ebp - 4], 0x40
jmp 0x40ae86
mov dword [ebp - 4], 4
jmp 0x40ae6c
mov dword [ebp - 4], 0x20
jmp 0x40ae6c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40aeb8
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40ae38
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040a6c9
mov ch, 0xb1
and eax, 0x1475ff9a
push 1
push esi
call edi
mov eax, esi
jmp 0x40aec4
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c879
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call [edi + 0x5e]
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x40c88d
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040a6c9
pop esp
cdq
loop 0x40c85b
inc eax
or byte [eax - 0x18], dl
xor ebx, esi
invalid
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0040a6c9
jg 0x40c88e
ja 0x40c8d1
dec ecx
mov esi, dword [ebx + ecx*4]
xor al, 0x8b
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40c8b6
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40c8b6
call fcn.0040a6c9
loopne 0x40c8b8
invalid
jbe 0x40c8d1
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0040a6c9
sal bh, cl
mov dword [0x875ff86], eax
push dword [ebp + 4]
push dword [ebp]
call fcn.0040aec9
je 0x40c90c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
ret

Function at 0x412a4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432ac0]
jne 0x412a56
repz ret
jmp fcn.004180da
Function at 0x41d009
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x433468]
je 0x41d024
inc edi
cmp edi, 0x17
jb 0x41d015
cmp edi, 0x17
jae 0x41d1a4
push ebp
push 3
call fcn.0042296d
cmp eax, 1
pop ecx
je 0x41d170
push 3
call fcn.0042296d
test eax, eax
pop ecx
jne 0x41d058
cmp dword [0x432ab0], 1
je 0x41d170
cmp ebx, 0xfc
je 0x41d1a3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4363b8
push ebp
call fcn.00415505
add esp, 0xc
test eax, eax
je 0x41d08e
push esi
push esi
push esi
push esi
push esi
call fcn.0041990e
add esp, 0x14
push 0x104
mov esi, 0x4363d1
push esi
push 0
mov byte [0x4364d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d0d2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00415505
add esp, 0xc
test eax, eax
je 0x41d0d2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041990e
add esp, 0x14
push esi
call fcn.00415df0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41d117
push esi
call fcn.00415df0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4366cc
push 0x42b3bc
sub ecx, eax
push ecx
push eax
call fcn.00417a78
add esp, 0x14
test eax, eax
je 0x41d117
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041990e
add esp, 0x14
jmp 0x41d119
xor esi, esi
push 0x42b3b8
push ebx
push ebp
call fcn.00415f81
add esp, 0xc
test eax, eax
je 0x41d139
push esi
push esi
push esi
push esi
push esi
call fcn.0041990e
add esp, 0x14
push dword [edi*8 + 0x43346c]
push ebx
push ebp
call fcn.00415f81
add esp, 0xc
test eax, eax
je 0x41d15b
push esi
push esi
push esi
push esi
push esi
call fcn.0041990e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004227b0
add esp, 0xc
jmp 0x41d1a3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41d1a3
cmp ebp, 0xffffffff
je 0x41d1a3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43346c]
push dword [esi]
call fcn.00415df0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4227b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004183b2
xor ebx, ebx
cmp dword [0x436858], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x422886
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422966
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c3e8
push edi
call esi
cmp eax, ebx
je 0x422966
push eax
call fcn.00418344
mov dword [esp], 0x42c3d8
push edi
mov dword [0x436858], eax
call esi
push eax
call fcn.00418344
mov dword [esp], 0x42c3c4
push edi
mov dword [0x43685c], eax
call esi
push eax
call fcn.00418344
mov dword [0x436860], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004151cd
test eax, eax
pop ecx
pop ecx
je 0x422854
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041990e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x422886
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418344
cmp eax, ebx
pop ecx
mov dword [0x436868], eax
je 0x422886
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418344
pop ecx
mov dword [0x436864], eax
mov eax, dword [0x436864]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42290b
cmp dword [0x436868], ecx
je 0x42290b
push eax
call fcn.004183bb
push dword [0x436868]
mov esi, eax
call fcn.004183bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42290b
cmp edi, ebx
je 0x42290b
call esi
cmp eax, ebx
je 0x4228d8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4228d8
test byte [ebp - 0x18], 1
jne 0x42290b
lea eax, [ebp - 0x10]
push eax
call fcn.00415204
test eax, eax
pop ecx
je 0x4228f3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041990e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x422902
or dword [ebp + 0x10], 0x200000
jmp 0x422946
or dword [ebp + 0x10], 0x40000
jmp 0x422946
mov eax, dword [0x43685c]
cmp eax, dword [ebp - 8]
je 0x422946
push eax
call fcn.004183bb
cmp eax, ebx
pop ecx
je 0x422946
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422946
mov eax, dword [0x436860]
cmp eax, dword [ebp - 8]
je 0x422946
push eax
call fcn.004183bb
cmp eax, ebx
pop ecx
je 0x422946
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436858]
call fcn.004183bb
cmp eax, ebx
pop ecx
je 0x422966
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422968
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427308
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042729d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00415d70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x427357
cmp dword [ebp - 0x1c], 5
jb 0x42736f
jmp 0x42736b
cmp dword [ebp - 0x10], 1
jne 0x42736f
cmp dword [ebp - 0x1c], 4
ja 0x42736b
jne 0x42736f
cmp dword [ebp - 0x18], 0
jbe 0x42736f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c478
call fcn.00427171
test eax, eax
jge 0x427390
mov byte [0x4369b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412a4c
add ebp, 0x78
leave
ret
Function at 0x403c2a
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x74
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x403c40
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x403c4a
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 4]
mov ebx, eax
push ebp
lea eax, [esp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x33c8]
test eax, eax
je 0x403cf2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x33c8]
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
push ecx
mov ecx, dword [esi + 0x33c8]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004b6530
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00403800
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, esi
call fcn.004028a0
mov eax, dword [esi + 0x3440]
test eax, eax
je 0x403d2d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
push edi
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push edi
mov ecx, esi
call fcn.00403b60
push edi
mov ecx, esi
call fcn.004039d0
push edi
mov ecx, esi
call fcn.00403a80
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x88]
pop edi
test eax, eax
pop ebp
je 0x403db9
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x404b6a
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1048
call fcn.004cd000
push esi
mov esi, ecx
cmp word [esi + 0x34c8], 0
lea eax, [esi + 0x34c8]
je 0x404b8b
push eax
mov eax, dword [esi + 0x33c0]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x33c0]
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x824
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 8]
push eax
call fcn.00488e30
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 4
lea ecx, [esp + 8]
push 0x4e4a44
push ecx
call edi
add esp, 8
test eax, eax
je 0x404be6
mov word [eax], 0x2e
jmp 0x404bcc
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.00403df0
mov eax, dword [esi + 0x1308]
pop edi
test eax, eax
je 0x404c33
mov eax, dword [esi + 0x1304]
push 0
push 0
push 0
test eax, eax
push 0
je 0x404c18
push 0x759c
jmp 0x404c1d
push 0x7595
call fcn.00421b80
mov ecx, eax
call fcn.00421c10
mov dword [esi + 0x1308], 0
mov eax, dword [esi + 0x130c]
cmp eax, 3
jbe 0x404c4d
push 0
push 0
push 0
push 0
push 0x7596
jmp 0x404c76
jne 0x404c5e
push 0
push 0
push 0
push 0
push 0x7597
jmp 0x404c76
push 0
push 0
test eax, eax
push 0
push 0
ja 0x404c71
push 0x7599
jmp 0x404c76
push 0x7598
call fcn.00421b80
mov ecx, eax
call fcn.00421c10
mov eax, dword [esp + 0x1050]
test eax, eax
jne 0x404c94
mov ecx, esi
call fcn.00404870
mov eax, dword [esi + 4]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
and eax, 0xffff
or eax, 0xb0000
push eax
mov eax, dword [esi + 0x33c4]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0x2009
push ecx
mov word [esi + 0x1320], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 1
mov ecx, esi
call fcn.00405690
pop esi
add esp, 0x1048
ret 4
Function at 0x405590
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x214
push esi
mov esi, ecx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x405682
mov eax, dword [esi + 0x38]
push ebx
test eax, eax
push edi
jne 0x4055df
xor ebx, ebx
jmp 0x4055f1
mov ebx, dword [esi + 0x3c]
sub ebx, eax
sar ebx, 2
cmp ebx, 0x18
jle 0x4055f1
mov ebx, 0x18
mov ecx, dword [0x4e4acc]
mov edx, dword [0x4e4ad0]
mov dword [esp + 0x18], ecx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x405675
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__itow]
mov edi, 1
jmp 0x40562c
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [edx - 8]
test ecx, ecx
jle 0x40566b
lea eax, [esp + 0x22]
push 0xa
push eax
push edi
call ebp
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
inc edi
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x405628
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0x214
ret
Function at 0x405be0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1050
call fcn.004cd000
push ebx
push ebp
mov ebp, dword [esp + 0x105c]
push esi
push edi
mov edi, dword [esp + 0x1070]
mov ebx, ecx
push ebp
mov esi, edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x106c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x405d71
push eax
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405c8d
push 7
push 0x4e4af8
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405c59
mov eax, dword [esp + 0x10]
lea esi, [edi + 0xe]
push eax
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405c8d
push 0xb
push str.http:__www.
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405d71
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x16]
push ecx
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405d71
mov eax, dword [0x5dc10c]
test eax, eax
je 0x405d71
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x33c0]
lea edx, [esp + 0x18]
push 0x823
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x405d0d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea eax, [esi + edx*2]
push eax
push ebp
push 0x4e4ad4
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebx + 0x33c0]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
mov dword [ebx + 0x33b4], 0
call edi
push esi
mov dword [esp + 0x18], eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x33c0]
add esp, 8
push eax
push ecx
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 0x4e49c0
lea eax, [ebx + 0x34c8]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esp + 0x107c]
mov edi, dword [esp + 0x1080]
add esp, 0x10
mov dword [ecx], 0
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x1078]
mov edx, dword [ebx + 0x4c]
push eax
mov eax, dword [esp + 0x1078]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x107c]
add ebx, 0x4c
push eax
push edi
mov eax, dword [ecx]
mov ecx, ebx
push eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0x1c
Function at 0x409410
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov dword [0x5009a4], 1
call fcn.0040a510
mov ecx, esi
call fcn.0040ad10
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea ecx, [esi + 0x4c]
call fcn.004187f0
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040afe0
mov ecx, 0x5daf68
call fcn.004b3d50
push 0
call fcn.00474b70
mov ecx, dword [esi + 8]
add esp, 4
push ecx
call sub.gdiplus.dll_GdiplusShutdown
mov esi, dword [esi + 4]
test esi, esi
je 0x409471
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4094c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2090
call fcn.004cd000
mov eax, dword [0x5009a8]
push edi
test eax, eax
mov edi, ecx
je 0x4094e3
mov eax, 0x5009ac
pop edi
add esp, 0x2090
ret
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add edi, 0x60
push 0x5c
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov edi, eax
lea eax, [esp + 0x10]
push esi
push 0x4e49c0
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0x10
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
test esi, esi
je 0x40953f
push edi
call ebp
lea esi, [esi + eax*2]
add esp, 4
test esi, esi
jne 0x409561
lea esi, [edi + 2]
lea edx, [esp + 0x10]
push esi
push edx
call ebx
mov edi, eax
test edi, edi
je 0x4095d4
push esi
call ebp
lea esi, [edi + eax*2]
add esp, 4
test esi, esi
je 0x4095d4
push 0x4e4dfc
push esi
call ebx
test eax, eax
je 0x409572
lea esi, [eax + 4]
jmp 0x40958a
push 2
push 0x4e4df4
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40958a
add esi, 4
push esi
call ebp
add esp, 4
test eax, eax
jbe 0x4095d4
push esi
push 0x4e49c0
push 0x1047
push 0x5009ac
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x5009ac
mov word [0x502a3a], 0
call fcn.00488e30
push 0x5009ac
call fcn.00489500
push 0x5009ac
call fcn.00488e30
add esp, 0x1c
pop esi
pop ebp
pop ebx
mov dword [0x5009a8], 1
mov eax, 0x5009ac
pop edi
add esp, 0x2090
ret
Function at 0x409700
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea eax, [esi + 0x60]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x18]
push edx
call fcn.004330b0
lea eax, [esp + 0x1c]
push eax
call fcn.00488f00
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0xc], eax
je 0x40986b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40986b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov ecx, esi
call fcn.004095f0
test eax, eax
mov dword [0x5d7550], eax
jne 0x409790
push 0x64
call ebx
mov edx, edi
inc edi
cmp edx, 0x14
jb 0x409767
mov eax, dword [0x5d7550]
test eax, eax
je 0x40986b
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov edx, dword [0x5d7550]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov edi, dword [esp + 0x21c]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x409800
mov ecx, dword [esi + 0x28]
mov edx, dword [0x5d7550]
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push 0x4e4e04
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40983c
mov eax, dword [esi + 0x28]
mov ecx, dword [0x5d7550]
push 0x1e0000
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push edi
mov ecx, esi
call fcn.0040b240
test eax, eax
je 0x40985a
mov edx, dword [0x5d7550]
push edi
push 0
push edx
call fcn.00441d80
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 4

Function at 0x409ac0
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x420]
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push eax
push 0x4e4e38
push ecx
call fcn.004414d0
add esp, 0x10
test eax, eax
je 0x409b6e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4e441c
push 0x500178
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 8]
push 1
push eax
push 0x4fff70
call esi
push 2
lea ecx, [esp + 0x214]
push 0x4fff70
push ecx
call esi
lea edx, [esp + 8]
push 1
push edx
call fcn.0048a290
add esp, 8
pop edi
pop esi
add esp, 0x410
ret 4