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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x4012df
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x4013fb
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x40136c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x401367
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401340
xor eax, eax
jmp 0x401400
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00402780
add esp, 0xc
jmp 0x4012cd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401280
add esp, 8
test eax, eax
jne 0x40138d
xor eax, eax
jmp 0x401400
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4013c4
xor eax, eax
jmp 0x401400
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00402130
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x4012cd
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4070ee
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004051f4
mov dword [ebp - 0x14], eax
cmp dword [0x414c40], esi
jne 0x4071e1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40716e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4072c1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4072c1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4072c1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414c40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414c44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414c50], eax
test eax, eax
je 0x4071de
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414c4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407206
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4071f9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40721b
push 4
pop eax
jmp 0x4072c3
cmp dword [ebp - 0x14], esi
je 0x40721b
push dword [0x414c40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407200
mov eax, dword [0x414c4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x407279
cmp dword [0x414c50], edi
je 0x407279
push eax
call ebx
push dword [0x414c50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407279
test eax, eax
je 0x407279
call ecx
test eax, eax
je 0x40726e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40726e
test byte [ebp - 8], 1
jne 0x407279
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4072a9
mov eax, dword [0x414c44]
cmp eax, edi
je 0x4072a6
push eax
call ebx
test eax, eax
je 0x4072a6
call eax
mov esi, eax
test esi, esi
je 0x4072a6
mov eax, dword [0x414c48]
cmp eax, edi
je 0x4072a6
push eax
call ebx
test eax, eax
je 0x4072a6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414c40]
call ebx
test eax, eax
je 0x4072c1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4072c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056da
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
push ebx
push ebp
mov eax, str.Button
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, str.Static
push edi
push str.Tomb_Raider:_Anniversary___Setup
push str.32770
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], str.Rendering_Setup
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], str.Display_Adapter
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], str.Resolution
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], str.Refresh_Rate
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], str.Contrast
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], str.Enable_VSync
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], str.Enable_Fullscreen_Effects
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0x4052b0
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], str.Cancel
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], str.Set_To_Default
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], str.Enable_Depth_of_Field
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], str.Enable_Shadows
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], str.Enable_Anti_Aliasing
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], str.Brightness
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], str.Enable_Reflections
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], str.Enable_Water_Effects
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], str.Anti_Aliasing
mov dword [esp + 0x18], 0x405204
mov dword [esp + 0x1c], 0x4051f8
mov dword [esp + 0x20], 0x4051f0
mov dword [esp + 0x24], 0x4051e8
mov dword [esp + 0x28], 0x4051e0
mov dword [esp + 0x2c], 0x4051d0
mov dword [esp + 0x30], 0x4051c0
mov dword [esp + 0x34], 0x4051b8
mov dword [esp + 0x38], 0x4051b0
mov dword [esp + 0x3c], 0x4051a0
mov dword [esp + 0x40], 0x405190
mov dword [esp + 0x44], 0x405180
mov dword [esp + 0x48], 0x405174
mov dword [esp + 0x4c], 0x40516c
mov dword [esp + 0x50], 0x40515c
mov dword [esp + 0x54], 0x40514c
mov dword [esp + 0x58], 0x405144
call esi
mov edi, eax
test edi, edi
jne 0x4011ef
jmp 0x4011d0
push str.Tomb_Raider:_Anniversary
push 0
call esi
test eax, eax
jne 0x4011ef
push str.Tomb_Raider:_Anniversary___Setup
push str.32770
call esi
mov edi, eax
test edi, edi
je 0x4011d0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x40510c
push 0
push 0xc
push edi
call ebx
mov ebp, dword [sym.imp.USER32.dll_FindWindowExA]
xor esi, esi
lea esp, [esp]
mov eax, dword [esp + esi*8 + 0x58]
mov ecx, dword [esp + esi*8 + 0x54]
push eax
push ecx
push 0
push edi
call ebp
test eax, eax
je 0x40122f
mov edx, dword [esp + esi*4 + 0x10]
push edx
push 0
push 0xc
push eax
call ebx
inc esi
cmp esi, 0x11
jb 0x401210
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x401240
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
mov eax, dword [0x407030]
mov edx, dword [esp + 0x5c]
push edi
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x14], 0x44
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4012a5
mov eax, dword [0x4073a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x54]
call fcn.00401349
add esp, 0x58
ret
call section..text
mov ecx, dword [esp + 0x54]
xor eax, eax
call fcn.00401349
add esp, 0x58
ret

Function at 0x4012c0
Capabilities:
Check mutex on windows

Disassembly:
push str.0xa264b4a7__0x8bbb__0x42f0__0x82__0xda__0x5__0xfd__0xc4__0xdd__0xec__0x5a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4073a8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012fa
push 0
push 0x40538c
push 0x405378
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret 0x10
push str._tra.exe___setup
call fcn.00401240
mov eax, dword [0x4073a8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret 0x10
Function at 0x40137c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4053f8
call fcn.00401708
mov edi, 0x94
mov eax, edi
call fcn.00402410
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4074d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4074dc], eax
mov edx, dword [esi + 8]
mov dword [0x4074e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4074d4], esi
cmp ecx, 2
je 0x4013dc
or esi, 0x8000
mov dword [0x4074d4], esi
shl eax, 8
add eax, edx
mov dword [0x4074d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401417
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401417
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40142f
cmp eax, 0x20b
je 0x40141c
mov dword [ebp - 0x1c], esi
jmp 0x401443
cmp dword [ecx + 0x84], 0xe
jbe 0x401417
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40143d
cmp dword [ecx + 0x74], 0xe
jbe 0x401417
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004023ba
pop ecx
test eax, eax
jne 0x40146f
cmp dword [0x4074bc], 1
jne 0x40145c
call fcn.00401b6f
push 0x1c
call fcn.004019f8
push 0xff
call fcn.0040185d
pop ecx
pop ecx
call fcn.00402318
mov dword [ebp - 4], esi
call fcn.0040216d
test eax, eax
jge 0x401488
push 0x1b
call fcn.00401357
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407a54], eax
call fcn.0040204b
mov dword [0x4074b4], eax
call fcn.00401fa9
test eax, eax
jge 0x4014ae
push 8
call fcn.00401357
pop ecx
call fcn.00401d76
test eax, eax
jge 0x4014bf
push 9
call fcn.00401357
pop ecx
push 1
call fcn.0040188d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4014d5
push eax
call fcn.00401357
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d19
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4014f6
movzx eax, word [ebp - 0x40]
jmp 0x4014f9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401517
push edi
call fcn.004019b8
call fcn.004019da
jmp 0x401549
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401743
ret
Function at 0x4018f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407510], esi
push edi
jne 0x401917
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40750c], esi
mov byte [0x407508], al
jne 0x40197d
mov ecx, dword [0x407a48]
test ecx, ecx
je 0x40195e
mov eax, dword [0x407a44]
sub eax, 4
cmp eax, ecx
jmp 0x401957
mov eax, dword [eax]
test eax, eax
je 0x401949
call eax
mov eax, dword [0x407a44]
sub eax, 4
cmp eax, dword [0x407a48]
mov dword [0x407a44], eax
jae 0x401941
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x40197d
mov eax, dword [edi]
test eax, eax
je 0x401976
call eax
add edi, 4
cmp edi, esi
jb 0x40196e
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x40199c
mov eax, dword [edi]
test eax, eax
je 0x401995
call eax
add edi, 4
cmp edi, esi
jb 0x40198d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4019b6
push dword [ebp + 8]
mov dword [0x407510], 1
call fcn.0040185d
pop ebp
ret

Function at 0x4019f8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407040]
je 0x401a2d
inc eax
cmp eax, 0x13
jb 0x401a1e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407040]
jne 0x401b53
mov eax, dword [0x4074bc]
cmp eax, 1
je 0x401b2b
cmp eax, edx
jne 0x401a5d
cmp dword [0x407038], 1
je 0x401b2b
cmp ecx, 0xfc
je 0x401b53
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401a93
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402550
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401ac7
mov eax, edi
push eax
call fcn.00402780
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40543c
push edi
call fcn.00402650
add esp, 0x10
push edi
call fcn.00402780
push dword [esi + 0x407044]
mov ebx, eax
call fcn.00402780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402410
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402550
push edi
push ebx
call fcn.00402560
push 0x405438
push ebx
call fcn.00402560
push dword [esi + 0x407044]
push ebx
call fcn.00402560
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040244d
add esp, 0x2c
jmp 0x401b53
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x407044]
push dword [esi]
call fcn.00402780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401349
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40244d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40762c], ebx
push esi
push edi
jne 0x4024cd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402508
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405a54
push edi
call esi
test eax, eax
mov dword [0x40762c], eax
je 0x402508
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407630], eax
call esi
cmp dword [0x4074d0], 2
mov dword [0x407634], eax
jne 0x4024cd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40763c], eax
je 0x4024cd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407638], eax
mov eax, dword [0x407638]
test eax, eax
je 0x402512
call eax
test eax, eax
je 0x4024f9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40763c]
test eax, eax
je 0x4024f9
test byte [ebp - 8], 1
jne 0x402512
cmp dword [0x4074dc], 4
jb 0x40250c
or byte [ebp + 0x12], 0x20
jmp 0x402531
xor eax, eax
jmp 0x402541
or byte [ebp + 0x12], 4
jmp 0x402531
mov eax, dword [0x407630]
test eax, eax
je 0x402531
call eax
mov ebx, eax
test ebx, ebx
je 0x402531
mov eax, dword [0x407634]
test eax, eax
je 0x402531
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40762c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028fa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402928
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40292f
cmp ebx, dword [eax + 4]
jae 0x40292f
xor eax, eax
jmp 0x402b1f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402940
xor eax, eax
inc eax
jmp 0x402b1e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402956
cmp ecx, edx
jae 0x402a9b
cmp dword [eax + 4], 0
je 0x40295f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402947
cmp dword [ebp + 8], 0
je 0x402981
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402a9b
cmp eax, esi
jae 0x402a9b
mov eax, dword [0x407640]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4029a6
cmp dword [esi*4 + 0x407648], edi
je 0x402a9f
inc esi
cmp esi, eax
jl 0x402994
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402b1b
cmp dword [ebp - 8], 0x1000000
jne 0x402b1b
test byte [ebp - 0xc], 0xcc
je 0x402a24
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402b1b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402b1b
cmp word [eax + 0x18], 0x10b
jne 0x402b1b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402b1b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402a24
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402a24
test byte [ecx + 0x27], 0x80
jne 0x402a9b
push 1
push 0x407688
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402938
mov ecx, dword [0x407640]
test ecx, ecx
mov edx, ecx
jle 0x402a58
lea eax, [ecx*4 + 0x407644]
cmp dword [eax], edi
je 0x402a58
dec edx
sub eax, 4
test edx, edx
jg 0x402a4c
test edx, edx
jne 0x402a89
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402a65
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402a7d
lea eax, [edx*4 + 0x407648]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402a6b
cmp ecx, 0x10
jge 0x402a89
inc ecx
mov dword [0x407640], ecx
push 0
push 0x407688
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402938
xor eax, eax
jmp 0x402b1e
test esi, esi
jle 0x402938
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407688
call ebx
test eax, eax
jne 0x402938
cmp dword [esi*4 + 0x407648], edi
je 0x402af5
mov eax, dword [0x407640]
lea esi, [eax - 1]
test esi, esi
jl 0x402ae3
cmp dword [esi*4 + 0x407648], edi
je 0x402adf
dec esi
jns 0x402ad3
test esi, esi
jge 0x402af3
cmp eax, 0x10
jge 0x402aee
inc eax
mov dword [0x407640], eax
lea esi, [eax - 1]
jmp 0x402af5
je 0x402b0d
xor ecx, ecx
test esi, esi
jl 0x402b0d
lea eax, [ecx*4 + 0x407648]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402afb
push 0
push 0x407688
call ebx
jmp 0x402938
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402410
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ca7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4074d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404ca7
cmp eax, 1
je 0x404cc8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ca7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404c74
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404ca3
xor eax, eax
inc eax
jmp 0x404ce7
cmp edi, eax
jae 0x404cab
xor eax, eax
jmp 0x404ce7
cmp eax, esi
jae 0x404cb2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4074d0]
jmp 0x404ccb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae28
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x8cd32c]
xor eax, dword [ebp + 4]
and dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x8e2668]
cmp dword [eax + 0x78], 0
push esi
push edi
jle 0x411ea8
mov esi, 0x1000
mov dword [ebp - 8], esi
mov ecx, dword [esi + eax]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov esi, dword [edx]
mov esi, dword [esi]
mov ebx, ecx
shr ecx, 2
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 4]
mov edi, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x118], 0xa
mov ecx, dword [0x8cdb00]
mov byte [eax + 0xbc], 2
mov dword [eax + 0xc0], edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x220], eax
push 0
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 0x240], 7
call 0x5baee
mov ebx, eax
test ebx, ebx
jne 0x411e44
mov ecx, 0xc8
jmp 0x411e4a
jge 0x411e4f
mov ecx, ebx
neg ecx
call 0xc3760
mov eax, dword [0x8e2668]
and byte [eax + 0xbc], 0
push ebx
push dword [0x8cdb00]
call fcn.00412115
mov ecx, dword [0x8e2668]
mov esi, dword [ebp - 8]
mov ecx, dword [ecx + esi]
mov ecx, dword [ecx]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], ebx
mov byte [ecx + 0x1c], 0x5a
mov ecx, dword [ecx + 0x3c]
call 0x451fc
mov eax, dword [0x8e2668]
mov ecx, dword [esi + eax]
mov ecx, dword [ecx]
and dword [ecx + 0x3c], 0
inc edi
add esi, 4
cmp edi, dword [eax + 0x78]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
jl 0x411dd5
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call 0x42390
pop edi
pop esi
pop ebx
leave
ret