joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100372b5
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x20]
mov dword [ebx], edx
jae 0x100372cd
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x10037305
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.100362c4
mov eax, esi
call fcn.100362f2
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.100362c4
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.100362f2
lea edi, [esi + 0xc]
push 0x14
pop eax
mov edx, edi
mov ecx, edi
call fcn.100362c4
push 0x14
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.10038267

Function at 0x10037c2f
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0xa54ff53a
mov dword [eax + 0x1c], 0x510e527f
mov dword [eax + 0x20], 0x9b05688c
mov dword [eax + 0x24], 0x1f83d9ab
mov dword [eax + 0x28], 0x5be0cd19
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x100380c5
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x2c]
mov dword [ebx], edx
jae 0x100380dd
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x10038115
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.100362c4
mov eax, esi
call fcn.10037c72
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.100362c4
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.10037c72
lea edi, [esi + 0xc]
push 0x20
pop eax
mov edx, edi
mov ecx, edi
call fcn.100362c4
push 0x20
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.10037c2f

Function at 0x100381ee
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov dword [ebp - 4], ecx
je 0x1003825d
push ebx
push esi
push edi
mov esi, 0xff
mov ecx, dword [ebp - 4]
dec dword [ebp + 0x10]
lea ecx, [eax + ecx + 2]
mov dword [ebp - 8], ecx
movzx ecx, byte [ecx]
mov edi, dword [ebp - 8]
add edx, ecx
and edx, esi
movzx ebx, byte [eax + edx + 2]
mov byte [edi], bl
mov edi, dword [ebp - 4]
inc edi
and edi, esi
mov dword [ebp - 4], edi
mov edi, ebx
add edi, ecx
and edi, esi
mov byte [eax + edx + 2], cl
mov cl, byte [edi + eax + 2]
mov edi, dword [ebp + 0xc]
xor cl, byte [edi]
mov edi, dword [ebp + 8]
inc dword [ebp + 8]
inc dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], ebx
mov byte [edi], cl
jne 0x1003820c
pop edi
pop esi
pop ebx
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov byte [eax + 1], dl
leave
ret

Function at 0x10038267
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
mov dword [eax + 0x1c], 0xc3d2e1f0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x10039580
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x1003959c
push 4
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x1003958f
pop esi
ret
push 0x10
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x1003959f
pop esi
ret
Function at 0x1003a858
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x1003a874
push 2
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x1003a867
pop esi
ret
push 8
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x1003a877
pop esi
ret

Function at 0x1003a97a
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor ecx, ecx
push edi
movzx eax, byte [ecx + 0x100464d0]
mov edi, dword [ebp + 8]
dec eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + edi]
and eax, 7
test byte [eax*4 + 0x10046548], dl
setne al
mov byte [ebp + ecx - 0x78], al
inc ecx
cmp ecx, 0x38
jl 0x1003a984
xor ebx, ebx
push 8
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [ebx + 0x10046508]
add esp, 0xc
xor ecx, ecx
xor edx, edx
cmp ecx, 0x1c
setge dl
mov edi, eax
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x1003a9e1
lea edi, [eax - 0x1c]
mov dl, byte [ebp + edi - 0x78]
mov byte [ebp + ecx - 0x40], dl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x1003a9c9
xor edi, edi
movzx eax, byte [edi + 0x10046518]
cmp byte [ebp + eax - 0x41], 0
je 0x1003aa18
mov eax, edi
cdq
push 6
pop ecx
idiv ecx
mov ecx, dword [edx*4 + 0x10046548]
lea eax, [ebp + eax - 8]
sar ecx, 2
or byte [eax], cl
inc edi
cmp edi, 0x30
jl 0x1003a9f2
movzx eax, byte [ebp - 8]
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 4]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 5]
mov dword [esi + ebx*8], eax
movzx eax, byte [ebp - 7]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov dword [esi + ebx*8 + 4], eax
inc ebx
cmp ebx, 0x10
jl 0x1003a9b0
cmp dword [ebp + 0xc], 1
jne 0x1003aa9b
xor edi, edi
lea eax, [esi + 0x7c]
mov ebx, dword [eax - 4]
lea edx, [esi + edi*4]
mov ecx, dword [edx]
mov dword [edx], ebx
mov dword [eax - 4], ecx
mov ebx, dword [eax]
lea ecx, [esi + edi*4 + 4]
mov edx, dword [ecx]
inc edi
mov dword [ecx], ebx
mov dword [eax], edx
inc edi
sub eax, 8
cmp edi, 0x10
jl 0x1003aa78
pop edi
pop ebx
leave
ret
Function at 0x1003ab14
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push 0x3f
mov dword [ebp - 4], eax
add edx, 8
mov dword [ebp - 8], 8
pop ecx
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x10046568]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046768]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046968]
and eax, ecx
xor edi, dword [eax*4 + 0x10046b68]
mov eax, dword [edx - 4]
xor eax, dword [ebp - 4]
xor esi, edi
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x10046668]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046868]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046a68]
and eax, ecx
xor edi, dword [eax*4 + 0x10046c68]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x10046568]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046768]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046968]
and eax, ecx
xor edi, dword [eax*4 + 0x10046b68]
mov eax, dword [edx - 0xc]
xor dword [ebp - 4], edi
xor eax, esi
mov edi, eax
shr edi, 0x18
mov ebx, eax
and edi, ecx
mov edi, dword [edi*4 + 0x10046668]
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046868]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046a68]
and eax, ecx
xor edi, dword [eax*4 + 0x10046c68]
mov eax, dword [ebp - 4]
xor eax, edi
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x1003ab36
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret
Function at 0x1003d027
Capabilities:
Hash data using sha256

Disassembly:
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [eax + ecx]
cmp edx, ecx
push ebx
push edi
lea edi, [esi + 0x50]
mov dword [esi + 4], edx
jae 0x1003d03e
inc dword [esi + 8]
mov ebx, 0x80
mov byte [eax + edi], bl
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x70
jbe 0x1003d078
mov ecx, ebx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
mov eax, ebx
mov edx, edi
mov dword [esi], ebx
call fcn.1003ae09
pop ecx
push esi
call fcn.1003aeed
and dword [esi], 0
pop ecx
mov eax, dword [esi]
push 0x70
pop ecx
sub ecx, eax
push ecx
xor ebx, ebx
add eax, edi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, eax
shl eax, 3
push edi
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
mov dword [esi + 4], eax
push 0x70
pop eax
mov edx, edi
mov dword [esi + 8], ecx
call fcn.1003ae09
mov eax, dword [esi + 8]
pop ecx
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 4]
push esi
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], ebx
call fcn.1003aeed
pop ecx
lea edi, [esi + 0x10]
push edi
push 0x40
pop eax
mov edx, edi
call fcn.1003ae09
pop ecx
push 0x40
push edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, esi
pop edi
pop ebx
jmp fcn.1003ae72

Function at 0x1003d0fd
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1003d122
push 0xffffffffffffff99
pop edi
jmp 0x1003d164
lea eax, [ebp - 0x20]
push eax
push 0x20
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1003d138
push 0xffffffffffffff98
jmp 0x1003d11f
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x20]
push 0x20
push eax
lea eax, [esi + 4]
call fcn.10038191
push 0x100
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.1003d169
add esp, 0x14
mov eax, edi
pop edi
leave
ret
Function at 0x1003d192
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea edx, [eax + 0x20]
mov esi, edx
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x40]
mov esi, 0x4d34d34d
add ecx, esi
add dword [edx], ecx
mov edx, dword [edx]
cmp edx, dword [ebp - 0x2c]
mov ecx, 0x2cb2cb2d
sbb edx, edx
neg edx
sub edx, ecx
add dword [eax + 0x24], edx
mov edx, dword [eax + 0x24]
cmp edx, dword [ebp - 0x28]
mov edx, 0x34d34d34
sbb edi, edi
neg edi
add edi, edx
add dword [eax + 0x28], edi
mov edi, dword [eax + 0x28]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, esi
add dword [eax + 0x2c], edi
mov edi, dword [eax + 0x2c]
cmp edi, dword [ebp - 0x20]
sbb edi, edi
neg edi
sub edi, ecx
add dword [eax + 0x30], edi
mov edi, dword [eax + 0x30]
cmp edi, dword [ebp - 0x1c]
sbb edi, edi
neg edi
add edi, edx
add dword [eax + 0x34], edi
mov edx, dword [eax + 0x34]
cmp edx, dword [ebp - 0x18]
sbb edx, edx
neg edx
add edx, esi
add dword [eax + 0x38], edx
mov edx, dword [eax + 0x38]
cmp edx, dword [ebp - 0x14]
mov esi, eax
sbb edx, edx
neg edx
sub edx, ecx
add dword [eax + 0x3c], edx
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 8], esi
sbb ecx, ecx
neg ecx
mov dword [eax + 0x40], ecx
lea ecx, [ebp - 0x2c]
sub ecx, eax
mov edx, dword [esi + 0x20]
add edx, dword [esi]
movzx edi, dx
mov esi, edx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, edx
imul esi, edx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [ecx + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1003d242
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, ecx
rol esi, 0x10
add esi, edx
rol edi, 0x10
add edi, esi
mov esi, edx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [eax], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
rol edi, 0x10
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x24]
add edi, esi
rol edx, 0x10
add edx, edi
mov edi, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, esi
rol edx, 8
add edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
add edi, edx
add esi, edi
mov dword [eax + 0x10], esi
mov esi, edx
rol esi, 8
add esi, dword [ebp - 0x18]
pop edi
add esi, dword [ebp - 0x20]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, ecx
rol edx, 0x10
add edx, esi
rol ecx, 8
add ecx, dword [ebp - 0x18]
pop esi
add ecx, dword [ebp - 0x10]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
pop ebx
leave
ret
Function at 0x1003d392
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
push edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
shl eax, 0x10
mov ebx, edi
shr ebx, 0x10
or eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
mov ebx, ecx
shl ebx, 0x10
or eax, ebx
mov dword [esi + 0xc], eax
mov eax, edx
shl eax, 0x10
mov ebx, ecx
shr ebx, 0x10
or eax, ebx
mov dword [esi + 0x14], eax
mov ebx, edx
shr ebx, 0x10
mov eax, edi
shl eax, 0x10
or eax, ebx
mov dword [esi + 0x1c], eax
mov eax, edi
rol eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
rol eax, 0x10
mov dword [esi + 0x28], eax
mov eax, ecx
rol eax, 0x10
mov ebx, edx
mov dword [esi + 0x30], eax
mov eax, edx
xor ebx, ecx
rol eax, 0x10
mov dword [esi + 0x38], eax
mov eax, 0xffff
and ebx, eax
xor ebx, ecx
mov dword [esi + 0x24], ebx
mov dword [esi + 8], edx
mov ebx, edi
xor ebx, edx
and ebx, eax
xor ebx, edx
mov edx, dword [ebp - 4]
xor edx, edi
and edx, eax
xor edx, edi
mov dword [esi + 0x34], edx
mov edx, dword [ebp - 4]
xor edx, ecx
and edx, eax
xor edx, dword [ebp - 4]
and dword [esi + 0x40], 0
push 4
mov dword [esi + 0x10], edi
mov dword [esi], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], edx
pop edi
mov eax, esi
call fcn.1003d192
dec edi
jne 0x1003d448
pop edi
xor ecx, ecx
lea eax, [esi + 0x20]
pop ebx
lea edx, [ecx - 4]
and edx, 7
mov edx, dword [esi + edx*4]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jb 0x1003d459
push 8
lea eax, [esi + 0x20]
pop ecx
mov edx, dword [eax - 0x20]
mov dword [eax + 0x24], edx
mov edx, dword [eax]
mov dword [eax + 0x44], edx
add eax, 4
dec ecx
jne 0x1003d473
mov eax, dword [esi + 0x40]
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003d49b
mov edx, esi
call fcn.1003d30a
leave
ret
Function at 0x1003d49d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x10
push ebx
push esi
push edi
mov ebx, eax
mov esi, ecx
jb 0x1003d527
mov ecx, dword [ebp + 0xc]
shr ecx, 4
lea eax, [esi + 0x44]
mov dword [ebp - 4], ecx
call fcn.1003d192
movzx edx, word [esi + 0x5a]
mov ecx, dword [esi + 0x50]
shl ecx, 0x10
xor edx, ecx
xor edx, dword [eax]
mov ecx, dword [ebp + 8]
xor edx, dword [ebx]
sub dword [ebp + 0xc], 0x10
mov dword [ecx], edx
movzx edx, word [esi + 0x62]
mov edi, dword [esi + 0x58]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx + 4]
add ecx, 0x10
xor edx, dword [esi + 0x4c]
add ebx, 0x10
mov dword [ecx - 0xc], edx
movzx edx, word [esi + 0x4a]
mov edi, dword [esi + 0x60]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 8]
mov dword [ebp + 8], ecx
xor edx, dword [esi + 0x54]
mov dword [ecx - 8], edx
movzx edx, word [esi + 0x52]
mov edi, dword [esi + 0x48]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 4]
xor edx, dword [esi + 0x5c]
dec dword [ebp - 4]
mov dword [ecx - 4], edx
jne 0x1003d4bc
cmp dword [ebp + 0xc], 0
je 0x1003d5a6
lea eax, [esi + 0x44]
call fcn.1003d192
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
mov edi, ecx
mov eax, edx
shl eax, 0x10
shr edi, 0x10
xor eax, edi
xor eax, dword [esi + 0x44]
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
shl ecx, 0x10
mov eax, edi
shr eax, 0x10
xor eax, ecx
xor eax, dword [esi + 0x4c]
shl edi, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x48]
mov ecx, eax
shr ecx, 0x10
xor ecx, edi
xor ecx, dword [esi + 0x54]
shl eax, 0x10
shr edx, 0x10
xor eax, edx
xor eax, dword [esi + 0x5c]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
jbe 0x1003d5a6
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ebx
sub esi, eax
sub edi, eax
lea eax, [ebp + ecx - 0x14]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov byte [edi + eax], dl
jb 0x1003d594
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10040b36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10057bf0]
jne 0x10040b40
repz ret
jmp fcn.10040d7e
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40bc43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40bc52
pop dword [ebp - 0x40]
mov eax, 0x7dd100ac
sub eax, 0x7d90445a
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3aa05
push 0
mov eax, 0xc6a89a6d
add eax, 0x3998466b
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x9f0f349e
sub ecx, 0x9f0ee7fb
mov edi, eax
mov ebx, 0x7b15e543
sub ebx, 0x7ad4a97f
add ebx, dword [ebp - 0x40]
mov esi, 0xc8eb2f04
sub esi, 0xfd265bf0
xor dword [ebp - 0x18], 0x3448980b
mov edx, dword [ebx]
add dword [ebp - 0x18], 0x740def4a
sub edx, esi
xor dword [ebp - 0x10], eax
mov dword [edi], edx
xor dword [ebp - 0x18], 0x5c4d6da0
add edi, 0x1b7a89d8
sub edi, 0x1b7a89d4
add ebx, 4
loop 0x40bcb1
add eax, 0x13bfe109
sub eax, 0x13bebbaa
mov ebx, eax
add eax, 5
mov ecx, 0x9c57cc79
add ecx, 0x63e83387
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x405170
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov ecx, dword [0x455750]
push edi
cmp eax, 1
push ebp
sbb ebp, ebp
and ebp, 5
test ecx, ecx
je 0x4051b1
mov ebx, 0x455750
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
add ebx, 4
push eax
push edi
call esi
push ebp
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebx], 0
jne 0x405199
jmp 0x4051bb
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4557a8]
dec eax
cmp eax, 1
sbb ebp, ebp
and ebp, 5
test ecx, ecx
je 0x4051ed
mov ebx, 0x4557a8
mov eax, dword [ebx]
add ebx, 4
push eax
push edi
call esi
push ebp
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebx], 0
jne 0x4051d7
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4557e0]
sub eax, 2
cmp eax, 1
sbb ebp, ebp
and ebp, 5
test ecx, ecx
je 0x405221
mov ebx, 0x4557e0
mov eax, dword [ebx]
add ebx, 4
push eax
push edi
call esi
push ebp
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebx], 0
jne 0x40520b
push 0x417
push edi
call esi
mov ecx, dword [esp + 0x18]
sub ecx, 2
cmp ecx, 1
mov ecx, 0
adc ecx, 0xffffffff
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406e40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x100
push ebx
push esi
push edi
push ebp
xor ebp, ebp
cmp eax, ebp
jle 0x406ea4
mov esi, dword [esp + 0x114]
mov edi, dword [esp + 0x118]
mov ebx, dword [esp + 0x11c]
mov eax, dword [esp + 0x120]
push ebp
lea ecx, [esp + 0x14]
push eax
push str._s__d
inc ebp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
add esp, 0x10
push edi
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x124]
mov byte [esi + ebp - 1], al
cmp ebp, ecx
jl 0x406e69
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x409cb0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
mov dword [0x535720], 0
lea eax, [esp]
push ebx
push esi
push edi
push eax
push str.PG_STG.DLL
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov esi, eax
jne 0x409ce9
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x140
ret
lea eax, [esp + 0x38]
push eax
call fcn.00409d80
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add dword [0x535720], eax
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x409d2d
lea eax, [esp + 0x38]
push eax
call fcn.00409d80
add esp, 4
add dword [0x535720], eax
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x409d0e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x535720]
pop edi
pop esi
cmp eax, 1
sbb eax, eax
pop ebx
neg eax
add esp, 0x140
ret