joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100354f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x1003551b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x10035544
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003555a
lea eax, [ebp - 0xc]
push eax
push 0x100355e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x100355a1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008baa8]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008ba20]
cmp eax, dword [ecx + 4]
jg 0x100355a8
jmp 0x1003557e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x1008ba1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1008ba20
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
add esp, 4
cmp dword [0x1008ba20], 0xffffffff
jne 0x1003557b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x1008ba20
mov dword [0x1008ba1c], eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
add esp, 4
jmp 0x1003557b

Function at 0x10035720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061183
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100357b8
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x1008b8f8]
test eax, eax
jne 0x100357cc
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x52], edi
mov dword [eax + 0x56], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035860
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003586f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret

Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::String::decodeURI_void_
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424030]
jne 0x401116
repz ret
jmp fcn.00401b11

Function at 0x408edc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004047d5
and dword [ebp - 4], 0
cmp dword [0x42678c], 0
mov ebx, eax
jne 0x408f8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40903e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40903e
push eax
call fcn.00404763
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42678c], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426790], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426794], eax
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x42679c], eax
test eax, eax
je 0x408f8d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x426798], eax
mov eax, dword [0x426798]
cmp eax, ebx
je 0x408fe5
cmp dword [0x42679c], ebx
je 0x408fe5
push eax
call fcn.004047de
push dword [0x42679c]
mov esi, eax
call fcn.004047de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408fe5
test edi, edi
je 0x408fe5
call esi
test eax, eax
je 0x408fdc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fdc
test byte [ebp - 0xc], 1
jne 0x408fe5
or dword [ebp + 0x10], 0x200000
jmp 0x40901e
mov eax, dword [0x426790]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40901e
mov eax, dword [0x426794]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42678c]
call fcn.004047de
pop ecx
test eax, eax
je 0x40903e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409040
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b120
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x424030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2adf1cc]
push ebx
mov ebx, dword [0x2adeeec]
push esi
mov esi, dword [0x424f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b161
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2adf1cc]
mov dword [0x2adeee8], esi
cmp eax, 0x114e
jne 0x40b189
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2adf1cc]
cmp eax, 0x2f
jne 0x40b1ab
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b050
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403203
pop dword [ebp - 0x14]
mov eax, 0x403203
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xfee3aacb
sub dword [ebp - 0x24], 0xb0916580
mov dword [ebp - 0x20], 0xc4e7096f
add dword [ebp - 0x20], 0x6d4c42d6
mov dword [ebp - 0x1c], 0x72cb6663
add dword [ebp - 0x1c], 0xd980ddcb
mov dword [ebp - 0x18], 0xaae2d547
sub dword [ebp - 0x18], 0xaae2d547
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x45bf228a
sub dword [ebp - 0x24], 0xd14cb934
mov dword [ebp - 0x20], 0xac1c599
add dword [ebp - 0x20], 0x36aa9bdc
mov dword [ebp - 0x1c], 0x7414b615
sub dword [ebp - 0x1c], 0x10a549a9
mov dword [ebp - 0x18], 0xbabf1c45
sub dword [ebp - 0x18], 0xbabf1c45
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x93e4bfb7
sub eax, 0x93a44f0f
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35265
push 0
call eax
mov ecx, 0xa37692b6
sub ecx, 0xa376507d
mov edx, eax
mov esi, 0x516f1ae9
add esi, 0xaed1e517
add esi, dword [ebp - 0x14]
mov ebx, 0x38786b9d
add ebx, 0x6d5f120a
xor dword [ebp - 0x10], edi
mov edi, dword [esi]
add dword [ebp - 0xc], esi
sub edi, ebx
xor dword [ebp - 0xc], eax
mov dword [edx], edi
add edx, 4
add esi, 0x613b6698
add esi, 0x9ec4996c
loop 0x40331b
add eax, 0xe4f318cf
sub eax, 0xe4f21d18
xor ebx, ebx
add ebx, eax
add eax, 0x48a175d3
add eax, 0xb75e8a32
mov ecx, 0x85dc6b7
sub ecx, 0x81dc6b7
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x40f0c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40f109
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40f0d8
jmp 0x40f109
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40f0f9
pop esi
pop ebp
ret

Function at 0x40fe61
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40fe96
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40fec0
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40fec0
test edi, edi
je 0x40fe8d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40fe8d
test edi, edi
je 0x40fec8
mov eax, edi
jmp 0x40fe8f
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40fe8f
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00412bca
add esp, 0xc
int3
Function at 0x412bfe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize], eax
call fcn.0040fe61
pop ecx
mov ecx, dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize]
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x412c36
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40dd55
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x415884]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0xffff
push esi
test ecx, ecx
je 0x40dd76
cmp ecx, 1
jne 0x40dd78
mov ecx, eax
cmp ecx, eax
je 0x40dd89
cmp ecx, 2
je 0x40dd89
test edx, 0x2000000
je 0x40ddab
xor esi, esi
mov dword [ebp - 0x38], 1
push esi
push 0x30
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ecx
push eax
push 0x1f
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x40ddaf
xor al, al
jmp 0x40de16
push fcn.00403fe8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov ecx, dword [esi + section..data]
mov eax, ecx
shr eax, 0x1d
mov eax, dword [ebp + eax*4 - 0x28]
and eax, ecx
test eax, 0x1fffffff
je 0x40ddfd
push 0x401100
push dword [esi + 0x415008]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40ddfd
push dword [esi + 0x415008]
push 0x40401c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
add esi, 0xc
cmp esi, 0x408
jb 0x40ddbb
push 0x403d74
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413fa0
leave
ret

