joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100023f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b298
push 0x100044a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1001d040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
jne 0x10002432
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1000244d
push 0xc1
jmp 0x10002541
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x10002467
push 0xbf
jmp 0x10002541
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x1000253c
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x28], edx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x1000253c
lea edi, [esi + esi*4]
mov ecx, str..detour
lea eax, [edx + edi*8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100024c0
test dl, dl
je 0x100024bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100024c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100024a0
xor eax, eax
jmp 0x100024c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000251a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + edi*8 + 0x24]
test eax, eax
je 0x1000253c
cmp dword [ecx + edi*8 + 0x28], 0
je 0x1000253c
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x1000253c
cmp dword [esi + 4], 0x727444
jne 0x1000253c
cmp dword [esi + 8], 0
jne 0x100024f7
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x10002484
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000903d
Capabilities:
Parse pe header

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

Function at 0x1000b69f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c60
push 0x10016c58
push str.FlsAlloc
push 0x1f
call fcn.1000b5bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b6d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001516c]
call esi
jmp 0x1000b6d9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b71d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c70
push 0x10016c68
push str.FlsGetValue
push 0x21
call fcn.1000b5bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b754
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001516c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b75c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c78
push 0x10016c70
push str.FlsSetValue
push 0x22
call fcn.1000b5bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b796
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001516c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d3d8
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 0x1000d475
push ebx
push esi
call fcn.1000d3a1
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.1000d335
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d422
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d474
push edi
push eax
call fcn.10009d8c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d442
call fcn.10009d52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d473
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d335
add esp, 0x20
test eax, eax
jne 0x1000d461
push edi
call fcn.10009d52
jmp 0x1000d469
push ebx
call fcn.10009d52
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 0x10014470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001449d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001449d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x406785
Capabilities:
Parse pe header

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

Function at 0x412a22
Capabilities:
Read file on windows

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

Function at 0x41d130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d15d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d15d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401c8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401c84
test esi, esi
je 0x401c84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c60
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401f98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401efe
cmp eax, 4
jne 0x401f20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f0e
cmp edx, 4
je 0x401f0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e70
Function at 0x10058310
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100584fd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
or ebp, 0xffffffff
jmp 0x1005833a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10058341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10058330
mov eax, 1
add ebx, ebx
jne 0x10058353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10058364
jne 0x10058383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10058383
dec eax
add ebx, ebx
jne 0x10058370
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10058348
add ebx, ebx
jne 0x1005837f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100583d5
xor ecx, ecx
sub eax, 3
jb 0x1005839b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1005840a
sar eax, 1
mov ebp, eax
jmp 0x100583a6
add ebx, ebx
jne 0x100583a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10058374
inc ecx
add ebx, ebx
jne 0x100583b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10058374
add ebx, ebx
jne 0x100583c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100583b6
jne 0x100583d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100583b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100583f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100583e6
jmp 0x10058336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100583f4
add edi, ecx
jmp 0x10058336
pop esi
mov edi, esi
mov ecx, 0x870
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10058412
cmp byte [edi], 0xa
jne 0x10058412
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 0x10058417
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x1005848f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x58f5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x58fe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10058444
mov ecx, edi
jns 0x10058473
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 + 0x58fec]
or eax, eax
je 0x10058489
mov dword [ebx], eax
add ebx, 4
jmp 0x10058461
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100584c0
cmp al, 0xef
ja 0x100584b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10058495
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100584a2
mov ebp, dword [esi + 0x58ff0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x100584f4
sub esp, 0xffffff80
jmp 0x10010630
Function at 0xa7c97a
Capabilities:
Encode data using xor

Disassembly:
not edi
mov dword [esp + edi*2 - 0x5d5b35a2], esi
jmp 0xa9112b
pushfd
lea esi, [edi*2 + 0x450a558f]
bt esi, edi
add edi, esi
mov esi, eax
mov edi, edx
cld
call fcn.00b72c37
aam 0x2e
imul edi, dword [edx], 0xbefd210c
xchg esp, eax
jle 0xa91162
invalid
pop esi
call 0x78d14160
push ebx
pop eax
retf 0x1fa

Function at 0xb61ced
Capabilities:
Encrypt data using speck

Disassembly:
lea esp, [esp + 0xc]
jmp fcn.00bd899a
jmp 0xa84de2
mov dword [esp], 0x7d0f9c38
shr byte [esp + 1], 0x82
adc esi, 1
xor dl, bl
neg dl
jmp 0xb678f3
not byte [esp + 3]
rol word [esp + 1], 0xef
not dl
jb 0xb9e810
mov ecx, 0x373f1e9e
not ecx
dec esp
lea eax, [ecx + ecx*8 - 0x21d9134d]
inc bp
mov ebp, dword [esi]
inc ecx
add cl, al
inc bp
mov eax, dword [esi + 2]
inc ecx
mov cl, byte [esi + 4]
push 0x9ba96214
push 0xf49b0b97
jae 0xbacd60
adc dl, 3
push 0x729322ad
xor bl, dl
push 0xb2ad1ab5
shl word [esp + 0xa], 7
dec dword [esp + 8]
sbb edi, 1
mov word [edi], dx
jmp 0xa901f3
jb 0xba9602
xor dl, 0x9c
shl byte [esp + 1], 0x41
jl 0xcac9b7
or dword [edi - 0x3c35140], esi
outsb dx, byte ds:[esi]
sbb eax, 0x6ccaacb3
and al, 0x32
mov dl, 0x79
das
cmp byte [edi + 0xb9f9fdf], bh
test byte [eax + 0x353d9b04], dl
shr byte [esi - 0x3da8f9ac], cl
or ebp, dword [eax - 0x56]
test eax, 0xa07e4e63
or ch, byte [ebx - 0x32]
dec edi
inc edx
lcall 0xb0c7, 0xe1908d3a
or eax, 0xd766255c
inc esi
ror byte [ecx + 0x66], 0x35
dec edx
invalid
jo 0xb8d40d

Function at 0xb6da6a
Capabilities:
Encrypt data using speck

Disassembly:
lea esp, [esp + 0x1c]
jae fcn.00b76861
invalid
push 0xc6ad84a6
jae 0xb927d8
jmp 0xbbaa6a
push 0x443cf084
mov word [esi], cx
lea esp, [esp + 0x14]
jmp fcn.00caa8c8
mov word [ecx], ax
jno 0xa9b5f1
not cx
jmp 0xb709ef

Function at 0xb9e139
Capabilities:
Encode data using xor

Disassembly:
rol word [esp + 0xb], 0x2f
dec ecx
adc esi, 2
push 0x6417e03d
dec eax
mov dword [esp + 8], 0x4fbcca10
inc cx
add ebx, eax
jmp 0xb9e134
call fcn.00a7c3da
lea esp, [esp + 0x18]
ja fcn.00b76861
invalid

Function at 0xbaaa33
Capabilities:
Encrypt data using speck

Disassembly:
jo 0xa8489b
and ecx, edx
call 0xbb9213
adc edi, 4
ror word [esp + 6], 1
jno 0xcb0c7c
push 0xad2ecb37
not ecx
not edx
mov dword [esp + 4], 0x1b9b2894
jb 0xb8c6a4

Function at 0xbaeb08
Capabilities:
Encrypt data using speck

Disassembly:
jae 0xb6fae0
push 0xad2c2c99
sar byte [esp + 7], 0xc2
inc ecx
dec ch
dec eax
sal dword [esp], 0xa4
xor word [esp + 5], 0xf99f
call fcn.00b58409
Function at 0xbb3e22
Capabilities:
Encode data using xor

Disassembly:
sbb dl, 0x99
xchg ch, cl
xor cl, 0x35
rol dl, 1
inc cl
btr ecx, ecx
sbb dl, 0xa
ror dl, 1
shr cx, 0xa9
or ecx, ecx
adc dl, 0x98
not cx
call fcn.00a8d5cc
push ebp
mov ebp, 0x8b82bd2e
pushfd
shr ebp, 0xad
bswap ebp
jbe 0xb72023
push 0x9a1af98c
mov dword [ebp], edx
lea esp, [esp + 8]
jmp fcn.00a7da00
push ebp
and word [esp], 0x8193
call fcn.00b88537
jmp 0xcb1080
pop ecx
mov cl, byte [edi + 8]
mov dword [esp], 0x6abd4137
not dword [esp]
add edi, 6
shr word [esp], 0x47
jbe 0xe1cfe1
mov ecx, 0x6a36f901
movzx edx, byte [ecx + esi - 0x6a36f901]
ror cx, cl
lea esi, [esi + ecx - 0x6a36fc7f]
jb 0xe1dd0c
call fcn.00bbb272
call fcn.00b5402f
cli
sbb dword [ebp + 0xcd085bc], ecx
mov ebp, 0xe530c7a2
invalid
Function at 0xbc95d9
Capabilities:
Encrypt data using speck

Disassembly:
call 0xb6f3a5
mov dword [ebp + 0xc], eax
jmp 0xba595b

Function at 0xe1ecfa
Capabilities:
Encode data using base64

Disassembly:
inc word [esp + 0xe]
push 0x2d17b48f
neg dl
rol dl, 1
dec dword [esp + 0xc]
neg word [esp + 8]
rol byte [esp + 0xe], 0x24
xor bl, dl
jmp 0xbad0fe
dec dl
jmp 0xbd342b

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401790
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402520
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402520
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40505c]
test esi, esi
jle 0x401910
mov eax, dword [0x405060]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401824
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401810
mov dword [esp], ebx
call fcn.00402170
mov edi, eax
test eax, eax
je 0x401937
mov eax, dword [0x405060]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022b0
mov edx, dword [0x405060]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401917
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4018a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4018b0
add dword [0x40505c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x405060]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401790
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40182e
mov eax, dword [0x405060]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401790
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401790
lea esi, [esi]
nop
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x201b435b
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x568973cf
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x408944
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
add esi, ebx
call fcn.00408965
sub ebx, 0xdd6e15bc
xor dword [edx], ecx
inc edx
inc esi
cmp edx, eax
jne fcn.00408944
add ebx, 0x6ecf6618
ret
Function at 0x4504d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x453190]
cmp byte [eax + 0xc], 0
je 0x45063d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450636
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x454c10], 0
jne 0x450524
push 0x450644
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x45064c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c10], eax
cmp dword [0x452d9c], 0
jne 0x45061f
push 0x45065c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x452d9c], eax
cmp dword [0x452d9c], 0
je 0x45061f
push 0x450668
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c14], eax
push 0x450678
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c18], eax
push 0x45068c
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c1c], eax
push 0x4506a4
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c20], eax
push 0x4506bc
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c24], eax
push 0x4506d0
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c28], eax
push 0x4506e8
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c2c], eax
push 0x450700
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c30], eax
push 0x45071c
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c34], eax
push 0x450728
mov eax, dword [0x452d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454c38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45063d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret