joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e06a710
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebp + 0x10], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
jg 0x1e06a734
jl 0x1e06a813
test edi, edi
jbe 0x1e06a813
mov ecx, 1
mov dword [ebp - 0x80], 0xedb88320
mov eax, ecx
mov dword [ebp + eax*4 - 0x80], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x1e06a742
push ebx
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x100]
call fcn.1e06a6d0
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0x80]
call fcn.1e06a6d0
jmp 0x1e06a770
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x100]
call fcn.1e06a6d0
mov eax, edi
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x1e06a7a8
xor edx, edx
mov eax, esi
lea ecx, [ebp - 0x100]
test esi, esi
je 0x1e06a7a6
test al, 1
je 0x1e06a79d
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x1e06a797
mov esi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
mov cl, 1
call fcn.1e149940
mov edi, eax
or eax, edx
mov dword [ebp + 0x10], edx
je 0x1e06a80d
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0x80]
call fcn.1e06a6d0
mov eax, edi
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x1e06a7f2
xor edx, edx
mov eax, esi
lea ecx, [ebp - 0x80]
test esi, esi
je 0x1e06a7f0
test al, 1
je 0x1e06a7e7
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x1e06a7e1
mov esi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
mov cl, 1
call fcn.1e149940
mov edi, eax
mov ecx, edi
or ecx, edx
mov dword [ebp + 0x10], edx
jne 0x1e06a770
mov eax, esi
xor eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1e06db10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [esi], 0
lea esp, [esp]
mov ecx, dword [esi]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
jbe 0x1e06db32
mov eax, 0x40000000
push eax
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
mov ecx, dword [ebx + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
test eax, eax
jle 0x1e06db52
add dword [esi], eax
cmp dword [esi], edi
jb 0x1e06db20
test eax, eax
jge 0x1e06db76
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.MSVCR90.dll_strerror]
push eax
or eax, 0xffffffff
mov ecx, ebx
call fcn.1e06da30
add esp, 8
or eax, 0xffffffff
pop ebp
ret
test eax, eax
jne 0x1e06db81
mov dword [ebx + 0x40], 1
xor eax, eax
pop ebp
ret
Function at 0x1e0b05b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x1e0b06cd
mov eax, dword [ebx + 4]
cmp eax, sym.python27.dll_PyFile_Type
je 0x1e0b05e6
push sym.python27.dll_PyFile_Type
push eax
call sym.python27.dll_PyType_IsSubtype
add esp, 8
test eax, eax
je 0x1e0b06cd
cmp dword [ebx + 0x30], 0
jne 0x1e0b0606
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
mov edx, dword [ebx + 0x34]
push edi
mov edi, dword [ebx + 0x38]
mov dword [ebp - 4], edx
je 0x1e0b06b8
lea ebx, [ebx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push 1
push esi
mov ebx, esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
test eax, eax
je 0x1e0b06b5
mov edx, dword [ebp + 0xc]
mov ecx, 0
sub edx, eax
setne cl
mov dword [ebp - 8], ecx
lea ebx, [ebx]
mov cl, byte [ebx]
dec eax
inc ebx
cmp cl, 0xd
jne 0x1e0b0664
mov byte [esi], 0xa
inc esi
mov edi, 1
jmp 0x1e0b068a
test edi, edi
je 0x1e0b0676
cmp cl, 0xa
jne 0x1e0b0681
or dword [ebp - 4], 4
xor edi, edi
inc edx
jmp 0x1e0b068a
cmp cl, 0xa
jne 0x1e0b0685
or dword [ebp - 4], 2
jmp 0x1e0b0685
or dword [ebp - 4], 1
mov byte [esi], cl
inc esi
xor edi, edi
test eax, eax
jne 0x1e0b0650
mov dword [ebp + 0xc], edx
cmp dword [ebp - 8], eax
jne 0x1e0b069c
test edx, edx
jne 0x1e0b0620
jmp 0x1e0b06b5
test edi, edi
je 0x1e0b06b5
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
je 0x1e0b06b5
or dword [ebp - 4], 1
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], edi
pop edi
mov eax, esi
sub eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR90.dll__errno]
pop esi
mov dword [eax], 6
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1e0bdbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test edx, edx
jne 0x1e0bdc11
push edx
call sym.python27.dll_PyLong_FromLong
add esp, 4
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
push edi
je 0x1e0bdc28
mov eax, dword [ebp + 8]
lea edi, [eax + edx - 1]
mov dword [ebp - 8], 1
jmp 0x1e0bdc36
mov edi, dword [ebp + 8]
lea eax, [edi + edx - 1]
mov dword [ebp - 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x1e0bdc4c
cmp byte [edi], 0x80
sbb eax, eax
inc eax
mov dword [ebp + 0x14], eax
mov ebx, eax
mov ecx, dword [ebp - 8]
neg ecx
mov eax, ebx
neg eax
sbb al, al
push esi
xor esi, esi
test edx, edx
jbe 0x1e0bdc6b
mov edi, edi
cmp byte [edi], al
jne 0x1e0bdc6b
inc esi
add edi, ecx
cmp esi, edx
jb 0x1e0bdc60
mov edi, edx
sub edi, esi
test ebx, ebx
je 0x1e0bdc78
cmp edi, edx
jae 0x1e0bdc78
inc edi
cmp edi, 0xffffffe
jbe 0x1e0bdc9d
mov ecx, dword [sym.python27.dll_PyExc_OverflowError]
push str.byte_array_too_long_to_convert_to_int
push ecx
call sym.python27.dll_PyErr_SetString
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea edx, [edi*8 + 0xe]
mov eax, 0x88888889
mul edx
shr edx, 3
push edx
call sym.python27.dll__PyLong_New
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1e0bdc94
mov ebx, dword [ebp - 0xc]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x10], 1
test edi, edi
jbe 0x1e0bdd34
add eax, 0xc
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x14], 0
movzx edx, byte [ebx]
je 0x1e0bdcf6
xor edx, 0xff
add edx, dword [ebp - 0x10]
mov edi, edx
shr edi, 8
mov dword [ebp - 0x10], edi
and edx, 0xff
shl edx, cl
add ecx, 8
or esi, edx
cmp ecx, 0xf
jb 0x1e0bdd19
inc dword [ebp - 4]
mov edx, esi
and edx, 0x7fff
mov word [eax], dx
add eax, 2
shr esi, 0xf
sub ecx, 0xf
add ebx, dword [ebp - 8]
sub dword [ebp - 0xc], 1
jne 0x1e0bdcd6
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov ecx, dword [ebp - 4]
je 0x1e0bdd37
mov word [eax + ecx*2 + 0xc], si
inc ecx
jmp 0x1e0bdd37
mov ecx, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
je 0x1e0bdd3f
neg ecx
mov esi, ecx
mov dword [eax + 8], esi
mov edx, esi
test esi, esi
jge 0x1e0bdd4c
neg edx
mov edi, dword [ebp + 0xc]
mov ecx, edx
test edx, edx
jle 0x1e0bdd7b
lea eax, [edi + edx*2 + 0xa]
lea esp, [esp]
cmp word [eax], 0
jne 0x1e0bdd6e
dec ecx
sub eax, 2
test ecx, ecx
jg 0x1e0bdd60
cmp ecx, edx
je 0x1e0bdd7b
test esi, esi
jge 0x1e0bdd78
neg ecx
mov dword [edi + 8], ecx
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1e0c2570
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 0x1e0c25ba
mov cx, word [ebp - 4]
sub edx, eax
push edi
lea esp, [esp]
mov edi, 0x7fff
xor di, word [edx + eax]
add eax, 2
add cx, di
mov word [ebp - 4], cx
mov edi, dword [ebp - 4]
and edi, 0x7fff
mov word [eax - 2], di
shr cx, 0xf
sub esi, 1
jne 0x1e0c2590
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1e0cfe10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x1e23e368
push edi
je 0x1e0cfe68
push esi
call sym.python27.dll_PyObject_Str
mov esi, eax
add esp, 4
test esi, esi
jne 0x1e0cfe3c
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.1e0cfe10
add esp, 0xc
add dword [esi], 0xffffffff
mov edi, eax
jne 0x1e0cfe60
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x18]
push esi
call eax
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x10], 1
push ebx
je 0x1e0cfee9
lea edi, [esi + 0x14]
mov esi, dword [esi + 8]
call sym.python27.dll_PyEval_SaveThread
cmp esi, 0x7fffffff
mov dword [ebp + 8], eax
jle 0x1e0cfec6
lea ecx, [esi - 0x80000000]
mov eax, 0x8001
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
inc ecx
mov ebx, ecx
imul ecx, ecx, 0x80004000
add esi, ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x7fffc000
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
add edi, 0x7fffc000
sub ebx, 1
jne 0x1e0cfea6
mov eax, dword [ebp + 0xc]
push eax
push esi
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
mov ecx, dword [ebp + 8]
push ecx
call sym.python27.dll_PyEval_RestoreThread
add esp, 0x14
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.MSVCR90.dll_memchr]
push edx
lea ebx, [esi + 0x14]
push 0x27
push ebx
mov dword [ebp + 8], 0x27
mov dword [ebp - 4], ebx
call edi
add esp, 0xc
test eax, eax
je 0x1e0cff23
mov eax, dword [esi + 8]
push eax
push 0x22
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x1e0cff23
mov dword [ebp + 8], 0x22
mov esi, dword [esi + 8]
mov dword [ebp - 8], esi
call sym.python27.dll_PyEval_SaveThread
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCR90.dll_fputc]
add esp, 8
xor ebx, ebx
test esi, esi
jle 0x1e0cffcb
mov esi, dword [sym.imp.MSVCR90.dll_fprintf]
mov edx, dword [ebp - 4]
mov al, byte [edx + ebx]
movsx ecx, al
cmp ecx, dword [ebp + 8]
je 0x1e0cffb9
cmp al, 0x5c
je 0x1e0cffb9
cmp al, 9
jne 0x1e0cff75
push 0x1e2058cc
push edi
call esi
add esp, 8
jmp 0x1e0cffc5
cmp al, 0xa
jne 0x1e0cff86
push 0x1e2058d0
push edi
call esi
add esp, 8
jmp 0x1e0cffc5
cmp al, 0xd
jne 0x1e0cff97
push 0x1e2058d4
push edi
call esi
add esp, 8
jmp 0x1e0cffc5
mov dl, al
sub dl, 0x20
cmp dl, 0x5e
ja 0x1e0cffae
push edi
push ecx
call dword [sym.imp.MSVCR90.dll_fputc]
add esp, 8
jmp 0x1e0cffc5
movzx eax, al
push eax
push str.x_02x
jmp 0x1e0cffbf
push ecx
push 0x1e2058c8
push edi
call esi
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x1e0cff52
mov ecx, dword [ebp + 8]
push edi
push ecx
call dword [sym.imp.MSVCR90.dll_fputc]
mov edx, dword [ebp - 0xc]
push edx
call sym.python27.dll_PyEval_RestoreThread
add esp, 0xc
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1e1007b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push str.PATH
call dword [sym.imp.MSVCR90.dll_getenv]
mov esi, dword [str.python]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, eax
mov eax, dword [0x1e282f3c]
add esp, 4
mov dword [esp + 0xc], esi
test eax, eax
je 0x1e1007fb
push 0x100
push 0x1e2813d8
push eax
call edi
test eax, eax
jne 0x1e1007fb
mov byte [0x1e2813d8], al
push 0x100
push 0x1e2814e0
push 0
call edi
test eax, eax
jne 0x1e1008ef
test esi, esi
je 0x1e100819
cmp byte [esi], al
jne 0x1e100825
mov dword [esp + 0xc], str.python
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCR90.dll_strchr]
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
jne 0x1e1008db
push 0x2f
push esi
call edi
add esp, 8
test eax, eax
jne 0x1e1008db
test ebx, ebx
je 0x1e1008cd
nop
push 0x3b
push ebx
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x1e100889
mov esi, edi
sub esi, ebx
cmp esi, 0x100
jbe 0x1e10086f
mov esi, 0x100
push esi
push ebx
push 0x1e2814e0
call dword [sym.imp.MSVCR90.dll_strncpy]
mov byte [esi + 0x1e2814e0], 0
mov esi, dword [esp + 0x18]
jmp 0x1e10089a
push 0x100
push ebx
push 0x1e2814e0
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
push esi
mov ebx, 0x1e2814e0
call fcn.1e1002a0
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll__stat64i32]
add esp, 8
test eax, eax
je 0x1e1008ef
test edi, edi
je 0x1e1008cd
lea ebx, [edi + 1]
mov edi, dword [sym.imp.MSVCR90.dll_strchr]
jmp 0x1e100850
mov byte [0x1e2814e0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100
push esi
push 0x1e2814e0
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1e100f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, 0x1e282f2c
push edi
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e100f80
sub eax, esi
mov esi, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e100f90
sub eax, edi
lea edi, [eax + esi + 0x25]
mov eax, edi
call fcn.1e149560
mov esi, esp
lea edx, [ebp - 5]
push edx
push ebx
push 0x1e282f2c
push str.SoftwarePythonPythonCore_sModules_s_s
push edi
push esi
call sym.python27.dll_PyOS_snprintf
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
push 0x80000001
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x1e10100c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push eax
push esi
push 0x80000002
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x1e10100c
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1e148908
mov esp, ebp
pop ebp
ret
mov esi, dword [0x1e282fb8]
mov ecx, dword [esi]
test ecx, ecx
je 0x1e100ff6
mov ebx, dword [ebp - 0xc]
jmp 0x1e101020
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e101025
sub eax, edi
cmp ebx, eax
jbe 0x1e101050
mov edi, dword [ebp - 0x10]
push eax
push ecx
mov ecx, edi
sub ecx, eax
lea edx, [ecx + ebx - 1]
push edx
call dword [sym.imp.MSVCR90.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1e10105c
mov ebx, dword [ebp - 0xc]
mov ecx, dword [esi + 0xc]
add esi, 0xc
test ecx, ecx
jne 0x1e101020
jmp 0x1e100ff6
cmp dword [esi], 0
je 0x1e100ff6
mov eax, dword [esi + 4]
push eax
push edi
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
test eax, eax
je 0x1e101078
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1e148908
mov esp, ebp
pop ebp
ret
Function at 0x1e1261f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1e126206
test al, 0x10
je 0x1e126206
mov eax, 1
ret
xor eax, eax
ret

Function at 0x1e128b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], 0
jne 0x1e128bd1
push str.PYTHONCASEOK
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x1e128bd1
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1e148908
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1e128c0a
mov ecx, dword [sym.python27.dll_PyExc_NameError]
push esi
push edi
push str.Cant_find_file_for_module__.100s_n_filename__.300s_
push ecx
call sym.python27.dll_PyErr_Format
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1e148908
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x120]
push edi
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
mov ecx, dword [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1e148908
mov esp, ebp
pop ebp
ret

Function at 0x1e12b190
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
mov ebx, ecx
mov edi, edx
test eax, eax
je 0x1e12b1b1
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
sub ebx, 1
js 0x1e12b1ef
mov eax, dword [esi]
test eax, eax
je 0x1e12b1cc
push eax
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCR90.dll_putc]
add esp, 8
jmp 0x1e12b1e9
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x1e12b1dd
mov cl, byte [edi]
mov byte [eax], cl
inc dword [esi + 0x10]
jmp 0x1e12b1e9
movsx edx, byte [edi]
push edx
call fcn.1e12b0f0
add esp, 4
inc edi
sub ebx, 1
jns 0x1e12b1b6
pop edi
pop esi
pop ebx
ret

Function at 0x1e12b370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, esi
mov ecx, edi
call fcn.1e12b280
mov edx, dword [ebp + 8]
mov eax, esi
mov ecx, edi
pop ebp
jmp fcn.1e12b190

Function at 0x1e12c390
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x1e12c3a9
push eax
push esi
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
pop esi
ret
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
sub eax, ecx
cmp eax, esi
jge 0x1e12c3b7
mov esi, eax
push esi
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add dword [edi + 0x10], esi
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x1e12d4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.MSVCR90.dll__fileno]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll__fstat64i32]
add esp, 8
test eax, eax
jne 0x1e12d55b
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x1e12d55b
cmp edi, 0x40000
jg 0x1e12d55b
cmp edi, 0x7fffffff
ja 0x1e12d55b
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1e12d55b
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
push eax
push esi
call sym.python27.dll_PyMarshal_ReadObjectFromString
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call sym.python27.dll_PyMarshal_ReadObjectFromFile
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1e1304d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x1e130544
push ebx
push edi
cmp esi, dword [sym.python27.dll__PyThreadState_Current]
jne 0x1e1304f5
push str.PyThreadState_Delete:_tstate_is_still_current
call sym.python27.dll_Py_FatalError
add esp, 4
push esi
call fcn.1e1308f0
add esp, 4
cmp dword [0x1e282fe8], 0
je 0x1e130538
mov edi, dword [0x1e282fec]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, esi
jne 0x1e130538
mov ecx, dword [0x1e282fec]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
test esi, esi
jne 0x1e1304e0
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x1e130730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1e282fe8], 0
je 0x1e130775
mov eax, dword [0x1e282fec]
push esi
push edi
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x1e13076c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1e13076c
push str.Couldnt_create_autoTLSkey_mapping
call sym.python27.dll_Py_FatalError
add esp, 4
mov dword [edi + 0x48], 1
pop edi
pop esi
pop ebp
ret
Function at 0x1e1309c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [sym.python27.dll__PyThreadState_Current]
jne 0x1e1309dc
push str.PyThreadState_Delete:_tstate_is_still_current
call sym.python27.dll_Py_FatalError
add esp, 4
push ebx
call fcn.1e1308f0
add esp, 4
cmp dword [0x1e282fe8], 0
je 0x1e130a22
push esi
mov esi, dword [0x1e282fec]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
cmp esi, ebx
pop esi
jne 0x1e130a22
mov eax, dword [0x1e282fec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebx
pop ebp
ret

Function at 0x1e130a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, dword [sym.python27.dll__PyThreadState_Current]
test esi, esi
jne 0x1e130a48
push str.PyThreadState_DeleteCurrent:_no_current_tstate
call sym.python27.dll_Py_FatalError
add esp, 4
cmp dword [0x1e282fe8], 0
mov dword [sym.python27.dll__PyThreadState_Current], 0
je 0x1e130a8f
push ebx
push edi
mov edi, dword [0x1e282fec]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, esi
pop edi
pop ebx
jne 0x1e130a8f
mov eax, dword [0x1e282fec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.1e1308f0
mov eax, dword [0x1e282f8c]
add esp, 4
mov esi, eax
test eax, eax
je 0x1e130abf
push eax
mov dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jl 0x1e130abf
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret

Function at 0x1e130dd0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1e282fec], eax
mov dword [0x1e282fe8], esi
test esi, esi
je 0x1e130e15
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1e130e0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1e130e0e
push str.Couldnt_create_autoTLSkey_mapping
call sym.python27.dll_Py_FatalError
add esp, 4
mov dword [edi + 0x48], 1
pop esi
ret
Function at 0x1e130ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [0x1e282fec]
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp esi, edi
jne 0x1e130f13
mov eax, dword [0x1e282fe8]
lea ebx, [edi + 1]
push ebx
push eax
call fcn.1e130600
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x1e130f0e
push str.Couldnt_create_thread_state_for_new_thread
call sym.python27.dll_Py_FatalError
add esp, 4
mov dword [esi + 0x48], edi
jmp 0x1e130f24
xor ecx, ecx
cmp esi, dword [sym.python27.dll__PyThreadState_Current]
sete cl
mov edi, ecx
test edi, edi
jne 0x1e130f2d
push esi
call sym.python27.dll_PyEval_RestoreThread
add esp, 4
inc dword [esi + 0x48]
test ebx, ebx
je 0x1e130f39
call sym.python27.dll_PyEval_InitThreads
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret

Function at 0x1e130f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x1e282fec]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1e130f84
push str.auto_releasing_thread_state__but_no_thread_state_for_this_thread
call sym.python27.dll_Py_FatalError
add esp, 4
cmp esi, dword [sym.python27.dll__PyThreadState_Current]
je 0x1e130f99
push str.This_thread_state_must_be_current_when_releasing
call sym.python27.dll_Py_FatalError
add esp, 4
add dword [esi + 0x48], 0xffffffff
jne 0x1e130fb0
push esi
call sym.python27.dll_PyThreadState_Clear
add esp, 4
pop edi
pop esi
pop ebp
jmp sym.python27.dll_PyThreadState_DeleteCurrent
cmp dword [ebp + 8], 1
pop edi
pop esi
jne 0x1e130fbe
pop ebp
jmp sym.python27.dll_PyEval_SaveThread
pop ebp
ret