joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x403cf3
xor eax, eax
jmp 0x403d42
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.0040c560
add esp, 0xc
cmp dword [ebp + 0xc], ebx
jbe 0x403d3d
mov edi, dword [ebp + 0xc]
cmp edi, esi
jbe 0x403d19
mov edi, esi
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403d45
cmp dword [ebp - 4], edi
jne 0x403d45
sub dword [ebp + 0xc], edi
jne 0x403d10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x403d40

Function at 0x403d49
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00403bc3
xor ebx, ebx
test eax, eax
pop ecx
mov esi, str.vMac.ROM
je 0x403d80
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00403b99
test eax, eax
pop ecx
pop ecx
jne 0x403dd4
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00403c12
test eax, eax
pop ecx
pop ecx
je 0x403dfb
lea eax, [ebp - 0x10c]
push str.Gryphel
push eax
call fcn.00403b6f
test eax, eax
pop ecx
pop ecx
je 0x403dfb
lea eax, [ebp - 0x10c]
push str.mnvm_rom
push eax
call fcn.00403b6f
test eax, eax
pop ecx
pop ecx
je 0x403dfb
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00403b99
test eax, eax
pop ecx
pop ecx
je 0x403dfb
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e11
push 1
push str.I_can_not_find_the_ROM_image_file___r_._For_more_information__see:___w_.
mov eax, str.Unable_to_locate_ROM_image
call fcn.0040196a
add esp, 8
jmp 0x403e69
push ebx
lea eax, [ebp - 8]
push eax
mov esi, 0x20000
push esi
push dword [0x4147ac]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403e43
push 1
push str.I_found_the_ROM_image_file___r___but_I_can_not_read_it.
mov eax, str.Unable_to_read_ROM_image
call fcn.0040196a
add esp, 8
jmp 0x403e5d
cmp dword [ebp - 8], esi
je 0x403e56
push 1
push str.The_ROM_image_file___r__is_shorter_than_it_should_be.
mov eax, str.ROM_image_too_short
jmp 0x403e39
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
jne 0x403e73
mov dword [0x414818], 1
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4045ef
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
cmp dword [0x4147f4], esi
jne 0x40462d
push 0xab
push 0x100
call fcn.00401df6
test eax, eax
pop ecx
pop ecx
je 0x40462d
mov dword [0x41478c], 0x100
mov dword [0x414798], 0xab
mov dword [0x4147f4], ebx
cmp dword [0x414034], esi
jne 0x404655
cmp dword [0x41486c], esi
jne 0x404655
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [0x41486c], ebx
cmp dword [0x414868], esi
jne 0x404697
cmp dword [0x414858], esi
jne 0x404697
push esi
push dword [0x414550]
push 0x404596
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, esi
mov dword [0x414868], eax
jne 0x404697
push esi
push 0x414548
push ebx
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [0x414858], ebx
pop esi
pop ebx
ret

