joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001f30
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.10001e90
test al, al
jne 0x10001f45
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 8]
cmp edi, 8
jae 0x10001f56
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, 0x10014760
mov ecx, 8
sub edx, eax
push ebx
jmp 0x10001f70
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10002041
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10001f70
add edi, 0xfffffff8
xor eax, eax
test edi, edi
jle 0x10001fd3
nop
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x1f
movsx edx, byte [edx + 0x1011773c]
and edx, 0xf
movzx edx, byte [edx + 0x10014768]
sub byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0xf
movzx edx, byte [edx + 0x10014768]
xor byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 8]
inc eax
sub ecx, 8
cmp eax, ecx
jl 0x10001f90
lea edi, [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push 0x10014778
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002041
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 4]
push edx
sub eax, 8
push eax
add ecx, 8
push ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x1000204a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002060
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esi + 0xc]
mov ecx, 0x10014790
mov eax, edi
jmp 0x10002070
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002090
test dl, dl
je 0x1000208c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002090
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002070
xor eax, eax
jmp 0x10002095
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100020cc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100020cc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.MSVCR100.dll_memset
add esp, 0x10
pop edi
ret
Function at 0x10002550
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jc]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10002570
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1011cd24], ecx
mov dword [ebp - 8], 0
jbe 0x10002755
mov edi, dword [0x101174b0]
lea eax, [esi + 0xa]
mov esi, dword [0x101174ac]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x1000269d
cmp esi, eax
ja 0x1000269d
mov ecx, eax
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x101174b4]
jne 0x10002676
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10002766
mov edx, dword [0x101174b4]
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002676
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x10002657
xor eax, eax
jmp 0x10002659
add eax, edx
cmp eax, ecx
jae 0x1000265f
mov eax, ecx
push eax
mov ecx, 0x101174ac
call fcn.10003330
mov edi, dword [0x101174b0]
mov esi, dword [0x101174ac]
lea edx, [ebx + ebx*8]
lea eax, [esi + edx*8]
test edi, edi
je 0x10002695
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x101174b0]
mov esi, dword [0x101174ac]
mov eax, dword [ebp - 4]
jmp 0x10002730
mov ebx, dword [0x101174b4]
cmp edi, ebx
jne 0x10002717
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10002766
mov edx, ebx
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002714
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x100026f5
xor eax, eax
jmp 0x100026f7
add eax, edx
cmp eax, ecx
jae 0x100026fd
mov eax, ecx
push eax
mov ecx, 0x101174ac
call fcn.10003330
mov edi, dword [0x101174b0]
mov esi, dword [0x101174ac]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002730
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x101174b0]
mov esi, dword [0x101174ac]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x48
mov dword [0x101174b0], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x100025d8
pop edi
pop esi
mov dword [0x1011cd14], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002780
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x10013160]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x100027a0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1011cd28], ecx
mov dword [ebp - 8], 0
jbe 0x10002979
mov ebx, dword [0x101174c0]
lea ecx, [esi + 0xa]
mov esi, dword [0x101174bc]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x100028b8
cmp esi, ecx
ja 0x100028b8
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x101174c4]
jne 0x100028a4
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x1000298a
mov edx, dword [0x101174c4]
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x100028a4
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10002885
xor eax, eax
jmp 0x10002887
add eax, edx
cmp eax, ecx
jae 0x1000288d
mov eax, ecx
push eax
mov ecx, 0x101174bc
call fcn.10003420
mov ebx, dword [0x101174c0]
mov esi, dword [0x101174bc]
imul edi, edi, 0x108
add edi, esi
test ebx, ebx
je 0x1000294b
mov esi, edi
jmp 0x10002936
mov edi, dword [0x101174c4]
cmp ebx, edi
jne 0x1000292f
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x1000298a
mov edx, edi
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x1000292f
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10002910
xor eax, eax
jmp 0x10002912
add eax, edx
cmp eax, ecx
jae 0x10002918
mov eax, ecx
push eax
mov ecx, 0x101174bc
call fcn.10003420
mov ebx, dword [0x101174c0]
mov esi, dword [0x101174bc]
test ebx, ebx
je 0x1000294b
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x101174c0]
mov esi, dword [0x101174bc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x108
mov dword [0x101174c0], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x108
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10002808
pop edi
pop esi
mov dword [0x1011cd18], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x100029a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_j_]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x100029c0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1011cd2c], ecx
mov dword [ebp - 8], 0
jbe 0x10002b9a
mov ebx, dword [0x101174d0]
lea ecx, [esi + 0xa]
mov esi, dword [0x101174cc]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10002ad8
cmp esi, ecx
ja 0x10002ad8
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x101174d4]
jne 0x10002ac4
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002bab
mov edx, dword [0x101174d4]
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002ac4
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002aa5
xor eax, eax
jmp 0x10002aa7
add eax, edx
cmp eax, ecx
jae 0x10002aad
mov eax, ecx
push eax
mov ecx, 0x101174cc
call fcn.10003510
mov ebx, dword [0x101174d0]
mov esi, dword [0x101174cc]
imul edi, edi, 0x105
add edi, esi
test ebx, ebx
je 0x10002b6c
mov esi, edi
jmp 0x10002b56
mov edi, dword [0x101174d4]
cmp ebx, edi
jne 0x10002b4f
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002bab
mov edx, edi
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002b4f
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002b30
xor eax, eax
jmp 0x10002b32
add eax, edx
cmp eax, ecx
jae 0x10002b38
mov eax, ecx
push eax
mov ecx, 0x101174cc
call fcn.10003510
mov ebx, dword [0x101174d0]
mov esi, dword [0x101174cc]
test ebx, ebx
je 0x10002b6c
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [0x101174d0]
mov esi, dword [0x101174cc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x105
mov dword [0x101174d0], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x105
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10002a28
pop edi
pop esi
mov dword [0x1011cd1c], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002bc0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10002be0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1011cd30], ecx
mov dword [ebp - 8], 0
jbe 0x10002dca
mov edi, dword [0x101174e0]
lea eax, [esi + 0xa]
mov esi, dword [0x101174dc]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10002d11
cmp esi, eax
ja 0x10002d11
mov ecx, eax
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x101174e4]
jne 0x10002ce6
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002ddb
mov edx, dword [0x101174e4]
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002ce6
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002cc7
xor eax, eax
jmp 0x10002cc9
add eax, edx
cmp eax, ecx
jae 0x10002ccf
mov eax, ecx
push eax
mov ecx, 0x101174dc
call fcn.10003600
mov edi, dword [0x101174e0]
mov esi, dword [0x101174dc]
mov eax, ebx
shl eax, 6
add eax, esi
add eax, ebx
test edi, edi
je 0x10002d09
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x101174e0]
mov esi, dword [0x101174dc]
mov eax, dword [ebp - 4]
jmp 0x10002da5
mov ebx, dword [0x101174e4]
cmp edi, ebx
jne 0x10002d8b
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002ddb
mov edx, ebx
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002d88
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002d69
xor eax, eax
jmp 0x10002d6b
add eax, edx
cmp eax, ecx
jae 0x10002d71
mov eax, ecx
push eax
mov ecx, 0x101174dc
call fcn.10003600
mov edi, dword [0x101174e0]
mov esi, dword [0x101174dc]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002da5
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x101174e0]
mov esi, dword [0x101174dc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x41
mov dword [0x101174e0], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x41
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10002c48
pop edi
pop esi
mov dword [0x1011cd20], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002df0
Capabilities:
Encode data using xor
Execute command

Disassembly:
push ecx
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10002e10
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10002e10
movzx edx, byte [esi + 4]
push edx
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xd
ja case.default.0x10002e4c
jmp dword [eax*4 + 0x10002eec]
mov ecx, 0xe
jmp 0x10002ed0
mov ecx, 0xf
jmp 0x10002ed0
mov ecx, 0x10
jmp 0x10002ed0
mov ecx, 0x11
jmp 0x10002ed0
mov ecx, 0x12
jmp 0x10002ed0
mov ecx, 0x13
jmp 0x10002ed0
mov ecx, 0x14
jmp 0x10002ed0
mov ecx, 0x16
jmp 0x10002ed0
mov ecx, 0x18
jmp 0x10002ed0
mov ecx, 0x19
jmp 0x10002ed0
mov ecx, 0x1a
jmp 0x10002ed0
push 0x12c
push 0x10014790
mov eax, 0x1011c6a8
push 2
call fcn.1000b7a0
add esp, 0xc
pop ecx
ret
push str.shutdown__r__t_10
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
pop ecx
ret
mov ecx, 0x15
push 0x1388
call fcn.10005750
push eax
mov eax, 0x1011c7d0
push 2
call fcn.1000b7a0
add esp, 0xc
pop ecx
ret
Function at 0x10002f30
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x1011cd4c], 1
push edi
je 0x10002fd8
mov ecx, dword [0x101174ac]
mov dword [0x1011cd10], ebx
mov dword [0x1011cd14], ebx
mov dword [0x1011cd18], ebx
mov dword [0x1011cd1c], ebx
mov dword [0x1011cd20], ebx
mov dword [0x1011cd24], ebx
mov dword [0x1011cd28], ebx
mov dword [0x1011cd2c], ebx
mov dword [0x1011cd30], ebx
cmp ecx, dword [0x101174b0]
je 0x10002f9c
mov dword [0x101174b0], ecx
mov ecx, dword [0x101174bc]
cmp ecx, dword [0x101174c0]
je 0x10002fb0
mov dword [0x101174c0], ecx
mov ecx, dword [0x101174cc]
cmp ecx, dword [0x101174d0]
je 0x10002fc4
mov dword [0x101174d0], ecx
mov ecx, dword [0x101174dc]
cmp ecx, dword [0x101174e0]
je 0x10002fd8
mov dword [0x101174e0], ecx
mov word [ebp - 0x40], 0x3cc1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002ff2
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1011c564]
mov edx, dword [0x100147a8]
mov byte [ebp - 0x3e], al
mov eax, dword [0x1011cd4c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x100147ac]
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
call fcn.1000b950
push ebx
push ebx
push ebx
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push ebx
push ebx
push 0x10014c9c
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x44]
push 0x100
push ebx
push 0x10122170
mov dword [ebp - 8], edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10013460]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10003060
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
push ecx
push edx
push 0x10122170
push ebx
mov ecx, 0x101174f8
call fcn.10005220
movzx ecx, byte [ebp - 0x3f]
add esp, 0x18
lea edx, [ebp - 0x40]
call fcn.10001850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e712
mov esp, ebp
pop ebp
ret
Function at 0x10003b80
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x1011cc9c]
test eax, eax
je 0x10003bf3
mov ecx, dword [eax]
cmp ecx, dword [0x1011ccb0]
jne 0x10003b9f
mov dl, byte [0x1011ccb4]
cmp dl, byte [eax + 4]
je 0x10003bf3
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003bc0
mov cl, byte [eax + 0x10012460]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10003bc0
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 8
call fcn.1000b370
mov eax, dword [0x1011cc98]
test eax, eax
je 0x10003c63
mov edx, dword [eax]
cmp edx, dword [0x1011cca8]
jne 0x10003c11
mov cl, byte [0x1011ccac]
cmp cl, byte [eax + 4]
je 0x10003c63
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003c30
mov dl, byte [eax + 0x10012560]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10122170], dl
inc eax
cmp eax, 0x100
jb 0x10003c30
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 8
call fcn.1000b370
mov eax, dword [0x1011cc94]
test eax, eax
je 0x10003ca0
mov ecx, dword [eax]
cmp ecx, dword [0x1011cca0]
jne 0x10003c81
mov dl, byte [0x1011cca4]
cmp dl, byte [eax + 4]
je 0x10003ca0
mov eax, 0x11
call fcn.1000ba10
push eax
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 8
call fcn.1000b370
pop ecx
ret
Function at 0x10004e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x101174ac]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x101174b0]
je 0x10004f2e
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x10004eff
test al, al
jne 0x10004e85
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10004f90
test al, al
je 0x10004f2e
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10004efc
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004efc
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004efc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10004f43
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10004efc
sub ecx, 4
add eax, 4
jmp 0x10004ee8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x101174b0]
jne 0x10004e53
test al, al
je 0x10004f2e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000e712
mov esp, ebp
pop ebp
ret 4
Function at 0x10004f90
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004fe3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004ff6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x1000502d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000506b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005064
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005064
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x1000508b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000e712
mov esp, ebp
pop ebp
ret 8