joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xea640
call fcn.004050c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xea620], 0
push eax
push eax
push eax
mov word [ebp - 0xea60c], ax
lea eax, [ebp - 0xea61c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xea620]
mov dword [ebp - 0xea61c], 0x10001
push eax
mov dword [ebp - 0xea618], 0x7d00
mov dword [ebp - 0xea614], 0x7d00
mov dword [ebp - 0xea610], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xea600
lea eax, [ebp - 0xea608]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 0x4e1f
xor ebx, ebx
nop word [eax + eax]
mov cl, bl
mov al, bl
shl cl, 2
shl al, 3
movsx eax, al
lea edx, [ecx + ebx]
movsx ecx, dl
xor eax, ecx
cdq
idiv esi
mov byte [ebp + ebx - 0xea608], dl
inc ebx
cmp ebx, 0xea600
jb 0x403710
lea eax, [ebp - 0xea608]
mov dword [ebp - 0xea63c], 0xea600
mov dword [ebp - 0xea640], eax
lea eax, [ebp - 0xea640]
push 0x20
push eax
push dword [ebp - 0xea620]
mov dword [ebp - 0xea638], 0
mov dword [ebp - 0xea634], 0
mov dword [ebp - 0xea630], 0
mov dword [ebp - 0xea62c], 0
mov dword [ebp - 0xea628], 0
mov dword [ebp - 0xea624], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xea640]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xea640]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440f
mov esp, ebp
pop ebp
ret
Function at 0x403960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa184c
call fcn.004050c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov dword [ebp - 0xa1824], edx
nop word [eax + eax]
mov eax, edx
neg edx
shr eax, 6
mov dword [ebp - 0xa1828], eax
mov ecx, eax
mov eax, dword [ebp - 0xa1824]
and ecx, 3
mov bl, al
neg al
shl bl, cl
mov ecx, edx
shr ecx, 0xd
and cl, al
shr edx, 1
xor bl, cl
and bl, 0x7f
xor bl, dl
mov edx, dword [ebp - 0xa1824]
mov ecx, edx
mov eax, edx
shr ecx, 9
and cl, dl
shr eax, 0xc
xor cl, al
xor cl, byte [ebp - 0xa1828]
or bl, cl
mov byte [ebp + edx - 0xa1808], bl
inc edx
mov dword [ebp - 0xa1824], edx
cmp edx, 0xa17fc
jb 0x4039f0
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa1844], 0xa17fc
mov dword [ebp - 0xa1848], eax
lea eax, [ebp - 0xa1848]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa1840], 0
mov dword [ebp - 0xa183c], 0
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040440f
mov esp, ebp
pop ebp
ret
Function at 0x404c3f
Capabilities:
Parse pe header

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

Function at 0x4014ad
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x500, 0
sub ebp, 0x86
lea eax, [ebp - 0x272]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor eax, eax
push 0x104
mov word [ebp + 0x66], ax
lea eax, [ebp - 0x47a]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp + 0x16]
push eax
push eax
mov byte [ebp + 0x16], 0
call dword [sym.imp.SHLWAPI.DLL_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x272]
push eax
mov byte [ebp + 0x76], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
xor al, al
mov byte [ebp + 0x7e], al
xor ah, ah
push ebx
mov word [ebp + 0x56], ax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0x7e]
push eax
lea eax, [ebp + 0x76]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
call dword [sym.imp.USER32.DLL_GetDesktopWindow]
mov ebx, eax
lea eax, [ebp - 0x47a]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp + 0x66]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 5
push ebx
call dword [sym.imp.USER32.DLL_GetWindow]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
xor eax, eax
mov word [ebp - 0x6a], ax
lea eax, [ebp - 0x6a]
push eax
push eax
call dword [sym.imp.SHLWAPI.DLL_PathAppendW]
lea eax, [esi - 3]
lea esp, [ebp + 0x86]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4020af
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov cl, byte [0x403050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x403054
add edx, dword [0x403050]
call fcn.00401fe8
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402baf
push edx
sub edi, fcn.00402359
push edi
xor eax, eax
push fcn.00402359
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x402121
mov eax, fcn.00402359
mov ebx, esi
mov edx, edi
call fcn.00401fe8
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401d13
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402359
Capabilities:
Encode data using xor

Disassembly:
mov edi, eax
inc esi
popal
add byte [ebx + 0x6c], al
inc ebp
add byte [edx - 1], dh
add byte [ebp + 0x72], ah
invalid
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406927
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x408926
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
or edx, edx
call fcn.00408944
mov edx, ecx
xor dword [eax], ebx
inc eax
cmp eax, edi
jne fcn.00408926
and edx, ecx
push 0xe91fbf9a
pop ecx
ret
Function at 0x7003301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x7003310
pop dword [ebp - 0xc]
mov eax, 0x8640fcd1
sub eax, 0x7f40c9c1
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x63deb248
add dword [ebp - 0x1c], 0xea739303
mov dword [ebp - 0x18], 0x5f1d7557
sub dword [ebp - 0x18], 0x2cea2912
mov dword [ebp - 0x14], 0xe39a618e
add dword [ebp - 0x14], 0x68b1e2a0
mov dword [ebp - 0x10], 0x9b60b21a
sub dword [ebp - 0x10], 0x9b60b21a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xc4b576d5
sub eax, 0xbdb456a5
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x9e290c46
sub dword [ebp - 0x1c], 0x29b6a2f0
mov dword [ebp - 0x18], 0x10bc31c7
add dword [ebp - 0x18], 0x30b02fae
mov dword [ebp - 0x14], 0x544216bf
sub dword [ebp - 0x14], 0xf0d2aa53
mov dword [ebp - 0x10], 0x327e6ebe
sub dword [ebp - 0x10], 0x327e6ebe
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x1643ba1e
add eax, 0xf0bd6616
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3b103
push 0
call eax
mov ecx, 0xcd98091d
add ecx, 0x326840ab
mov esi, eax
mov edi, 0x701e000
add edi, dword [ebp - 0xc]
mov ebx, 0x30ecb820
sub ebx, 0xdae0c5a7
mov dword [ebp - 8], 0x3ece6bea
mov edx, dword [edi]
xor dword [ebp - 8], 0x69737c79
add edx, ebx
add dword [ebp - 8], edi
mov dword [esi], edx
add dword [ebp - 4], 0x3ef504e7
add esi, 4
add edi, 0xa9d92969
add edi, 0x5626d69b
loop 0x700342c
add eax, 0x96d9025e
add eax, 0x69281795
mov ebx, eax
add eax, 0x5d5586aa
add eax, 0xa2aa795b
mov ecx, 0x3dcf6c88
add ecx, 0xc9309378
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x700c938
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7010cdd
call fcn.07001ea6
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cc00
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d3f5
lea ecx, [ebp - 0x10]
call fcn.0700c8d5
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700c9a5
mov eax, dword [eax + 0x14]
jmp 0x700c9aa
mov eax, 0x70127b2
push 0x701411c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700c9dc
mov ecx, dword [edi + 4]
call fcn.07007826
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003301
mov eax, edi
call fcn.07002b7f
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003301
int3
Function at 0x406de0
Capabilities:
Create thread
Query environment variable

Disassembly:
sub esp, 0x84
mov eax, dword [0x454640]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
mov edi, dword [esp + 0x94]
call fcn.004068e0
call fcn.00406860
mov eax, dword [sym.imp.python38.dll_Py_DebugFlag]
mov dword [0x455734], edi
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_InspectFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_InteractiveFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_OptimizeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_DontWriteBytecodeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_NoUserSiteDirectory]
mov dword [eax], 1
mov eax, dword [sym.imp.python38.dll_Py_IgnoreEnvironmentFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_VerboseFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_BytesWarningFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_UTF8Mode]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_FrozenFlag]
mov dword [eax], 1
mov eax, dword [sym.imp.python38.dll_Py_NoSiteFlag]
mov dword [eax], 1
push dword [edi]
call dword [sym.imp.python38.dll_Py_SetProgramName]
mov esi, dword [esp + 0x94]
push edi
push esi
mov dword [0x455738], esi
call fcn.00406940
call fcn.00406620
mov eax, dword [sym.imp.python38.dll__PyRuntime]
add eax, 0x2cc
push 0
push eax
call fcn.00402e10
mov ecx, dword [sym.imp.python38.dll_Py_NoSiteFlag]
mov edi, eax
push dword [0x455734]
push esi
mov dword [ecx], 1
call dword [sym.imp.python38.dll_PySys_SetArgv]
call fcn.0041a560
push edi
call fcn.00401000
push edi
call fcn.00401810
call fcn.0041a860
call fcn.0041ac00
call fcn.0041acc0
call fcn.0041ac80
call fcn.0041ae80
call fcn.0041ac40
call fcn.0041b0b0
call fcn.0041b150
call fcn.0041d060
call fcn.004208a0
call fcn.00420890
push edi
call fcn.00406b90
call fcn.0041db20
push edi
call fcn.00420dc0
mov ecx, dword [sym.imp.python38.dll_PyImport_FrozenModules]
mov eax, dword [0x45573c]
push edi
mov dword [ecx], eax
call fcn.004011b0
call dword [sym.imp.python38.dll__PyWarnings_Init]
push edi
call fcn.00420710
push dword [0x455740]
push 0x43ead0
push edi
call fcn.004210e0
add esp, 0x40
push dword [0x455744]
push str.PYTHONHOME
push edi
call fcn.004210e0
push 0x80
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00422560
add esp, 0x18
lea eax, [esp + 8]
push 0x80
push eax
push str.NUITKA_ONEFILE_PARENT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x7d
ja 0x406fd2
lea eax, [esp + 8]
push eax
call fcn.004256ae
add esp, 4
mov dword [0x455754], eax
push 0
push 0
push 0
push 0x4067c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.__main__
call fcn.00406600
push eax
call dword [sym.imp.python38.dll_PyDict_DelItemString]
push 0
push str.__main__
push edi
call fcn.004064c0
push edi
call fcn.00406570
add esp, 0x18
push eax
call dword [sym.imp.python38.dll_Py_Exit]
pop edi
pop esi
int3
Function at 0x414050
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x41405b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x414083
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x414070
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret
Function at 0x41da80
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00421480
mov eax, dword [0x454640]
xor eax, esp
mov dword [esp + 0x10050], eax
mov eax, dword [esp + 0x10058]
xor ecx, ecx
push 0x28
push eax
lea eax, [esp + 8]
mov word [esp + 0x58], cx
push eax
mov word [esp + 0xc], cx
call fcn.0041c420
add esp, 0xc
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41dafd
cmp eax, 0x10000
ja 0x41dafd
lea eax, [esp + 0x50]
push eax
call fcn.0042fbb7
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.00421204
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.00421204
add esp, 0x10054
ret
Function at 0x41ed60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x4560fb], 0
push esi
jne 0x41edbc
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x455758], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [0x455758], ecx
mov eax, dword [ecx]
add ecx, 4
push eax
push ecx
push 0
mov dword [0x455758], ecx
call fcn.0041cb40
add esp, 0xc
cmp eax, esi
jne 0x41ef21
mov byte [0x4560fb], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x43e8d8
push edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41edf0
test dl, dl
je 0x41edec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41edf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41edd0
xor eax, eax
jmp 0x41edf5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee6d
cmp byte [0x4560fa], 1
je 0x41ee6d
mov esi, dword [sym.imp.python38.dll_PyDict_New]
call esi
mov dword [0x456120], eax
call esi
mov dword [0x456124], eax
call esi
mov dword [0x456128], eax
call esi
mov dword [0x45612c], eax
call esi
mov dword [0x456130], eax
call esi
mov dword [0x456134], eax
call esi
mov dword [0x456138], eax
call esi
mov edi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x45613c], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x456cf4], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x41ee50
mov byte [0x4560fa], 1
mov esi, dword [0x455758]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41ee97
test dl, dl
je 0x41ee93
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41ee97
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ee77
xor edx, edx
jmp 0x41ee9c
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eea1
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x41ef05
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41eee0
test dl, dl
je 0x41eedc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41eee0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41eec0
xor edx, edx
jmp 0x41eee5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eef0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x41eeb6
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0041b5a0
add esp, 0x10
pop edi
pop ebx
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.0042e009
add esp, 4
call fcn.00424430
int3
Function at 0x421010
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x454640]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x60]
push 0x28
push eax
lea eax, [esp + 0xc]
mov word [esp + 0xc], cx
push eax
call fcn.0041c420
add esp, 0xc
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.00421204
add esp, 0x54
ret

Function at 0x4210e0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x58
mov eax, dword [0x454640]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [0x455abc]
push ebp
mov ebp, dword [esp + 0x6c]
test eax, eax
jne 0x421124
push 0x43e6c0
call dword [sym.imp.python38.dll_PyImport_ImportModule]
add esp, 4
mov dword [0x455abc], eax
test eax, eax
je 0x4211fe
push esi
push edi
push str.environ
push eax
call dword [sym.imp.python38.dll_PyObject_GetAttrString]
push ebx
mov esi, eax
call dword [sym.imp.python38.dll_PyUnicode_FromString]
add esp, 0xc
mov edi, eax
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x28
push ebx
push eax
call fcn.0041c420
add esp, 0xc
lea eax, [esp + 0x14]
test ebp, ebp
je 0x4211a5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_SetItem]
add esp, 0x14
test eax, eax
je 0x421195
push 1
call dword [sym.imp.python38.dll_PyErr_PrintEx]
add esp, 4
push 1
call dword [sym.imp.python38.dll_Py_Exit]
add dword [ebx], 0xffffffff
jne 0x4211c9
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x4211c6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_DelItem]
add esp, 8
test eax, eax
je 0x4211c9
push dword [esp + 0x10]
call fcn.00411020
add esp, 4
add dword [edi], 0xffffffff
jne 0x4211da
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x4211eb
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421204
add esp, 0x58
ret
call fcn.00424430
int3

Function at 0x421b6e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x421bad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421bad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x421bad
cmp dword [ecx + 0x74], 0xe
jbe 0x421bad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430e16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4471d4
push 0x4471cc
push str.FlsAlloc
push 0x1e
call fcn.00430cf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430e4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d4c0]
call esi
jmp 0x430e50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430e94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4471e4
push 0x4471dc
push str.FlsGetValue
push 0x20
call fcn.00430cf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430ecb
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d4c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4343ef
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x454640]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43443a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043458e
test al, al
jne 0x434434
sub edx, 2
cmp edx, edi
jne 0x43441a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43445c
lea eax, [edi + 2]
cmp edx, eax
je 0x43445c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043433b
add esp, 0x10
jmp 0x434556
push esi
lea ecx, [ebp - 0x255]
call fcn.0043458e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43449f
push dword [ebp - 0x25c]
jmp 0x43444c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4344dc
cmp word [ebp - 0x226], 0
je 0x4344fd
cmp word [ebp - 0x226], ax
jne 0x4344dc
cmp word [ebp - 0x224], 0
je 0x4344fd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043433b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x434549
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4344b6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x434531
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x434556
push 0x43416b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a570
add esp, 0x10
jmp 0x434526
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421204
leave
ret