Function at 0x4047f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x4c
pop ebx
push ebx
xor edi, edi
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.0040c560
add esp, 0xc
cmp dword [ebp + 0xc], edi
je 0x40483b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x40484e
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0040c3d0
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40484e
push edi
push str.untitled
lea esi, [ebp - 0x14c]
call fcn.004028ce
pop ecx
pop ecx
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x414840]
mov dword [ebp - 0x48], eax
mov eax, 0x100
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 6
call fcn.00402896
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov esi, eax
mov dword [0x414894], edi
call fcn.0040455b
cmp esi, edi
je 0x404917
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp - 0x30]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404917
push edi
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp + 8]
jne 0x4048fe
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4048fe
push dword [ebp + 8]
push esi
call fcn.00403cd3
test eax, eax
pop ecx
pop ecx
je 0x4048fe
push dword [ebp - 0x30]
mov eax, esi
push edi
call fcn.00403802
pop ecx
pop ecx
mov ebx, eax
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x40490a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jne 0x404917
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405062
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push edi
mov dword [0x414570], esi
mov dword [0x4147f8], esi
call fcn.00404065
mov eax, dword [0x414570]
push eax
push 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [0x4147f8], eax
jne 0x4050a9
push 1
push str.There_is_not_enough_memory_available_to_launch_p.
mov eax, str.Not_enough_Memory
call fcn.0040196a
add esp, 8
xor eax, eax
pop edi
pop esi
ret
mov dword [0x414570], esi
call fcn.00404065
cmp edi, dword [0x414570]
jne 0x4050a4
call fcn.00404f6f
test eax, eax
je 0x4050a4
call fcn.00403c68
test eax, eax
je 0x4050a4
call fcn.00403e7b
test eax, eax
je 0x4050a4
call fcn.00403d49
test eax, eax
je 0x4050a4
call fcn.00402a71
test eax, eax
je 0x4050a4
call fcn.00401e8b
test eax, eax
je 0x4050a4
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.00402354
test eax, eax
je 0x4050a4
push 0x414440
push esi
push esi
push 0x402411
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x414878], eax
je 0x4050a4
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.00405f25
test eax, eax
je 0x4050a4
xor eax, eax
inc eax
jmp 0x4050a6
Function at 0x40c5e5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x411d78
call fcn.0040d7e8
mov edi, 0x94
mov eax, edi
call fcn.0040d940
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 [0x424ea4], ecx
mov eax, dword [esi + 4]
mov dword [0x424eb0], eax
mov edx, dword [esi + 8]
mov dword [0x424eb4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424ea8], esi
cmp ecx, 2
je 0x40c645
or esi, 0x8000
mov dword [0x424ea8], esi
shl eax, 8
add eax, edx
mov dword [0x424eac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c680
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c680
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c698
cmp eax, 0x20b
je 0x40c685
mov dword [ebp - 0x1c], esi
jmp 0x40c6ac
cmp dword [ecx + 0x84], 0xe
jbe 0x40c680
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c6a6
cmp dword [ecx + 0x74], 0xe
jbe 0x40c680
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040d795
pop ecx
test eax, eax
jne 0x40c6d8
cmp dword [0x424e90], 1
jne 0x40c6c5
call fcn.0040cf4a
push 0x1c
call fcn.0040cdd3
push 0xff
call fcn.0040cc38
pop ecx
pop ecx
call fcn.0040d6f3
mov dword [ebp - 4], esi
call fcn.0040d548
test eax, eax
jge 0x40c6f1
push 0x1b
call fcn.0040c5c0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4254e0], eax
call fcn.0040d426
mov dword [0x424e88], eax
call fcn.0040d384
test eax, eax
jge 0x40c717
push 8
call fcn.0040c5c0
pop ecx
call fcn.0040d151
test eax, eax
jge 0x40c728
push 9
call fcn.0040c5c0
pop ecx
push 1
call fcn.0040cc68
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c73e
push eax
call fcn.0040c5c0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040d0f4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c75f
movzx eax, word [ebp - 0x40]
jmp 0x40c762
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405283
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c780
push edi
call fcn.0040cd93
call fcn.0040cdb5
jmp 0x40c7b2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d823
ret
Function at 0x40ccd2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x424ee4], esi
push edi
jne 0x40ccf2
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 [0x424ee0], esi
mov byte [0x424edc], al
jne 0x40cd58
mov ecx, dword [0x4252a8]
test ecx, ecx
je 0x40cd39
mov eax, dword [0x4252a4]
sub eax, 4
cmp eax, ecx
jmp 0x40cd32
mov eax, dword [eax]
test eax, eax
je 0x40cd24
call eax
mov eax, dword [0x4252a4]
sub eax, 4
cmp eax, dword [0x4252a8]
mov dword [0x4252a4], eax
jae 0x40cd1c
mov eax, 0x41401c
mov esi, 0x414020
cmp eax, esi
mov edi, eax
jae 0x40cd58
mov eax, dword [edi]
test eax, eax
je 0x40cd51
call eax
add edi, 4
cmp edi, esi
jb 0x40cd49
mov eax, 0x414024
mov esi, 0x414028
cmp eax, esi
mov edi, eax
jae 0x40cd77
mov eax, dword [edi]
test eax, eax
je 0x40cd70
call eax
add edi, 4
cmp edi, esi
jb 0x40cd68
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40cd91
push dword [ebp + 8]
mov dword [0x424ee4], 1
call fcn.0040cc38
pop ebp
ret

