joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ebx + 0x7c]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x416f79
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x416f79
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x416f88
mov ecx, ebx
call fcn.00416d80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x68
add ebx, 0x5b6810
cmp ecx, eax
jl 0x41706b
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x416fca
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x417039
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x42028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x42028], 0xffffe000
jmp 0x417080
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x42028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x42028], eax
jmp 0x417079
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4170cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4170cc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00416d80
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x417465
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4174bd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x417d4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421018]
jne 0x417d54
repz ret
jmp fcn.00418286
Function at 0x1e006455
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 0x2814]
lea ebx, [esi + 0x14]
push dword [esi + 0x10]
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fwrite]
mov edi, eax
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp edi, eax
jne 0x1e0064a5
and dword [esi + 0x10], 0
test edi, edi
jbe 0x1e00649c
push dword [esi + 0x2814]
call dword [sym.imp.MSVCR90.dll_fflush]
pop ecx
test eax, eax
jne 0x1e0064be
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, edi
push eax
lea eax, [edi + esi + 0x14]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_memmove]
sub dword [esi + 0x10], edi
add esp, 0xc
test edi, edi
jne 0x1e006489
push dword [esi + 0xc]
call sym.python27.dll_PyString_AsString
pop ecx
push eax
push dword [sym.python27.dll_PyExc_IOError]
call sym.python27.dll_PyErr_SetFromErrnoWithFilename
pop ecx
pop ecx
call fcn.1e006aaa
or eax, 0xffffffff
jmp 0x1e00649e

Function at 0x1e00b9a1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c8], 0x270
jl 0x1e00ba5a
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ebx, 0x7fffffff
lea edi, [ecx + esi*4 + 0x63c]
mov eax, dword [edi - 0x630]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e2037a8]
xor eax, dword [edi]
inc esi
cmp esi, 0xe3
mov dword [edx], eax
jl 0x1e00b9bc
jmp 0x1e00ba1a
lea edi, [ecx + esi*4 - 0x384]
mov eax, dword [edi + 0x390]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e2037a8]
xor eax, dword [edi]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x1e00b9f0
mov eax, dword [ecx + 0x9c4]
xor eax, dword [ecx + 8]
pop edi
and eax, ebx
xor eax, dword [ecx + 0x9c4]
pop esi
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1e2037a8]
xor edx, dword [ecx + 0x638]
shr eax, 1
xor edx, eax
pop ebp
mov dword [ecx + 0x9c4], edx
and dword [ecx + 0x9c8], 0
pop ebx
mov eax, dword [ecx + 0x9c8]
mov edx, dword [ecx + eax*4 + 8]
inc eax
mov dword [ecx + 0x9c8], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x1e00baeb
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea eax, [edx + 8]
mov dword [eax], ecx
xor ecx, ecx
push esi
inc ecx
push edi
mov esi, dword [eax]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, ecx
mov dword [eax + 4], edi
inc ecx
add eax, 4
cmp ecx, 0x270
jl 0x1e00baf5
pop edi
mov dword [edx + 0x9c8], ecx
pop esi
ret
Function at 0x1e02eba0
Capabilities:
Query environment variable

Disassembly:
push ecx
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], 0
push ebx
push esi
push edi
jne 0x1e02ec27
push str.PYTHONSTARTUP
call dword [sym.imp.MSVCR90.dll_getenv]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1e02ec27
cmp byte [ebx], 0
je 0x1e02ec27
push 0x1e191684
push ebx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1e02ebf6
push dword [esp + 0x14]
push 0
push ebx
push esi
call sym.python27.dll_PyRun_SimpleFileExFlags
call sym.python27.dll_PyErr_Clear
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
jmp 0x1e02ec27
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, dword [eax]
push str.Could_not_open_PYTHONSTARTUP_n
call sym.python27.dll_PySys_WriteStderr
pop ecx
call esi
mov dword [eax], edi
push ebx
push dword [sym.python27.dll_PyExc_IOError]
call sym.python27.dll_PyErr_SetFromErrnoWithFilename
pop ecx
pop ecx
call sym.python27.dll_PyErr_Print
call sym.python27.dll_PyErr_Clear
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1e031ea8
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x1e03d501
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
je 0x1e03d535
push 0x10
pop edx
push esi
push edi
mov eax, dword [ecx]
mov esi, eax
shr esi, 8
mov edi, eax
shl edi, 8
xor esi, edi
and esi, 0xff00ff
shl eax, 8
xor esi, eax
rol esi, 0x10
dec edx
mov dword [ecx], esi
add ecx, 4
test edx, edx
jne 0x1e03d50d
pop edi
pop esi
ret
Function at 0x1e03edcd
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x20
ret

Function at 0x1e03ee1f
Capabilities:
Hash data using sha224

Disassembly:
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x1c
ret
Function at 0x1e0458eb
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x40
ret

Function at 0x1e04597e
Capabilities:
Hash data using sha224

Disassembly:
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0xcbbb9d5d
mov dword [eax + 0x10], 0x367cd507
mov dword [eax + 0x14], 0x629a292a
mov dword [eax + 0x18], 0x3070dd17
mov dword [eax + 0x1c], 0x9159015a
mov dword [eax + 0x20], 0xf70e5939
mov dword [eax + 0x24], 0x152fecd8
mov dword [eax + 0x28], 0xffc00b31
mov dword [eax + 0x2c], 0x67332667
mov dword [eax + 0x30], 0x68581511
mov dword [eax + 0x34], 0x8eb44a87
mov dword [eax + 0x38], 0x64f98fa7
mov dword [eax + 0x3c], 0xdb0c2e0d
mov dword [eax + 0x40], 0xbefa4fa4
mov dword [eax + 0x44], 0x47b5481d
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x30
ret
Function at 0x1e046bf5
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0x64], 1
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x68], ecx
ret
Function at 0x1e04de40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x1e04dec5
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1e04de88
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1e04deaa
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x1e04df20
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.1e04db8f
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
pop ecx
pop ecx
cmp esi, 3
jb 0x1e04df0c
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x1e04df20
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1e04de49
pop esi
pop ebx
leave
ret
Function at 0x1e05d988
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
and dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
test ebx, ebx
jge 0x1e05d9ad
call fcn.1e05d76d
jmp 0x1e05da82
call fcn.1e0391b4
test eax, eax
jne 0x1e05d9c7
push dword [sym.python27.dll_PyExc_IOError]
call sym.python27.dll_PyErr_SetFromErrno
pop ecx
jmp 0x1e05da82
push 0x2000
push 0
call sym.python27.dll_PyString_FromStringAndSize
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0xc], esi
test esi, esi
je 0x1e05da80
push 0
jmp 0x1e05da52
test ebx, ebx
jbe 0x1e05da62
cmp dword [esi + 8], ebx
jge 0x1e05da09
lea eax, [esp + 0xc]
push ebx
push eax
call sym.python27.dll__PyString_Resize
pop ecx
pop ecx
test eax, eax
jl 0x1e05da89
mov esi, dword [esp + 0xc]
call sym.python27.dll_PyEval_SaveThread
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCR90.dll__errno]
mov edi, dword [esp + 0x10]
and dword [eax], 0
sub ebx, edi
push ebx
lea eax, [esi + edi + 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
push dword [esp + 0x14]
mov ebx, eax
call sym.python27.dll_PyEval_RestoreThread
pop ecx
test ebx, ebx
je 0x1e05dab4
jl 0x1e05dab0
add edi, ebx
mov dword [esp + 0x10], edi
push edi
mov edi, dword [ebp + 8]
call fcn.1e05d91c
mov ebx, eax
pop ecx
cmp ebx, 0x7fffffff
jbe 0x1e05d9e7
push str.unbounded_read_returned_more_bytes_than_a_Python_string_can_hold
push dword [sym.python27.dll_PyExc_OverflowError]
call sym.python27.dll_PyErr_SetString
dec dword [esi]
pop ecx
pop ecx
jne 0x1e05da80
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
jne 0x1e05daa1
mov eax, dword [esp + 0xc]
dec dword [eax]
jne 0x1e05da80
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
jmp 0x1e05da7f
call sym.python27.dll_PyErr_Clear
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
jmp 0x1e05dab4
test edi, edi
jle 0x1e05dad2
cmp dword [esi + 8], edi
jle 0x1e05dace
lea eax, [esp + 0xc]
push edi
push eax
call sym.python27.dll__PyString_Resize
pop ecx
pop ecx
test eax, eax
jl 0x1e05da90
mov esi, dword [esp + 0xc]
mov eax, esi
jmp 0x1e05da82
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xb
jne 0x1e05daf6
dec dword [esi]
jne 0x1e05dae9
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
inc dword [sym.python27.dll__Py_NoneStruct]
mov eax, sym.python27.dll__Py_NoneStruct
jmp 0x1e05da82
dec dword [esi]
jne 0x1e05db02
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
push dword [sym.python27.dll_PyExc_IOError]
call sym.python27.dll_PyErr_SetFromErrno
jmp 0x1e05da7f
Function at 0x1e07a77e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
test esi, esi
je 0x1e07a872
mov ecx, dword [esi + 4]
mov eax, sym.python27.dll_PyFile_Type
cmp ecx, eax
je 0x1e07a7ad
push eax
push ecx
call sym.python27.dll_PyType_IsSubtype
pop ecx
pop ecx
test eax, eax
je 0x1e07a872
cmp dword [esi + 0x30], 0
jne 0x1e07a7ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
jmp 0x1e07a880
mov eax, dword [esi + 0x34]
push edi
mov edi, dword [esi + 0x38]
mov dword [ebp - 4], eax
jmp 0x1e07a843
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
test eax, eax
je 0x1e07a861
sub dword [ebp + 0xc], eax
push 0
pop ecx
setne cl
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov cl, byte [ecx]
dec eax
inc dword [ebp - 8]
cmp cl, 0xd
jne 0x1e07a812
mov byte [ebx], 0xa
xor edi, edi
inc ebx
inc edi
jmp 0x1e07a83a
test edi, edi
je 0x1e07a826
cmp cl, 0xa
jne 0x1e07a831
or dword [ebp - 4], 4
xor edi, edi
inc dword [ebp + 0xc]
jmp 0x1e07a83a
cmp cl, 0xa
jne 0x1e07a835
or dword [ebp - 4], 2
jmp 0x1e07a835
or dword [ebp - 4], 1
mov byte [ebx], cl
inc ebx
xor edi, edi
test eax, eax
jne 0x1e07a7fb
cmp dword [ebp - 0xc], eax
jne 0x1e07a84b
cmp dword [ebp + 0xc], 0
jne 0x1e07a7d6
jmp 0x1e07a861
test edi, edi
je 0x1e07a861
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR90.dll_feof]
pop ecx
test eax, eax
je 0x1e07a861
or dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x34], eax
mov eax, ebx
sub eax, dword [ebp + 8]
mov dword [esi + 0x38], edi
pop edi
jmp 0x1e07a880
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 6
xor eax, eax
pop ebx
leave
ret
Function at 0x1e083945
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp edx, edi
jne 0x1e083964
push edi
call sym.python27.dll_PyLong_FromLong
pop ecx
jmp 0x1e083a92
mov eax, dword [ebp + 8]
push ebx
cmp dword [ebp + 0x10], edi
je 0x1e08397c
mov ebx, eax
lea eax, [eax + edx - 1]
mov dword [ebp + 0xc], 1
jmp 0x1e083984
or dword [ebp + 0xc], 0xffffffff
lea ebx, [eax + edx - 1]
cmp dword [ebp + 0x14], edi
je 0x1e083992
cmp byte [eax], 0x80
sbb ecx, ecx
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
neg ecx
cmp dword [ebp + 0x14], edi
push esi
mov esi, eax
sete al
dec al
xor edi, edi
test edx, edx
jbe 0x1e0839b3
cmp byte [esi], al
jne 0x1e0839b3
inc edi
add esi, ecx
cmp edi, edx
jb 0x1e0839a8
mov esi, edx
sub esi, edi
cmp dword [ebp + 0x14], 0
je 0x1e0839c2
cmp esi, edx
jae 0x1e0839c2
inc esi
cmp esi, 0xffffffe
jbe 0x1e0839e3
push str.byte_array_too_long_to_convert_to_int
push dword [sym.python27.dll_PyExc_OverflowError]
call sym.python27.dll_PyErr_SetString
pop ecx
pop ecx
xor eax, eax
jmp 0x1e083a90
push 0xf
pop ecx
xor edx, edx
lea eax, [esi*8 + 0xe]
div ecx
push eax
call sym.python27.dll__PyLong_New
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1e083a90
xor ecx, ecx
mov dword [ebp - 8], 1
test esi, esi
jbe 0x1e083a76
add edi, 0xc
mov dword [ebp - 0xc], esi
cmp dword [ebp + 0x14], 0
movzx edx, byte [ebx]
je 0x1e083a3a
xor edx, 0xff
add edx, dword [ebp - 8]
mov esi, edx
shr esi, 8
mov dword [ebp - 8], esi
and edx, 0xff
shl edx, cl
add ecx, 8
or eax, edx
cmp ecx, 0xf
jb 0x1e083a5c
mov edx, eax
and edx, 0x7fff
inc dword [ebp - 4]
mov word [edi], dx
inc edi
inc edi
shr eax, 0xf
sub ecx, 0xf
add ebx, dword [ebp + 0xc]
dec dword [ebp - 0xc]
jne 0x1e083a1a
test ecx, ecx
mov ecx, dword [ebp - 4]
je 0x1e083a79
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*2 + 0xc], ax
inc ecx
jmp 0x1e083a79
mov ecx, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
je 0x1e083a81
neg ecx
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, ecx
call fcn.1e08334d
pop esi
pop ebx
pop edi
leave
ret

Function at 0x1e08709c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
test esi, esi
jle 0x1e0870d3
sub edx, eax
mov ecx, 0x7fff
push edi
mov edi, ecx
xor di, word [edx + eax]
add word [ebp - 4], di
mov edi, dword [ebp - 4]
shr word [ebp - 4], 0xf
and edi, ecx
mov word [eax], di
inc eax
inc eax
dec esi
jne 0x1e0870b6
pop edi
pop esi
leave
ret
Function at 0x1e0907bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x1e1d81f8
push edi
je 0x1e09080a
push esi
call sym.python27.dll_PyObject_Str
mov esi, eax
pop ecx
test esi, esi
jne 0x1e0907e6
or eax, 0xffffffff
jmp 0x1e090962
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1e0907bd
add esp, 0xc
dec dword [esi]
mov edi, eax
jne 0x1e090803
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
mov eax, edi
jmp 0x1e090962
test byte [ebp + 0x10], 1
push ebx
je 0x1e09087e
mov ebx, dword [esi + 8]
lea eax, [esi + 0x14]
mov dword [ebp + 8], eax
call sym.python27.dll_PyEval_SaveThread
cmp ebx, 0x7fffffff
mov esi, dword [sym.imp.MSVCR90.dll_fwrite]
mov dword [ebp - 8], eax
jle 0x1e090863
xor edx, edx
mov edi, 0x7fffc000
lea eax, [ebx - 0x80000000]
mov ecx, edi
div ecx
inc eax
mov dword [ebp - 4], eax
imul eax, eax, 0x80004000
add ebx, eax
push dword [ebp + 0xc]
push edi
push 1
push dword [ebp + 8]
call esi
add dword [ebp + 8], edi
add esp, 0x10
dec dword [ebp - 4]
jne 0x1e09084d
push dword [ebp + 0xc]
push ebx
push 1
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call sym.python27.dll_PyEval_RestoreThread
add esp, 0x14
jmp 0x1e09095f
mov edi, dword [sym.imp.MSVCR90.dll_memchr]
push 0x27
pop eax
push dword [esi + 8]
lea ebx, [esi + 0x14]
push eax
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
call edi
add esp, 0xc
test eax, eax
je 0x1e0908b4
push dword [esi + 8]
push 0x22
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x1e0908b4
mov dword [ebp - 4], 0x22
mov esi, dword [esi + 8]
mov dword [ebp - 0xc], esi
call sym.python27.dll_PyEval_SaveThread
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCR90.dll_fputc]
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call edi
and dword [ebp + 8], 0
pop ecx
pop ecx
test esi, esi
jle 0x1e09094e
mov esi, dword [sym.imp.MSVCR90.dll_fprintf]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov al, byte [eax + ecx]
movsx ecx, al
cmp ecx, dword [ebp - 4]
je 0x1e090937
cmp al, 0x5c
je 0x1e090937
cmp al, 9
jne 0x1e090901
push 0x1e1a1744
jmp 0x1e090915
cmp al, 0xa
jne 0x1e09090c
push 0x1e1a1748
jmp 0x1e090915
cmp al, 0xd
jne 0x1e09091a
push 0x1e1a174c
push ebx
call esi
jmp 0x1e090928
mov dl, al
sub dl, 0x20
cmp dl, 0x5e
ja 0x1e09092c
push ebx
push ecx
call edi
pop ecx
pop ecx
jmp 0x1e090943
movzx eax, al
push eax
push str.x_02x
jmp 0x1e09093d
push ecx
push 0x1e1a1740
push ebx
call esi
add esp, 0xc
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jl 0x1e0908e1
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 0x10]
call sym.python27.dll_PyEval_RestoreThread
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret