joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57f8d4
Capabilities:
Terminate process

Disassembly:
jmp 0x59b900
mov eax, dword [esp + 4]
push eax
call fcn.0057a587
push 0x879e5c
call fcn.0057a587
add esp, 8
call fcn.0057cd82
cmp dword [0x906348], 1
jne 0x59b967
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x906348], 0
mov esi, 0x8fe34c
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x59b949
push eax
call edi
mov dword [esi], 0
add esi, 8
cmp esi, 0x90634c
jl 0x59b940
push 0x906350
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x57f9e7
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x7a9f70
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x7a9fd9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x7a9f9b
test byte [eax + 0x230], 1
jne 0x7a9fb8
movzx si, byte [edx]
cmp si, cx
jbe 0x7a9fb8
push str.Invalid_background_palette_index
push eax
call fcn.0057de08
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.0057be3c
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x7aa051
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.0057ea5b
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.0057ea5b
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.0057ea5b
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x7aa04a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x7aa04a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.0057de08
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x7a9fc0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x7aa084
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.0057de08
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0057ea5b
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.0057be3c
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x57fb59
Capabilities:
Delete file

Disassembly:
jmp 0x619dc0
push ebx
xor ebx, ebx
cmp dword [0xb323b4], ebx
jne 0x619dd0
or eax, 0xffffffff
pop ebx
ret
mov ecx, dword [esp + 8]
test ecx, ecx
push esi
js 0x619e83
mov eax, ecx
and eax, 0x78000000
cmp eax, 0x40000000
jne 0x619e83
mov eax, ecx
and eax, 0xffff
cmp eax, 0x100
jge 0x619e83
mov esi, dword [eax*4 + 0xb31e58]
cmp esi, ebx
je 0x619e83
mov edx, dword [esi]
shl edx, 0x10
and ecx, 0x7ff0000
cmp edx, ecx
jne 0x619e83
mov eax, dword [0xb32408]
sub eax, ebx
mov dword [0xb32374], ebx
je 0x619e48
sub eax, 1
jne 0x619e5e
mov eax, dword [0xb323ac]
mov edx, dword [esi + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push edx
push eax
mov eax, dword [ecx + 0xb8]
call eax
jmp 0x619e5e
push edi
call fcn.0057cdb9
mov edi, 5
call fcn.0057b270
sub edi, 1
jne 0x619e53
pop edi
cmp dword [0xb32380], 1
jne 0x619e78
push 0xb3226c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0xb32380], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
xor eax, eax
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x58e760
Capabilities:
Delete file

Disassembly:
sub esp, 0x98
cmp dword [0x8f3074], 1
je 0x58e915
cmp dword [0x8f26bc], 1
je 0x58e915
cmp dword [0x8f3078], 1
push esi
jne 0x58e8bb
lea eax, [esp + 4]
push eax
call fcn.0057ca85
add esp, 4
push 0x87a1cc
push 0x8f307c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0057d011
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push 0x87a1c8
push 0x8f307c
call esi
mov edx, dword [esp + 8]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0057d011
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push 0x87a1c8
push 0x8f307c
call esi
mov edx, dword [esp + 0xc]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0057d011
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push 0x87a1c8
push 0x8f307c
call esi
mov edx, dword [esp + 0x10]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0057d011
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push 0x87a1c8
push 0x8f307c
call esi
mov edx, dword [esp + 0x14]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0057d011
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push 0x87a1c8
push 0x8f307c
call esi
push 0xa
lea ecx, [esp + 0x20]
push ecx
mov edx, dword [esp + 0x20]
push edx
call fcn.0057d011
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x8f307c
call esi
push str..txt
push 0x8f307c
call esi
jmp 0x58e8cb
push str.Log.txt
push 0x8f307c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x8f307c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push 0x8f307c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
je 0x58e8fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x8f28f4], esi
mov dword [0x8f28f8], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x8fd174], eax
pop esi
xor eax, eax
add esp, 0x98
ret
Function at 0x594500
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
cmp dword [0x8ec8ac], 0
mov dword [esp], 0
jne 0x59451a
or eax, 0xffffffff
add esp, 8
ret
test ecx, ecx
push ebx
js 0x594753
mov eax, ecx
and eax, 0x78000000
cmp eax, 0x30000000
jne 0x594753
mov eax, ecx
and eax, 0xffff
cmp eax, 0x2001
jge 0x594753
mov ebx, dword [eax*4 + 0x8e4880]
test ebx, ebx
je 0x594753
mov edx, dword [ebx + 0x24]
shl edx, 0x10
and ecx, 0x7ff0000
cmp edx, ecx
jne 0x594753
cmp dword [ebx], 0
jne 0x594753
push esi
mov esi, 1
cmp dword [0x90d994], esi
jne 0x59458a
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push 0
mov dword [0x90d994], esi
call fcn.0057f66d
add esp, 4
cmp dword [ebx + 4], 0
jne 0x5945c9
push 0x87a5a0
call fcn.0057a587
add esp, 4
mov dword [esp + 8], 0xffffffff
mov eax, dword [esp + 8]
pop esi
mov dword [0x90d994], 0
pop ebx
add esp, 8
ret
cmp dword [ebx + 8], esi
jne 0x5945f7
push 0x87a550
call fcn.0057a587
add esp, 4
mov dword [esp + 8], 0xffffffff
mov eax, dword [esp + 8]
pop esi
mov dword [0x90d994], 0
pop ebx
add esp, 8
ret
cmp dword [ebx + 0x1c], esi
jne 0x59473f
push ebp
lea ebp, [ebx + 0x2c]
push edi
cmp dword [ebp], 0
jne 0x59465c
mov eax, dword [ebx + 0x28]
push 2
push 4
push ebp
push eax
call fcn.0057b58b
test eax, eax
jl 0x59473d
cmp eax, 4
jl 0x59473d
mov ecx, dword [ebx + 0x28]
push 0
push 4
push ebp
push ecx
call fcn.0057b58b
cmp eax, 4
jl 0x59473d
mov eax, dword [ebp]
push eax
lea edx, [ebx + 0x30]
push edx
mov dword [ebx + 0x44], eax
call fcn.0057c2ce
add esp, 8
test eax, eax
jl 0x594721
lea edi, [ebx + 0x30]
push edi
call fcn.0057b180
mov edx, dword [ebp]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
add esp, 4
lea esi, [eax + edx]
cmp esi, ecx
push 0
jle 0x5946dc
mov edx, dword [ebx + 0x28]
sub ecx, eax
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
push edx
call fcn.0057b58b
mov esi, eax
test esi, esi
jl 0x59473d
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
sub ecx, eax
cmp esi, ecx
jge 0x5946a8
add eax, esi
mov dword [edi + 8], eax
jmp 0x5946f4
mov edx, dword [ebp]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x28]
push 0
sub edx, esi
push edx
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.0057b58b
mov esi, eax
test esi, esi
jge 0x5946d3
mov esi, dword [esp + 0x14]
mov dword [edi + 8], 0
jmp 0x5946f4
mov dword [edi + 8], esi
add esi, dword [esp + 0x14]
jmp 0x5946f4
push edx
mov edx, dword [edi]
add edx, eax
mov eax, dword [ebx + 0x28]
push edx
push eax
call fcn.0057b58b
mov esi, eax
test esi, esi
jl 0x59473d
add dword [edi + 8], esi
add dword [edi + 0xc], esi
sub dword [ebp], esi
jne 0x594702
mov ecx, dword [ebx + 0x44]
add dword [ebx + 0x48], ecx
push 0
call fcn.0057f66d
add esp, 4
test eax, eax
jne 0x59473d
test esi, esi
jle 0x59473d
cmp dword [ebp], eax
jne 0x59473d
lea esi, [eax + 1]
jmp 0x594605
mov edx, dword [ebp]
push edx
push 0x87a4e8
call fcn.0057a2e9
add esp, 8
mov dword [ebx + 8], esi
mov dword [esp + 0x10], 0xffffffff
pop edi
pop ebp
mov eax, dword [esp + 8]
pop esi
mov dword [0x90d994], 0
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x5d8c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, 0xd5555555
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
lea eax, [eax + eax*2]
push esi
lea ecx, [ecx + eax*4]
push edi
mov dword [ebp + 8], ecx
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, 0xc
jb 0x5d8c85
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x5d8c5e
mov edx, dword [ebp - 4]
mov bl, byte [esi + eax]
xor byte [edi], bl
inc eax
inc edi
dec edx
cmp eax, 0xc
jb 0x5d8c44
xor ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
cmp edx, 0xc
jb 0x5d8c85
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [ebp - 4], edx
mov ecx, eax
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
xor dword [edi], eax
xor dword [edi + 4], ebx
xor dword [edi + 8], edx
add edi, 0xc
dec ecx
jne 0x5d8c77
mov edx, dword [ebp - 4]
cmp edx, 0
je 0x5d8ca1
mov eax, dword [ebp + 8]
mov bl, byte [esi + eax]
xor byte [edi], bl
inc eax
cmp eax, 0xc
jne 0x5d8c9d
xor eax, eax
inc edi
dec edx
jne 0x5d8c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x686970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x10], ebp
jne 0x6869cf
push ebp
lea eax, [esp + 0x18]
push 0x10000
push eax
push ebx
call fcn.00686c20
add esp, 0x10
cmp eax, 0xffffff80
jne 0x6869b4
cmp edx, 0xffffffff
jne 0x6869b4
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
add esp, 0x34
ret
cmp edx, ebp
jg 0x6869cb
jl 0x6869be
cmp eax, ebp
jae 0x6869cb
pop edi
pop esi
pop ebp
mov eax, 0xffffff7c
pop ebx
add esp, 0x34
ret
lea edi, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0057c67f
mov edx, dword [esp + 0x54]
push edx
call fcn.0057a406
add esp, 8
push edi
call fcn.0057c3f5
add esp, 4
test eax, eax
je 0x686a5f
push edi
lea esi, [ebx + 0x78]
call fcn.0057b027
push eax
push esi
call fcn.0057f8cf
push edi
push esi
call fcn.0057f06e
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0057fe1a
add esp, 0x1c
test eax, eax
jle 0x686a2d
lea ecx, [esp + 0x24]
push ecx
call fcn.0057e2c2
add esp, 4
test eax, eax
jne 0x686a8c
push ebp
push 0x10000
push edi
push ebx
call fcn.00686c20
add esp, 0x10
cmp eax, 0xffffff80
jne 0x686a4b
cmp edx, 0xffffffff
je 0x6869a7
cmp edx, ebp
jl 0x6869be
jg 0x6869e6
cmp eax, ebp
jb 0x6869be
jmp 0x6869e6
mov esi, 0xffffff7c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0057c620
mov edx, dword [esp + 0x54]
push edx
call fcn.0057d638
add esp, 8
mov eax, esi
mov dword [ebx + 0x58], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x686a9c
mov edx, dword [ebx + 0x1c8]
mov dword [eax], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
mov dword [ebx + 0x58], 3
push eax
push ecx
push edx
call fcn.0057a6fe
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x686a64
cmp ebp, 2
jge 0x686b7d
lea eax, [esp + 0x24]
push eax
lea eax, [ebx + 0x78]
push eax
call fcn.0057fe1a
add esp, 8
test eax, eax
je 0x686b10
cmp eax, 0xffffffff
je 0x686b73
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0057a6fe
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x686a64
inc ebp
cmp ebp, 2
jge 0x686b7d
jmp 0x686ac9
cmp ebp, 2
jge 0x686b7d
push 0
push 0x10000
push edi
push ebx
call fcn.00686c20
add esp, 0x10
test edx, edx
jl 0x686b73
jg 0x686b30
test eax, eax
jb 0x686b73
push edi
call fcn.0057b027
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
push edi
je 0x686b62
call fcn.0057c3f5
add esp, 4
test eax, eax
je 0x686b15
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x686b73
mov dword [esp + 0x10], 1
jmp 0x686b15
lea eax, [ebx + 0x78]
push eax
call fcn.0057f06e
add esp, 8
jmp 0x686ac0
mov esi, 0xffffff7b
jmp 0x686a64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
Function at 0x7b3330
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x7b33ea
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x7b33ea
cmp byte [eax + 1], 0x64
jne 0x7b33ea
cmp byte [eax + 2], 0x6f
jne 0x7b33ea
cmp byte [eax + 3], 0x62
jne 0x7b33ea
cmp byte [eax + 4], 0x65
jne 0x7b33ea
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4e
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x50
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x805090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
add eax, edx
lea ecx, [esp + 0x18]
mov esi, 0xa
mov ebx, dword [esp + 0x50]
xor edx, edx
mov dl, byte [eax]
add eax, ebx
mov dword [ecx], edx
add ecx, 4
dec esi
jne 0x8050c6
xor edi, edi
xor esi, esi
lea ecx, [esp + 0x18]
mov ebx, 4
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
sub eax, edx
add ecx, 4
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0x14]
add esi, eax
mov eax, dword [ecx + 0x10]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add edi, eax
dec ebx
jne 0x8050e5
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cmp esi, 0xff
lea edx, [esi - 0xff]
setl cl
neg ecx
and ecx, edx
mov edx, dword [eax]
add ecx, 0xff
add edx, ecx
xor ecx, ecx
cmp edi, 0xff
mov dword [eax], edx
mov eax, dword [esp + 0x60]
lea edx, [edi - 0xff]
setl cl
neg ecx
and ecx, edx
mov edx, dword [eax]
add ecx, 0xff
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x58]
cmp esi, eax
jge 0x805253
cmp edi, eax
jge 0x805253
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jge 0x805253
mov edx, esi
sub edx, edi
cmp edx, eax
jge 0x805253
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], 4
lea ecx, [eax + edx]
lea ecx, [ecx + eax*2]
lea ebx, [ecx + ebp*2 + 4]
mov ecx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x44]
add ebx, esi
sar ebx, 3
mov byte [ecx], bl
mov ebx, dword [esp + 0x48]
add ecx, ebx
mov ebx, dword [esp + 0x20]
add ebx, eax
lea eax, [esp + 0x28]
lea edx, [edx + ebx*2 + 4]
add edx, ebp
mov ebp, dword [esp + 0x48]
add edx, esi
add edx, edi
sar edx, 3
mov byte [ecx], dl
add ecx, ebp
mov edx, dword [eax - 4]
mov ebx, dword [eax - 0x10]
add eax, 4
lea edx, [ebx + edx*2 + 4]
mov ebx, dword [eax - 0x10]
add edx, ebx
mov ebx, dword [eax - 0xc]
add edx, ebx
mov ebx, dword [eax + 4]
add edx, ebx
mov ebx, dword [eax - 4]
add edx, ebx
mov ebx, dword [eax]
add edx, ebx
sar edx, 3
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
add ecx, ebp
dec edx
mov dword [esp + 0x14], edx
jne 0x8051de
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
add edx, eax
lea ebx, [ebx + edx*2 + 4]
mov edx, dword [esp + 0x30]
add ebx, edx
add ebx, esi
mov esi, dword [esp + 0x34]
add esi, eax
add ebx, edi
sar ebx, 3
lea eax, [esi + eax*2]
mov esi, dword [esp + 0x38]
mov byte [ecx], bl
lea eax, [eax + esi*2 + 4]
add eax, edx
add eax, edi
sar eax, 3
mov byte [ecx + ebp], al
jmp 0x805270
lea eax, [esp + 0x1c]
mov esi, 8
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
add eax, 4
mov byte [ecx], dl
add ecx, ebp
dec esi
mov dword [esp + 0x14], ecx
jne 0x80525c
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
inc esi
inc eax
cmp eax, 8
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], eax
jl 0x8050ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x805330
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
lea ebp, [eax - 1]
mov dword [esp + 0x10], 8
xor eax, eax
lea ecx, [esp + 0x14]
xor edx, edx
add ecx, 4
mov dl, byte [eax + ebp]
inc eax
mov dword [ecx - 4], edx
cmp eax, 0xa
jl 0x80534c
xor edi, edi
xor esi, esi
lea ecx, [esp + 0x14]
mov ebx, 4
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
sub eax, edx
add ecx, 4
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0x14]
add esi, eax
mov eax, dword [ecx + 0x10]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add edi, eax
dec ebx
jne 0x80536a
mov eax, dword [esp + 0x50]
xor ecx, ecx
cmp esi, 0xff
lea edx, [esi - 0xff]
setl cl
neg ecx
and ecx, edx
mov edx, dword [eax]
add ecx, 0xff
add edx, ecx
xor ecx, ecx
cmp edi, 0xff
mov dword [eax], edx
setl cl
neg ecx
lea edx, [edi - 0xff]
and ecx, edx
mov edx, dword [eax + 4]
add ecx, 0xff
add edx, ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x4c]
cmp esi, eax
jge 0x8054c8
cmp edi, eax
jge 0x8054c8
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jge 0x8054c8
mov edx, esi
sub edx, edi
cmp edx, eax
jge 0x8054c8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], 4
lea edx, [eax + ecx]
lea edx, [edx + eax*2]
lea ebx, [edx + ebx*2 + 4]
mov edx, dword [esp + 0x1c]
add ebx, edx
add edx, eax
add ebx, esi
lea eax, [ecx + edx*2 + 4]
mov ecx, dword [esp + 0x18]
add eax, ecx
lea ecx, [ebp + 3]
add eax, esi
add eax, edi
sar ebx, 3
sar eax, 3
mov byte [ebp + 1], bl
mov byte [ebp + 2], al
lea eax, [esp + 0x24]
mov edx, dword [eax - 4]
mov ebx, dword [eax - 0x10]
add eax, 4
lea edx, [ebx + edx*2 + 4]
mov ebx, dword [eax - 0x10]
add edx, ebx
mov ebx, dword [eax - 0xc]
add edx, ebx
mov ebx, dword [eax + 4]
add edx, ebx
mov ebx, dword [eax - 4]
add edx, ebx
mov ebx, dword [eax]
add edx, ebx
sar edx, 3
mov byte [ecx], dl
mov edx, dword [esp + 0x40]
inc ecx
dec edx
mov dword [esp + 0x40], edx
jne 0x805456
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add edx, eax
lea ebx, [ebx + edx*2 + 4]
mov edx, dword [esp + 0x2c]
add ebx, edx
add ebx, esi
mov esi, dword [esp + 0x30]
add esi, eax
add ebx, edi
sar ebx, 3
lea eax, [esi + eax*2]
mov esi, dword [esp + 0x34]
mov byte [ecx], bl
lea eax, [eax + esi*2 + 4]
add eax, edx
add eax, edi
sar eax, 3
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
add ebp, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x805346
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x8566879
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x42ae30], eax
sub eax, eax
je 0x4068c1
call 0xa8cf50d8
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

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

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005e64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005e6d
ret
jmp 0x1005e72
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005e96
call eax
cmp dword [0x101b0d0], 0
je 0x1005edd
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005e64
add ebp, 0x2a8
leave
ret

Function at 0x10070fe
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007139
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007116
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007155
dec esi
je 0x100714e
dec esi
jne 0x100715a
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx