joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56f7a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
push ebp
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x1c], xmm0
test ebp, ebp
je 0x56f858
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push dword [ecx]
call fcn.0045af70
add esp, 0x14
neg eax
sbb eax, eax
inc dword [esp + 0x1c]
inc eax
or edi, eax
mov eax, 0x10
mov dword [esp + 0x10], edi
mov edi, ebp
sub edi, ebx
cmp edi, 0x10
cmova edi, eax
xor edx, edx
test edi, edi
je 0x56f849
lea eax, [esi + ebx]
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x14]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [esp + edx + 0x2c]
inc edx
mov byte [eax - 1], cl
cmp edx, edi
jb 0x56f833
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add ebx, 0x10
mov ecx, dword [esp + 0x18]
cmp ebx, ebp
jb 0x56f7e1
mov ecx, dword [esp + 0x3c]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0057ffc6
add esp, 0x30
ret

Function at 0x56fe10
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x56fe22
xor eax, eax
pop edi
ret
push esi
push dword [edi]
call fcn.0045cf40
mov esi, eax
add esp, 4
test esi, esi
jns 0x56fe38
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56fe42
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x56fedc
mov ecx, dword [edi + 0x84]
push ebx
cmp ecx, esi
jne 0x56fe7b
test esi, esi
jle 0x56feba
mov edx, ebp
lea ecx, [edi + 4]
mov ebx, esi
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x56fe65
jmp 0x56feba
mov eax, esi
mov byte [ecx + edi + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x56fe9b
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.00599040
add esp, 0xc
test esi, esi
jle 0x56feba
mov edx, ebp
lea ecx, [edi + 0x24]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x56fea6
push esi
push ebp
push ebp
push dword [edi]
call fcn.0045d860
add esp, 0x10
pop ebx
test eax, eax
jg 0x56fedc
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
mov eax, 1
pop edi
ret
Function at 0x577d40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00580860
mov edx, dword [esp + 0x2c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp edx, 1
push esi
setne al
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x577d79
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
cmp edx, 1
je 0x577e4e
mov ebp, dword [esp + 0x30]
dec ebp
add ebp, esi
cmp dword [esp + 0x44], 0
mov cl, byte [ebp]
movzx edx, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], edx
je 0x577db3
sub esi, edx
mov eax, 1
sub esi, edi
pop ebp
dec esi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
add esp, 0x14
ret
lea ecx, [edx + eax]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x577e25
mov esi, edx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x13]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x577de5
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
not ebx
movzx eax, bl
mov ebx, dword [esp + 0x28]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
mov edx, dword [esp + 0x3c]
neg ecx
and eax, ecx
sub esi, eax
mov dword [ebx], esi
push dword [esp + 0x48]
push ecx
push edi
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.005779f0
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x57d2f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x57d32f
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x34
ret
movups xmm0, xmmword [edi + 0x10]
push ebx
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push esi
lea esi, [edi + 0x10]
mov dword [esp + 0x10], ebx
dec eax
movups xmmword [esp + 0x30], xmm0
and byte [esp + 0x3c], 0x7f
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x48], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.0045a560
add esp, 0x18
test eax, eax
je 0x57d412
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.0045af70
add esp, 0x14
test eax, eax
je 0x57d412
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0057d8c0
add esp, 0x10
test eax, eax
je 0x57d412
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x57d3e3
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x57d3e3
mov eax, ecx
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x57d3d0
jmp 0x57d3f4
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x57d427
push ebx
push ebp
call fcn.00401320
add esp, 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
mov eax, ebx
pop esi
pop ebx
mov dword [edi + 0x2c], 0
pop edi
pop ebp
xor ecx, esp
call fcn.0057ffc6
add esp, 0x34
ret

Function at 0x5831fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x59b227
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x63a6f0
push 0x63a6e8
push str.FlsAlloc
push 0
call fcn.0059b1a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59b259
push dword [ebp + 8]
mov ecx, esi
call fcn.005810f5
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x59b29b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x63a700
push 0x63a6f8
push str.FlsGetValue
push 2
call fcn.0059b1a7
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x59b2cc
mov ecx, esi
call fcn.005810f5
call esi
jmp 0x59b2d2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x59b2d5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x63a708
push 0x63a700
push str.FlsSetValue
push 3
call fcn.0059b1a7
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x59b309
mov ecx, esi
call fcn.005810f5
call esi
jmp 0x59b30f
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x5ad748
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ad5c5
Function at 0x5b6607
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b62a1
Function at 0x10001010
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10001020
xor ecx, ecx
lea ecx, [ecx]
mov eax, ecx
cdq
idiv ebp
movzx eax, byte [edx + ebx]
movzx edx, byte [ecx + esi]
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x10001053
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx + esi]
mov dl, byte [edi + esi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, 0x100
mov byte [edi + esi], al
jl 0x10001030
pop edi
pop ebp
ret

Function at 0x10001300
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
sub esp, 0x70
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push 0x10009280
push esi
call fcn.10001430
add esp, 8
test eax, eax
je 0x100013ec
push 0x10009280
push esi
call fcn.10001430
add esp, 8
test eax, eax
je 0x100013dc
add eax, 2
push 0x63
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100014c0
lea eax, [esp + 0x18]
add esp, 0xc
mov byte [esp + 0x6f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001362
sub eax, edx
push eax
lea ecx, [esp + 0x10]
call fcn.100012b0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1000138e
xor esi, esi
jmp 0x100013a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000138a
mov esi, dword [ecx + 0x28]
add esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 8]
push edx
push 4
push 0x1530
push esi
call edi
push 0x1530
push 0x1000ac50
push esi
call fcn.100056e0
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ecx
push 0x1530
push esi
call edi
pop edi
mov ecx, dword [esp + 0x70]
pop esi
xor ecx, esp
call fcn.10001416
add esp, 0x70
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10001416
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001420
repz ret
jmp fcn.10001832
Function at 0x10006ae8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10001a80
and dword [ebp - 4], 0
cmp dword [0x1000cb08], 0
mov ebx, eax
jne 0x10006b99
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10006c4a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10006c4a
push eax
call fcn.10001a0e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000cb08], eax
call esi
push eax
call fcn.10001a0e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000cb0c], eax
call esi
push eax
call fcn.10001a0e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000cb10], eax
call esi
push eax
call fcn.10001a0e
pop ecx
mov dword [0x1000cb18], eax
test eax, eax
je 0x10006b99
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001a0e
pop ecx
mov dword [0x1000cb14], eax
mov eax, dword [0x1000cb14]
cmp eax, ebx
je 0x10006bf1
cmp dword [0x1000cb18], ebx
je 0x10006bf1
push eax
call fcn.10001a89
push dword [0x1000cb18]
mov esi, eax
call fcn.10001a89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006bf1
test edi, edi
je 0x10006bf1
call esi
test eax, eax
je 0x10006be8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006be8
test byte [ebp - 0xc], 1
jne 0x10006bf1
or dword [ebp + 0x10], 0x200000
jmp 0x10006c2a
mov eax, dword [0x1000cb0c]
cmp eax, ebx
je 0x10006c2a
push eax
call fcn.10001a89
pop ecx
test eax, eax
je 0x10006c2a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10006c2a
mov eax, dword [0x1000cb10]
cmp eax, ebx
je 0x10006c2a
push eax
call fcn.10001a89
pop ecx
test eax, eax
je 0x10006c2a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000cb08]
call fcn.10001a89
pop ecx
test eax, eax
je 0x10006c4a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10006c4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4119d8
Capabilities:
Encode data using xor

Disassembly:
ror cl, cl
xchg edx, eax
fnsave dword [edx]
mov esi, 0x2eeca8ee
sti
shl cl, 1
test al, 0x6b
int3
mov edi, 0x1da173da
dec ecx
scasb al, byte es:[edi]
loopne 0x4119a8
mov dl, bh
mov ebp, esi
push esi
cmp dh, byte gs:[0x4d2c981d]
push es
loop 0x411a5d
lodsd eax, dword [esi]
lodsd eax, dword [esi]
leave
jmp 0xf0fc2d95
xchg esi, eax
clc
xor bh, bh
cmp dword [edi], edi
sbb bl, byte [ecx + 0x77]
jg 0x411ac9
sbb eax, 0x6a8456fc
cmpsd dword [esi], dword es:[edi]
sal esi, 1
mov ebp, 0xc984fff2
rol byte [edi + 0x51], 1
adc eax, 0xb020a6d
retf 0x47d2
or byte [ecx], 0x6b
push 0x5f
adc dl, byte [edx - 0x7c]
xchg edi, eax
mov al, 0xc1
add byte [edi + esi*2], dh
invalid
dec edx
sti
bound eax, qword [edi]
pop es
xchg esp, eax
push ebp
mov ch, 0x3a
jo 0x411aac
jae 0x411acd
and eax, 0xf1cec245
mov esp, 0x3bddfcb1
test byte [ecx - 0x1930902a], ch
cmp eax, dword [ecx + ebp*4 - 0x1930902a]
xor al, ah
cwde
sub edi, ecx
dec esp
test eax, 0x2ff604b9
adc bl, dh
pop edx
mov dh, 0x62
test ch, bh
mov dword [0xe237ed23], eax
xchg esi, eax
in al, 0xb8
cmp eax, 0x8d31bea6
pop dword [esi]
sbb eax, 0x1f733082
cdq
out dx, eax
ja 0x411adf
test dword [esi + ecx], ecx
or eax, 0x5dd02df1
and al, 0xeb
iretd
Function at 0x17bd058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x17bd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17bd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17bd06a
add dl, dl
jne 0x17bd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17bd0dc
xor eax, eax
add dl, dl
jne 0x17bd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17bd17d
add dl, dl
jne 0x17bd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17bd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17bd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17bd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17bd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17bd075
mov eax, 1
add dl, dl
jne 0x17bd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17bd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17bd0e1
sub eax, ebx
mov ebx, 1
jne 0x17bd128
mov ecx, 1
add dl, dl
jne 0x17bd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17bd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17bd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17bd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17bd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17bd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17bd136
cmp eax, 0x7d00
jae 0x17bd16d
cmp eax, 0x500
jb 0x17bd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17bd075
cmp eax, 0x7f
ja 0x17bd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17bd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17bd19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17bd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x21e0ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x1ee5015
lea edi, [esi - 0x1ae4015]
push edi
jmp 0x21e0efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x21e0f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x21e0ef0
mov eax, 1
add ebx, ebx
jne 0x21e0f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x21e0f24
jne 0x21e0f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x21e0f43
dec eax
add ebx, ebx
jne 0x21e0f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x21e0f08
add ebx, ebx
jne 0x21e0f3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x21e0f95
xor ecx, ecx
sub eax, 3
jb 0x21e0f5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x21e0fca
sar eax, 1
mov ebp, eax
jmp 0x21e0f66
add ebx, ebx
jne 0x21e0f66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x21e0f34
inc ecx
add ebx, ebx
jne 0x21e0f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x21e0f34
add ebx, ebx
jne 0x21e0f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x21e0f76
jne 0x21e0f92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x21e0f76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x21e0fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x21e0fa6
jmp 0x21e0ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x21e0fb4
add edi, ecx
jmp 0x21e0ef6
pop esi
mov edi, esi
mov ecx, 0x3b88c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x21e0fd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x21e0fd7
lea edi, [esi + 0x1dde000]
mov eax, dword [edi]
or eax, eax
je 0x21e1048
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1de1c5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1de1c98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x21e0ffd
mov ecx, edi
jns 0x21e102c
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 + 0x1de1ca0]
or eax, eax
je 0x21e1042
mov dword [ebx], eax
add ebx, 4
jmp 0x21e101a
call dword [esi + 0x1de1c9c]
mov ebp, dword [esi + 0x1de1ca4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x21e107c
sub esp, 0xffffff80
jmp 0x46013c
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4d2e4a88
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x5280022f
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406302
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x406339
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406313
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x40630e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x40634c
pop edi
not eax
pop esi
ret 0xc

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