joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b79
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x403de1
call fcn.00403c1a
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esi], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
jle 0x401c63
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x406144]
mov ecx, 0x406144
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test ebx, ebx
je 0x401bdf
test ebx, 0xffff0000
jne 0x401bdf
movzx eax, bx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402552
jmp 0x401be9
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004022aa
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov edx, dword [edi + 4]
test edx, edx
jne 0x401bfa
xor ecx, ecx
jmp 0x401c02
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x401c28
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x401c28
lea eax, [ebp - 0x10]
mov esi, ebx
mov ebx, dword [edi + 8]
push eax
call fcn.0040252c
mov esi, dword [ebp + 0xc]
mov dword [edi + 8], eax
jmp 0x401c46
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x401c35
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.004024aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402d41
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi]
jl 0x401ba4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00403c83
ret
Function at 0x4020cd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0xa8]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x402131
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
jne 0x402131
mov al, 1
jmp 0x4021b7
xor edx, edx
inc edx
cmp dword [ebp - 0x98], 2
jne 0x4021b5
mov ecx, dword [ebp - 0xa4]
push 4
pop eax
cmp ecx, eax
jbe 0x4021b5
cmp ecx, 6
jne 0x402187
cmp dword [ebp - 0xa0], 0
jne 0x402162
cmp byte [ebp + 0x72], dl
setne al
add al, 5
jmp 0x4021b7
cmp dword [ebp - 0xa0], edx
jne 0x402174
cmp byte [ebp + 0x72], dl
setne al
add al, 7
jmp 0x4021b7
cmp dword [ebp - 0xa0], 2
jne 0x4021b5
cmp byte [ebp + 0x72], dl
setne al
add al, 9
jmp 0x4021b7
cmp ecx, 5
jne 0x4021ae
cmp dword [ebp - 0xa0], 2
je 0x4021b7
cmp dword [ebp - 0xa0], edx
jne 0x4021a1
mov al, 3
jmp 0x4021b7
cmp dword [ebp - 0xa0], 0
jne 0x4021b5
mov al, 2
jmp 0x4021b7
cmp ecx, 6
mov al, 0xb
ja 0x4021b7
mov al, dl
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004032ae
add ebp, 0x78
leave
ret

Function at 0x402caf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cc6
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402cfb
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402cf7
cmp edi, eax
jae 0x402cfb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402ce9
cmp edi, eax
jb 0x402cff
xor eax, eax
jmp 0x402d09
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402feb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00402f2a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40303a
cmp dword [ebp - 0x1c], 5
jb 0x403052
jmp 0x40304e
cmp dword [ebp - 0x10], 1
jne 0x403052
cmp dword [ebp - 0x1c], 4
ja 0x40304e
jne 0x403052
cmp dword [ebp - 0x18], 0
jbe 0x403052
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40425c
call fcn.00402dc0
test eax, eax
jge 0x403073
mov byte [0x4064bc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004032ae
add ebp, 0x78
leave
ret

Function at 0x4032ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x4032b8
repz ret
jmp fcn.0040376b
Function at 0x405fc8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x422738
call fcn.00418354
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x406000
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x40603f
cmp cl, 0x58
je 0x40603f
push edi
call fcn.00417f72
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.004018c4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401907
test eax, eax
je 0x406108
mov ecx, dword [ebp + 0x10]
call fcn.00410411
test eax, eax
je 0x40604a
push 0x42db84
jmp 0x406053
push eax
call esi
push eax
call fcn.00405f85
jmp 0x406005
mov ecx, dword [ebp + 0x10]
call fcn.0040fa09
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x42a1fc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00412568
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x406108
push edi
push 0x4295d8
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x42db80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406108
lea eax, [ebp - 0x2c]
push eax
call fcn.00405f85
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x406127
inc edi
cmp edi, ebx
jb 0x4060b3
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004018fc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x40610a

Function at 0x4064f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406549
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42e82c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406540
mov byte [0x42f82c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40666e
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42f848]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40669a
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42f848]
call esi
push 0
push dword [0x42f83c]
call esi
pop esi
ret
Function at 0x40828f
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x422798
call fcn.00418354
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x408301
cmp ebx, edi
je 0x408301
cmp ebx, 0x800704c7
jne 0x4082d7
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x4082eb
mov dword [eax], ebx
jmp 0x4083a3
test ebx, ebx
je 0x4083a3
cmp ebx, 0x1008
je 0x4083a3
mov dword [0x430b2c], 0x66d
call fcn.00406634
xor eax, eax
jmp 0x4083a5
call fcn.00412aab
test eax, eax
jne 0x408319
cmp ebx, edi
je 0x408319
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x408323
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040654b
test eax, eax
jne 0x408395
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x4083a3
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40a21b
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edx, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0xf], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov dword [esi], ebx
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.004127d8
pop ecx
test eax, eax
pop ecx
jge 0x40a270
push dword [ebp + 8]
push str.__s___q
jmp 0x40a27c
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004128e2
mov edi, eax
cmp edi, ebx
je 0x40a34e
cmp edi, 0xbc2
je 0x40a2c6
push ebx
push edi
mov dword [0x430b2c], 0x484
call fcn.00411c80
pop ecx
mov eax, edi
pop ecx
jmp 0x40a350
cmp byte [ebp + 0xf], bl
je 0x40a348
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [esi], 2
mov dword [ebp + 8], ebx
call fcn.0040654b
test eax, eax
jne 0x40a338
push 0x40
lea edi, [ebp - 0x20b]
pop ecx
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], ebx
je 0x40a34e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a34e
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b4d3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b53f
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40b551
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b861
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4229b2
call fcn.00418354
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x424664
mov esi, 0x42465c
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.0040c723
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040ba68
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040ce75
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40b8ea
lea ecx, [ebp - 0x10]
call fcn.004053b7
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00407e99
cmp byte [ebp + 0xf], 0
je 0x40ba20
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b96a
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040c723
mov dword [ebp - 0x18], 1
jmp 0x40ba3c
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c41e
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040bcd4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407e99
mov eax, 0x429e6c
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x430694
jne 0x40b9b3
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c82b
mov eax, 0x429e68
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40b9dc
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040c82b
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0040c5a5
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00407e99
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407e99
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040c798
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00407e99
cmp dword [ebp - 0x10], 0
je 0x40ba57
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4112ca
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x422f12
call fcn.00418354
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x424e00
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.004117e4
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x41135e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x4113e1
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00417cc8
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00417ce0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.00411a72
test eax, eax
je 0x4113e1
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113e1
cmp dword [ebp - 0x10], edi
je 0x4113e1
mov ecx, esi
call fcn.0041147d
test eax, eax
je 0x4113e1
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x4113e1
movzx eax, ax
push eax
mov ecx, esi
call fcn.00411760
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41158c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x4115db
cmp dword [ebp + 8], ebx
je 0x4115db
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push SysReAllocStringLen
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4115e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x118], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00411a72
test eax, eax
je 0x4115db
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x411628
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4115db
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x10c]
mov eax, 0x400
cmp edi, eax
mov dword [ebp + 0xc], eax
jae 0x411640
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
call fcn.00417cc8
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push ebx
push ecx
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x41169d
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, dword [ebp - 4]
je 0x41169d
cmp dword [ebp - 4], ebx
je 0x41169d
cmp edi, 0x400
jae 0x41168d
mov dword [ebp + 0xc], edi
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
jmp 0x41165e
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
test byte [eax + 0x104], 2
je 0x4116cd
push eax
push dword [ebp + 0x10]
call fcn.0040141d
pop ecx
pop ecx
push dword [ebp - 0xc]
call fcn.0041757e
pop ecx
push 1
pop eax
jmp 0x4115dd

Function at 0x411760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x4117dd
mov esi, 0x138
push esi
call fcn.00417cc8
mov ebx, eax
push esi
push 0
push ebx
call fcn.00417ce0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4117dd
cmp dword [ebp - 8], 0
je 0x4117dd
push ebx
lea ecx, [edi + 0x120]
call fcn.00411ab3
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.00411a72
test eax, eax
je 0x4117dd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x411779
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4117e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411829
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x411878
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.00411a72
test eax, eax
je 0x411878
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.00411a72
test eax, eax
jne 0x41187c
xor eax, eax
jmp 0x4118ce
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x4118b8
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x4118a2
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x411888
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.004118d3
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4118d3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x4118ff
xor eax, eax
jmp 0x4119af
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4119a4
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x411999
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.004119b4
cmp eax, ebx
je 0x41194f
cmp dword [eax + 0xc], edi
jne 0x41194f
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x411980
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.004119b4
mov edi, eax
cmp edi, ebx
je 0x411999
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x411999
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x411994
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x41198a
jmp 0x411997
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4