joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e064376
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [esp + 8], 0
jne 0x1e064380
xor eax, eax
ret
jmp fcn.1e064103

Function at 0x1e064a32
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
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 0x1e064bbe
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
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 0x1e064c6a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov ecx, dword [esp + 4]
je 0x1e064ca2
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 0x1e064c7a
pop edi
pop esi
ret
Function at 0x1e066c6b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
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 0x1e066c7d
pop edi
mov dword [edx + 0x9c8], ecx
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x9c8], 0x270
jl 0x1e066d63
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 + 0x1e1efb00]
xor eax, dword [edi]
inc esi
cmp esi, 0xe3
mov dword [edx], eax
jl 0x1e066cc5
jmp 0x1e066d23
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 + 0x1e1efb00]
xor eax, dword [edi]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x1e066cf9
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 + 0x1e1efb00]
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 0x1e067779
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x1e20008c], ebx
jne 0x1e06778f
call sym.python31.dll_PyThread_init_thread
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x1e0677ac
or eax, 0xffffffff
jmp 0x1e0677f7
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x1e05aee4
push dword [0x1e2006ec]
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jne 0x1e0677ed
call dword [sym.imp.MSVCR90.dll__errno]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1e0677f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1e06c559
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x1e06c65e
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x1e06c65e
cmp dword [edi + 0x20], ebx
je 0x1e06c65e
cmp dword [edi + 0x24], ebx
je 0x1e06c65e
push 2
mov dword [edi + 0x14], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
pop edx
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x14], ebx
jge 0x1e06c5ab
neg eax
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x18]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffffb9
push ebx
add eax, 0x71
push ebx
mov dword [esi + 4], eax
push ebx
cmp ecx, edx
jne 0x1e06c5cb
call fcn.1e064376
jmp 0x1e06c5d0
call fcn.1e064385
add esp, 0xc
mov dword [edi + 0x30], eax
push esi
mov dword [esi + 0x28], ebx
call fcn.1e06a9fd
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x44]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x4c]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax - 2]
push eax
push ebx
push dword [esi + 0x44]
call fcn.1e037fd0
mov eax, dword [esi + 0x84]
imul eax, eax, 0xc
movzx ecx, word [eax + 0x1e1898da]
mov dword [esi + 0x80], ecx
movzx ecx, word [eax + 0x1e1898d8]
mov dword [esi + 0x8c], ecx
movzx ecx, word [eax + 0x1e1898dc]
add esp, 0x10
mov dword [esi + 0x90], ecx
movzx eax, word [eax + 0x1e1898de]
mov dword [esi + 0x7c], eax
push 2
pop eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x48], ebx
xor eax, eax
jmp 0x1e06c661
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x1e074b2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.1e035980
mov eax, dword [0x1e1f9314]
test eax, eax
je 0x1e074b5e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call eax
mov esi, eax
test esi, esi
jne 0x1e074b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x1e074b5e
mov eax, esi
jmp 0x1e074b7d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1e074b70
xor eax, eax
jmp 0x1e074b7d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1e065239
pop ecx
pop ecx
pop esi
pop ebp
ret 8

Function at 0x1e07a6d7
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
push dword [0x1e20067c]
call sym.python31.dll_PyThread_get_key_value
mov esi, eax
pop ecx
test esi, esi
jne 0x1e07a6f5
push str.auto_releasing_thread_state__but_no_thread_state_for_this_thread
call sym.python31.dll_Py_FatalError
pop ecx
push esi
call fcn.1e05b344
pop ecx
test eax, eax
jne 0x1e07a70b
push str.This_thread_state_must_be_current_when_releasing
call sym.python31.dll_Py_FatalError
pop ecx
dec dword [esi + 0x4c]
jne 0x1e07a71d
push esi
call sym.python31.dll_PyThreadState_Clear
pop ecx
pop esi
jmp sym.python31.dll_PyThreadState_DeleteCurrent
cmp dword [esp + 8], 1
pop esi
jne 0x1e07a72a
jmp sym.python31.dll_PyEval_SaveThread
ret
Function at 0x1e07aae2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
jne 0x1e07aafe
push ebx
call sym.python31.dll_PyLong_FromLong
pop ecx
jmp 0x1e07ab7b
mov eax, dword [ebp + 8]
push edi
cmp dword [ebp + 0x10], ebx
je 0x1e07ab16
mov edi, eax
lea eax, [eax + edx - 1]
mov dword [ebp + 0xc], 1
jmp 0x1e07ab1e
or dword [ebp + 0xc], 0xffffffff
lea edi, [eax + edx - 1]
cmp dword [ebp + 0x14], ebx
je 0x1e07ab2c
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], ebx
push esi
mov esi, eax
sete al
dec al
xor ebx, ebx
test edx, edx
jbe 0x1e07ab4d
cmp byte [esi], al
jne 0x1e07ab4d
inc ebx
add esi, ecx
cmp ebx, edx
jb 0x1e07ab42
mov esi, edx
sub esi, ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x1e07ab5d
cmp esi, edx
jae 0x1e07ab5d
inc esi
cmp esi, 0xffffffe
jbe 0x1e07ab7e
push str.byte_array_too_long_to_convert_to_int
push dword [sym.python31.dll_PyExc_OverflowError]
call sym.python31.dll_PyErr_SetString
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push 0xf
pop ecx
xor edx, edx
lea eax, [esi*8 + 0xe]
div ecx
push eax
call sym.python31.dll__PyLong_New
pop ecx
cmp eax, ebx
je 0x1e07ab77
xor ecx, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
test esi, esi
jbe 0x1e07ac0c
lea edi, [eax + 0xc]
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
je 0x1e07abd0
xor edx, 0xff
add edx, dword [ebp - 0xc]
mov esi, edx
shr esi, 8
mov dword [ebp - 0xc], esi
and edx, 0xff
shl edx, cl
add ecx, 8
or ebx, edx
cmp ecx, 0xf
jb 0x1e07abf2
mov edx, ebx
and edx, 0x7fff
inc dword [ebp - 4]
mov word [edi], dx
inc edi
inc edi
shr ebx, 0xf
sub ecx, 0xf
mov edx, dword [ebp + 0xc]
add dword [ebp - 8], edx
dec dword [ebp - 0x10]
jne 0x1e07abad
test ecx, ecx
je 0x1e07ac0c
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov word [eax + ecx*2 + 0xc], bx
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 4]
je 0x1e07ac17
neg ecx
mov dword [eax + 8], ecx
call fcn.1e01a40d
jmp 0x1e07ab79

Function at 0x1e07cbf0
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 8]
mov ecx, eax
test eax, eax
jge 0x1e07cc00
neg ecx
cmp ecx, 1
jg 0x1e07cc17
test eax, eax
jge 0x1e07cc11
movsx eax, word [edi + 0xc]
neg eax
jmp 0x1e07cc56
jne 0x1e07cc52
xor eax, eax
jmp 0x1e07cc56
push esi
push 1
call sym.python31.dll_PyLong_FromLong
mov esi, eax
pop ecx
test esi, esi
je 0x1e07cc41
push esi
push edi
call fcn.1e00bfd0
dec dword [esi]
pop ecx
pop ecx
mov edi, eax
jne 0x1e07cc3d
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
test edi, edi
jne 0x1e07cc46
pop esi
xor eax, eax
pop edi
ret
neg dword [edi + 8]
pop esi
mov eax, edi
pop edi
jmp fcn.1e01a445
movsx eax, word [edi + 0xc]
or ecx, 0xffffffff
sub ecx, eax
push ecx
call sym.python31.dll_PyLong_FromLong
pop ecx
pop edi
ret
Function at 0x1e080034
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x1e080088
push eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
jmp 0x1e08008d
mov eax, dword [esi]
test eax, eax
je 0x1e08006a
push eax
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCR90.dll_putc]
jmp 0x1e080085
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x1e08007b
mov cl, byte [edi]
mov byte [eax], cl
inc dword [esi + 0x10]
jmp 0x1e080087
movsx eax, byte [edi]
push esi
push eax
call fcn.1e07f35e
pop ecx
pop ecx
inc edi
dec dword [ebp + 0xc]
jns 0x1e080057
pop edi
pop esi
pop ebp
ret

Function at 0x1e08a26f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push ebx
push str.Fatal_Python_error:__s_n
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
call sym.python31.dll_PyErr_Occurred
test eax, eax
je 0x1e08a2ad
call sym.python31.dll_PyErr_Print
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e08a2b2
sub eax, edx
mov esi, eax
lea eax, [esi + esi + 2]
call fcn.1e037fa0
mov edi, esp
xor eax, eax
movsx cx, byte [eax + ebx]
mov word [edi + eax*2], cx
inc eax
cmp eax, esi
jbe 0x1e08a2ca
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Fatal_Python_error:
call esi
push edi
call esi
push 0x1e1a4b50
call esi
call dword [sym.imp.MSVCR90.dll_abort]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1e093ccd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
mov ebx, dword [eax + 8]
push esi
push edi
xor edi, edi
call fcn.1e002088
test eax, eax
jne 0x1e093cfb
push dword [sym.python31.dll_PyExc_IOError]
call sym.python31.dll_PyErr_SetFromErrno
pop ecx
jmp 0x1e093e36
push 0x2000
push edi
call sym.python31.dll_PyBytes_FromStringAndSize
mov ebx, eax
pop ecx
pop ecx
mov dword [esp + 0x10], ebx
cmp ebx, edi
je 0x1e093e34
push edi
push dword [ebp + 8]
call fcn.1e06c9a4
mov esi, eax
pop ecx
pop ecx
cmp esi, 0x7fffffff
ja 0x1e093e16
test esi, esi
jbe 0x1e093e16
cmp dword [ebx + 8], esi
jge 0x1e093d51
lea eax, [esp + 0x10]
push esi
push eax
call sym.python31.dll__PyBytes_Resize
pop ecx
pop ecx
test eax, eax
jl 0x1e093d90
mov ebx, dword [esp + 0x10]
call sym.python31.dll_PyEval_SaveThread
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCR90.dll__errno]
and dword [eax], 0
sub esi, edi
push esi
lea eax, [ebx + edi + 0x10]
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 esi, eax
call sym.python31.dll_PyEval_RestoreThread
pop ecx
test esi, esi
je 0x1e093dbb
jl 0x1e093db7
add edi, esi
jmp 0x1e093d16
test edi, edi
jne 0x1e093dac
mov eax, dword [esp + 0x10]
dec dword [eax]
jne 0x1e093e34
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
jmp 0x1e093e33
call sym.python31.dll_PyErr_Clear
mov ebx, dword [esp + 0x10]
jmp 0x1e093dbb
test edi, edi
jle 0x1e093dd9
cmp dword [ebx + 8], edi
jle 0x1e093dd5
lea eax, [esp + 0x10]
push edi
push eax
call sym.python31.dll__PyBytes_Resize
pop ecx
pop ecx
test eax, eax
jl 0x1e093d94
mov ebx, dword [esp + 0x10]
mov eax, ebx
jmp 0x1e093e36
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xb
jne 0x1e093dfd
dec dword [ebx]
jne 0x1e093df0
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
inc dword [sym.python31.dll__Py_NoneStruct]
mov eax, sym.python31.dll__Py_NoneStruct
jmp 0x1e093e36
dec dword [ebx]
jne 0x1e093e09
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
push dword [sym.python31.dll_PyExc_IOError]
call sym.python31.dll_PyErr_SetFromErrno
jmp 0x1e093e33
push str.unbounded_read_returned_more_bytes_than_a_Python_string_can_hold
push dword [sym.python31.dll_PyExc_OverflowError]
call sym.python31.dll_PyErr_SetString
dec dword [ebx]
pop ecx
pop ecx
jne 0x1e093e34
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1e0a07de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0c
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x1e0a08a0
call fcn.1e029a1d
test eax, eax
je 0x1e0a08a0
push ebx
lea edi, [ebp - 0xc0c]
call sym.python31.dll_PyEval_SaveThread
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
mov esi, 0x402
push esi
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 8], eax
cmp eax, esi
jb 0x1e0a083e
add eax, eax
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1e0a083e
push edi
push dword [ebp + 8]
call ebx
mov dword [ebp + 8], eax
push dword [ebp - 4]
call sym.python31.dll_PyEval_RestoreThread
pop ecx
pop ebx
test edi, edi
jne 0x1e0a0858
call sym.python31.dll_PyErr_NoMemory
xor eax, eax
jmp 0x1e0a091b
cmp dword [ebp + 8], 0
jne 0x1e0a087d
lea eax, [ebp - 0xc0c]
cmp edi, eax
je 0x1e0a0870
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
push 0
call fcn.1e09d60c
pop ecx
jmp 0x1e0a091b
push dword [ebp + 8]
push edi
call sym.python31.dll_PyUnicodeUCS2_FromWideChar
mov esi, eax
lea eax, [ebp - 0xc0c]
pop ecx
pop ecx
cmp edi, eax
je 0x1e0a089c
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov eax, esi
jmp 0x1e0a091b
call sym.python31.dll_PyEval_SaveThread
mov esi, eax
lea eax, [ebp - 0x408]
push 0x402
push eax
call dword [sym.imp.MSVCR90.dll__getcwd]
push esi
mov edi, eax
call sym.python31.dll_PyEval_RestoreThread
add esp, 0xc
test edi, edi
jne 0x1e0a08cf
call fcn.1e086465
jmp 0x1e0a091b
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
je 0x1e0a08f7
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0a08de
sub eax, edx
push eax
lea eax, [ebp - 0x408]
push eax
call sym.python31.dll_PyBytes_FromStringAndSize
pop ecx
jmp 0x1e0a0877
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0a08f7
push str.surrogateescape
push dword [sym.python31.dll_Py_FileSystemDefaultEncoding]
sub eax, edx
push eax
lea eax, [ebp - 0x408]
push eax
call sym.python31.dll_PyUnicodeUCS2_Decode
add esp, 0x10
pop edi
pop esi
leave
ret

Function at 0x1e0c68ed
Capabilities:
Query environment variable

Disassembly:
push ecx
cmp dword [sym.python31.dll_Py_IgnoreEnvironmentFlag], 0
push ebx
push esi
push edi
jne 0x1e0c6974
push str.PYTHONSTARTUP
call dword [sym.imp.MSVCR90.dll_getenv]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1e0c6974
cmp byte [ebx], 0
je 0x1e0c6974
push 0x1e0e79c0
push ebx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1e0c6943
push dword [esp + 0x14]
push 0
push ebx
push esi
call sym.python31.dll_PyRun_SimpleFileExFlags
call sym.python31.dll_PyErr_Clear
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
jmp 0x1e0c6974
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, dword [eax]
push str.Could_not_open_PYTHONSTARTUP_n
call sym.python31.dll_PySys_WriteStderr
pop ecx
call esi
mov dword [eax], edi
push ebx
push dword [sym.python31.dll_PyExc_IOError]
call sym.python31.dll_PyErr_SetFromErrnoWithFilename
pop ecx
pop ecx
call sym.python31.dll_PyErr_Print
call sym.python31.dll_PyErr_Clear
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x474f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474f42
call fcn.0047a885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474f42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474f39
xor eax, eax
jmp 0x474f4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474f50
pop edi
pop esi
pop ebx
ret 4

Function at 0x47adb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ade3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad1b
jmp 0x47ae01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad1b
test edi, edi
mov eax, edi
jne 0x47adeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401e5f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e9e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e9e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e9e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e9e
cmp dword [ecx + 0x74], 0xe
jbe 0x401e9e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41930d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x419354
call fcn.0041f7aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419354
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419370
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418e0d
mov esi, eax
test edi, edi
je 0x41936e
test ebx, ebx
je 0x41936e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a428
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5886f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x41a46d
push 0x534618
push 4
push eax
call fcn.0050d8e8
push eax
call fcn.00401010
add esp, 0x10
jmp 0x41a483
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a503
push edi
call fcn.0050be5e
mov edi, dword [eax]
call fcn.0050be5e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050a8cb
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050be5e
cmp dword [eax], 0
je 0x41a4d7
call fcn.0050be5e
push dword [eax]
call fcn.00412b9b
pop ecx
jmp 0x41a4de
call fcn.0050be5e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41a503
cmp dword [ebp - 0x234], esi
jae 0x41a503
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41a505
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050a89e
leave
ret