joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101085fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10154e50]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010863e
cmp byte [ebx], 0xa
jne 0x1010863e
or byte [edi + eax + 0x28], 4
jmp 0x10108643
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10108742
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10108725
inc eax
cmp dl, 0xd
je 0x1010866f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10108695
cmp eax, ecx
jae 0x101086a3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10108657
jmp 0x10108742
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10108720
cmp dword [ebp - 0x10], 0
je 0x10108720
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10154e50]
test byte [eax + edi + 0x28], 0x48
je 0x101086fa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101086e5
mov byte [esi], dl
jmp 0x101086f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10154e50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10108742
cmp byte [ebp - 1], 0xa
jne 0x10108709
cmp esi, ebx
jne 0x10108709
mov byte [esi], 0xa
jmp 0x10108741
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101122d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10108742
mov byte [esi], 0xd
jmp 0x10108741
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10154e50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010873f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10108742
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010874b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10154e50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10108791
cmp word [ebx], dx
jne 0x10108791
or byte [eax + edi + 0x28], 4
jmp 0x10108796
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101088f9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x101088d9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101087d7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010880d
cmp eax, edx
jae 0x1010881b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x101087b2
jmp 0x101088f9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101088d4
cmp dword [ebp - 0x18], 0
je 0x101088d4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10154e50]
test byte [eax + edi + 0x28], 0x48
je 0x101088aa
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1010886e
mov word [esi], cx
jmp 0x101088a5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10154e50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10154e50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10154e50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101088f9
pop eax
cmp word [ebp - 4], ax
jne 0x101088ba
cmp esi, ebx
jne 0x101088ba
mov word [esi], ax
jmp 0x101088f6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101122d9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101088f9
push 0xd
pop eax
jmp 0x101088b5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10154e50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101088f3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101088f9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010c6dc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1010c779
push ebx
push esi
call fcn.1010c6a5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1010c639
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010c726
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010c778
push edi
push eax
call fcn.101092f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010c746
call fcn.101060dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010c777
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010c639
add esp, 0x20
test eax, eax
jne 0x1010c765
push edi
call fcn.101060dd
jmp 0x1010c76d
push ebx
call fcn.101060dd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1010c77c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1010c78d
pop esi
ret
push ebx
push edi
push esi
call fcn.1010c6a5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101092f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010c7b5
push ebx
push esi
push edi
call fcn.100dbd10
add esp, 0xc
push 0
call fcn.101060dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1010cf0f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010ca2a

Function at 0x1010d3c1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012c138
push 0x1012c130
push str.FlsAlloc
push 0x1f
call fcn.1010d22c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d3f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x101222f0]
call esi
jmp 0x1010d3fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1010d43f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012c148
push 0x1012c140
push str.FlsGetValue
push 0x21
call fcn.1010d22c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d476
push dword [ebp + 8]
mov ecx, esi
call dword [0x101222f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1010d47e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012c150
push 0x1012c148
push str.FlsSetValue
push 0x22
call fcn.1010d22c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d4b8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101222f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1010d556
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1012c024
push str.GetTempPath2W
push 5
call fcn.1010d22c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d590
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101222f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10116aa3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10106882
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10116b12
cmp esi, dword [ebp - 4]
je 0x10116b0d
cmp dword [ebp + 0xc], 0
je 0x10116b0d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10116aea
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101165f5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10116b14
xor eax, eax
inc eax
jmp 0x10116b14
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10116b79
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1014200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10106882
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10106882
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10116bf0
cmp word [ecx], dx
je 0x10116bf0
mov eax, dword [0x1012cce4]
push edi
dec eax
push eax
push 0x1012cbd0
call fcn.10116b18
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10116c63
cmp word [eax], dx
je 0x10116c63
mov eax, dword [edi]
test eax, eax
je 0x10116c14
cmp word [eax], dx
je 0x10116c14
lea eax, [ebp - 0x10]
push eax
call fcn.101164fb
jmp 0x10116c1d
lea eax, [ebp - 0x10]
push eax
call fcn.10116596
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10116c8d
mov eax, dword [0x1012cbcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1012c8c0
call fcn.10116b18
add esp, 0xc
test al, al
je 0x10116c8d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10116c58
cmp word [eax], di
je 0x10116c58
lea eax, [ebp - 0x10]
push eax
call fcn.101164fb
pop ecx
jmp 0x10116c8f
lea eax, [ebp - 0x10]
push eax
call fcn.10116596
jmp 0x10116c55
mov eax, dword [edi]
test eax, eax
je 0x10116c7a
cmp word [eax], dx
je 0x10116c7a
lea eax, [ebp - 0x10]
push eax
call fcn.101164b0
pop ecx
jmp 0x10116c8d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10116d58
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1011699d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10116d58
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10116d58
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10116d58
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10116ce5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1010d69c
test ebx, ebx
je 0x10116d53
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1010d69c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10116d58
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10116d58
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100f255e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10116d5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10078509
leave
ret
Function at 0x10119c0d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10119b89
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10119d7c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10119d7c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10119d31
jg 0x10119c69
test eax, eax
je 0x10119d27
push 1
push 0x1000
call fcn.1010a735
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10119c8c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10119d1e
push 0x8000
push ebx
call fcn.10119aba
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10119cb5
jg 0x10119cb0
cmp ecx, 0x1000
jb 0x10119cb5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10111706
add esp, 0x10
cmp eax, 0xffffffff
je 0x10119cfa
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10119cb0
jl 0x10119ce1
test ecx, ecx
jne 0x10119ca2
push dword [ebp - 0xc]
push ebx
call fcn.10119aba
push esi
call fcn.101060dd
add esp, 0xc
xor ebx, ebx
jmp 0x10119d8a
cmp byte [edi + 0x24], 0
je 0x10119d11
cmp dword [edi + 0x20], 5
jne 0x10119d11
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10119d1c
mov ebx, dword [edi + 0x18]
jmp 0x10119d1e
xor ebx, ebx
push esi
call fcn.101060dd
pop ecx
jmp 0x10119d8a
test ecx, ecx
jg 0x10119cf3
jl 0x10119d31
test eax, eax
jae 0x10119cf3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101122d9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10119d51
cmp byte [edi + 0x1c], 0
je 0x10119cf3
jmp 0x10119d82
push ebx
call fcn.101149b1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10119cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10119d8a
cmp byte [edi + 0x1c], 0
je 0x10119d87
mov ebx, dword [edi + 0x18]
jmp 0x10119d8a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101122d9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8d5890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x154000]
push edi
jmp 0x8d58aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d58b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d58a0
mov eax, 1
add ebx, ebx
jne 0x8d58c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d58d4
jne 0x8d58f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d58f3
dec eax
add ebx, ebx
jne 0x8d58e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8d58b8
add ebx, ebx
jne 0x8d58ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8d5945
xor ecx, ecx
sub eax, 3
jb 0x8d590b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d597a
sar eax, 1
mov ebp, eax
jmp 0x8d5916
add ebx, ebx
jne 0x8d5916
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d58e4
inc ecx
add ebx, ebx
jne 0x8d5924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d58e4
add ebx, ebx
jne 0x8d5931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d5926
jne 0x8d5942
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d5926
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d5964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d5956
jmp 0x8d58a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d5964
add edi, ecx
jmp 0x8d58a6
pop esi
mov edi, esi
mov ecx, 0x6616
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8d5982
cmp byte [edi], 0x21
jne 0x8d5982
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 0x8d5987
lea edi, [esi + 0x4a3000]
mov eax, dword [edi]
or eax, eax
je 0x8d59ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d70a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d71e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d59b4
mov ecx, edi
jns 0x8d59e3
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 + 0x4d71e8]
or eax, eax
je 0x8d59f9
mov dword [ebx], eax
add ebx, 4
jmp 0x8d59d1
call dword [esi + 0x4d71f8]
mov ebp, dword [esi + 0x4d71ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x8d5a33
sub esp, 0xffffff80
jmp 0x4d176f
Function at 0x4019d9
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40dcc0
call fcn.004019f2
push 1
call fcn.00401b1c
pop ecx
test al, al
jne 0x401882
push 7
call fcn.00401e25
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401ae7
mov byte [ebp - 0x24], al
mov eax, dword [0x40f7bc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40187b
test eax, eax
jne 0x4018ec
mov dword [0x40f7bc], ecx
push 0x40a154
push 0x40a138
call fcn.0040352e
pop ecx
pop ecx
test eax, eax
je 0x4018cf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4019d3
push 0x40a134
push 0x40a12c
call fcn.004034d2
pop ecx
pop ecx
mov dword [0x40f7bc], 2
jmp 0x4018f1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00401c79
pop ecx
call fcn.00401e19
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x401921
push esi
call fcn.00401bec
pop ecx
test al, al
je 0x401921
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402018
call esi
call fcn.00401e1f
mov esi, eax
cmp dword [esi], edi
je 0x40193f
push esi
call fcn.00401bec
pop ecx
test al, al
je 0x40193f
push dword [esi]
call fcn.004037d1
pop ecx
push edi
call fcn.004025f9
pop ecx
call fcn.00401f3a
movzx eax, ax
push eax
call fcn.0040347f
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call fcn.00402695
pop ecx
call fcn.004036e0
test al, al
jne 0x401978
push esi
call fcn.00403809
test bl, bl
jne 0x401981
call fcn.004037ac
push edi
push 1
call fcn.00401c96
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4019d3
call fcn.00401a38
ret
call fcn.004c8000
jmp 0x401863
Function at 0x4019d0
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [eax + 4]
mov edi, dword [eax + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x1c], esi
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x20], edi
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
test byte [0x404000], 8
jne 0x401a40
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoMarshalInterface]
sub esp, 0x18
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
test ebx, ebx
je 0x401b38
mov eax, ebx
mov dword [ebp - 0x28], edx
shr eax, 0x10
mov dword [ebp - 0x24], ecx
je 0x401b18
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [ebp - 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.__p__s__p__08lx__p__08lx__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.marshal_MarshalInterface
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x401a09
movzx eax, bx
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x401ac1
mov eax, str._null_
jmp 0x401ac1