joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434e1b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x434db7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x434dd5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x434e33
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x434e1a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x434e23
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x434e2d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x434e0f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x434d99
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x434e80
dec eax
je 0x434e77
sub eax, 3
je 0x434e6e
mov dword [ebp - 4], 0x40
jmp 0x434e9d
mov dword [ebp - 4], 4
jmp 0x434e83
mov dword [ebp - 4], 0x20
jmp 0x434e83
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x434ecf
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x434e4f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004346e0
cli
and dword [0x1475ffea], esp
push 1
push esi
call edi
mov eax, esi
jmp 0x434edb
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x434f4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [esi - 0x3a]
test dword [ecx + 0x56fffffc], edi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004346f0
pop ecx
Function at 0x434f85
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004346a5
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004346f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004346a5
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
invalid
invalid
Function at 0x10002210
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
cmp byte [0x100aa1ac], 0
je 0x1000229e
mov ecx, 0x100a8e24
call fcn.10008050
movd xmm0, eax
movq xmm1, qword [0x1000a058]
por xmm0, xmm1
subsd xmm0, xmm1
movapd xmmword [esp + 0x10], xmm0
mov ecx, 0x100a8e24
call fcn.10008050
movd xmm0, eax
movq xmm1, qword [0x1000a058]
por xmm0, xmm1
subsd xmm0, xmm1
mulsd xmm0, qword [0x1000a060]
addsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [ebp + 0x10]
movsd xmm2, qword [ebp + 8]
subsd xmm1, xmm2
mulsd xmm1, qword [0x1000a068]
mulsd xmm1, xmm0
addsd xmm1, xmm2
movsd qword [esp + 8], xmm1
fld qword [esp + 8]
mov esp, ebp
pop ebp
ret
mov byte [0x100aa1ac], 1
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [0x100aa1a8], 0xffffffff
mov dword [0x100a8e28], eax
mov ecx, 0xfffffd92
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
add eax, 0x26f
mov dword [ecx*4 + 0x100a97e4], eax
test ecx, ecx
je 0x100022fd
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
add eax, 0x270
mov dword [ecx*4 + 0x100a97e8], eax
add ecx, 2
jmp 0x100022be
mov dword [0x100a8e24], 0x270
jmp 0x10002222
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0xcf1609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0xcf1a90
call fcn.00cf17b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0xcf2370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0xcf13c4
cmp eax, esi
jne 0xcf13b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0xcf13c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xcf139e
xor esi, esi
inc esi
mov eax, dword [0xcf236c]
cmp eax, esi
jne 0xcf13da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0xcf1409
mov eax, dword [0xcf236c]
test eax, eax
jne 0xcf1403
mov dword [0xcf236c], esi
push 0xcf10b8
push 0xcf10ac
call fcn.00cf1300
pop ecx
pop ecx
test eax, eax
je 0xcf1409
jmp 0xcf152d
mov dword [0xcf2034], esi
mov eax, dword [0xcf236c]
cmp eax, esi
jne 0xcf142d
push 0xcf10a8
push 0xcf10a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0xcf236c], 2
cmp dword [ebp - 0x20], ebx
jne 0xcf143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0xcf2374], ebx
je 0xcf145b
push 0xcf2374
call fcn.00cf1729
pop ecx
test eax, eax
je 0xcf145b
push ebx
push 2
push ebx
call dword [0xcf2374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0xcf152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0xcf14c5
cmp cx, bx
je 0xcf1480
cmp dword [ebp - 0x1c], ebx
jne 0xcf14c5
movzx ecx, word [eax]
cmp cx, bx
je 0xcf1495
cmp cx, 0x20
ja 0xcf1495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0xcf1480
test byte [ebp - 0x40], 1
je 0xcf14a1
movzx ecx, word [ebp - 0x3c]
jmp 0xcf14a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0xcf0000
call main
mov dword [0xcf2030], eax
cmp dword [0xcf2024], ebx
jne 0xcf150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0xcf14d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0xcf146a
cmp dword [0xcf2034], ebx
jne 0xcf1518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0xcf2030]
jmp 0xcf1539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00cf17f9
ret
call fcn.00cf1901
jmp 0xcf1361
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x125217ba
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x219d0262
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40986a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409860
mov eax, 1
add ebx, ebx
jne 0x409883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409878
jne 0x409894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409878
xor ecx, ecx
sub eax, 3
jb 0x4098a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40991a
mov ebp, eax
add ebx, ebx
jne 0x4098b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4098c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4098e4
inc ecx
add ebx, ebx
jne 0x4098d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4098c5
jne 0x4098e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4098c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409904
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4098f5
jmp 0x409866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409904
add edi, ecx
jmp 0x409866
pop esi
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40996c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb84c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb8b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409921
mov ecx, edi
jns 0x409950
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 + 0xb8c0]
or eax, eax
je 0x409966
mov dword [ebx], eax
add ebx, 4
jmp 0x40993e
call dword [esi + 0xb8bc]
mov ebp, dword [esi + 0xb8c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4099a0
sub esp, 0xffffff80
jmp 0x4011fa

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6b0136
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7c8c634f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x14015f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458ae90
push 0x1424a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.01422f26
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1401693
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1401693
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x1401693
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1401693
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1405700
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45b9918]
push ebx
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1405737
push eax
call fcn.01404120
add esp, 4
cmp eax, ebx
jne 0x1405737
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x45b9918]
call fcn.01404150
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45b991c]
test eax, eax
je 0x1405766
push eax
call fcn.01404120
add esp, 4
cmp eax, ebx
jne 0x1405766
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x45b991c]
call fcn.01404150
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
call dword [0x44471b0]
test eax, eax
je 0x14057e7
movzx esi, word [eax + 0x14]
xor ecx, ecx
movzx edi, word [eax + 6]
add esi, 0x18
add esi, eax
xor eax, eax
mov dword [ebp - 4], esi
cmp ax, di
jae 0x14057e7
nop dword [eax]
mov ebx, dword [ebp + 0xc]
movzx edx, cx
lea eax, [edx + edx*4]
lea esi, [esi + eax*8]
mov eax, dword [esi]
cmp eax, dword [ebx]
mov ebx, dword [ebp + 8]
jne 0x14057b0
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
je 0x14057bb
inc ecx
cmp cx, di
jae 0x14057e7
mov esi, dword [ebp - 4]
jmp 0x1405790
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test esi, esi
je 0x14057d7
lea eax, [edx + edx*4]
mov ecx, dword [edi + eax*8 + 0x10]
mov eax, dword [edi + eax*8 + 8]
cmp ecx, eax
cmovbe ecx, eax
mov dword [esi], ecx
lea eax, [edx + edx*4]
mov eax, dword [edi + eax*8 + 0xc]
pop edi
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1407a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1445ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], 0x4447b70
call fcn.01422f32
mov esi, eax
add esp, 4
test esi, esi
je 0x1407adf
push 1
mov dword [ebp - 4], 0
call fcn.0142409a
add esp, 4
mov dword [esi + 4], eax
jmp 0x1407ae1
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1407d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1445b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.01423d1d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1407dab
push eax
push esi
call fcn.0142419a
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.01423ee9
int3
Function at 0x1431c9d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x4447048]
test eax, eax
je 0x1431cdc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1431cdc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1431cdc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1431cdc
cmp dword [ecx + 0x74], 0xe
jbe 0x1431cdc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x4027a8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x4027cb
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x4027dc
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x4027eb
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x4027f8
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00408b34
test eax, eax
je 0x402825
test esi, esi
je 0x402825
cmp word [esi], 0
je 0x402825
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40283c
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x402855
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x402855
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x4028c3
mov dword [ebx + 4], edi
test esi, esi
je 0x40288a
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.004085f8
jmp 0x402893
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x4028aa
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.0041f9d4
add esp, 8
jmp 0x4028b9
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.004083d8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004029d8
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8