Function at 0x40cdd3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x414284]
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 + 0x414150]
je 0x40ce08
inc eax
cmp eax, 0x13
jb 0x40cdf9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x414150]
jne 0x40cf2e
mov eax, dword [0x424e90]
cmp eax, 1
je 0x40cf06
cmp eax, edx
jne 0x40ce38
cmp dword [0x414054], 1
je 0x40cf06
cmp ecx, 0xfc
je 0x40cf2e
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 0x40ce6e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040c3d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040c4d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cea2
mov eax, edi
push eax
call fcn.0040c4d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x412190
push edi
call fcn.0040e0f0
add esp, 0x10
push edi
call fcn.0040c4d0
push dword [esi + 0x414154]
mov ebx, eax
call fcn.0040c4d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d940
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040c3d0
push edi
push ebx
call fcn.0040c3e0
push 0x412170
push ebx
call fcn.0040c3e0
push dword [esi + 0x414154]
push ebx
call fcn.0040c3e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040dfee
add esp, 0x2c
jmp 0x40cf2e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x414154]
push dword [esi]
call fcn.0040c4d0
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.0040df24
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40dfee
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425024], ebx
push esi
push edi
jne 0x40e06e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e0a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41226c
push edi
call esi
test eax, eax
mov dword [0x425024], eax
je 0x40e0a9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x425028], eax
call esi
cmp dword [0x424ea4], 2
mov dword [0x42502c], eax
jne 0x40e06e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425034], eax
je 0x40e06e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x425030], eax
mov eax, dword [0x425030]
test eax, eax
je 0x40e0b3
call eax
test eax, eax
je 0x40e09a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425034]
test eax, eax
je 0x40e09a
test byte [ebp - 8], 1
jne 0x40e0b3
cmp dword [0x424eb0], 4
jb 0x40e0ad
or byte [ebp + 0x12], 0x20
jmp 0x40e0d2
xor eax, eax
jmp 0x40e0e2
or byte [ebp + 0x12], 4
jmp 0x40e0d2
mov eax, dword [0x425028]
test eax, eax
je 0x40e0d2
call eax
mov ebx, eax
test ebx, ebx
je 0x40e0d2
mov eax, dword [0x42502c]
test eax, eax
je 0x40e0d2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425024]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ef26
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 0x40ef54
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 0x40ef5b
cmp ebx, dword [eax + 4]
jae 0x40ef5b
xor eax, eax
jmp 0x40f14b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ef6c
xor eax, eax
inc eax
jmp 0x40f14a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ef82
cmp ecx, edx
jae 0x40f0c7
cmp dword [eax + 4], 0
je 0x40ef8b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ef73
cmp dword [ebp + 8], 0
je 0x40efad
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f0c7
cmp eax, esi
jae 0x40f0c7
mov eax, dword [0x425038]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40efd2
cmp dword [esi*4 + 0x425040], edi
je 0x40f0cb
inc esi
cmp esi, eax
jl 0x40efc0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f147
cmp dword [ebp - 8], 0x1000000
jne 0x40f147
test byte [ebp - 0xc], 0xcc
je 0x40f050
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f147
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f147
cmp word [eax + 0x18], 0x10b
jne 0x40f147
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f147
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f050
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f050
test byte [ecx + 0x27], 0x80
jne 0x40f0c7
push 1
push 0x425080
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40ef64
mov ecx, dword [0x425038]
test ecx, ecx
mov edx, ecx
jle 0x40f084
lea eax, [ecx*4 + 0x42503c]
cmp dword [eax], edi
je 0x40f084
dec edx
sub eax, 4
test edx, edx
jg 0x40f078
test edx, edx
jne 0x40f0b5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f091
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f0a9
lea eax, [edx*4 + 0x425040]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f097
cmp ecx, 0x10
jge 0x40f0b5
inc ecx
mov dword [0x425038], ecx
push 0
push 0x425080
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40ef64
xor eax, eax
jmp 0x40f14a
test esi, esi
jle 0x40ef64
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x425080
call ebx
test eax, eax
jne 0x40ef64
cmp dword [esi*4 + 0x425040], edi
je 0x40f121
mov eax, dword [0x425038]
lea esi, [eax - 1]
test esi, esi
jl 0x40f10f
cmp dword [esi*4 + 0x425040], edi
je 0x40f10b
dec esi
jns 0x40f0ff
test esi, esi
jge 0x40f11f
cmp eax, 0x10
jge 0x40f11a
inc eax
mov dword [0x425038], eax
lea esi, [eax - 1]
jmp 0x40f121
je 0x40f139
xor ecx, ecx
test esi, esi
jl 0x40f139
lea eax, [ecx*4 + 0x425040]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f127
push 0
push 0x425080
call ebx
jmp 0x40ef64
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f35b
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.0040d940
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f3f6
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 [0x424ea4]
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 0x40f3f6
cmp eax, 1
je 0x40f417
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 0x40f3f6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40f3c3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40f3f2
xor eax, eax
inc eax
jmp 0x40f436
cmp edi, eax
jae 0x40f3fa
xor eax, eax
jmp 0x40f436
cmp eax, esi
jae 0x40f401
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 [0x424ea4]
jmp 0x40f41a
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 0x10070ea3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100dd275
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10070ee2
sub eax, 1
je 0x10070edd
sub eax, 1
je 0x10070ed9
xor eax, eax
leave
ret
push 3
jmp 0x10070ee4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10071665
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1007168c
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1007168f
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10071641
pop esi
leave
ret 8
Function at 0x1008b730
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018aaa6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1022d0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x2c]
mov dword [ebp + 8], edi
mov eax, dword [ebx]
mov dword [esi], eax
movzx eax, byte [ebx + 4]
mov byte [esi + 4], al
movzx eax, byte [ebx + 5]
mov byte [esi + 5], al
movzx eax, byte [ebx + 6]
mov byte [esi + 6], al
movzx eax, byte [ebx + 7]
mov byte [esi + 7], al
movzx eax, byte [ebx + 8]
mov byte [esi + 8], al
movzx eax, byte [ebx + 9]
mov byte [esi + 9], al
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
movzx eax, byte [ebx + 0x28]
mov byte [esi + 0x28], al
movzx eax, byte [ebx + 0x29]
mov byte [esi + 0x29], al
movzx eax, byte [ebx + 0x2a]
mov byte [esi + 0x2a], al
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x2c]
je 0x1008b81b
cmp eax, 0x7fffffff
ja 0x1008b8be
push eax
mov ecx, edi
call fcn.1008c7c0
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
sub esi, eax
mov edi, dword [edi]
push esi
push eax
push edi
call fcn.1009e320
mov ecx, dword [ebp + 8]
lea eax, [esi + edi]
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ecx + 4], eax
lea edi, [esi + 0x38]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
sar eax, 2
mov dword [ebp + 8], edi
test eax, eax
je 0x1008b87c
cmp eax, 0x3fffffff
ja 0x1008b8c3
push eax
mov ecx, edi
call fcn.1008c8d0
mov esi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
sub esi, eax
mov edi, dword [edi]
push esi
push eax
push edi
call fcn.1009e320
mov ecx, dword [ebp + 8]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov esi, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebx + 0x44]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x44]
push eax
call fcn.10014e20
lea eax, [ebx + 0x5c]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x5c]
call fcn.10014e20
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ebx + 0x78]
mov dword [esi + 0x78], eax
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 4
call fcn.1008cb00
call fcn.1008cb20
int3