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

Disassembly:
sub esp, 0x308
cmp dword [0x451e3c], 0
jne 0x418d4f
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, 1
nop
mov ecx, eax
mov byte [esp + ebx + 0x118], al
and cl, 0x80
mov byte [esp + ebx + 0x217], al
mov byte [esp + eax + 0x18], bl
inc ebx
movzx edx, cl
lea ecx, [eax + eax]
neg edx
sbb edx, edx
and edx, 0x11b
xor edx, ecx
xor eax, edx
cmp eax, 1
jne 0x418b10
xor ecx, ecx
mov dword [ecx + 0x44de00], eax
test eax, eax
je 0x418b5c
movzx eax, byte [esp + eax + 0x18]
movzx eax, byte [esp + eax + 0x131]
jmp 0x418b5e
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x418b43
xor ebx, ebx
test bl, bl
je 0x418b81
movzx eax, bl
lea ecx, [esp + 0x217]
movzx eax, byte [esp + eax + 0x18]
sub ecx, eax
mov al, byte [ecx]
jmp 0x418b83
xor al, al
movzx eax, al
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
mov edx, ecx
shr edx, 8
xor dl, cl
xor dl, 0x63
je 0x418bbd
movzx eax, dl
movzx eax, byte [esp + eax + 0x18]
movzx esi, byte [esp + eax + 0x119]
movzx eax, byte [esp + eax + 0x131]
jmp 0x418bc1
xor esi, esi
xor eax, eax
movzx ecx, dl
shl esi, 8
or esi, ecx
mov dword [ebx*4 + 0x44be00], ecx
shl esi, 8
or esi, ecx
shl esi, 8
or esi, eax
mov eax, esi
mov dword [ebx*4 + 0x44ce00], esi
rol eax, 8
mov dword [ebx*4 + 0x44d200], eax
mov eax, esi
rol eax, 0x10
mov dword [ebx*4 + 0x44d600], eax
mov eax, ecx
rol eax, 8
mov dword [ebx*4 + 0x44c200], eax
mov eax, ecx
ror ecx, 8
rol eax, 0x10
mov dword [ebx*4 + 0x44ca00], ecx
movzx ecx, bl
mov dword [ebx*4 + 0x44c600], eax
ror esi, 8
mov dword [ebx*4 + 0x44da00], esi
lea eax, [ecx*8]
xor eax, ecx
shl eax, 2
xor eax, ecx
lea edx, [eax + eax]
mov ecx, edx
shr ecx, 8
mov al, cl
xor al, dl
cmp al, 5
je 0x418ca1
movzx eax, dl
xor eax, 5
xor eax, ecx
lea ecx, [esp + 0x217]
movzx eax, byte [esp + eax + 0x18]
sub ecx, eax
mov cl, byte [ecx]
mov byte [esp + 0x13], cl
test cl, cl
je 0x418ca6
movzx edi, cl
mov byte [esp + 0x13], cl
movzx eax, byte [esp + edi + 0x18]
movzx edx, byte [esp + eax + 0x206]
movzx ebp, byte [esp + eax + 0x1df]
movzx eax, byte [esp + eax + 0x1f7]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + edi + 0x18]
movzx esi, byte [esp + eax + 0x180]
mov eax, dword [esp + 0x14]
jmp 0x418cb0
mov byte [esp + 0x13], 0
xor edx, edx
xor ebp, ebp
xor eax, eax
xor esi, esi
xor edi, edi
shl esi, 8
or esi, edx
shl esi, 8
or esi, ebp
shl esi, 8
or esi, eax
mov ecx, esi
mov dword [ebx*4 + 0x44ae00], esi
rol ecx, 0x10
mov eax, esi
ror eax, 8
mov edx, esi
mov dword [ebx*4 + 0x44b600], ecx
mov dword [ebx*4 + 0x44ba00], eax
mov dword [edi*4 + 0x449600], ecx
movzx ecx, byte [esp + 0x13]
mov dword [edi*4 + 0x449a00], eax
mov eax, ecx
rol eax, 8
mov dword [ebx*4 + 0x44a200], eax
mov eax, ecx
rol edx, 8
mov dword [ebx*4 + 0x449e00], ecx
rol eax, 0x10
ror ecx, 8
mov dword [ebx*4 + 0x44b200], edx
mov dword [ebx*4 + 0x44a600], eax
mov dword [ebx*4 + 0x44aa00], ecx
inc ebx
mov dword [edi*4 + 0x448e00], esi
mov dword [edi*4 + 0x449200], edx
cmp ebx, 0x100
jb 0x418b68
pop edi
pop esi
pop ebp
mov dword [0x451e3c], 1
pop ebx
xor eax, eax
add esp, 0x308
ret
Function at 0x41d4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x44de30], eax
inc edx
cmp edx, 0x100
jb 0x41d4b4
mov eax, 0x44de34
mov esi, 0x1c0
nop dword [eax + eax]
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x44de30]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x44de30]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x44de30]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x44de30]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x41d560
lea ecx, [esp + 0x14]
mov dword [0x448de4], 0x41d6c0
call fcn.00421350
test eax, eax
je 0x41d6a1
mov ecx, dword [esp + 0x24]
mov edx, ecx
mov ebp, dword [esp + 0x1c]
mov eax, ecx
shr edx, 8
and eax, 0xf00
mov edi, edx
and ecx, 0xf0
and edi, 0xff000
and edx, 0xf00
or edi, eax
or edx, ecx
shr edi, 8
mov eax, 0x4416b8
shr edx, 4
xor ecx, ecx
mov ebx, dword [esp + 0x18]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x20]
jne 0x41d62a
cmp dword [eax - 4], ebp
jne 0x41d62a
cmp dword [eax], ebx
je 0x41d649
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x41d614
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00421e3f
add esp, 0x2c
ret
sub ecx, 0
je 0x41d677
sub ecx, 1
je 0x41d666
sub ecx, 1
jne 0x41d6a1
cmp edi, 6
jb 0x41d6a1
jne 0x41d697
cmp edx, 0xf
jb 0x41d6a1
jmp 0x41d697
cmp edi, 5
jb 0x41d6a1
jne 0x41d697
cmp edx, 6
jb 0x41d6a1
cmp edx, 0xa
jmp 0x41d695
cmp edi, 6
jb 0x41d6a1
jne 0x41d697
cmp edx, 0x1c
je 0x41d6a1
cmp edx, 0x26
je 0x41d6a1
cmp edx, 0x27
je 0x41d6a1
cmp edx, 0x35
je 0x41d6a1
cmp edx, 0x36
je 0x41d6a1
mov dword [0x448de4], fcn.0041d760
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421e3f
add esp, 0x2c
ret
Function at 0x41d760
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], edx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
je 0x41d790
test dl, 7
je 0x41d78c
movzx eax, byte [edx]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
sub esi, 1
jne 0x41d773
mov dword [esp + 8], edx
cmp esi, 8
jb 0x41d81e
push ebx
push ebp
mov ebp, esi
shr ebp, 3
xor ecx, dword [edx]
sub esi, 8
mov ebx, dword [edx + 4]
mov eax, ecx
shr eax, 8
movzx edx, al
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + edx*4 + 0x1800]
xor edx, dword [edi + eax*4 + 0x1400]
mov eax, ebx
shr eax, 8
movzx eax, al
xor edx, dword [edi + eax*4 + 0x800]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edx, dword [edi + eax*4 + 0x400]
mov eax, ecx
shr eax, 0x18
xor edx, dword [edi + eax*4 + 0x1000]
movzx eax, cl
xor edx, dword [edi + eax*4 + 0x1c00]
movzx eax, bl
shr ebx, 0x18
xor edx, dword [edi + eax*4 + 0xc00]
xor edx, dword [edi + ebx*4]
mov ecx, edx
mov edx, dword [esp + 0x10]
add edx, 8
mov dword [esp + 0x10], edx
sub ebp, 1
jne 0x41d7a0
pop ebp
pop ebx
test esi, esi
je 0x41d838
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
sub esi, 1
jne 0x41d822
pop edi
mov eax, ecx
pop esi
pop ecx
ret 8

Function at 0x41e730
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebx, edx
mov ebp, ecx
mov edx, dword [esi + 0x9c]
cmp edx, 0xffffffff
jne 0x41e74c
pop esi
pop ebp
or eax, edx
pop ebx
ret
lea eax, [edx + ebx]
cmp eax, 0x40
jbe 0x41e7b8
push edi
lea edi, [esi + 0x40]
cmp edx, 0x40
ja 0x41e79e
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0
mov dword [edi + 8], 0x67452301
mov dword [edi + 0xc], 0xefcdab89
mov dword [edi + 0x10], 0x98badcfe
mov dword [edi + 0x14], 0x10325476
mov dword [edi + 0x18], 0xc3d2e1f0
mov edx, dword [esi + 0x9c]
push edi
call fcn.004215a0
add esp, 4
push edi
mov edx, ebx
mov ecx, ebp
call fcn.004215a0
add dword [esi + 0x9c], ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
lea eax, [edx + esi]
push ebp
push eax
call fcn.00423de0
add dword [esi + 0x9c], ebx
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x41e7e0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, ecx
push edi
mov ebx, edx
mov ecx, dword [esi + 0x9c]
lea edi, [esi + 0x40]
cmp ecx, 0xffffffff
je 0x41e8b3
cmp ecx, 0x40
jbe 0x41e81b
mov edx, edi
mov ecx, esi
call fcn.004217c0
mov dword [esi + 0x9c], 0x14
mov ecx, 0x14
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.00424360
movups xmm0, xmmword [esi]
mov edx, 0x40
mov ecx, esi
movaps xmm2, xmmword [str.6666666666666666]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push edi
movups xmm0, xmmword [esi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm0, xmmword [esi + 0x20]
pxor xmm0, xmm2
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
pxor xmm2, xmm0
movups xmmword [esi + 0x30], xmm2
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0x67452301
mov dword [edi + 0xc], 0xefcdab89
mov dword [edi + 0x10], 0x98badcfe
mov dword [edi + 0x14], 0x10325476
mov dword [edi + 0x18], 0xc3d2e1f0
call fcn.004215a0
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
test ebx, ebx
je 0x41e8c4
push edi
mov edx, ebx
mov ecx, ebp
call fcn.004215a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41e8d0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x18
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x28]
mov ebx, edx
mov ebp, ecx
cmp dword [edi + 0x9c], 0xffffffff
je 0x41e8ff
push edi
xor edx, edx
xor ecx, ecx
call fcn.0041e7e0
add esp, 4
push esi
lea esi, [edi + 0x40]
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.004217c0
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [0x442950]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
pxor xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.004215a0
push esi
mov edx, 0x14
lea ecx, [esp + 0x18]
call fcn.004215a0
add esp, 8
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004217c0
pop esi
test ebx, ebx
je 0x41e9b7
push ebx
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00423de0
add esp, 0xc
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421e3f
add esp, 0x18
ret
Function at 0x41fb90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41fbb5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
add dword [esp + 0x18], 5
push ebp
lea ebp, [edx - 4]
add ebp, ebx
lea eax, [edi + ebx]
cmp eax, ebp
jae 0x41fbd6
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x41fbd6
inc eax
cmp eax, ebp
jb 0x41fbc7
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ebx
sub edi, ebx
cmp eax, ebp
jae 0x41fcd8
cmp edx, 2
jbe 0x41fc65
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x41fcc7
movzx ecx, byte [eax + 3]
mov ebx, dword [esp + 0x1c]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [esp + 0x24], 0
cmove edx, ecx
mov dword [esp + 0x10], edx
mov ebx, edx
test esi, esi
je 0x41fc99
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x41fc97
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [esp + 0x1c]
dec ebx
xor ebx, dword [esp + 0x10]
add ecx, edi
cmp dword [esp + 0x24], 0
je 0x41fc95
add ebx, ecx
jmp 0x41fc97
mov ecx, edx
shr esi, cl
test esi, esi
je 0x41fbef
cmp esi, 4
ja 0x41fc8a
cmp esi, 3
je 0x41fc8a
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x41fbef
or esi, 8
shr esi, 1
inc edi
jmp 0x41fbc0
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [esp + 0x14]
add edi, eax
jmp 0x41fbc0
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x41fbc0
mov eax, dword [esp + 0x20]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebp
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x421230
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x20]
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x42125f
and esi, 0x3f
jne 0x421254
mov ecx, edi
call fcn.004204b0
mov byte [esi + edi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x421248
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x64], ecx
mov ecx, edi
mov dword [edi + 0x60], eax
call fcn.004204b0
xor edx, edx
nop
mov ecx, dword [edi + edx*4 + 4]
lea ebx, [ebx + 8]
mov eax, dword [edi + edx*4]
add edx, 2
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
cmp edx, 8
jb 0x421280
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
ret
Function at 0x421400
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
xor esi, esi
lea edi, [ebp + 0x1c]
mov edx, dword [edi]
lea edi, [edi + 4]
mov eax, edx
rol edx, 8
ror eax, 8
and edx, 0xff00ff
and eax, 0xff00ff00
or eax, edx
mov dword [esp + esi*4 + 0x20], eax
inc esi
cmp esi, 0x10
jb 0x421415
lea eax, [esp + 0x28]
mov edx, 0x40
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x421442
mov eax, dword [ebp + 8]
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebp, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
nop dword [eax]
mov ecx, ebx
mov eax, edi
not ecx
and eax, ebx
and ecx, ebp
mov edx, esi
xor ecx, eax
rol esi, 5
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [esp + 0x10]
add eax, 0x5a827999
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, ebx
mov ebx, edx
ror edi, 2
add esi, dword [esp + ecx*4 + 0x20]
inc ecx
add esi, eax
mov dword [esp + 0x10], ecx
cmp ecx, 0x14
jb 0x421480
mov edx, 0x14
mov ecx, esi
mov eax, ebp
xor eax, edi
rol esi, 5
xor eax, ebx
add esi, eax
mov eax, dword [esp + 0x14]
add esi, dword [esp + edx*4 + 0x20]
add eax, 0x6ed9eba1
mov dword [esp + 0x14], ebp
inc edx
mov ebp, edi
add esi, eax
mov edi, ebx
mov ebx, ecx
ror edi, 2
cmp edx, 0x28
jb 0x4214c2
mov dword [esp + 0x10], 0x28
nop dword [eax]
mov ecx, edi
mov eax, edi
xor ecx, ebx
and eax, ebx
and ecx, ebp
mov edx, esi
xor ecx, eax
rol esi, 5
mov eax, dword [esp + 0x10]
add ecx, 0x8f1bbcdc
add esi, dword [esp + 0x14]
add ecx, dword [esp + eax*4 + 0x20]
inc eax
add esi, ecx
mov dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, edi
mov edi, ebx
mov dword [esp + 0x14], ecx
ror edi, 2
mov ebx, edx
cmp eax, 0x3c
jb 0x421500
mov edx, 0x3c
mov dword [esp + 0x10], esi
mov eax, ebp
xor eax, edi
rol esi, 5
add ecx, 0xca62c1d6
xor eax, ebx
add eax, dword [esp + edx*4 + 0x20]
add esi, ecx
mov ecx, ebp
inc edx
mov ebp, edi
add esi, eax
mov edi, ebx
mov ebx, dword [esp + 0x10]
ror edi, 2
cmp edx, 0x50
jb 0x421543
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
add eax, esi
mov ecx, dword [esp + 0x18]
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], ebp
pop edi
mov dword [ecx + 8], eax
mov eax, ebx
add dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
add dword [ecx + 0x18], eax
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x42fe75
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e23c
push 0x43e234
push str.FlsAlloc
push 0x1e
call fcn.0042fcf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42fea9
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b350]
call esi
jmp 0x42feaf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42fef3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e24c
push 0x43e244
push str.FlsGetValue
push 0x20
call fcn.0042fcf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ff2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b350]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431960
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4319ab
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00431aff
test al, al
jne 0x4319a5
sub edx, 2
cmp edx, edi
jne 0x43198b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4319cd
lea eax, [edi + 2]
cmp edx, eax
je 0x4319cd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004318ac
add esp, 0x10
jmp 0x431ac7
push esi
lea ecx, [ebp - 0x255]
call fcn.00431aff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431a10
push dword [ebp - 0x25c]
jmp 0x4319bd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x431a4d
cmp word [ebp - 0x226], 0
je 0x431a6e
cmp word [ebp - 0x226], ax
jne 0x431a4d
cmp word [ebp - 0x224], 0
je 0x431a6e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004318ac
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x431aba
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x431a27
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x431aa2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x431ac7
push 0x4316dc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00436270
add esp, 0x10
jmp 0x431a97
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret
Function at 0x4323d2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4323e3
pop esi
ret
push ebx
push edi
push esi
call fcn.0043239b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e159
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43240b
push ebx
push esi
push edi
call fcn.00423de0
add esp, 0xc
push 0
call fcn.0042e11f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4327cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432420
Function at 0x402948
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402985
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029a5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404598
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ba8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404328
test esi, esi
jne 0x402bde
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404418
jmp 0x402bfc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402abc
mov edi, eax
test esi, esi
je 0x402bfc
cmp dword [ebx], 0
je 0x402bfc
dec esi
jmp 0x402be5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ed0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c6008], 0x8088405
inc edx
mov dword [ebx + 0x4c6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4033a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c6024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40343c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40341c
xor eax, eax
push ebp
push 0x403415
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403458
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40341c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4c6024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c6024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404108
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd04c], 0
je 0x404169
cmp word [0x4cd220], 0xd7b2
jne 0x404131
cmp dword [0x4cd228], 0
jbe 0x404131
mov eax, 0x4cd21c
call dword [0x4cd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c6070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404190
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c6034], 0
jne 0x404185
push 0
push 0x4c6068
push 0x4c6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4042dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402734
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4cd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042a4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc