joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004115d4
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x472699
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004722a2
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4726f7
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x47271b
cmp dword [edi + 0x74], 0
jne 0x47271b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004115d4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.004726b8
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 0x478a73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x478a8d
call fcn.004115d4
mov esi, dword [eax + 0xc]
push dword [0x573ff0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x478aab
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x478aa3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x478ad8
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x478aa5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004789a1
mov esi, eax
jmp 0x478aca

Function at 0x4d69e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041ff59
call fcn.0040ded3
cmp eax, esi
pop esi
jne 0x4d6a02
mov ecx, 0x5705f8
jmp fcn.00414eaf
ret
Function at 0x4da375
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4da38d
mov edi, dword [esi + 0xc]
jmp 0x4da3cd
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4da3a6
call fcn.004160a3
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4da3bb
call fcn.004160a3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4da3cd
call fcn.004160a3
call fcn.004115d4
cmp dword [eax + 0x3c], 0
je 0x4da3e2
push edi
mov ecx, ebx
call fcn.004d91b1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004da28f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4da400
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4da40c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4feee9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56d3f0]
jne 0x4feef3
repz ret
jmp fcn.005074a4
Function at 0x514e84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050ac72
and dword [ebp - 0x14], 0
cmp dword [0x5767bc], 0
mov dword [ebp - 0x18], eax
jne 0x514f37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514fdf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x514fdf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54e5ec
push ebx
mov dword [0x5767bc], eax
call edi
push eax
call esi
push 0x54e5d8
push ebx
mov dword [0x5767c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5767c4], eax
call edi
push eax
call esi
mov dword [0x5767cc], eax
test eax, eax
je 0x514f37
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5767c8], eax
mov eax, dword [0x5767c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x514f90
cmp dword [0x5767cc], ecx
je 0x514f90
push eax
call esi
push dword [0x5767cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x514f90
test ebx, ebx
je 0x514f90
call edi
test eax, eax
je 0x514f87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x514f87
test byte [ebp - 8], 1
jne 0x514f90
or dword [ebp + 0x10], 0x200000
jmp 0x514fc3
mov eax, dword [0x5767c0]
cmp eax, dword [ebp - 0x18]
je 0x514fc3
push eax
call esi
test eax, eax
je 0x514fc3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514fc3
mov eax, dword [0x5767c4]
cmp eax, dword [ebp - 0x18]
je 0x514fc3
push eax
call esi
test eax, eax
je 0x514fc3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5767bc]
call esi
test eax, eax
je 0x514fdf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514fe1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004feee9
leave
ret
Function at 0x40196c
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e660
mov eax, 0x4170ff
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x40198d
mov eax, 3
cmp eax, dword [esp]
jl 0x4019fb
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
inc dword [esp]
jno 0x40198d
push 0x400
call fcn.0040a220
mov dword [esp + 0x10], eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
call fcn.0040add6
lea eax, [esp + 0x18]
push eax
call fcn.0040e560
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x4180d0]
push eax
call fcn.0040e560
push dword [0x4180d0]
call fcn.0040ae67
push dword [0x4180d0]
call fcn.0040ad45
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x4180d0]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x418084]
push eax
call fcn.0040e560
push dword [0x418084]
call fcn.0040ae67
push dword [0x418084]
call fcn.0040ad45
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418084]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x418084]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x418098]
push eax
call fcn.0040e560
push dword [0x418098]
call fcn.0040ae67
push dword [esp + 0xc]
push dword [0x418098]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418084]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x4180c8]
push eax
call fcn.0040e560
push dword [esp + 0x10]
call fcn.0040a200
jmp 0x401b80
push dword [esp + 0x14]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
add esp, 0x18
pop ebx
ret
Function at 0x401fba
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e660
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fe5
push dword [0x418070]
call fcn.004053c1
and eax, eax
je 0x401fe5
push dword [0x418070]
call fcn.00405430
push dword [0x4180c8]
call fcn.0040ae67
push dword [0x4180b8]
call fcn.0040ae67
call fcn.0040347d
push dword [0x418098]
call fcn.0040ae67
push dword [0x418084]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x4180d0]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x40249d
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024a3
call fcn.0040e660
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170c8
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x4024d1
mov eax, 6
cmp eax, dword [esp]
jl 0x40253f
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
inc dword [esp]
jno 0x4024d1
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.0040a240
lea eax, [esp + 0x14]
push eax
call fcn.0040e560
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
lea eax, [esp + 0x18]
push eax
call fcn.0040e560
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405de0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4025fd
push edx
call fcn.0040e520
pop edx
push eax
mov edx, 0x41702a
push edx
call fcn.0040e6c0
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.00406110
call fcn.00405182
add dword [esp], edx
call fcn.00406060
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e560
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.004099a5
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402632
push dword [esp + 0x14]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0x10]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
push dword [esp + 0x20]
call fcn.0040e5f0
add esp, 0x24
pop ebx
ret
Function at 0x402664
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e660
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x418078], eax
push dword [0x418078]
call fcn.0040a220
mov dword [esp + 4], eax
push dword [0x418078]
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040a300
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x4026c1
add esp, 8
ret 8

