joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100480f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x100f6f6
call fcn.01003f88
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x100119c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [edi]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x1004862
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x1004916
mov eax, dword [ebp - 0x18]
dec eax
je 0x100491c
dec eax
je 0x1004893
dec eax
je 0x100491c
sub eax, 4
je 0x100491c
mov dword [ebp - 0x1c], 0xb
push 0x10101d0
lea eax, [ebp - 0x1c]
jmp 0x1004916
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.010042c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0100451f
push esi
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.010021c5
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10048e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x10101d0
lea eax, [ebp - 0x20]
jmp 0x1004916
push eax
push esi
lea ebx, [edi + 8]
push eax
mov ecx, ebx
call fcn.0100436f
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.010021c5
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x1004939
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x10101d0
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
push esi
push dword [ebp - 0x14]
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.010042c5
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.0100451f
push esi
mov ecx, ebx
call fcn.010021c5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1004955
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100119c
call fcn.01004292
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100497b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100f70d
call fcn.01003f88
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x24], 0x100119c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx + 0x18]
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x10049ab
mov dword [ebp + 8], eax
jmp 0x10049e0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], 4
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10049a6
mov eax, dword [ebp + 0xc]
sub eax, 4
je 0x1004a0a
dec eax
je 0x10049ee
mov dword [ebp + 8], 0xb
push 0x10101d0
lea eax, [ebp + 8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [edi]
mov dword [ebp + 8], eax
xor ecx, ecx
lea eax, [ebp - 0x11]
mov dl, byte [ebp + ecx + 8]
inc ecx
mov byte [eax], dl
dec eax
cmp ecx, 4
jb 0x10049f8
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
pop edi
cmp eax, ebx
pop ebx
je 0x1004a18
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100119c
call fcn.01004292
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x1004ad7
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x100f73e
call fcn.01003f88
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
jne 0x1004b8b
push ebx
push 0xfffffffffffffff0
push 0xf003f
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
push dword [esi]
mov dword [ebp - 4], ebx
call fcn.01004a7e
cmp dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
jne 0x1004b38
push ebx
lea ecx, [ebp - 0x40]
call fcn.01004475
cmp eax, ebx
je 0x1004b38
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push eax
call fcn.01004ad7
jmp 0x1004b1d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.01004775
jmp 0x1004b66
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x1004ba1
cmp dword [ebp + 0xc], ebx
jne 0x1004ba1
mov dword [ebp - 0x1c], eax
push 0x10101d0
lea eax, [ebp - 0x1c]
jmp 0x1004b9b
cmp dword [ebp + 0xc], ebx
jne 0x1004ba1
mov dword [ebp - 0x20], eax
push 0x10101d0
lea eax, [ebp - 0x20]
push eax
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x100643e
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1014044]
and eax, dword [ebp + 0xc]
test ax, ax
je 0x10064bd
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
xor ebx, ebx
cmp edi, esi
je 0x100646b
cmp dword [edi], esi
je 0x100646b
inc ebx
movzx eax, bx
cmp dword [edi + eax*4], esi
jne 0x1006462
cmp word [ebp + 0xc], 4
jae 0x10064ba
cmp dword [0x1014194], esi
je 0x1006496
cmp dword [0x1014190], esi
jne 0x100649e
push 2
call fcn.01006394
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [0x1014190], eax
cmp dword [0x1014190], esi
je 0x10064ba
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x1c]
push ebx
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [0x1014190]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x1007182
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x100f902
call fcn.01003f88
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [0x10141b0]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
mov ecx, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
call dword [eax]
mov eax, dword [ebp + 8]
cmp dword [0x1014054], eax
mov byte [ebp - 4], 1
ja 0x10071d1
mov dword [ebp - 0x20], 0x80100009
push 0x10101d0
lea eax, [ebp - 0x20]
jmp 0x1007237
mov esi, 0x101404c
push eax
mov ecx, esi
call fcn.0100a12e
push ebx
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.01006725
mov ecx, dword [0x10141b8]
call fcn.0100e098
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], bl
call dword [eax + 4]
cmp dword [ebp - 0x1c], ebx
je 0x10072c7
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x100721f
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov esi, eax
jmp 0x1007221
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x100723d
mov dword [ebp - 0x24], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
lea eax, [esi + 8]
push eax
push 4
push dword [ebp - 0x1c]
push 0x1006d1e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, esi
call fcn.010067cc
mov eax, dword [esi]
cmp eax, ebx
je 0x1007266
cmp eax, 0xffffffff
jne 0x1007272
push 1
mov ecx, esi
call fcn.01006c62
mov dword [ebp - 0x14], ebx
mov esi, dword [0x10141b0]
mov eax, dword [esi]
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x28], esi
call dword [eax]
mov byte [ebp - 4], 2
mov dword [ebp + 8], ebx
mov edi, 0x101405c
push dword [ebp + 8]
mov ecx, edi
call fcn.0100a12e
test eax, eax
je 0x10072a2
inc dword [ebp + 8]
jmp 0x100728f
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.01006725
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100c27f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
push eax
xor ebx, ebx
push ebx
push esi
push 0x100bf5c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.010067cc
mov edi, dword [edi]
cmp edi, ebx
je 0x100c2ba
cmp edi, 0xffffffff
jne 0x100c2dc
mov esi, dword [esi + 0xc]
push ebx
push ebx
push esi
push 0x130
push ebx
call fcn.010064c6
push 0x10101d0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call sub.msvcrt.dll__CxxThrowException
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100c453
Capabilities:
Create thread

Disassembly:
mov eax, 0x100fd91
call fcn.01003f88
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x60
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100c487
call fcn.0100edb4
jmp 0x100c489
xor eax, eax
cmp eax, ebx
mov byte [ebp - 4], bl
mov dword [0x10141c8], eax
jne 0x100c4b8
push ebx
push ebx
push ebx
push 0x12d
push ebx
call fcn.0100654c
mov dword [ebp - 0x14], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x14]
push eax
jmp 0x100c53d
push 0x1b
call fcn.01006394
mov ecx, dword [0x10141c8]
push eax
call fcn.0100ee9d
push 0x10141d0
push ebx
push dword [0x10141c8]
push 0x100c2e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x10141cc], eax
jne 0x100c510
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
mov esi, eax
push esi
push 0x12e
push ebx
call fcn.010064c6
mov dword [ebp - 0x18], esi
push 0x10101d0
lea eax, [ebp - 0x18]
jmp 0x100c4b2
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100f118
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov eax, 0x10100d2
call fcn.01003f88
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [esi + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp eax, edi
jne 0x100f205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
je 0x100f205
cmp ebx, 0xe8
je 0x100f1f8
cmp ebx, 0x217
je 0x100f205
cmp ebx, 0x3e5
push edi
je 0x100f1a0
push edi
push ebx
push 0x6c
push edi
call fcn.010064c6
mov dword [ebp - 0x18], ebx
push 0x10101d0
lea eax, [ebp - 0x18]
push eax
jmp 0x100f2d8
push dword [0x10141c4]
push dword [esi + 0x54]
push 0xffffffffffffffff
call fcn.0100e160
add esp, 0x10
dec eax
je 0x100f1d6
dec eax
push 0x10101d0
je 0x100f1ca
mov dword [ebp - 0x1c], 0x80100001
lea eax, [ebp - 0x1c]
jmp 0x100f19a
mov dword [ebp - 0x20], 0x80100018
lea eax, [ebp - 0x20]
jmp 0x100f19a
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, edi
je 0x100f154
xor ebx, ebx
jmp 0x100f15c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x100f13f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x34]
mov dword [esi], edi
call fcn.010067cc
lea ecx, [esi + 0x20]
call fcn.01005797
push eax
push 0x1388
mov eax, 0x200
push eax
push eax
push 0xff
push edi
push 0x40000003
push edi
lea ecx, [esi + 0x10]
call fcn.010021c5
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push eax
mov ecx, esi
call fcn.010067cc
mov eax, dword [esi]
cmp eax, edi
je 0x100f255
cmp eax, 0xffffffff
jne 0x100f273
mov esi, dword [esi + 4]
push edi
push edi
push esi
push 0x69
push edi
call fcn.010064c6
mov dword [ebp - 0x24], esi
push 0x10101d0
lea eax, [ebp - 0x24]
jmp 0x100f19a
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
mov byte [ebp - 4], 2
je 0x100f292
push dword [ebp - 0x34]
call fcn.0100f448
jmp 0x100f294
xor eax, eax
cmp eax, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
jne 0x100f2dd
mov dword [ebp - 0x28], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x28]
jmp 0x100f19a
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100f368
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
xor edi, edi
jmp 0x100f3f0
mov eax, dword [esi]
lea ecx, [esi + 0x18]
push ecx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push ebx
add ecx, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f3ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100f3ea
cmp eax, 6
je 0x100f42d
cmp eax, 0x6d
je 0x100f42d
cmp eax, 0x3e5
jne 0x100f40f
push 0
push dword [0x10141c4]
push dword [esi + 0x28]
push 0xffffffffffffffff
call fcn.0100e160
add esp, 0x10
dec eax
jne 0x100f3fb
mov eax, dword [esi]
push 1
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100f398
xor eax, eax
jmp 0x100f39e
sub ebx, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
test ebx, ebx
ja 0x100f37c
pop edi
pop esi
pop ebx
leave
ret 8
dec eax
je 0x100f41c
mov dword [ebp - 8], 0x80100001
push 0x10101d0
lea eax, [ebp - 8]
jmp 0x100f43c
mov dword [ebp - 4], eax
push 0x10101d0
lea eax, [ebp - 4]
jmp 0x100f43c
mov dword [ebp - 0xc], 0x80100018
push 0x10101d0
lea eax, [ebp - 0xc]
jmp 0x100f43c
mov dword [ebp - 0x10], 0x6d
push 0x10101d0
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x10015dcd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x10015e31
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x10015e1a
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x10015e09
xor ecx, eax
xor edx, ebx
dec edi
jne 0x10015dfa
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x1001fac0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1001fb29
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.1001eac0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x1008759
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10261a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x1001c00
mov edi, ecx
push 0x80000001
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.01007b45
test eax, eax
jne 0x10087f3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [fcn.01001108]
test eax, eax
jbe 0x10087e8
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call dword [fcn.01001258]
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x10087e8
push 1
push eax
push eax
lea ecx, [ebp - 0x218]
call fcn.01007b9a
lea ecx, [ebp - 0x218]
call fcn.01007b27
push esi
push esi
push 2
push dword [edi + 4]
call dword [fcn.0100127c]
lea ecx, [ebp - 0x218]
call fcn.01007b27
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100c84f
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2b257be
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x757c528f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4266c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00442d10
mov eax, dword [0x46f634]
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.0043e4a0
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 0x42673d
cmp eax, 0x10000
ja 0x42673d
lea eax, [esp + 0x50]
push eax
call fcn.0044f480
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.00442cfc
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.00442cfc
add esp, 0x10054
ret

Function at 0x4267e0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x46f634]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push 0x45cbc0
call fcn.004266c0
mov dword [0x470ee4], eax
xor eax, eax
push 0x28
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push 0x45cbc0
push eax
call fcn.0043e4a0
add esp, 0x10
lea eax, [esp + 4]
push 0x45cbc8
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.PYTHONHOME
call fcn.004266c0
push 1
mov dword [0x470ee8], eax
call fcn.0043f4e0
mov esi, eax
xor eax, eax
push 0x28
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push str.PYTHONHOME
push eax
call fcn.0043e4a0
add esp, 0x14
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 1
call fcn.0043f4e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [sym.imp.python38.dll__Py_path_config]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
mov dword [eax + 0x18], 1
call fcn.00442cfc
add esp, 0x54
ret
Function at 0x426ce0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x58
mov eax, dword [0x46f634]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x10], eax
call fcn.004336c0
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.0043e4a0
add esp, 0xc
lea eax, [esp + 0x14]
test ebp, ebp
je 0x426d85
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call sub.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 0x426d75
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 0x426da9
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x426da6
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 0x426da9
push dword [esp + 0x10]
call fcn.004014c0
add esp, 4
add dword [edi], 0xffffffff
jne 0x426dba
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x426dcb
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.00442cfc
add esp, 0x58
ret
Function at 0x4352e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4352eb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x435313
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x435300
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x43e670
push ebx
mov ebx, dword [esp + 0x10]
movzx ecx, byte [esi + ebx]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x43e5b8
pop ebx
pop edi
not eax
pop esi
ret