Function at 0x40dfc0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x18
xor ebx, ebx
mov esi, ebx
test edi, edi
je 0x40dfe0
cmp edi, 1
jne 0x40dfe5
mov edi, 0xffff
test esi, esi
je 0x40dff1
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40e065
push 4
pop eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
push dword [ebp - 4]
push esi
push 0x1f
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000023
je 0x40dfe5
test eax, eax
js 0x40e05d
push ebx
lea eax, [ebp - 8]
push eax
push 0xf
push 1
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSecurityDescriptorToStringSecurityDescriptorW]
mov bl, al
cmp bl, 1
jne 0x40e05d
push dword [ebp - 8]
push 0x40407c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40e06c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], 0x18
push edi
mov edi, ecx
xor esi, esi
inc ebx
test edi, edi
je 0x40e08d
cmp edi, ebx
jne 0x40e092
mov edi, 0xffff
test esi, esi
je 0x40e09e
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40e17c
and dword [esi + 0xc], 0
lea eax, [ebp - 4]
push eax
mov dword [esi], 6
mov dword [esi + 8], edi
push dword [ebp - 4]
push esi
push 0x1f
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000023
je 0x40e092
test eax, eax
jns 0x40e0e1
xor bl, bl
jmp 0x40e172
mov edi, dword [ebp - 4]
lea edi, [edi - 0x10]
shr edi, 2
test edi, edi
je 0x40e0da
push fcn.004040b8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
test edi, edi
je 0x40e166
lea eax, [esi + 0x10]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
movzx eax, word [ecx*8 + 0x415410]
cmp edx, eax
je 0x40e128
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x8a
jb 0x40e10e
jmp 0x40e142
push dword [ecx*8 + 0x415414]
push 0x40401c
call dword [sym.imp.msvcrt.dll_wprintf]
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, 0x8a
jne 0x40e158
push edx
push 0x4040ec
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
sub edi, 1
jne 0x40e104
push 0x403d74
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x40e17e
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40ea9e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x415884]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x400
xor ebx, ebx
lea eax, [ebp - 0xc04]
push eax
push ebx
mov dword [ebp - 0xc14], ebx
mov dword [ebp - 0xc18], ebx
mov dword [ebp - 0xc10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc08], eax
test eax, eax
je 0x40ec78
push edi
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc04]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov edi, eax
mov dword [ebp - 0xc08], edi
test edi, edi
je 0x40ec77
push esi
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40ec76
push esi
push edi
push ebx
lea eax, [ebp - 0xc04]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x40ec6e
lea eax, [ebp - 0xc08]
mov dword [ebp - 0xc0c], ebx
push eax
lea eax, [ebp - 0xc0c]
push eax
push 0x404e18
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc0c]
test ecx, ecx
je 0x40ec33
movzx eax, word [ecx + 2]
mov ebx, 0x404e6c
push 0x404e4c
push eax
movzx eax, word [ecx]
mov edi, 0x200
push eax
push ebx
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc0c]
push 0x404ea8
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push ebx
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc0c]
push 0x404ecc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push ebx
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0xc18], 0
je 0x40ec6e
cmp dword [ebp - 0xc14], 0
je 0x40ec6e
cmp dword [ebp - 0xc10], 0
je 0x40ec6e
push dword [ebp - 0xc10]
push dword [ebp - 0xc14]
push dword [ebp - 0xc18]
push fcn.00404eec
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413fa0
leave
ret
Function at 0x413bc0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4142b0
call fcn.00413ef8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x416688
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4139e8
cmp eax, esi
jne 0x4139db
xor esi, esi
inc esi
mov edi, esi
jmp 0x4139eb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4139bf
xor esi, esi
inc esi
cmp dword [0x41668c], esi
jne 0x4139fd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x413a37
cmp dword [0x41668c], ebx
jne 0x413a31
mov dword [0x41668c], esi
push 0x4010cc
push 0x4010c0
call fcn.00413b1c
pop ecx
pop ecx
test eax, eax
je 0x413a37
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x413b0c
mov dword [0x415894], esi
cmp dword [0x41668c], esi
jne 0x413a5a
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41668c], 2
test edi, edi
jne 0x413a67
xor eax, eax
mov ecx, 0x416688
xchg dword [ecx], eax
cmp dword [0x416690], 0
je 0x413a93
push 0x416690
call fcn.00413d50
pop ecx
test eax, eax
je 0x413a93
push ebx
push 2
push ebx
mov esi, dword [0x416690]
mov ecx, esi
call dword [0x4171a0]
call esi
push dword [0x4158a0]
push dword [0x41589c]
push dword [0x415898]
call fcn.0040fe42
add esp, 0xc
mov dword [0x415890], eax
cmp dword [0x4158a8], 0
jne 0x413af1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x415894], 0
jne 0x413b05
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x415890]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00413e45
jmp 0x4139a3

Function at 0x413c34
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4142d0
call fcn.00413ef8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x413c94
cmp eax, 0xffffffff
je 0x413c94
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x413c8d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x413c8d
cmp edx, 0x10000000
jae 0x413c8d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x413c8a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413d00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x413d3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x413d36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x413d40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x413d26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret