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

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

Function at 0x428560
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x6e86432b
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x7da26f73
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x438cb7
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
or esi, ebx
mov ebx, 0x908a7edd
call fcn.00438cf8
mov ebx, 0xb854fd67
xor dword [ecx], edx
add esi, 1
add ecx, 1
or ebx, ebx
inc ebx
cmp ecx, eax
jne fcn.00438cb7
dec ebx
add ebx, 0x611f8b0f
ret
Function at 0x406052
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, si
shr esi, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov bx, word [ebp + 8]
push edi
mov dword [ebp - 4], esi
mov di, si
mov dword [ebp - 8], 0x40
sub eax, 0x61c88647
movzx edx, ax
mov dword [ebp - 0xc], eax
mov ax, di
shr ax, 5
lea ecx, [edx + esi]
shl esi, 4
xor cx, ax
xor cx, si
add bx, cx
mov word [ebp + 8], bx
mov ax, bx
mov ecx, dword [ebp + 8]
add edx, ecx
shr ax, 5
xor dx, ax
shl ecx, 4
xor dx, cx
add di, dx
sub dword [ebp - 8], 1
mov word [ebp - 4], di
je 0x4060c9
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x40607a
mov al, byte [ebp + 8]
pop edi
pop esi
and al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406555
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x40656b
imul eax, eax, 0x21
inc edx
movzx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x406562
pop ebp
ret

Function at 0x406573
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x40658b
imul eax, eax, 0x21
lea edx, [edx + 2]
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x406580
pop ebp
ret

Function at 0x406f7f
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x20
push esi
call fcn.004071c7
pop ecx
pop ecx
test eax, eax
je 0x406fa4
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x406fbd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov eax, esi
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x406fcb
mov ecx, esi
mov dword [ebp - 4], esi
mov eax, ecx
mov bl, byte [ecx + edi]
xor edx, edx
movzx ecx, bl
div dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
add eax, esi
add ecx, eax
movzx esi, cl
mov ecx, dword [ebp - 4]
mov al, byte [esi + edi]
mov byte [ecx + edi], al
inc ecx
mov byte [esi + edi], bl
mov dword [ebp - 4], ecx
cmp ecx, 0x100
jb 0x406fdb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407015
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov eax, esi
test edi, edi
je 0x407081
push ebx
mov ebx, dword [ebp + 0x14]
sub dword [ebp + 0xc], ebx
mov edx, dword [ebp + 8]
inc eax
movzx ecx, al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ebx, dword [ebp + 0x10]
mov cl, byte [ecx + eax]
movzx eax, cl
add eax, esi
movzx esi, al
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
mov byte [ebx + edx], al
mov eax, edx
mov edx, ebx
mov ebx, dword [ebp + 0x14]
mov byte [esi + eax], cl
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 0xc]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
xor al, byte [edx + ebx]
mov byte [ebx], al
inc ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
sub edi, 1
jne 0x40702c
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x407118
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not ecx
test edx, edx
je 0x407152
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, byte [esi]
dec edx
push 8
xor ecx, eax
inc esi
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
not eax
inc eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x407136
test edx, edx
jne 0x40712c
pop edi
pop esi
not ecx
mov eax, ecx
pop ebp
ret

Function at 0x4072a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4072cb
push edi
mov edi, dword [ebp + 0xc]
mov edx, eax
sub edi, eax
mov cl, byte [edi + edx]
xor byte [edx], cl
inc edx
sub esi, 1
jne 0x4072bf
pop edi
pop esi
pop ebp
ret
Function at 0x4073e6
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
call fcn.004079b0
mov esi, eax
mov eax, 0x5a4d
pop ecx
cmp word [esi], ax
je 0x407406
xor eax, eax
jmp 0x407466
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
je 0x407418
xor eax, eax
jmp 0x407465
push ebx
mov ebx, dword [edi + 0x78]
add ebx, esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, esi
mov dword [ebp - 0x10], eax
add ecx, esi
xor eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], eax
jbe 0x407462
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x24]
add eax, esi
push eax
push dword [ebp + 0xc]
add ecx, esi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov eax, dword [ebp - 4]
je 0x40746b
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0x18]
jb 0x407438
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x4074b6
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x4074b6
lea eax, [ecx + esi]
push eax
call fcn.004079c5
mov edi, eax
push 0x2e
push edi
call fcn.00406899
lea ecx, [eax + 1]
mov byte [eax], 0
push ecx
push edi
call fcn.004073e6
push edi
mov esi, eax
call fcn.004051c1
add esp, 0x18
mov eax, esi
jmp 0x407464
lea eax, [ecx + esi]
jmp 0x407464
Function at 0x4076e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 0x4b5
push ebx
push esi
mov esi, dword [ebp + 8]
shl esi, 0x10
xor esi, dword [ebp + 8]
xor esi, 0x99cd8ecd
mov eax, esi
shr eax, 0x15
push edi
cmp eax, ecx
ja 0x40777b
je 0x407774
sub eax, 0x80
je 0x40776d
sub eax, 0x157
je 0x407766
sub eax, 0xf3
je 0x40775f
sub eax, 0x9f
je 0x407758
sub eax, 0xf8
je 0x40774e
sub eax, 1
je 0x407744
sub eax, 0x31
jne 0x4077ae
mov eax, 0x4078bb
jmp 0x4077db
mov eax, 0x407608
jmp 0x4077db
mov eax, 0x4075fc
jmp 0x4077db
mov eax, 0x4074fc
jmp 0x4077db
mov eax, 0x40755e
jmp 0x4077db
mov eax, 0x4075cb
jmp 0x4077db
mov eax, 0x40758f
jmp 0x4077db
mov eax, 0x40794e
jmp 0x4077db
sub eax, 0x519
je 0x4077d6
dec eax
sub eax, 1
je 0x4077cf
sub eax, 0xf4
je 0x4077c8
sub eax, 0x10
je 0x4077c1
sub eax, 0xcc
je 0x4077ba
sub eax, 0x91
je 0x4077b3
sub eax, 9
jne 0x4077ae
mov eax, 0x407639
jmp 0x4077db
mov eax, dword [ebp + 8]
jmp 0x4077db
mov eax, 0x40752d
jmp 0x4077db
mov eax, 0x40788a
jmp 0x4077db
mov eax, 0x40759b
jmp 0x4077db
mov eax, 0x4078ec
jmp 0x4077db
mov eax, 0x40797f
jmp 0x4077db
mov eax, 0x40791d
call eax
mov edi, eax
test edi, edi
je 0x407838
mov eax, dword [edi + 0x3c]
and esi, 0x1fffff
add eax, edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x78]
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 8], ecx
add edx, edi
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x407838
mov eax, dword [edx + ebx*4]
add eax, edi
push eax
call fcn.004074bb
and eax, 0x1fffff
pop ecx
cmp eax, esi
je 0x407841
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x40781a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edx + 0x78]
jb 0x407885
mov eax, dword [edx + 0x7c]
add eax, dword [edx + 0x78]
cmp ecx, eax
jae 0x407885
lea eax, [ecx + edi]
push eax
call fcn.004079c5
mov esi, eax
push 0x2e
push esi
call fcn.00406899
lea ecx, [eax + 1]
mov byte [eax], 0
push ecx
push esi
call fcn.004073e6
add esp, 0x14
jmp 0x40783a
lea eax, [ecx + edi]
jmp 0x40783a
Function at 0x408939
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push esi
push edi
lea eax, [ebp - 0x1b0]
push eax
push 0xe6
push 4
push 0x141
push 0x4128c0
call fcn.00406595
add esp, 0x14
xor esi, esi
xor eax, eax
mov word [ebp - 0xca], ax
lea eax, [ebp - 0x1b0]
push esi
push esi
push esi
push esi
push eax
call dword [0x4127f4]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x408b59
mov word [ebp - 0x30], ax
xor ecx, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push esi
push dword [ebp + 8]
inc ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [0x4125a0]
test eax, eax
jne 0x4089e5
push edi
call dword [0x41289c]
xor eax, eax
jmp 0x408b59
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x34]
push ebx
push esi
mov word [ecx + eax*2], dx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push edi
call dword [0x4127d8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x408a0c
push edi
jmp 0x408a6d
mov eax, dword [ebp - 0x1c]
cmp word [eax], si
jne 0x408a1a
push 0x2f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x54]
push eax
push 8
push 5
push 0xe5
push 0x4128c0
call fcn.00406595
add esp, 0x14
xor eax, eax
cmp dword [ebp - 0x3c], 2
mov ecx, 0x800000
mov word [ebp - 0x4c], ax
cmove eax, ecx
or eax, 0x100
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [0x412658]
mov ebx, eax
test ebx, ebx
jne 0x408a7a
push edi
call dword [0x41289c]
push dword [ebp - 0xc]
call dword [0x41289c]
xor eax, eax
jmp 0x408b58
lea eax, [ebp - 0xc8]
mov edi, esi
push eax
push 0x72
push 7
push 0x30f
push 0x4128c0
call fcn.00406595
add esp, 0x14
xor eax, eax
mov word [ebp - 0x56], ax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
call dword [0x41278c]
test eax, eax
jne 0x408aeb
call fcn.00405a3f
cmp eax, 0x2f8f
jne 0x408ae7
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x13300
push eax
push 0x1f
push ebx
call dword [0x4127f8]
test eax, eax
push 1
pop eax
cmovne edi, eax
test edi, edi
jne 0x408a9f
mov eax, dword [ebp + 0x18]
push esi
push ebx
mov dword [eax], esi
call dword [0x41273c]
mov edi, dword [ebp - 8]
test eax, eax
je 0x408b3f
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push esi
push 0x20000013
push ebx
call dword [0x412708]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x408b3f
push dword [ebp + 0x14]
push ebx
call fcn.00408852
pop ecx
pop ecx
mov esi, eax
push edi
call dword [0x41289c]
push dword [ebp - 0xc]
call dword [0x41289c]
push ebx
call dword [0x41289c]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ebe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x408f62
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov eax, ebx
sub eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
xor edi, edi
push eax
call fcn.00408ff4
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add dword [eax + 0x20], 1
jne 0x408f03
inc dword [eax + 0x24]
cmp esi, 0x40
jbe 0x408f3a
mov ebx, dword [ebp - 4]
mov edx, edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
add ecx, edx
push 0x40
mov al, byte [ebx + ecx]
xor al, byte [ecx]
inc edx
mov byte [edi + ecx], al
pop eax
cmp edx, eax
jb 0x408f10
mov ebx, dword [ebp + 0x10]
sub esi, eax
add dword [ebp + 0x14], eax
add ebx, eax
add dword [ebp + 0xc], eax
add dword [ebp - 4], eax
mov dword [ebp + 0x10], ebx
jmp 0x408ee7
test esi, esi
je 0x408f60
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
sub eax, ecx
sub ebx, ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x44]
add ecx, edi
mov al, byte [eax + ecx]
xor al, byte [ecx]
inc edi
mov byte [ebx + ecx], al
mov eax, dword [ebp + 0xc]
cmp edi, esi
jb 0x408f4b
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408f85
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x100
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
jne 0x408fb9
add ecx, 0x10
mov esi, 0x40e354
jmp 0x408fbe
mov esi, 0x40e364
mov eax, dword [ecx]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [0x413410], esi
mov dword [edx + 0x3c], eax
pop esi
pop ebp
ret
Function at 0x40a1d5
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.004051d6
mov al, byte [ebp - 1]
push dword [ebp + 0x10]
and byte [ebp - 0x20], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 1], al
lea eax, [ebp - 0x70]
push eax
call fcn.0040a531
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409bf7
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00409e06
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040aa4b
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 8]
call fcn.0040a260
add esp, 0x40
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40b609
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp + 0x14], 0xa
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0x14], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x40b623
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40b64e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x40b780
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test ebx, ebx
jne 0x40b676
test edi, edi
jne 0x40b780
mov esi, dword [ebp + 0x18]
mov eax, 0xc8
cmp esi, eax
jae 0x40b780
push eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.004051fb
add esp, 0xc
cmp edi, esi
jb 0x40b6e2
mov eax, ebx
lea ecx, [ebp - 0xcc]
sub eax, ecx
mov dword [ebp - 4], eax
xor edx, edx
test esi, esi
je 0x40b6c7
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x40b6b2
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xcc]
push eax
call fcn.0040b78a
add dword [ebp - 4], esi
sub edi, esi
add ebx, esi
mov dword [ebp + 0x14], edi
pop ecx
cmp edi, esi
jae 0x40b6a9
mov al, byte [ebp + 0x1c]
xor byte [ebp + edi - 0xcc], al
xor byte [ebp + esi - 0xcd], 0x80
test edi, edi
je 0x40b714
lea eax, [ebp - 0xcc]
sub ebx, eax
xor edx, edx
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc edx
cmp edx, edi
jb 0x40b702
lea eax, [ebp - 0xcc]
push eax
call fcn.0040b78a
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ecx
cmp edi, esi
jb 0x40b758
test esi, esi
je 0x40b740
push esi
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.004051d6
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call fcn.0040b78a
mov eax, dword [ebp + 8]
add eax, esi
sub edi, esi
mov dword [ebp + 8], eax
jmp 0x40b726
test edi, edi
je 0x40b76d
push edi
lea edx, [ebp - 0xcc]
push edx
push eax
call fcn.004051d6
add esp, 0xc
xor al, al
lea edi, [ebp - 0xcc]
mov ecx, 0xc8
rep stosb byte es:[edi], al
xor eax, eax
jmp 0x40b783
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401179
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40118d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011ae
cmp esi, eax
jae 0x401187
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011a0
cmp esi, eax
jae 0x401187
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x418010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jle 0x418040
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x556658]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x418021
pop edi
pop esi
not eax
ret
Function at 0x423de0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x50d820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x524dc0
mov dword [edi + 0x20], 0x524db0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0042d060
mov eax, dword [0x55b9cc]
cmp byte [eax + 0x31f], bl
je 0x423f66
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.0041b8c0
push str.crash.CI3Xmas.log
push eax
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x30], 1
call fcn.0041b800
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
push eax
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423e75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423e97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.0041b8c0
push str.crash.CI3Xmas.jpg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x30], 2
call fcn.0041b800
mov eax, dword [eax]
add esp, 0x10
push eax
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423edc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423efe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.0041b8c0
push str.crash.CI3Xmas.net
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x30], 3
call fcn.0041b800
mov eax, dword [eax]
add esp, 0x10
push eax
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x423f44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x1c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423f66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420250
mov ecx, dword [esp + 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x42dc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50e518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.0041b6e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401a40
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dc96
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret