joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405497
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4054d2

Function at 0x405a71
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4059fc
cmp dword [eax + 0xc], ebx
je 0x405a9f
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00405457
mov word [eax + 0x5d391b3c], fs
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x405a8d
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x405a68
and eax, 0xffff
push eax
jmp 0x405a6c
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
or al, ch
movsd dword es:[edi], dword [esi]
stc
invalid
inc dword [ebx - 0x4c4f33c]
mov dword [edi], eax
je 0x405c46
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x405a4d
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4059ee
call fcn.00405457
mov word [edi], fs
imul ecx, edi, 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x405b0b
add eax, esi
cmp dword [eax], ebx
je 0x405b0b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x405b06
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x405af0
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x405af8
cmp edx, ebx
jne 0x405c46
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x405ac7
add eax, dword [eax + 4]
jmp 0x405ab4
mov dword [ebp + 0xc], ebx
jmp 0x405b16
Function at 0x405a84
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4059fc
cmp dword [eax + 0xc], ebx
je 0x405a9f
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00405457
mov word [eax + 0x5d391b3c], fs
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x405a8d
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x405a68
and eax, 0xffff
push eax
jmp 0x405a6c
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
or al, ch
movsd dword es:[edi], dword [esi]
stc
invalid
inc dword [ebx - 0x4c4f33c]
mov dword [edi], eax
je 0x405c46
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x405a4d
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4059ee
call fcn.00405457
mov word [edi], fs
imul ecx, edi, 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x405b0b
add eax, esi
cmp dword [eax], ebx
je 0x405b0b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x405b06
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x405af0
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x405af8
cmp edx, ebx
jne 0x405c46
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x405ac7
add eax, dword [eax + 4]
jmp 0x405ab4
mov dword [ebp + 0xc], ebx
jmp 0x405b16
Function at 0x405b77
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x405b2e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x405b4c
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]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x405baa
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x405b89
jge 0x405b89
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x405b91
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x405b9a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x405ba4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x405b86
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x405b10
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 0x405bf7
dec eax
je 0x405bee
sub eax, 3
je 0x405be5
mov dword [ebp - 4], 0x40
jmp 0x405c14
mov dword [ebp - 4], 4
jmp 0x405bfa
mov dword [ebp - 4], 0x20
jmp 0x405bfa
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 0x405c46
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x405bc6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00405457
xchg esi, eax
pop esp
aaa
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x405c52
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407afe
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x448950
push 0x64
push esi
mov ebx, 0x45f8c0
push 0x45c060
mov ecx, ebx
mov dword [ebp - 0x70], eax
call fcn.00403427
mov esi, 0x449938
lea edi, [ebp + 0x19c]
lea eax, [ebp + 0x19c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x70]
mov dword [0x45fb14], 1
movsw word es:[edi], word [esi]
call fcn.00402232
mov esi, eax
xor edi, edi
pop ecx
pop ecx
cmp esi, edi
je 0x407bb6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x407c00
push str.RegServer
push esi
call edi
test eax, eax
je 0x407c09
push 0x4498fc
push esi
call edi
test eax, eax
je 0x407c16
lea eax, [ebp + 0x19c]
push eax
push esi
call fcn.00402232
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x407b7b
xor edi, edi
mov esi, 0x20019
push esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.00402848
mov dword [ebp - 0x70], eax
cmp eax, edi
je 0x407c1a
lea ecx, [ebp - 0x7c]
call fcn.004027d3
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e438
add ebp, 0x1a8
leave
ret 0x10
mov ecx, ebx
call fcn.00405b77
jmp 0x407be6
push 0
push 1
mov ecx, ebx
call fcn.00405a84
jmp 0x407be6
push 1
jmp 0x407c0b
push esi
push str.563B9604_2884_46EB_8C8E_0C6C26D06247
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call fcn.00402848
cmp eax, edi
je 0x407c4b
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.004027d3
lea ecx, [ebp - 0x7c]
call fcn.004027d3
mov eax, esi
jmp 0x407be6
lea eax, [ebp - 0x80]
push eax
push str.LocalService
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], 0x104
call fcn.00402889
mov dword [0x45fb14], edi
cmp eax, edi
jne 0x407c7b
mov dword [0x45fb14], 1
mov ecx, ebx
call fcn.00407ab4
mov esi, dword [0x45fb00]
jmp 0x407c37

Function at 0x407d39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d8f
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x407d89
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x407d93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407de1
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x407ddb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x407e95
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push eax
call fcn.0042fe19
push 0x449a6c
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0043018f
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e438
leave
ret

Function at 0x407fa2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push str._ScheduleService__CScheduleWnd__GetTokenByName__Entry
push 1
call fcn.0040c81a
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
jne 0x407fd9
xor eax, eax
jmp 0x4080b1
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x230], ebx
call fcn.00430210
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408016
push str._ScheduleService__CScheduleWnd__GetTokenByName__CreateToolhelp32Snapshot_fail
push 1
call fcn.0040c81a
xor eax, eax
jmp 0x4080af
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408098
push edi
call fcn.00430dea
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00430dea
pop ecx
push eax
call fcn.00430b47
pop ecx
pop ecx
test eax, eax
je 0x408068
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408031
xor esi, esi
inc esi
jmp 0x40809a
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._ScheduleService__CScheduleWnd__GetTokenByName__exit_1.
jmp 0x4080a6
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._ScheduleService__CScheduleWnd__GetTokenByName__exit_2.
push 1
call fcn.0040c81a
mov eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e438
leave
ret 8
Function at 0x40853b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str._ScheduleService__CScheduleWnd__ShutDown__Entry
push 1
call fcn.0040c81a
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408568
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4085b1
xor eax, eax
jmp 0x4085c0
push esi
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x409643
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__Entry
push 1
mov dword [ebp - 4], esi
call fcn.0040c81a
mov eax, dword [ebp + 8]
xor ebx, ebx
pop ecx
pop ecx
cmp eax, ebx
je 0x4097c0
cmp eax, 4
je 0x4097ad
cmp eax, 5
jbe 0x4097ec
cmp eax, 7
jbe 0x40969e
cmp eax, 0x12
jne 0x4097ec
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
test eax, eax
je 0x40969e
push 3
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp dword [esi + 0x8c], ebx
je 0x4097ec
cmp dword [esi + 0x9c], ebx
je 0x4097ec
push str.PowrProf.dll
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4097ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x4097a4
lea ecx, [ebp + 8]
push ecx
push ebx
call eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
cmp byte [ebp - 0x10], bl
jne 0x409749
push str.PowerWriteDCValueIndex
push edi
call esi
cmp eax, ebx
je 0x40979b
push ebx
push 0x4515c0
push 0x4515b0
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40979b
push str.PowerSetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x409742
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40973b
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__DC_wakeup_Disable_OK_
jmp 0x409792
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__PowerSetActiveScheme_Fail_
jmp 0x409792
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__DC_wakeup_Disable_Fail_
jmp 0x409792
cmp byte [ebp - 0x10], 1
jne 0x40979b
push str.PowerWriteACValueIndex
push edi
call esi
cmp eax, ebx
je 0x40979b
push ebx
push 0x4515c0
push 0x4515b0
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40979b
push str.PowerSetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x40978d
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40973b
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__AC_wakeup_Disable_OK_
jmp 0x409792
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__AC_wakeup_Disable_Fail_
push 1
call fcn.0040c81a
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4097ec
mov dword [esi + 0x90], ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x8c], ebx
je 0x4097ec
jmp 0x4097c3
mov dword [ebp + 8], ebx
push 0x96
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00408d70
test eax, eax
je 0x4097dc
or eax, 0xffffffff
jmp 0x4097ee
mov eax, dword [ebp + 8]
add eax, 0xffffff88
push eax
push 6
mov ecx, esi
call fcn.00408193
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c43a
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042df1a
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x40c48a
lea eax, [ebp - 0x20c]
push 0x44b494
push eax
call fcn.00430afa
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push 0x44c608
push eax
call fcn.00430afa
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
push 0
push str.LOG_LEVEL
push 0x44c5e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e438
leave
ret

Function at 0x40c5ab
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40c5dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40c6d4
or dword [esi + 8], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 1
jg 0x40c605
add esi, 0xc
push 0
push esi
call fcn.00431954
pop ecx
pop ecx
test eax, eax
jne 0x40c6d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c6d1
dec eax
cmp dword [ebp + 8], eax
jne 0x40c646
push dword [ebp + 8]
add esi, 0xc
push esi
lea eax, [ebp - 0x20c]
push 0x44c624
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00431954
add esp, 0x18
test eax, eax
jne 0x40c6d1
lea eax, [ebp - 0x20c]
push eax
jmp 0x40c5fa
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x418], eax
mov ebx, 0x44c624
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
mov eax, dword [ebp + 8]
inc eax
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push ebx
push eax
call edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00431954
add esp, 0x28
pop edi
pop ebx
test eax, eax
jne 0x40c6b7
mov eax, dword [ebp + 8]
inc eax
push eax
mov ecx, esi
call fcn.0040c5ab
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00431898
pop ecx
pop ecx
cmp dword [ebp + 8], 1
jne 0x40c6d1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.00431898
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e438
leave
ret 4
Function at 0x40c6e3
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1878
call fcn.00430730
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jl 0x40c80a
push edi
xor edi, edi
cmp dword [esi + 8], 0xffffffff
jne 0x40c73b
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40c809
push 2
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1874]
push eax
call fcn.00431afb
lea eax, [ebp - 0x1874]
mov dword [esp], 0x44bacc
push eax
call fcn.00430afa
lea eax, [ebp - 0x104]
push eax
call fcn.00431a21
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1874]
push eax
call fcn.00430afa
lea eax, [ebp - 0x1874]
push 0x44c644
push eax
call fcn.00430afa
lea eax, [ebp - 0x1874]
push ebx
push eax
call fcn.00430afa
lea eax, [ebp - 0x1874]
push 0x44c63c
push eax
call fcn.00430afa
add esp, 0x2c
push edi
push edi
push 0x7d0
lea eax, [ebp - 0x8d4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1874]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x1878]
push eax
lea eax, [ebp - 0x8d4]
push eax
call fcn.00431140
pop ecx
push eax
lea eax, [ebp - 0x8d4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 1
jl 0x40c809
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e438
leave
ret 8

Function at 0x40d0bd
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x446d79
call fcn.0042e447
mov ebx, dword [ebp + 8]
xor edi, edi
push edi
mov esi, 0x44c658
push esi
mov ecx, ebx
call fcn.0040cf4e
cmp eax, 0xffffffff
je 0x40d0f5
push edi
push esi
mov ecx, ebx
call fcn.0040cf4e
push esi
mov edi, eax
call fcn.0042df1a
pop ecx
add edi, eax
mov esi, 0x44b494
jmp 0x40d150
push edi
push esi
mov ecx, ebx
call fcn.0040cf4e
push esi
mov edi, eax
call fcn.0042df1a
pop ecx
add edi, eax
push edi
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00409ae8
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x10
push eax
call fcn.0040cfc5
pop ecx
pop ecx
test eax, eax
jne 0x40d141
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d167
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040143c
push edi
push esi
mov ecx, ebx
call fcn.0040cf4e
cmp eax, 0xffffffff
jne 0x40d0fc
xor eax, eax
inc eax
call fcn.0042e51f
ret
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040143c
xor eax, eax
jmp 0x40d161
Function at 0x414261
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x414285
cmp dword [edi + 0x54], 0
jne 0x414285
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041b783
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00414222
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4199fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x419a43
call fcn.0041b783
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419a43
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419a5f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419574
mov esi, eax
test edi, edi
je 0x419a5d
test ebx, ebx
je 0x419a5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a7f2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x446d79
call fcn.0042e447
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41a817
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41a85d
lea ecx, [ebp - 0x10]
call fcn.004049ae
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402614
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040143c
mov eax, esi
call fcn.0042e51f
ret 8