joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x420620]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov eax, dword [0x420620]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov dword [esp + 0x40], ebx
mov byte [esp + 0xc], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x14], bl
call fcn.00401240
cmp dword [0x420138], 8
mov byte [esp + 0xb], al
mov eax, dword [0x420124]
jae 0x406685
mov eax, 0x420124
mov ecx, dword [0x420134]
mov edx, dword [0x42016c]
push ecx
push eax
push edx
push ebx
mov ecx, 0x420158
call fcn.004017d0
test eax, eax
jne 0x4066be
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00406280
jmp 0x406708
cmp dword [0x420154], 8
mov eax, dword [0x420140]
jae 0x4066d1
mov eax, 0x420140
mov ecx, dword [0x420150]
mov edx, dword [0x42016c]
push ecx
push eax
push edx
push ebx
mov ecx, 0x420158
call fcn.004017d0
test eax, eax
jne 0x406752
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404790
add esp, 0x10
cmp byte [esp + 0xb], bl
je 0x406717
cmp byte [esp + 0xc], bl
jne 0x406752
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x48]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], bx
call fcn.00402ae0
call fcn.00405c60
add esp, 0x28
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x30], 8
jb 0x40676c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040730e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004074fd
add esp, 0x3c
ret 0x10

Function at 0x4074fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420620]
jne 0x407507
repz ret
jmp fcn.0040d726
Function at 0x410018
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x410033
inc edi
cmp edi, 0x17
jb 0x410024
cmp edi, 0x17
jae 0x4101b3
push ebp
push 3
call fcn.00416eba
cmp eax, 1
pop ecx
je 0x41017f
push 3
call fcn.00416eba
test eax, eax
pop ecx
jne 0x410067
cmp dword [0x42062c], 1
je 0x41017f
cmp ebx, 0xfc
je 0x4101b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x41009d
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4100e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x4100e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407516
add esp, 0x14
push esi
call fcn.00409b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410126
push esi
call fcn.00409b50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c644
sub ecx, eax
push ecx
push eax
call fcn.00412056
add esp, 0x14
test eax, eax
je 0x410126
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
jmp 0x410128
xor esi, esi
push 0x41c640
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x410148
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x41016a
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416cfd
add esp, 0xc
jmp 0x4101b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4101b2
cmp ebp, 0xffffffff
je 0x4101b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409b50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x416cfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d90c
xor ebx, ebx
cmp dword [0x4222ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416dd3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416eb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416eb3
push eax
call fcn.0040d89e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4222ec], eax
call esi
push eax
call fcn.0040d89e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4222f0], eax
call esi
push eax
call fcn.0040d89e
mov dword [0x4222f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b068
test eax, eax
pop ecx
pop ecx
je 0x416da1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407516
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416dd3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d89e
cmp eax, ebx
pop ecx
mov dword [0x4222fc], eax
je 0x416dd3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d89e
pop ecx
mov dword [0x4222f8], eax
mov eax, dword [0x4222f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416e58
cmp dword [0x4222fc], ecx
je 0x416e58
push eax
call fcn.0040d915
push dword [0x4222fc]
mov esi, eax
call fcn.0040d915
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416e58
cmp edi, ebx
je 0x416e58
call esi
cmp eax, ebx
je 0x416e25
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416e25
test byte [ebp - 0x18], 1
jne 0x416e58
lea eax, [ebp - 0x10]
push eax
call fcn.0040b09f
test eax, eax
pop ecx
je 0x416e40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407516
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416e4f
or dword [ebp + 0x10], 0x200000
jmp 0x416e93
or dword [ebp + 0x10], 0x40000
jmp 0x416e93
mov eax, dword [0x4222f0]
cmp eax, dword [ebp - 8]
je 0x416e93
push eax
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416e93
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416e93
mov eax, dword [0x4222f4]
cmp eax, dword [ebp - 8]
je 0x416e93
push eax
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416e93
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4222ec]
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416eb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416eb5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b00
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x435edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov ecx, dword [0x446ebc]
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.0040af80
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x128], edi
call dword [edx + 4]
mov edx, dword [esp + 0x12c]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
push esi
call fcn.004089e0
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edi
mov dword [esp + 8], 0x4392ac
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x408b88
push eax
call fcn.00419423
add esp, 4
cmp esi, edi
jbe 0x408b9f
cmp esi, 0x104
jae 0x408b9f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x409d40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x436077
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0xc], 0
call fcn.00409d30
mov ebx, eax
test ebx, ebx
jne 0x409d98
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00404500
mov dword [esi], 0x4392bc
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x24]
call fcn.00404260
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 0x4392fc
call fcn.004043e0
mov dword [esp + 0x1c], 0x4392bc
mov edi, dword [esp + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push edi
push ebx
mov dword [esp + 0x4c], 2
call ebp
mov esi, eax
test esi, esi
jne 0x409e4e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push edi
push ebx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
test esi, esi
mov esi, dword [esp + 0x34]
push 0
push 0
mov ecx, esi
jne 0x409eb3
call fcn.00404260
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 3
mov dword [esi], 0x4392fc
call fcn.004043e0
mov dword [esi], 0x4392bc
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x4392ac
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 4
call fcn.00404100
test eax, eax
je 0x409f18
jmp 0x409f0f
call fcn.00404260
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x2c], 5
mov dword [esi], 0x4392fc
je 0x409edb
cmp byte [ecx], 0
je 0x409edb
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x409ed2
push eax
push ecx
mov ecx, esi
call fcn.004043e0
mov dword [esi], 0x4392bc
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x4392ac
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
call fcn.00404100
test eax, eax
je 0x409f18
push eax
call fcn.00419423
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x409f30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x409f67
call fcn.00409d30
mov esi, eax
test esi, esi
jne 0x409f48
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
call fcn.00409d30
mov esi, eax
test esi, esi
jne 0x409f75
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
Function at 0x40a2c0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0x10000
push edi
push ebx
push ebp
push 0
mov dword [esp + 0x28], 0
call fcn.0041b5e2
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40a30e
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
push ebp
push eax
call fcn.0041b5e2
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40a334
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40b840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
cmp eax, 1
push ebp
mov ebp, ecx
jge 0x40b874
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x1c], str.Key_Length_should_be_at_least_1
call fcn.0041b76a
lea ecx, [esp + 4]
push 0x43ea48
push ecx
call fcn.0041b859
push ebx
push esi
xor ecx, ecx
push edi
xor eax, eax
lea ebx, [ebp + 1]
mov byte [ebx + eax], al
inc eax
cmp eax, 0x100
jl 0x40b87e
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
mov byte [ebp + 0x201], cl
mov byte [ebp + 0x202], cl
mov ecx, ebx
sub edi, ebp
xor edx, edx
mov dword [ebp + 0x204], ecx
mov dl, byte [ebp + 0x201]
mov al, byte [edx + esi]
mov dl, byte [ecx]
add al, dl
mov dl, byte [ebp + 0x202]
add dl, al
mov al, dl
mov byte [ebp + 0x202], dl
and eax, 0xff
lea edx, [eax + ebp + 1]
mov dword [ebp + 0x208], edx
mov al, byte [ecx]
mov byte [ebp + 0x20c], al
mov al, byte [edx]
mov byte [ecx], al
mov edx, dword [ebp + 0x208]
mov al, byte [ebp + 0x20c]
mov byte [edx], al
xor eax, eax
mov al, byte [ebp + 0x201]
inc eax
cdq
idiv dword [esp + 0x24]
inc ecx
mov byte [ebp + 0x201], dl
lea edx, [edi + ecx]
cmp edx, 0x100
jl 0x40b8a0
lea edi, [ebp + 0x101]
mov ecx, 0x40
mov esi, ebx
xor al, al
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov byte [ebp + 0x201], al
mov byte [ebp + 0x202], al
mov byte [ebp], 1
pop ebx
pop ebp
add esp, 0xc
ret 8

Function at 0x40bc60
Capabilities:
Hash data using sha256

Disassembly:
mov edx, 0x439448
push esi
push edi
mov eax, ecx
sub edx, ecx
mov esi, 8
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x40bc70
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x40ec60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4364bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esi + 0x34]
add esi, 0x34
xor ebp, ebp
mov ecx, esi
push ebp
call dword [edx + 4]
lea eax, [esp + 0x48]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.00404630
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x15c], ebp
call fcn.004043e0
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.00405150
mov edi, eax
push 0xffffffffffffffff
push 0x442b98
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 1
call fcn.00404630
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
push ecx
mov ecx, edi
call fcn.0040b160
cmp eax, ebp
mov byte [esp + 0x154], 1
je 0x40ed94
lea edx, [esp + 0x38]
push 1
push edx
mov ecx, esi
call fcn.00405150
mov edi, eax
push 0xffffffffffffffff
push 0x442b94
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 3
call fcn.00404630
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x158], 4
call fcn.0040b160
cmp eax, ebp
mov dword [esp + 0x38], 0x4392ac
setne bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x154], 5
call fcn.00404100
cmp eax, ebp
je 0x40ed84
push eax
call fcn.00419423
add esp, 4
test bl, bl
mov dword [esp + 0x38], 0x4392a8
je 0x40ed94
mov bl, 1
jmp 0x40ed96
xor bl, bl
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebp
mov dword [esp + 0x28], 0x4392ac
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
je 0x40edc6
push eax
call fcn.00419423
add esp, 4
test bl, bl
je 0x40ee1d
push 0xffffffffffffffff
push 0x442b94
lea ecx, [esp + 0x24]
call fcn.00404ad0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0x439304
jne 0x40ee09
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], eax
je 0x40ee09
cmp byte [ecx], 0
je 0x40ee09
inc eax
mov dword [esp + 0x24], eax
cmp byte [ecx + eax], 0
jne 0x40edfe
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x15c], 6
call fcn.004043e0
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x4120c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x436cb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x54]
lea eax, [esp + 0x28]
push 0x104
push eax
push 0
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x3c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push 0
push 0
push 4
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
add edi, 0xfffffffc
push 0
push 0
mov esi, dword [edi + ebx]
lea ecx, [esp + 0x18]
call fcn.00404ad0
xor eax, eax
lea ecx, [esp + 0x10]
push eax
push eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x18], 0x4392ac
mov dword [esp + 0x24], eax
call fcn.004043e0
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 1
mov dword [esp + 0x18], 0x4392fc
call fcn.004043e0
mov dword [esp + 0x10], 0x4392bc
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 1]
cmp ecx, eax
mov dword [esp + 0x134], 2
jle 0x4121f4
cmp eax, 8
jge 0x4121c6
mov eax, 8
mov dword [esp + 0x1c], eax
cmp ecx, eax
jle 0x4121e2
add eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x4121e2
lea eax, [ecx + 0xb]
mov edx, eax
and edx, 7
sub eax, edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00419933
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push esi
mov byte [ecx + esi], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
sub edi, esi
add edi, ebx
push esi
push edi
push eax
call fcn.0041bc70
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.004127f0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebp
call esi
mov eax, dword [esp + 0x14]
xor ecx, ecx
pop edi
pop esi
pop ebp
cmp eax, ecx
mov dword [esp + 4], 0x4392ac
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x412270
push eax
call fcn.00419423
add esp, 4
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x412730
Capabilities:
Get file size

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 5
mov esi, 0x442d4c
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push 0x16
push eax
movsw word es:[edi], word [esi]
call fcn.00409000
mov ebp, dword [eax]
add esp, 8
lea ecx, [esp + 0x38]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x4c]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00413800
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x14]
sub esi, ecx
xor ecx, ecx
sub esi, ebp
pop edi
sub esi, 0x10
cmp eax, ecx
mov dword [ebx + 0x54], esi
pop esi
pop ebp
mov dword [esp + 4], 0x4392ac
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x4127e3
push eax
call fcn.00419423
add esp, 4
add esp, 0x12c
ret
Function at 0x413660
Capabilities:
Access peb ldr_data
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x436f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00413800
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x1b0]
add edx, eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x1b0], edx
cmp eax, ebx
mov dword [esp + 0x10], 0x4392ac
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x4136c2
push eax
call fcn.00419423
add esp, 4
lea eax, [esp + 0x9c]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], 0x4392a8
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 3
lea ecx, [esp + 0xb0]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push ebx
mov ebp, eax
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x1b0]
mov ebx, eax
sub esi, ecx
lea ecx, [esp + 0x40]
sub esi, 0x10
call fcn.00425e10
push esi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x1b0], 0
call fcn.00425f10
mov edx, dword [esp + 0x1b0]
add esi, ebx
push edx
lea ecx, [esp + 0x44]
lea eax, [esi + 0x10]
push eax
call fcn.00425f10
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
call fcn.00425ea0
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
mov ecx, 4
lea edi, [esp + 0x30]
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
sete al
pop ebp
mov ecx, dword [esp + 0x194]
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret