joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015a13
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [0x10041aea]
call fcn.10015435
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe9
je 0x10015b11
mov dword [ebp - 4], esp
push 0x10041b02
push 0x40
push 1
push dword [0x10041aea]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10015a6b
push 6
call fcn.1002a8b4
add esp, 4
push dword [0x10041aea]
push dword [0x10041af2]
call fcn.10003708
mov dword [ebp - 4], eax
push 5
push dword [ebp - 4]
call fcn.10003708
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.1002b730
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.1002b9b0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x10040b6e
mov ecx, 2
call fcn.10014e3a
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10015aeb
push ebx
call fcn.1002a8a2
add esp, 4
push 1
push 5
lea eax, [ebp - 0x14]
push eax
push dword [0x10041aea]
call fcn.100033fa
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10015b11
push ebx
call fcn.1002a8a2
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x1001d763
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x10041b26], 0
jne 0x1001d781
push dword [ebp + 8]
call fcn.1001d87c
push dword [0x10041b26]
call fcn.10015435
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe9
je 0x1001d876
mov dword [ebp - 4], esp
push 0x10041b2a
push 0x40
push 1
push dword [0x10041b26]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001d7d0
push 6
call fcn.1002a8b4
add esp, 4
push dword [0x10041b26]
push dword [0x10041b2e]
call fcn.10003708
mov dword [ebp - 4], eax
push 5
push dword [ebp - 4]
call fcn.10003708
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.1002b730
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.1002b9b0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x10040b6e
mov ecx, 2
call fcn.10014e3a
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001d850
push ebx
call fcn.1002a8a2
add esp, 4
push 1
push 5
lea eax, [ebp - 0x14]
push eax
push dword [0x10041b26]
call fcn.100033fa
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001d876
push ebx
call fcn.1002a8a2
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e3da
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [0x10041b96], 0x4d29ac2
push 0
mov ebx, 0x108
call fcn.1002be60
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001e428
mov eax, 0x10040269
push eax
push 2
mov ebx, 0x138
call fcn.1002bf00
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001e44e
push ebx
call fcn.1002a8a2
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1001e461
mov eax, 0x10040269
push eax
push 1
mov ebx, 0x154
call fcn.1002b610
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001e487
push ebx
call fcn.1002a8a2
add esp, 4
push 0x10040d4a
push dword [ebp - 0x10]
call fcn.100013b2
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001e4b5
push ebx
call fcn.1002a8a2
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1001e5b4
push 0x80000004
push 0
push str.Super_EC
push 1
mov ebx, 0x158
call fcn.1002bf70
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001e50c
push 6
call fcn.1002a8b4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001e51f
push ebx
call fcn.1002a8a2
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e55b
push 6
call fcn.1002a8b4
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 3
mov eax, 0x10040d58
test eax, eax
je 0x1001e572
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001e592
push 6
call fcn.1002a8b4
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e5b4
push 6
call fcn.1002a8b4
add esp, 4
call fcn.1001e5c7
mov eax, 0
jmp 0x1001e5c3
mov esp, ebp
pop ebp
ret
Function at 0x1002a707
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x10041bae], 0
jne 0x1002a740
push 0x10041545
push dword [0x10041bc6]
call fcn.100013b2
add esp, 8
cmp eax, 0
jne 0x1002a740
mov eax, 1
jmp 0x1002a745
mov eax, 0
test eax, eax
je 0x1002a7ab
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x10041bca]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x1004154e]
fcomp qword [0x10040af0]
fnstsw ax
test ah, 0x41
jne 0x1002a7ab
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x10041bca], eax
cmp dword [0x10041b9a], 0
je 0x1002a7b8
mov esp, ebp
pop ebp
ret 8

Function at 0x1002bac0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x1002bb43
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1002bb43
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002bb36
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x1002c8b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1002c8c3
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.1002e650
add esp, 4
test eax, eax
jne 0x1002c8d5
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x1002c996
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x1002ca13
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x1002c91e
mov esi, dword [ebx]
jmp 0x1002c932
push ebx
call fcn.1002e4b0
mov esi, eax
add esp, 4
test esi, esi
je 0x1002c976
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x1002c95d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002c95d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1002c96a
push esi
call fcn.10032387
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002ca13
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1002c90e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x1002ca13
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x1002ca13
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x1002c9c7
mov esi, dword [ebx]
jmp 0x1002c9db
push ebx
call fcn.1002e4b0
mov esi, eax
add esp, 4
test esi, esi
je 0x1002ca05
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x1002c9f8
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x1002ca05
push esi
call fcn.10032387
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x1002c9b7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x1002ca80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x1002ca99
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.1002e650
add esp, 4
test eax, eax
jne 0x1002caae
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1002cac8
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x1002cac8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x1002cbb0
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x1002cb00
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1002cb17
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x1002cb1b
mov esi, dword [esp + 0x2c]
push esi
call fcn.10032812
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002cb54
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.10031ddb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x1002cb70
mov al, byte [ecx]
test al, al
je 0x1002cb70
cmp al, 0x1a
je 0x1002cb70
inc edi
inc ecx
cmp edi, edx
jb 0x1002cb60
lea ecx, [edi + 1]
push ecx
call fcn.1002aa90
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.100326e0
push ebx
mov byte [edi + esi], 0
call fcn.10031ddb
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x1002cc2b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x1002cbca
or eax, 0xffffffff
jmp 0x1002cbce
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x1002cbfd
mov cl, byte [edx]
test cl, cl
je 0x1002cbfd
cmp cl, 0x1a
je 0x1002cbfd
inc edi
inc edx
cmp edi, eax
jb 0x1002cbec
lea edx, [edi + 1]
push edx
call fcn.1002aa90
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.100326e0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1002ea80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1002ea8c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1002eb1f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], pe_nt_image_headers32
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1002eae9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1002eb30
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1002eabe
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x1002eb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1002ec4d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1002eba2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1002ebce
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1002eb30
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1002ec0f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1002eb91
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1002fc10
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10042094]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x1002fc23
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x1002fc64
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1004213c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x1002fc96
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1002fc9a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1002fc8b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x1002fcb8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1002fcbc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1002fcad
xor ecx, ecx
mov eax, 0x100420a4
xor ebx, ebx
mov bl, byte [ecx + 0x1004214c]
cmp byte [esp + ebx + 0x14], 0
je 0x1002fce7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x10042164]
cmp byte [esp + ebx + 0x14], 0
je 0x1002fcfe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1002fcce
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x1002fc57
lea edx, [esp + 0x84]
push edx
call fcn.1002fd40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x515060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
push edi
jmp 0x51507a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515070
mov eax, 1
add ebx, ebx
jne 0x515093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5150a4
jne 0x5150c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150c3
dec eax
add ebx, ebx
jne 0x5150b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515088
add ebx, ebx
jne 0x5150bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x515115
xor ecx, ecx
sub eax, 3
jb 0x5150db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51514a
sar eax, 1
mov ebp, eax
jmp 0x5150e6
add ebx, ebx
jne 0x5150e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150b4
inc ecx
add ebx, ebx
jne 0x5150f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150b4
add ebx, ebx
jne 0x515101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5150f6
jne 0x515112
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5150f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x515134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x515126
jmp 0x515076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x515134
add edi, ecx
jmp 0x515076
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x515152
cmp byte [edi], 0x11
jne 0x515152
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x515157
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x5151cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x151340]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1514bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x515184
mov ecx, edi
jns 0x5151b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1514c0]
or eax, eax
je 0x5151c9
mov dword [ebx], eax
add ebx, 4
jmp 0x5151a1
call dword [esi + 0x1514d0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x515200
cmp al, 0xef
ja 0x5151f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5151d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5151e2
mov ebp, dword [esi + 0x1514c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x515234
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401070
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov esi, ecx
lea eax, [ebp - 0x20]
push eax
push str.browseui.dll
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40115d
mov dword [ebp - 0x10], esi
mov esi, dword fs:[0x18]
mov ecx, dword [esi + 0x30]
push eax
push 0
push dword [ecx + 0x18]
mov ebx, eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
push eax
push ebx
push 0
push str.browseui.dll
call dword [sym.imp.version.dll_GetFileVersionInfoW]
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push ecx
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x40114e
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
lea ebx, [ebp - 0x80]
push eax
push ecx
push str.StringFileInfo_04x_04xFileDescription
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x40114e
push 0x40210e
push dword [ebp - 0x1c]
call dword [sym.imp.ucrtbase.dll_wcsstr]
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
test ebx, ebx
je 0x40115d
cmp dword [ebp - 0x10], 0
mov eax, str.UnregisterIE
mov ecx, str.RegisterIE
cmove ecx, eax
push 0
push ecx
push 0
call sym._RegInstallA_12
shr eax, 0x1f
jmp 0x40116a
mov eax, dword [esi + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
call dbg.wine_dbg_printf
add esp, 4
xor eax, eax
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4012a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x4012ed
mov esi, eax
xor eax, eax
cmp byte [edi + esi - 1], 0xa
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x404104
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x4012ef
xor eax, eax
pop esi
pop edi
pop ebp
ret