Function at 0x402b6d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402b73
call fcn.0040e660
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402b9f
mov eax, 1
jmp 0x402ba1
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x403221
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403227
call fcn.0040e660
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402b6d
and eax, eax
je 0x403277
call fcn.00405573
mov ebx, eax
cmp ebx, 0x41
je 0x403277
mov eax, 1
jmp 0x403279
xor eax, eax
and eax, eax
je 0x4033e7
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, str.sysnative
push edx
call fcn.0040e6c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 4]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 4]
push edx
call fcn.0040e6c0
mov edx, dword [esp + 8]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x14]
push eax
call fcn.0040e560
push dword [esp + 0xc]
push 0
call fcn.0040b440
and eax, eax
je 0x403368
mov dword [esp + 0x14], 1
push 0
call fcn.0040b050
jmp 0x403370
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040b440
and eax, eax
je 0x403396
mov dword [esp + 0x18], 1
push 0
call fcn.0040b050
jmp 0x40339e
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x4033e5
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x403422
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x40344a
push dword [esp + 0x10]
call fcn.0040e5f0
push dword [esp]
call fcn.0040e5f0
push dword [esp + 4]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
add esp, 0x1c
pop ebx
ret 8
Function at 0x40347d
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040e660
mov ebx, dword [0x418088]
cmp ebx, 1
jne 0x40352a
push dword [0x418100]
call fcn.0040aac3
mov ebx, eax
and ebx, ebx
jle 0x4034d1
push dword [0x418100]
call fcn.0040aacd
push dword [0x418100]
call fcn.0040aae2
or eax, eax
je 0x4034d1
mov ebp, dword [0x418104]
push dword [ebp + 8]
call fcn.0040ae67
jmp 0x4034b2
push dword [0x4180f8]
call fcn.0040aac3
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x40352a
push 5
push 0
push 1
push dword [0x4180f8]
call fcn.00406fb0
push dword [0x4180f8]
call fcn.0040aacd
push dword [0x4180f8]
call fcn.0040aae2
or eax, eax
je 0x40352a
mov ebp, dword [0x4180fc]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x40350b
mov eax, 1
jmp 0x403533
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405430
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053e4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x418708
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x41811c]
jmp 0x405461
cmp dword [esi + 0xc], edi
je 0x405467
mov esi, dword [esi]
test esi, esi
jne 0x40545a
jmp 0x40547f
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41811c
call fcn.0040e1b2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x40548c
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x405524
push edi
push 0x418708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x41811c]
test edi, edi
je 0x4054f8
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054f1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x41811c
call fcn.0040e1b2
pop ecx
pop ecx
jmp 0x4054f3
mov edi, dword [edi]
test edi, edi
jne 0x4054c8
pop ebx
mov eax, dword [0x417108]
mov esi, eax
inc eax
push 0x10
push 0x41811c
mov dword [0x417108], eax
call fcn.0040e1f2
pop ecx
pop ecx
push 0x418708
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x405573
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4056cb
mov eax, dword [esp + 0x20]
dec eax
je 0x4056ae
dec eax
jne 0x4056cb
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0040552c
pop ecx
test eax, eax
je 0x4055df
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x40560c
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405611
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x405611
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4056aa
dec ebx
je 0x4056a6
dec ebx
je 0x405685
dec ebx
je 0x40563f
sub ebx, 4
jne 0x4056cb
test edi, edi
jne 0x4056cb
push 0x6e
jmp 0x4056ca
sub edi, 0
je 0x405677
dec edi
je 0x405669
dec edi
je 0x40565b
dec edi
jne 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4056cb
sub edi, 0
je 0x4056a2
dec edi
je 0x40569e
dec edi
jne 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4056cb
push 0x3c
jmp 0x4056ca
push 0x32
jmp 0x4056ca
push 0x14
jmp 0x4056ca
push 5
jmp 0x4056ca
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056c8
cmp eax, 0xa
je 0x4056c4
cmp eax, 0x5a
jne 0x4056cb
push 0x28
jmp 0x4056ca
push 0x1e
jmp 0x4056ca
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x409588
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4095dd
push dword [esp + 0x10]
push 0x409507
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4095d5
cmp byte [esi + 0x10], 0
je 0x4095d5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4095b1
jmp 0x409636
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40962f
cmp byte [esi + 0x11], 0
je 0x40960b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409622
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x418144
call fcn.0040e1b2
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4095ea
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40973a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x41872c]
call fcn.0040d968
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40983a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x409790
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x409788
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4097d0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409812
push 0x22
pop edx
cmp cx, dx
je 0x4097c2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097b2
xor ecx, ecx
cmp word [eax], cx
je 0x409812
mov ecx, eax
add eax, 2
jmp 0x409814
test dx, dx
je 0x40981a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4097c2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409808
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409812
cmp cx, dx
je 0x409805
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097f5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4097da
jmp 0x4097c2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40981c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409825
test edi, edi
jne 0x409842
test edx, edx
je 0x40982a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40977e
test edi, edi
jne 0x409853
mov eax, ebx
jmp 0x409857
test esi, esi
je 0x409853
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409857
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret