joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461400
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x63a720]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45fbcb
je 0x45fc1e
cmp ebx, 0x20
jbe 0x45fc24
cmp ebx, 0x40
jbe 0x45fc6a
jmp 0x45fd0b
test ebx, ebx
je 0x45fc14
add eax, 0x10
test ax, 0xff0
je 0x45fc00
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x53ffa0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5401a0]
jmp 0x45fbe8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45fbe8
pxor xmm1, xmmword [0x63a730]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63a730]
pxor xmm2, xmmword [0x63a740]
pxor xmm3, xmmword [0x63a750]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63a730]
pxor xmm2, xmmword [0x63a740]
pxor xmm3, xmmword [0x63a750]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45fd6a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x63a36f], 0
je 0x46141a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45fb90
jmp fcn.004080e0
Function at 0x461420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40293e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004080e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00460140
jmp 0x402900
cmp byte [0x63a36f], 0
je 0x46143b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45fb90
jmp 0x402900
Function at 0x4b10b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b126e
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00461727
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4b10ea
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4b1113
lea eax, [0x4f5540]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.004493f0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00461727
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0x6c]
movzx edx, word [esp + 0x70]
shl edx, 0xb
movzx ebx, word [esp + 0x78]
or ebx, edx
movzx edx, byte [esp + 0x75]
test dl, dl
je 0x4b115b
or ebx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4b116a
or ebx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4b1179
or ebx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4b1188
or ebx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4b1197
or ebx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4b11a3
or ebx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4b11af
or ebx, 0x10
mov word [esp + 0x46], cx
mov word [esp + 0x48], bx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0xc]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
cmp edx, ecx
jae 0x4b121a
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xc
lea eax, [0x4f5540]
mov dword [esp + 0x10], eax
call fcn.004494b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00461e20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00461be6
add esp, 0x5c
ret
call fcn.00460140
jmp fcn.004b10b0
Function at 0x4c6390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c6503
sub esp, 0x48
mov eax, dword [esp + 0x78]
cmp eax, 4
jne 0x4c6429
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0x6c616964
je 0x4c63c8
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c6435
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
jne 0x4c63f3
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c6435
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
jmp 0x4c6435
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.004c6170
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call fcn.004ccd20
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x48
ret
call fcn.00460140
jmp fcn.004c6390
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4bc96c], 1
mov dword [0x4bc970], 1
mov dword [0x4bc974], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x4238f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.00481828
xor edx, edx
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + 0x10090]
mov word [esp + 0x70], dx
lea edi, [esp + 0x20]
mov word [esp + 0x20], cx
movzx eax, byte [eax]
test al, al
je 0x4239a7
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490d79
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x423984
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x423978
test esi, esi
je 0x490d79
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x10090]
movzx eax, byte [eax + ebp]
test al, al
jne 0x423930
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [eax - 1]
sub esp, 0xc
xor eax, eax
cmp edx, 0xffff
ja 0x4239d8
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4239f0
Capabilities:
Set environment variable

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov word [esp + 0x20], dx
lea edi, [esp + 0x20]
movzx eax, byte [eax]
test al, al
je 0x423a97
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490d7e
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x423a74
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x423a68
test esi, esi
je 0x490d7e
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x90]
movzx eax, byte [eax + ebp]
test al, al
jne 0x423a20
mov eax, dword [esp + 0x94]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x439d20
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [0x4bbdac]
test ebx, ebx
je 0x439d80
mov eax, dword [0x4bb084]
mov esi, dword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
cmp ebx, eax
je 0x439d5f
mov eax, dword [0x4bbfc4]
test eax, eax
je 0x439e48
mov dword [esp + 4], eax
mov esi, dword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
mov dword [esp], ebx
call esi
mov edx, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUITKA_ONEFILE_BINARY
call fcn.004238f0
test eax, eax
je 0x439ea0
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490e0a
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x439e14
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x439e08
test edx, edx
je 0x490e0a
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x49ac17]
test al, al
je 0x439e60
mov ebp, edx
jmp 0x439dd0
mov dword [esp], 0x49d078
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov dword [0x4bbfc4], eax
jmp 0x439d50
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
sub esp, 8
mov eax, dword [eax + 0x2cc]
mov esi, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00439c70
mov ebx, eax
mov dword [0x4bbdac], ebx
jmp 0x439d34
mov ebx, dword [0x4bbdb8]
test ebx, ebx
jne 0x439e95
cmp byte [0x4bbfc2], 0
je 0x439ed8
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4bbdc0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [0x4bbdb8], eax
mov ebx, eax
test eax, eax
je 0x439ee4
add dword [eax], 1
jmp 0x439e95
mov eax, 1
call fcn.004245b0
jmp 0x439eb3
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
Function at 0x43c220
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.004238f0
test eax, eax
je 0x43c378
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
nop
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490e23
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x43c2c4
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x43c2b8
test edx, edx
je 0x490e23
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x49ac17]
test al, al
je 0x43c2f8
mov ebp, edx
jmp 0x43c280
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
mov ebx, dword [0x4bb140]
sub esp, 8
mov esi, dword [eax + 0x2cc]
mov eax, dword [0x4bc690]
test eax, eax
je 0x43c3c8
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00427760
mov dword [esp], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00437070
sub dword [ebx], 1
jne 0x43c36a
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x43c3bc
mov eax, dword [0x4bbdb8]
mov esi, 0x4bbdb8
test eax, eax
jne 0x43c36a
cmp byte [0x4bbfc2], 0
je 0x43c3f1
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4bbdc0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x43c3fb
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4bbdb4]
mov esi, 0x4bbdb4
jmp 0x43c386
mov eax, dword [0x4bc64c]
mov edi, dword [0x4bb138]
test eax, eax
je 0x43c406
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00427760
mov dword [0x4bc690], eax
jmp 0x43c32e
movzx eax, bl
call fcn.004245b0
jmp 0x43c393
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x498ee2
call dword [sym.imp.python38.dll_PyImport_ImportModule]
mov dword [0x4bc64c], eax
test eax, eax
je 0x490e23
jmp 0x43c3d7
Function at 0x479540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp byte [0x4bbda9], 0
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
je 0x4795d0
mov dword [esp + 4], str..bytecode
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x479650
mov ebp, dword [0x4bbcfc]
jmp 0x479584
lea ebp, [eax + edx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebp
mov esi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax + 1]
mov edx, dword [eax]
test esi, esi
jne 0x479580
movzx edi, word [eax + 4]
lea ecx, [eax + 6]
test edi, edi
je 0x4795c7
nop
mov eax, dword [esp + 0x30]
mov edx, ebx
add esi, 1
add ebx, 4
call fcn.00468d20
mov ecx, eax
cmp edi, esi
jne 0x4795b0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x4bbcfc], eax
add eax, 8
mov esi, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x4bbcfc], eax
call fcn.00478a90
cmp eax, esi
jne 0x4796d3
mov byte [0x4bbda9], 1
jmp 0x479558
cmp byte [0x4bbda8], 0
jne 0x479570
mov esi, dword [sym.imp.python38.dll_PyDict_New]
mov ebp, 0xfffffffb
call esi
mov dword [0x4bc794], eax
call esi
mov dword [0x4bc790], eax
call esi
mov dword [0x4bc78c], eax
call esi
mov dword [0x4bc788], eax
call esi
mov dword [0x4bc784], eax
call esi
mov dword [0x4bc780], eax
call esi
mov dword [0x4bc77c], eax
call esi
mov esi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [0x4bc778], eax
lea esi, [esi]
lea esi, [esi]
mov dword [esp], ebp
call esi
mov dword [ebp*4 + 0x4bb8f4], eax
add ebp, 1
cmp ebp, 0x101
jne 0x4796b0
mov byte [0x4bbda8], 1
jmp 0x479570
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
lea esi, [esi]
nop

Function at 0x480878
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004901b8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004901b8
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x48144c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x48146b
mov eax, 0
jmp 0x4814af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x48148e
mov eax, 0
jmp 0x4814af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4814aa
mov eax, 0
jmp 0x4814af
mov eax, 1
leave
ret

Function at 0x4814b1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x481510
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x481508
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x481508
mov eax, dword [ebp - 4]
jmp 0x481524
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4814e5
mov eax, 0
leave
ret
Function at 0x4012bb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
test cl, cl
je 0x4012f6
cmp byte [ebp + 0x1c], 0
je 0x4012e6
mov esi, dword [ebp + 0x24]
mov dword [esi], 0
jmp 0x4012de
mov ecx, dword [esi]
mov eax, dword [edx]
or dword [eax + ecx*4], 0xffffffff
inc dword [esi]
cmp dword [esi], 1
jl 0x4012d4
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x4012e3
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp byte [ebp + 0x20], 0
je 0x40135c
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push 0
mov eax, dword [esi]
cmp eax, 0x9695
mov eax, dword [ebp + 0x10]
setl cl
xor edx, edx
cmp ecx, 0x1e468a07
mov ecx, dword [esi]
setle dl
sub ecx, dword [eax]
xor eax, eax
cmp ecx, edx
mov edx, dword [ebp + 0x14]
setne al
xor ecx, ecx
cmp eax, 0x94a61bf0
mov eax, dword [esi]
setne cl
imul eax, ecx
mov ecx, 0xffff486e
mov dword [edx], eax
mov eax, dword [edx]
sub ecx, eax
pop eax
je 0x40134b
cmp dword [edx], eax
je 0x40134b
inc eax
xor ecx, ecx
cmp eax, 0x2c0d37ad
mov eax, dword [ebp + 0x18]
setne cl
mov dword [eax], ecx
jmp 0x4012e3
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetConsoleCP]

Function at 0x401b08
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x401b10
mov eax, esi
pop esi
ret