joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c930
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov ecx, dword [0x4b9170]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
test eax, eax
mov dword [ebp - 8], ecx
je 0x45c97c
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x45c97c
lea esi, [ebp - 0xc]
push str.success
push 0x20
push str..._.._base_rand_util_win.cc
push esi
call fcn.0043bab0
add esp, 0x10
mov ecx, esi
call fcn.0043bb20
mov ecx, esi
call fcn.0043bb30
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004771d1
add esp, 8
pop esi
pop ebp
ret

Function at 0x45e890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4b9170]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x45e933
mov esi, ecx
mov dword [esp + 0x10], 0
mov byte [esp + 0x13], 9
mov dword [esp + 0xc], 0x65647261
mov dword [esp + 8], 0x63736964
mov word [esp + 0x10], 0x64
push 0x40
call fcn.00477160
add esp, 4
mov ebx, eax
lea eax, [esp + 8]
mov edi, esp
mov ecx, esi
push eax
push edi
call fcn.0045e800
mov ecx, ebx
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x10]
push eax
call fcn.0045e950
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x45e91d
mov ecx, edi
call fcn.0045e9a0
push edi
call fcn.00477190
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x45e930
push dword [esp + 8]
call fcn.00477190
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.004771d1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45ee70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4bd5f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x4be9e0]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45ee9b
mov ecx, 0x4be9d8
pop ebp
jmp fcn.00451ea0
push 0x4be9e0
call fcn.00477217
add esp, 4
cmp dword [0x4be9e0], 0xffffffff
jne 0x45ee90
mov dword [0x4be9dc], 0
mov dword [0x4be9d8], 0
mov ecx, 0x4be9d8
push 0
call fcn.00451f10
push 0x4be9e0
call fcn.0047728d
add esp, 4
jmp 0x45ee90
Function at 0x4671b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4671e6
mov edx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop dword [eax]
movzx edi, byte [edx]
movzx esi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x4ab1d4]
dec ecx
jne 0x4671d0
pop esi
pop edi
pop ebp
ret

Function at 0x46b430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov ecx, dword [0x4b9170]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 8], ecx
jne 0x46b507
mov dword [ebp - 0x14], 0x46b520
lea eax, [ebp - 0x14]
push 0
push eax
push 0x46b410
push 0x4bea60
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x46b519
cmp dword [0x4bea64], 0
jne 0x46b507
push dword [0x4bea68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b507
mov esi, eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
push 0x4bea6c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x4bea78]
movsd xmm0, qword [0x4bea70]
mov dword [ebp - 0xc], eax
movsd qword [ebp - 0x14], xmm0
push 0x4bea6c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46b4e0
push dword [esi]
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46b4ef
push dword [esi + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46b4fe
push dword [esi + 8]
call eax
add esp, 4
push esi
call fcn.0046a9b0
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004771d1
add esp, 0x10
pop esi
pop ebp
ret 0xc
call fcn.00488233
int3
Function at 0x498674
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049867f
Function at 0x40195b
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.0040dfc0
mov eax, 0x41710b
mov dword [0x418034], eax
mov dword [esp], 0
jmp 0x40197c
mov eax, 3
cmp eax, dword [esp]
jl 0x4019ea
mov eax, dword [0x418034]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x418034]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
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.0040dec0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
inc dword [esp]
jno 0x40197c
push 0x400
call fcn.00409ba0
mov dword [esp + 0x10], eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
call fcn.0040a756
lea eax, [esp + 0x18]
push eax
call fcn.0040dec0
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418078]
push eax
call fcn.0040dec0
push dword [0x418078]
call fcn.0040a7e7
push dword [0x418078]
call fcn.0040a6c5
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418078]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x41802c]
push eax
call fcn.0040dec0
push dword [0x41802c]
call fcn.0040a7e7
push dword [0x41802c]
call fcn.0040a6c5
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x41802c]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x41802c]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418040]
push eax
call fcn.0040dec0
push dword [0x418040]
call fcn.0040a7e7
push dword [esp + 0xc]
push dword [0x418040]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x41802c]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418070]
push eax
call fcn.0040dec0
push dword [esp + 0x10]
call fcn.00409b80
jmp 0x401b6f
push dword [esp + 0x14]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
add esp, 0x18
pop ebx
ret
Function at 0x401fa9
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040dfc0
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fd4
push dword [0x418018]
call fcn.004053c7
and eax, eax
je 0x401fd4
push dword [0x418018]
call fcn.00405436
push dword [0x418070]
call fcn.0040a7e7
push dword [0x418060]
call fcn.0040a7e7
call fcn.004034d1
push dword [0x418040]
call fcn.0040a7e7
push dword [0x41802c]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x418078]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x402022
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402029
call fcn.0040dfc0
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x48], eax
push 0x19
call fcn.00405532
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x4020dd
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x4020dd
jmp 0x4020df
jmp 0x4020b0
mov eax, dword [esp + 0x4c]
jmp 0x4020e7
push dword [esp]
call fcn.0040df50
push dword [esp + 4]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
add esp, 0x50
pop ebx
pop ebp
ret 0xc
Function at 0x4024f1
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024f7
call fcn.0040dfc0
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170d4
mov dword [0x418034], eax
mov dword [esp], 0
jmp 0x402525
mov eax, 6
cmp eax, dword [esp]
jl 0x402593
mov eax, dword [0x418034]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x418034]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
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.0040dec0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
inc dword [esp]
jno 0x402525
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.00409bc0
lea eax, [esp + 0x14]
push eax
call fcn.0040dec0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
lea eax, [esp + 0x18]
push eax
call fcn.0040dec0
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 0x402651
push edx
call fcn.0040de80
pop edx
push eax
mov edx, 0x41702a
push edx
call fcn.0040e020
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
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.0040dec0
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.004098c0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402686
push dword [esp + 0x14]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0x10]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
push dword [esp + 0x20]
call fcn.0040df50
add esp, 0x24
pop ebx
ret

Function at 0x4026b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040dfc0
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 [0x418020], eax
push dword [0x418020]
call fcn.00409ba0
mov dword [esp + 4], eax
push dword [0x418020]
push dword [esp + 8]
push dword [esp + 8]
call fcn.00409c80
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x402715
add esp, 8
ret 8
Function at 0x402bc1
Capabilities:
Get system information on windows

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

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40327b
call fcn.0040dfc0
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.00402bc1
and eax, eax
je 0x4032cb
call fcn.0040559a
mov ebx, eax
cmp ebx, 0x41
je 0x4032cb
mov eax, 1
jmp 0x4032cd
xor eax, eax
and eax, eax
je 0x40343b
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
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.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, str.sysnative
push edx
call fcn.0040e020
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 4]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 4]
push edx
call fcn.0040e020
mov edx, dword [esp + 8]
push edx
call fcn.0040e020
lea eax, [esp + 0x14]
push eax
call fcn.0040dec0
push dword [esp + 0xc]
push 0
call fcn.0040adc0
and eax, eax
je 0x4033bc
mov dword [esp + 0x14], 1
push 0
call fcn.0040a9d0
jmp 0x4033c4
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040adc0
and eax, eax
je 0x4033ea
mov dword [esp + 0x18], 1
push 0
call fcn.0040a9d0
jmp 0x4033f2
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x403439
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x403476
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
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.0040de80
pop edx
push eax
push edx
call fcn.0040e020
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x40349e
push dword [esp + 0x10]
call fcn.0040df50
push dword [esp]
call fcn.0040df50
push dword [esp + 4]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
add esp, 0x1c
pop ebx
ret 8
Function at 0x4034d1
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040dfc0
mov ebx, dword [0x418030]
cmp ebx, 1
jne 0x40357e
push dword [0x4180a8]
call fcn.0040a443
mov ebx, eax
and ebx, ebx
jle 0x403525
push dword [0x4180a8]
call fcn.0040a44d
push dword [0x4180a8]
call fcn.0040a462
or eax, eax
je 0x403525
mov ebp, dword [0x4180ac]
push dword [ebp + 8]
call fcn.0040a7e7
jmp 0x403506
push dword [0x4180a0]
call fcn.0040a443
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x40357e
push 5
push 0
push 1
push dword [0x4180a0]
call fcn.00406fb0
push dword [0x4180a0]
call fcn.0040a44d
push dword [0x4180a0]
call fcn.0040a462
or eax, eax
je 0x40357e
mov ebp, dword [0x4180a4]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x40355f
mov eax, 1
jmp 0x403587
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405436
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053ea
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x4186a8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4180c4]
jmp 0x405467
cmp dword [esi + 0xc], edi
je 0x40546d
mov esi, dword [esi]
test esi, esi
jne 0x405460
jmp 0x405485
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x4180c4
call fcn.0040db32
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x405492
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 0x40552a
push edi
push 0x4186a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4180c4]
test edi, edi
je 0x4054fe
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054f7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4180c4
call fcn.0040db32
pop ecx
pop ecx
jmp 0x4054f9
mov edi, dword [edi]
test edi, edi
jne 0x4054ce
pop ebx
mov eax, dword [0x417114]
mov esi, eax
inc eax
push 0x10
push 0x4180c4
mov dword [0x417114], eax
call fcn.0040db72
pop ecx
pop ecx
push 0x4186a8
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 0x40559a
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 0x4056f2
mov eax, dword [esp + 0x20]
dec eax
je 0x4056d5
dec eax
jne 0x4056f2
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00405553
pop ecx
test eax, eax
je 0x405606
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x405633
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405638
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x405638
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4056d1
dec ebx
je 0x4056cd
dec ebx
je 0x4056ac
dec ebx
je 0x405666
sub ebx, 4
jne 0x4056f2
test edi, edi
jne 0x4056f2
push 0x6e
jmp 0x4056f1
sub edi, 0
je 0x40569e
dec edi
je 0x405690
dec edi
je 0x405682
dec edi
jne 0x4056f2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4056f2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4056f2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4056f2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4056f2
sub edi, 0
je 0x4056c9
dec edi
je 0x4056c5
dec edi
jne 0x4056f2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4056f2
push 0x3c
jmp 0x4056f1
push 0x32
jmp 0x4056f1
push 0x14
jmp 0x4056f1
push 5
jmp 0x4056f1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056ef
cmp eax, 0xa
je 0x4056eb
cmp eax, 0x5a
jne 0x4056f2
push 0x28
jmp 0x4056f1
push 0x1e
jmp 0x4056f1
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 [0x4180ec]
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 [0x4180ec]
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 0x4180ec
call fcn.0040db32
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 [0x4186cc]
call fcn.0040d2e8
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