joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41638f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4465e8
call fcn.00420850
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00416351
mov edi, eax
cmp edi, esi
je 0x4163d9
cmp dword [ebp - 0x10], esi
je 0x4163d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x416476
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x41644a
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041638f
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x416437
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x4163fc
cmp dword [ebp - 0x10], esi
je 0x416445
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x416476
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41645d
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x416474
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x417203
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x417217
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41724b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041db68
test al, al
jne 0x41727e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41727e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x417286
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x41729c
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4172d1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x418554
Capabilities:
Write file on windows

Disassembly:
push 0x4000
push dword [esp + 8]
push dword [0x458b78]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp fcn.0041856e

Function at 0x41856e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x446990
call fcn.00420850
sub esp, 0x34
push ebx
push esi
push dword [0x458b74]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x40]
call fcn.0040f524
push 4
xor ebx, ebx
sub esp, 0x1c
mov ecx, 0x458b4c
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
mov dword [ebp - 4], ebx
call fcn.004148c9
push eax
mov ecx, esi
call fcn.0041865d
lea ecx, [ebp - 0x40]
call fcn.0040f693
cmp al, bl
je 0x418621
push dword [0x458b78]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
call fcn.0040f7d9
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0x3c]
call esi
push 0x21
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push dword [0x458b78]
call fcn.0041f4e8
mov eax, dword [0x458b78]
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x40]
call fcn.0040f807
push dword [0x458b74]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x40], vtable.is::file_lite.0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.0040f807
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040ee1e
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41bdaf
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41be16
call esi
cmp eax, 0x3f0
jne 0x41be09
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x41be12
push 1
jmp 0x41be35
cmp eax, ebx
je 0x41be34
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41be34
call esi
cmp eax, 0x7a
je 0x41be44
push ebx
push dword [ebp - 4]
call fcn.0041bda0
pop ecx
pop ecx
jmp 0x41bf3b
push dword [ebp - 8]
call fcn.00420e10
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41be8a
push ebx
push dword [ebp - 4]
call fcn.0041bda0
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41be82
push esi
call fcn.00420016
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41bf3b
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41bed4
push ebx
push dword [ebp - 4]
call fcn.0041bda0
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41becf
push esi
call fcn.00420016
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41bf3b
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x41bf13
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41bf00
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x41bee3
jmp 0x41bf13
cmp byte [ebp + 0xc], bl
je 0x41bf0f
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x41bf13
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0041bda0
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41bf38
push esi
call fcn.00420016
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c656
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0041c855
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41c70f
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41c6fc
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x41c6c0
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41c6e9
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x41c6f6
cmp byte [ebp - 0x838], bl
je 0x41c6fc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x41c70f
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41c70f
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c2ce
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x41c734
cmp dword [ebp + 0xc], 4
jne 0x41c774
cmp dword [ebp - 0x14], ebx
jne 0x41c774
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x41c74c
mov ecx, edi
call fcn.0041ccc5
jmp 0x41c774
cmp ax, 4
jne 0x41c75b
mov ecx, edi
call fcn.0041ceab
jmp 0x41c774
cmp ax, 8
jae 0x41c768
push str.Mozilla
jmp 0x41c76d
push str.Netscape
mov ecx, edi
call fcn.0041d27e
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x41ccc5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00420430
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41ce93
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x41ce93
cmp dword [ebp - 0x14], 1
jne 0x41ce93
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41ce56
cmp byte [ebp - 0x148], al
je 0x41ce56
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41ce48
lea eax, [ebp - 0x96c]
push 0x455098
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x453dac
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x4548e8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x41cdac
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0041c4a7
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x41cea6
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41cea6
push dword [ebp - 4]
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41de54
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x41deb7
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x41dec9
mov eax, dword [esi + 0xdc]
jmp 0x41df21
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x41df1f
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x41def7
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x41ded2
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x41e3a6
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0041c412
add esp, 0x14
test eax, eax
je 0x41e3e4
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x41e3e8
cmp eax, 0x12c
jae 0x41e3e8
mov al, 1
jmp 0x41e3fe
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x41e800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.004049fb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e835
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
leave
ret
Function at 0x41f29c
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
or dword [ebp - 4], 0xffffffff
push 0x80
push 3
push edi
push 1
push SysReAllocString
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x41f2dc
lea ecx, [ebp - 4]
call fcn.00410230
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x41f2fd
lea ecx, [ebp - 8]
call fcn.00410284
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x41f32b
cmp dword [ebp - 4], 0xffffffff
je 0x41f407
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x41f407
push dword [ebp - 4]
call esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 8], edi
jmp 0x41f400
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
jne 0x41f365
cmp dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41f3f9
cmp esi, edi
je 0x41f3f9
push dword [ebp - 4]
call esi
or dword [ebp - 4], 0xffffffff
jmp 0x41f3f9
cmp word [ebx], 0x5a4d
jne 0x41f399
mov esi, dword [ebx + 0x3c]
push 0xf8
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41f3d4
cmp dword [esi], 0x4550
jne 0x41f3d4
push dword [ebp + 0xc]
push esi
push ebx
call fcn.0041f24f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41f3b2
cmp esi, edi
je 0x41f3b2
push dword [ebp - 4]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, edi
je 0x41f3be
push ebx
call eax
cmp dword [ebp - 8], edi
je 0x41f3cc
cmp esi, edi
je 0x41f3cc
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41f3ed
cmp esi, edi
je 0x41f3ed
push dword [ebp - 4]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, edi
je 0x41f3f9
push ebx
call eax
cmp dword [ebp - 8], edi
je 0x41f407
cmp esi, edi
je 0x41f407
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x41f3cf
Function at 0x41f40b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41f45d
push eax
call fcn.00420e10
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f45d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4542a0
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41f461
xor al, al
jmp 0x41f4c2
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41f4c0
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00420e10
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41f4c0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41f4ae
mov al, 1
pop ebx
leave
ret 4

Function at 0x427010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x457ea0
cmp edx, dword [eax]
je 0x427032
add eax, 8
inc ecx
cmp eax, 0x457f30
jl 0x427023
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x457ea0]
jne 0x427160
mov eax, dword [0x458cbc]
cmp eax, 1
je 0x42713a
test eax, eax
jne 0x427063
cmp dword [0x455744], 1
je 0x42713a
cmp edx, 0xfc
je 0x427160
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42709a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422230
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00421870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4270dd
lea eax, [ebp - 0x1a4]
push eax
call fcn.00421870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a73c
push edi
call fcn.004238d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422230
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422240
lea eax, [ebp - 0xa0]
push 0x44a71c
push eax
call fcn.00422240
push dword [esi + 0x457ea4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422240
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004296de
add esp, 0x2c
pop edi
jmp 0x427160
lea eax, [ebp + 8]
lea esi, [esi + 0x457ea4]
push 0
push eax
push dword [esi]
call fcn.00421870
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]
pop esi
leave
ret
Function at 0x42b760
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x447338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x42b7ce
lea ecx, [esp + 0x14]
call fcn.00410230
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x42b801
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0042b940
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00410284
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00410230
xor al, al
jmp 0x42b914
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42b82f
cmp eax, ebx
je 0x42b829
cmp edi, ebx
je 0x42b829
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x42b866
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x42b85e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x42b85e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x42b85e
cmp edi, ebx
je 0x42b85e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x42b8b1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42b893
cmp eax, ebx
je 0x42b88d
cmp ebp, ebx
je 0x42b88d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x42b8be
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42b8aa
cmp edi, ebx
je 0x42b8aa
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42b8ba
cmp edi, ebx
je 0x42b8ba
push eax
call edi
xor al, al
jmp 0x42b914
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.0042b4f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42b8ef
cmp ebp, ebx
je 0x42b8ef
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42b902
cmp edi, ebx
je 0x42b902
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42b912
cmp edi, ebx
je 0x42b912
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8