joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4597c2
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov bl, 1
call fcn.0045a058
test al, al
jne 0x459814
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
mov edx, 0x459828
mov eax, 0x459840
call fcn.004598ec
mov esi, eax
test esi, esi
jne 0x45980c
push esp
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov esi, eax
test esi, esi
jne 0x459770
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
jne 0x459770
push esp
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov esi, eax
test esi, esi
je 0x459814
mov eax, 0x400
call fcn.004026bc
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x400
push edi
push 2
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
mov esi, eax
mov eax, dword [esp]
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x459803
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x45fe8c
call sub.advapi32.dll_AllocateAndInitializeSid
mov eax, dword [edi]
test eax, eax
jbe 0x4597f9
mov esi, eax
dec esi
test esi, esi
jl 0x4597f9
inc esi
xor ebp, ebp
mov eax, dword [edi + ebp*8 + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4597f5
mov bl, 1
jmp 0x4597f9
inc ebp
dec esi
jne 0x4597de
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_FreeSid
mov eax, edi
call fcn.004026dc
jmp 0x459814
call esi
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x45984c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004041dc
mov eax, dword [ebx]
call fcn.0040422c
test eax, eax
jle 0x459899
mov eax, dword [ebx]
call fcn.0040422c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x459899
mov eax, ebx
mov edx, 0x4598ac
call fcn.00404234
add esp, 0x108
pop ebx
ret
Function at 0x459990
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov ebx, eax
mov byte [ebp - 1], 1
call fcn.0045a058
test al, al
jne 0x459a8f
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x459a8f
xor eax, eax
push ebp
push 0x459a88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x459a98
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4599f9
call fcn.00403a54
jmp 0x459a8f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 1
xor esi, esi
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
test bl, bl
je 0x459a49
or esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x459a4f
and esi, 0xfffffffd
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a8f
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459b58
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x459d09
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x458d00]
call fcn.004050c4
add esp, 4
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x459ce3
cmp edi, 0xffffffff
je 0x459ce3
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x459cdd
cmp dword [ebp - 0x124], 0x10
jbe 0x459cc8
inc ebx
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x458d00]
call fcn.004050c4
add esp, 4
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x124]
mov dword [edx + eax*4 - 0xc], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x114]
mov dword [edx + eax*4 - 8], ecx
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004041dc
mov edx, dword [ebp - 4]
mov eax, 0x459d24
call fcn.00404570
dec eax
jne 0x459c55
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004044cc
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.00459204
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x134]
mov eax, 0x459d34
call fcn.00459204
mov eax, dword [ebp - 0x134]
pop edx
call fcn.00404570
dec eax
jne 0x459cb7
lea eax, [ebp - 4]
mov ecx, 0xc
mov edx, 1
call fcn.004044cc
lea eax, [ebp - 0x138]
call fcn.0045984c
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00404278
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ebp - 4]
call fcn.00403fc0
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x459bde
push edi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459d10
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403f90
lea eax, [ebp - 4]
call fcn.00403f6c
ret
Function at 0x45a068
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
mov ebx, eax
mov eax, edx
test ebx, ebx
je 0x45a0f2
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + edx + 0x7c]
test edi, edi
je 0x45a0f2
mov edx, dword [ebx + edx + 0x78]
test edx, edx
je 0x45a0f2
mov esi, edx
add edi, esi
add edx, ebx
cmp eax, 0x10000
jae 0x45a09c
sub eax, dword [edx + 0x10]
jmp 0x45a0dc
push ebp
push esi
push edi
mov ebp, eax
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
add esi, ebx
push edx
jecxz 0x45a0c5
mov eax, dword [esi]
sub edi, edi
add esi, 4
add eax, ebx
dec ecx
mov dl, byte [edi + eax]
cmp dl, byte [edi + ebp]
jne 0x45a0aa
inc edi
test dl, dl
jne 0x45a0b6
sub eax, eax
pop edx
pop edi
pop esi
pop ebp
test eax, eax
jne 0x45a0f2
sub ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x24]
inc ecx
neg ecx
add eax, ebx
movzx eax, word [eax + ecx*2]
mov ecx, ebx
add ecx, dword [edx + 0x1c]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
cmp eax, esi
jb 0x45a0ee
cmp eax, edi
jb 0x45a0f2
add eax, ebx
jmp 0x45a0f4
sub eax, eax
pop edi
pop esi
pop ebp
pop esp
pop ebx
pop edx
pop ecx
ret

Function at 0x45a5fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040441c
xor eax, eax
push ebp
push 0x45a6d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3c
call fcn.004026bc
mov ebx, eax
mov edx, 0x3c
mov eax, ebx
call fcn.00406a5c
mov dword [ebx], 0x3c
xor eax, eax
mov dword [ebx + 4], eax
mov eax, dword [0x461be0]
call fcn.0043e6c0
mov dword [ebx + 8], eax
mov eax, 0x45a6e0
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 8]
call fcn.0040442c
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
call fcn.0040442c
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00459514
mov eax, dword [ebp - 0xc]
call fcn.0040442c
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 1
push ebx
call sub.shell32.dll_ShellExecuteExA
mov esi, eax
mov eax, ebx
call fcn.004026dc
test esi, esi
je 0x45a6b7
call fcn.00403e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a6d9
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f90
ret
Function at 0x45a700
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.0040441c
xor eax, eax
push ebp
push 0x45a8ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
xor ecx, ecx
push ebp
push 0x45a8ad
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.0040442c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45a7b7
mov byte [ebp - 0x15], 0
mov eax, 0x2000
call fcn.004026bc
mov dword [ebp - 0x14], eax
mov edx, 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00406a5c
push 0x461bf0
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
jmp 0x45a7f1
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45a7dd
call fcn.00403a54
jmp 0x45a8b4
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45a801
call fcn.00403a54
jmp 0x45a8b4
xor ecx, ecx
push ebp
push 0x45a83a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
add eax, edx
cmp word [edx], 0x5a4d
jne 0x45a830
cmp dword [eax], 0x4550
jne 0x45a830
mov edx, dword [eax + 0x34]
mov dword [ebx], edx
mov eax, dword [eax + 0x50]
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a8b4
cmp byte [ebp - 0x15], 0
je 0x45a882
cmp dword [ebp - 0x14], 0
je 0x45a874
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
jmp 0x45a882
cmp dword [ebp - 0x14], 0
je 0x45a882
mov eax, dword [ebp - 0x14]
call fcn.004026dc
cmp dword [ebp - 0x10], 0
je 0x45a891
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0xffffffff
je 0x45a8ac
cmp dword [ebp - 0xc], 0
je 0x45a8ac
cmp byte [ebp - 0x15], 0
je 0x45a8ac
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a8d1
lea eax, [ebp - 8]
call fcn.00403f6c
ret
Function at 0xdf59e8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdf59f2
pushal
call 0xdf59f8
pop ebp
sub ebp, 0x10
sub ebp, 0x9f59e8
jmp 0xdf5a0e
mov eax, 0x9f59e8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ce
mov edx, 0xd6ec6033
xor byte [eax], dl
inc eax
dec ecx
jne 0xdf5a25
jmp 0xdf5a38
mov eax, 0xfbab8fe
xor esi, dword [ebx]
xor esi, dword [edx + 0x3333cbf2]
xor esi, dword [eax]
dec byte [ebx + 0x33333336]
mov dword [ebx], ebx
xor esi, dword [ebx]
xor eax, esp
sal dword [eax], 1
sti
mov eax, 0x33333fb2
xor esi, dword [eax]
idiv byte [esi - 0x4530e8a9]
aaa
pop ss
mov esi, 0xbacf1757
aaa
pop ss
pop ebx
mov dword [0x5b3313da], eax
imul eax, dword [ebx + 0x4d], 0x33
xor bl, byte [edi]
pop ss
pop ebx
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4ad06c], 1
mov dword [0x4ad070], 1
mov dword [0x4ad074], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401412
mov eax, 0
jmp 0x4014ac
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 0x401435
mov eax, 0
jmp 0x4014ac
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 0x401457
cmp eax, 0x20b
je 0x40147c
jmp 0x4014a7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401469
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401494
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014ac
mov eax, 0
leave
ret
Function at 0x476c20
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp byte [0x4ac9d5], 0
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
je 0x476ca0
mov dword [esp + 4], 0x48f4de
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x476db0
mov esi, dword [0x4ac944]
jmp 0x476c64
lea esi, [edx + eax + 4]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea edx, [esi + eax + 1]
mov eax, dword [edx]
test ebx, ebx
jne 0x476c60
movzx ecx, word [edx + 4]
add esp, 0x1c
mov eax, ebp
add edx, 6
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00465010
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]
lea ecx, [eax + 8]
mov dword [0x4ac944], eax
sub esp, 4
mov esi, dword [eax]
mov dword [0x4ac944], ecx
test edx, edx
je 0x476d9e
lea ebx, [eax + edx + 8]
mov edx, 0xffffffff
lea esi, [esi]
movzx eax, byte [ecx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add ecx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
cmp ebx, ecx
jne 0x476d08
not edx
cmp esi, edx
jne 0x476e1f
mov byte [0x4ac9d5], 1
jmp 0x476c38
cmp byte [0x4ac9d4], 0
jne 0x476c50
mov ebx, dword [sym.imp.python39.dll_PyDict_New]
call ebx
mov dword [0x4acec8], eax
call ebx
mov dword [0x4acec4], eax
call ebx
mov dword [0x4acec0], eax
call ebx
mov dword [0x4acebc], eax
call ebx
mov dword [0x4aceb8], eax
call ebx
mov dword [0x4aceb4], eax
call ebx
mov dword [0x4aceb0], eax
call ebx
mov byte [0x4ac9d4], 1
mov dword [0x4aceac], eax
mov eax, dword [sym.imp.python39.dll__PyRuntime]
mov eax, dword [eax + 0x118]
mov eax, dword [eax + 8]
add eax, 0x754
mov dword [0x4ac940], eax
jmp 0x476c50
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
Function at 0x47ceb0
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.00483e04
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.00483e04
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 0x47da84
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 0x47daa3
mov eax, 0
jmp 0x47dae7
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 0x47dac6
mov eax, 0
jmp 0x47dae7
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 0x47dae2
mov eax, 0
jmp 0x47dae7
mov eax, 1
leave
ret

Function at 0x47dae9
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 0x47db48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x47db40
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 0x47db40
mov eax, dword [ebp - 4]
jmp 0x47db5c
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 0x47db1d
mov eax, 0
leave
ret