joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a443
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x4c67b0
push eax
push dword [ebp + 8]
call fcn.004027d2
test al, al
jne 0x48a46d
xor eax, eax
jmp 0x48a5a0
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x4c6810]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
push edi
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4c6824]
mov eax, dword [eax + ecx*4]
mov ecx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [eax]
mov ebx, dword [edi]
cmp esi, 0xffffffff
je 0x48a508
movzx eax, byte [edi + 0x90]
dec eax
dec eax
je 0x48a4d4
dec eax
je 0x48a4d7
sub eax, 3
je 0x48a4cf
dec eax
je 0x48a4ca
sub eax, 3
je 0x48a4c2
sub eax, 0xc
jne 0x48a4f5
jmp 0x48a59d
or esi, 0x4000000
jmp 0x48a4f5
or esi, 3
jmp 0x48a4f5
or esi, 0xe
jmp 0x48a4f5
or esi, 4
push 0
test esi, 0x800
je 0x48a4e5
push 1
jmp 0x48a4ed
or esi, 0x10000
push 0
push 0xcf
push ebx
call ecx
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x48a545
push esi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x4c6824]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x48a545
push esi
push 0
push 0x1036
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp + 8]
cmp al, 0xff
je 0x48a568
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x48a568
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48a571
push 1
push edi
push ecx
call fcn.0048b6b2
mov al, byte [edi + 0x90]
cmp al, 2
je 0x48a584
cmp al, 3
je 0x48a584
cmp esi, 0xffffffff
je 0x48a595
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48ba22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4c7f20
push ebx
call fcn.00422f40
push 0x10
push 0
mov esi, 0x4c7f64
push esi
call fcn.00422f40
add esp, 0x18
mov dword [0x4c7f20], 0x44
xor eax, eax
inc eax
mov dword [0x4c7f4c], eax
push esi
push ebx
mov word [0x4c7f50], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x48ba87
push dword [0x4c7f64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x48ba8b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
mov edi, ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 8], edx
pop esi
cmp dword [ebx + 0x190], eax
je 0x48bb41
cmp dword [edi + 0x84], esi
jl 0x48bb3b
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48bb2c
cmp dword [ecx + 4], edx
jne 0x48bb2c
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x48bb29
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [ebx + 0x190]
je 0x48bafb
cmp byte [ebx + 0x198], 0
je 0x48bb29
cmp dh, 0xff
je 0x48bb29
cmp dl, 0xa
je 0x48bb29
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48bb29
cmp byte [eax + 0x90], 0x1a
jne 0x48bb29
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48babb
mov eax, dword [ebp + 0xc]
push 3
pop esi
mov dword [ebx + 0x190], eax
cmp dword [edi + 0x84], esi
jl 0x48bbce
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48bbbf
cmp dword [ecx + 4], edx
jne 0x48bbbf
cmp byte [ecx + 0x90], 0xb
je 0x48bbbf
movzx eax, byte [ecx + 0x93]
cmp eax, dword [ebx + 0x190]
jne 0x48bbbf
test byte [ecx + 0x92], 0x20
jne 0x48bbbf
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48bbbf
cmp byte [eax + 0x90], 0x1a
jne 0x48bbbf
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48bb4d
mov eax, dword [ebp + 0xc]
push 0
push eax
push 0x130c
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48be20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48bf3a
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48be57
xor eax, eax
jmp 0x48bf69
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48be7a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48be50
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48be50
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x493c7c
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48be50
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48bf16
cmp dword [ecx], edi
jne 0x48bf16
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48bf3f
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48bf54
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48c8bb
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x4c67b0
push edi
mov ecx, esi
call fcn.004029e2
mov ecx, dword [0x4c6810]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x48c915
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x48c979
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x48c997
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004029ab
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x48c979
mov ecx, dword [0x4c6824]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x48c979
cmp cl, 0xf
je 0x48c979
cmp cl, 0x13
je 0x48c979
cmp cl, 0x10
je 0x48c979
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x48c979
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4c6824]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0x48c90a
mov eax, dword [ebp + 0x14]
movzx ecx, ax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408952
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ebx
call fcn.00408975
xor dword [eax], ebx
add edx, 0x380927ba
mov ecx, 0x9f167071
inc eax
cmp eax, esi
jne fcn.00408952
ret
Function at 0x4374af
Capabilities:
Get number of processors

Disassembly:
push edx
push ecx
add esp, 4
call fcn.0043749a
add byte [esi + 0x4b], al
inc ecx
cmp eax, 0xc4834450
add esp, 4
invalid
retf 0x3b6f
add esp, 4
or edx, 0x13b6f
call 0x4374af
add byte [edi], dh
aas
inc esi
xor eax, 0xc483323b
add al, 0x81
loop 0x4374e7
lea eax, [eax]
add byte [edx - 0x73], bl
invalid
push edx
xor edx, 0x109bf
add edx, 0x15611
and edx, 0x170be
sub edx, 0x11d4a
pop edx
push ecx
push ecx
add esp, 4
sub ecx, 0xea39
and ecx, 0x156a3
sub ecx, 0x7655
pop ecx
mov eax, dword [ebp - 0xc18]
mov cx, word [eax]
mov word [ebp - 0xf7e], cx
mov edx, dword [ebp - 0xc18]
add edx, 2
add cl, byte [ecx - 0xc176b]
jmp dword [esi - 0x75]
test dword [edx + 0x66fffff0], eax
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push ebx
and ebx, 0x185d
pop ebx
push esi
push ebx
add esp, 4
or esi, 0xdc0a
pop esi
push edx
push esi
add esp, 4
and edx, 0x130ff
pop edx
push eax
push esi
add esp, 4
sub eax, 0xcb22
or eax, 0xa45f
pop eax
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x4375c7
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x43762a
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x4374e6
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x4374e6
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x437614
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x43761e
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x437673
push ecx
push edi
add esp, 4
sub ecx, 0x1690a
add ecx, 0xa7d9
xor ecx, 0xc98f
pop ecx
push ebx
push edx
add esp, 4
sub ebx, 0x9867
and ebx, 0xe9d7
pop ebx
push ebx
sub ebx, 0x12e90
pop ebx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp fcn.004376db
push eax
sub eax, 0xa9f0
call 0x43768a
add byte [edi + 0x46], al
xor eax, dword [edx + 0x39]
xor eax, 0x3840434a
add esp, 4
add eax, 0x1656
call 0x4376a1
add byte [esi], bh
inc edi
inc eax
aaa
dec ebx
dec ebx
dec ebx
xor al, 0x83
les eax, [eax + ebx*2]
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x4376d1
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x437487
mov dword [ebp - 0x2e0], 0
Function at 0x4376a1
Capabilities:
Get number of processors

Disassembly:
push edx
push ecx
add esp, 4
call fcn.0043749a
add byte [esi + 0x4b], al
inc ecx
cmp eax, 0xc4834450
add esp, 4
invalid
retf 0x3b6f
add esp, 4
or edx, 0x13b6f
call 0x4374af
add byte [edi], dh
aas
inc esi
xor eax, 0xc483323b
add al, 0x81
loop 0x4374e7
lea eax, [eax]
add byte [edx - 0x73], bl
invalid
push edx
xor edx, 0x109bf
add edx, 0x15611
and edx, 0x170be
sub edx, 0x11d4a
pop edx
push ecx
push ecx
add esp, 4
sub ecx, 0xea39
and ecx, 0x156a3
sub ecx, 0x7655
pop ecx
mov eax, dword [ebp - 0xc18]
mov cx, word [eax]
mov word [ebp - 0xf7e], cx
mov edx, dword [ebp - 0xc18]
add edx, 2
add cl, byte [ecx - 0xc176b]
jmp dword [esi - 0x75]
test dword [edx + 0x66fffff0], eax
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push ebx
and ebx, 0x185d
pop ebx
push esi
push ebx
add esp, 4
or esi, 0xdc0a
pop esi
push edx
push esi
add esp, 4
and edx, 0x130ff
pop edx
push eax
push esi
add esp, 4
sub eax, 0xcb22
or eax, 0xa45f
pop eax
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x4375c7
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x43762a
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x4374e6
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x4374e6
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x437614
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x43761e
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x437673
push ecx
push edi
add esp, 4
sub ecx, 0x1690a
add ecx, 0xa7d9
xor ecx, 0xc98f
pop ecx
push ebx
push edx
add esp, 4
sub ebx, 0x9867
and ebx, 0xe9d7
pop ebx
push ebx
sub ebx, 0x12e90
pop ebx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp fcn.004376db
push eax
sub eax, 0xa9f0
call 0x43768a
add byte [edi + 0x46], al
xor eax, dword [edx + 0x39]
xor eax, 0x3840434a
add esp, 4
add eax, 0x1656
call 0x4376a1
add byte [esi], bh
inc edi
inc eax
aaa
dec ebx
dec ebx
dec ebx
xor al, 0x83
les eax, [eax + ebx*2]
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x4376d1
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x437487
mov dword [ebp - 0x2e0], 0
Function at 0x44a8a0
Capabilities:
Authenticate hmac

Disassembly:
outsb dx, byte [esi]
enter 0xffffffffffff9587, 0xfffffffffffffff8
add dword [ecx], eax
dec ebx
add al, byte [edx]
inc ebx
push ecx
inc edi
dec esi
dec ebx
cmp eax, 0x85414349
mov byte [esi], 0x5d
push edx
add edx, 0xffffffa2
invalid
ret
mov byte [0x830202c3], al
bnd jno 0x44a829
add eax, dword [edx]
pop edx
push ebx
push ebx
test esi, eax
push es
and ebx, 0x1f
lea eax, [edx]
add bl, byte [ebx - 0x38]
xchg dword [esi - 8], edi
add dword [ecx], eax
push esp
enter 0x7f87, 0xfffffffffffffff8
add dword [ecx], eax
jbe 0x44a88e

Function at 0x44b880
Capabilities:
Encode data using xor

Disassembly:
add dword [ecx], edx
mov ecx, 0x1004687
add dword [ebp - 0x46eedd0e], eax
invalid
mov ch, dh
add dword [ecx], eax
add eax, dword [edx]
add al, byte [edx]
lea ecx, [edi + 0x101ee8a]
mov ecx, dword [edi + 0x101ee86]
test dword [edi + 0x101ee86], edi
add dh, byte [edi + 0x42]
push edx
in eax, dx
or byte [eax], bh
cmp eax, 0x39493e37
sub edx, 0xffffff84
push ds
add al, byte [edx]
add edx, 0x7a
push ss
add al, byte [edx]
and edx, 0x6d
push cs
add al, byte [edx]
pop edx
push esp
xor esp, 0xffffffde
xor al, byte [ebx]
add bl, byte [ebx + edx*2 - 0x7d]
jecxz 0x44b846
insb byte es:[edi], dx
add eax, dword [edx]
sub ebx, 7
js 0x44b8d0
add bl, byte [ebx - 0x73]
xchg edi, eax
cmp ch, 1
add dword [ebx + 0x1ff2697], ecx
add ebp, ebp
push 0x52
add edx, 0xffffff9b
xor al, 3
add al, byte [ebx + 0x26767ea]
add al, byte [ebx + 0x268d5ea]
add ch, ch
push es
xor eax, 0x5a3a3a37
pop eax
pop eax
test esi, eax
push es
cmp eax, 0xb
xor al, 3
add al, byte [ebx + 0x2bfc1d0]
add al, byte [ebx + 0x35ab4d0]
add ah, byte [eax - 0x73]
xchg dword [edx - 0x72fefe03], eax
or cl, byte [ebx + 0x1fd828f]
add dword [ebp + 0x1fd8297], ecx
add dword [0x1f34697], edi
add dword [esi + 0x12], esi
lea eax, [edi + 0x101fd82]
test dword [edx + 0x32], edi
add dl, byte [ecx]
xchg dword [eax - 0x36fefe01], edi
xchg dword [esi], esp
inc dword [ecx]
add dword [edx], eax
add al, byte [edx]
add dl, byte [ebp + 0x59]
test esi, eax
push es
and ebp, 0xffffffdf
mov byte [edx], al
add al, byte [ebx + 0x2ac6dcd]
add al, byte [ebx + 0x29e0ae5]
add bl, byte [ebp + 0x52]
xor edx, 0xffffffb6
mov ecx, 0xea830202
inc ecx
je 0x44b96b
add al, byte [ebx + 0x38084c2]
add al, byte [ebx + 0x282e1e2]
add bl, byte [edx - 0x73]
invalid
ret 0x8084
Function at 0x155e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0155e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x155e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155e06a
add dl, dl
jne 0x155e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155e0dc
xor eax, eax
add dl, dl
jne 0x155e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155e17d
add dl, dl
jne 0x155e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x155e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x155e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x155e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x155e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x155e075
mov eax, 1
add dl, dl
jne 0x155e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x155e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x155e0e1
sub eax, ebx
mov ebx, 1
jne 0x155e128
mov ecx, 1
add dl, dl
jne 0x155e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x155e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x155e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x155e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x155e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x155e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x155e136
cmp eax, 0x7d00
jae 0x155e16d
cmp eax, 0x500
jb 0x155e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x155e075
cmp eax, 0x7f
ja 0x155e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x155e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x155e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x155e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402ca0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x238
push 0xffffffffffffffff
push 0x410155
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41901c]
xor eax, ebp
mov dword [ebp + 0x234], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402180
xor eax, eax
mov dword [ebp], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 1
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d21
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp]
call fcn.004013a0
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.python3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
test eax, eax
je 0x402d70
push str.Py_Main
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 8], 0
je 0x402d92
cmp dword [esi + 4], 0
je 0x402d92
mov bl, 1
jmp 0x402d94
xor bl, bl
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x402dca
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402dc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e38
push edx
push ecx
call fcn.00403d79
add esp, 8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
cmp edx, 8
jb 0x402e14
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402e0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e38
push edx
push ecx
call fcn.00403d79
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.00403d87
lea esp, [ebp + 0x238]
pop ebp
ret
call fcn.00406fcf
int3
Function at 0x40a126
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a1c3
push ebx
push esi
call fcn.0040a0ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a038
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a170
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a1c2
push edi
push eax
call fcn.00408aec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a190
call fcn.00408c47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a1c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a038
add esp, 0x20
test eax, eax
jne 0x40a1af
push edi
call fcn.00408c47
jmp 0x40a1b7
push ebx
call fcn.00408c47
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40af8b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4148a8
push 0x4148a0
push str.FlsAlloc
push 0x1e
call fcn.0040aea9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40afbf
push dword [ebp + 8]
mov ecx, esi
call dword [0x411128]
call esi
jmp 0x40afc5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b009
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4148b8
push 0x4148b0
push str.FlsGetValue
push 0x20
call fcn.0040aea9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b040
push dword [ebp + 8]
mov ecx, esi
call dword [0x411128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]