joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f68e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5048a5
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0x298
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x4f69f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x14]
call fcn.00402e30
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x16]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1a]
push edx
movzx eax, word [ebp - 0x1c]
push eax
movzx ecx, word [ebp - 0x1e]
push ecx
movzx edx, word [ebp - 0x22]
push edx
movzx eax, word [ebp - 0x24]
push eax
push str._r_n_d__02d__02d__02d:_02d:_02d._03d_:__s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00405f70
add esp, 0x28
lea ecx, [ebp - 0x14]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x28c], 0xffffffff
je 0x4f69c5
lea ecx, [ebp - 0x14]
call fcn.004032b0
shl eax, 1
push eax
lea ecx, [ebp - 0x14]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x288
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x288]
mov eax, dword [edx + 0x38]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407160
jmp 0x4f69e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x298
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x24c]
call fcn.00402e30
mov dword [ebp - 4], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004bff70
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x250], eax
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x4f6e2d
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4f6e2d
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x250]
jne 0x4f6e09
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x258], ecx
jmp 0x4f6e20
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4f6ded
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
jbe 0x4f6eae
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x4f6eae
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4f6eae
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [ebp - 0x258]
jne 0x4f6e8a
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x24c]
call fcn.004037b0
jmp 0x4f6ea1
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4f6e68
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004020c0
mov ecx, dword [ebp - 0x25c]
or ecx, 1
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00407160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bfe65
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9a80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.CPoster.0
mov ecx, dword [ebp - 4]
mov dword [ecx + method.DuiLib::CContainerUI.virtual_0], vtable.CPoster.1.0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x3fc], 0
je 0x4f9ad1
push 0x64
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f9ad1
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
add ecx, 0x3f8
call fcn.00407160
mov ecx, dword [ebp - 4]
add ecx, 0x3f4
call fcn.00407160
mov ecx, dword [ebp - 4]
add ecx, 0x3f0
call fcn.00407160
mov ecx, dword [ebp - 4]
call sym.QiyiInstaller.exe_public_virtual:_void___thiscall_DuiLib::CContainerUI::destructor_void_
mov esp, ebp
pop ebp
ret
Function at 0x41bfd6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x44f658
call fcn.00423da0
call fcn.0041ef3a
movzx esi, ax
push 2
call fcn.0041bffc
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x41be8d
xor ebx, ebx
jmp 0x41bec0
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41be89
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x41be89
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x41bec0
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004239a7
test eax, eax
jne 0x41bed4
push 0x1c
call fcn.0041bfaf
pop ecx
call fcn.00421e09
test eax, eax
jne 0x41bee5
push 0x10
call fcn.0041bfaf
pop ecx
call fcn.00424ca7
and dword [ebp - 4], 0
call fcn.0042441e
test eax, eax
jns 0x41beff
push 0x1b
call fcn.0041bfaf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x455364], eax
call fcn.00424ce7
mov dword [0x4532ac], eax
call fcn.004246d2
test eax, eax
jns 0x41bf25
push 8
call fcn.00423ab6
pop ecx
call fcn.0042490f
test eax, eax
jns 0x41bf36
push 9
call fcn.00423ab6
pop ecx
push 1
call fcn.00423af0
pop ecx
test eax, eax
je 0x41bf49
push eax
call fcn.00423ab6
pop ecx
call fcn.00424d44
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x41bf6b
push esi
call fcn.00423d59
call fcn.00423ae1
jmp 0x41bfa0
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00423de5
ret
call 0x5c8000
jmp 0x41be5f
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x404de2
Capabilities:
Hash data using murmur3

Disassembly:
push eax
mov ah, 0x40
add byte [ebx], ch
aad 0xc1
ret 0x4901

Function at 0x404e64
Capabilities:
Hash data using murmur3

Disassembly:
ror ecx, 0x17
xor esi, eax
inc esi
xchg ebx, eax
sub esi, eax
inc esi
push 0
mov dword [0x40b63c], 0x4cb2c64
sub dword [0x40b776], esi
xor eax, 0x24778f29
not esi
xchg ecx, eax
ror ebx, 1
sub eax, 0x681647d
xor ecx, dword [0x40bb14]
sub edx, dword [0x40bd8a]
neg esi
call fcn.0040676f
xor eax, 0x167714e2
xor eax, 0x167714e2
call fcn.004029aa
neg esi
add eax, 0x681647d
rol ebx, 1
xchg ecx, eax
not esi
xor eax, 0x24778f29
sub dword [0x40b5d8], ecx
add bh, al
add eax, 0x40b420
rcl byte [edi]
ror byte [eax], 1
call eax
neg eax
call fcn.004018fe
ror eax, 1
call fcn.004018fe
add ebx, eax
xor edi, esi
mov dword [0x40b320], 0x37dcb38
rol ebx, 0xe
dec edx
sub edi, eax
and dword [0x40b788], edi
xor ebx, esp
sub ecx, eax
not eax
not eax
add ecx, eax
xor ebx, esp
and dword [0x40b3e8], edx
add edi, eax
inc edx
ror ebx, 0xe
xor edi, esi
sub ebx, eax
rol eax, 1
neg eax
call fcn.00404f2e

Function at 0x404ed2
Capabilities:
Hash data using murmur3

Disassembly:
ror ecx, 0x17
xor esi, eax
inc esi
xchg ebx, eax
sub esi, eax
inc esi
push 0
mov dword [0x40b63c], 0x4cb2c64
sub dword [0x40b776], esi
xor eax, 0x24778f29
not esi
xchg ecx, eax
ror ebx, 1
sub eax, 0x681647d
xor ecx, dword [0x40bb14]
sub edx, dword [0x40bd8a]
neg esi
call fcn.0040676f
xor eax, 0x167714e2
xor eax, 0x167714e2
call fcn.004029aa
neg esi
add eax, 0x681647d
rol ebx, 1
xchg ecx, eax
not esi
xor eax, 0x24778f29
sub dword [0x40b5d8], ecx
add bh, al
add eax, 0x40b420
rcl byte [edi]
ror byte [eax], 1
call eax
neg eax
call fcn.004018fe
ror eax, 1
call fcn.004018fe
add ebx, eax
xor edi, esi
mov dword [0x40b320], 0x37dcb38
rol ebx, 0xe
dec edx
sub edi, eax
and dword [0x40b788], edi
xor ebx, esp
sub ecx, eax
not eax
not eax
add ecx, eax
xor ebx, esp
and dword [0x40b3e8], edx
add edi, eax
inc edx
ror ebx, 0xe
xor edi, esi
sub ebx, eax
rol eax, 1
neg eax
call fcn.00404f2e

Function at 0x404fa9
Capabilities:
Hash data using murmur3

Disassembly:
call fcn.00405d06
add esi, 0x3108d470
neg eax
call fcn.00408420
xor ecx, ebp
sub edi, eax
call fcn.0040773d
xor dword [0x40b268], 0xbb389b7
xor ecx, eax
xchg ecx, eax
call fcn.004012ae
sub edx, eax
rol edx, 0x10
xor esi, eax
call fcn.00402b6e
neg eax
rol ebx, 4
inc eax
ror eax, 0x16
dec edx
call fcn.004029aa
call fcn.00406608
inc edx
rol eax, 0x16
dec eax
ror ebx, 4
neg eax
xor esi, eax
ror edx, 0x10
add edx, eax
xchg ecx, eax
xor ecx, eax
call fcn.00406ec3
add edi, eax
xor ecx, ebp
neg eax
sub esi, 0x3108d470
call fcn.00406608
pop esi
xor esi, dword [0x40bd62]
xor eax, 0x40bd62
xchg eax, edx
call fcn.00402649
rol ecx, 3
xor esi, eax
sub ecx, dword [0x40bf75]
dec eax
ror edx, 0xf
xor ecx, eax
xor esi, 0x4b83566
xor edi, esi
call fcn.0040856b
neg eax
xor edx, esp
rol eax, 0x1d
xor edi, esp
Function at 0x408536
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4371e0
mov dword [esp + 4], eax
call fcn.00408365
push ebx
push ebx
mov dword [esp], 0x4371e0
call fcn.00407ce2
push edx
test eax, eax
jne 0x408567
xor eax, eax
jmp 0x4085e3
mov dword [esp], eax
mov ebx, eax
ret
call fcn.00408421
push ecx
test byte [0x41b94c], 0x80
je 0x408589
mov ax, word [ebx]
test ax, ax
je 0x408563
cmp ax, 0x5c
je 0x408563
sub ebx, 0x4371e0
sar ebx, 1
mov dword [esp], 0x4371e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x4371e0
cmp ebx, eax
jge 0x4085c8
call fcn.004084fe
push edx
test eax, eax
je 0x4085b9
test byte [eax], 0x10
je 0x408563
mov dword [esp], 0x4371e0
call fcn.00407c70
push eax
jmp 0x408591
call fcn.00408399
push eax
mov dword [esp], 0x4371e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4085ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408628
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x40862f
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c720
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x408fd8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x438244], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409015
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409000
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408ff2
mov dword [ecx*4 + 0x438240], eax
inc ecx
cmp ecx, 0x100
jne 0x408feb
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409037
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x438240]
jmp 0x40901f
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x62b9f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x633418
cmp edx, dword [eax]
je 0x62ba13
add eax, 8
inc ecx
cmp eax, 0x6334a8
jl 0x62ba04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x633418]
jne 0x62bb41
mov eax, dword [0x63bda0]
cmp eax, 1
je 0x62bb1b
test eax, eax
jne 0x62ba44
cmp dword [0x633344], 1
je 0x62bb1b
cmp edx, 0xfc
je 0x62bb41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62ba7b
lea eax, [ebp - 0x1a4]
push 0x630958
push eax
call fcn.0062c3d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c860
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62babe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c860
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630954
push edi
call fcn.0062e730
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630938
push eax
call fcn.0062c3d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062c3e0
lea eax, [ebp - 0xa0]
push 0x630934
push eax
call fcn.0062c3e0
push dword [esi + 0x63341c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062c3e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x63090c
push eax
call fcn.0062e6a4
add esp, 0x2c
pop edi
jmp 0x62bb41
lea eax, [ebp + 8]
lea esi, [esi + 0x63341c]
push 0
push eax
push dword [esi]
call fcn.0062c860
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a5
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a2
push 0x5c
push esi
call fcn.004071c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4010a2
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401074
test ebp, ebp
je 0x401074
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107b
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109c
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
je 0x40109c
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401a3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f0]
sub esp, 0x270
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1ec], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x432220
lea eax, [ebp - 0x78]
mov edi, ecx
push str.PYTHONHOME_s
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0x104
call esi
lea eax, [ebp - 0x78]
push eax
call fcn.00408293
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push edi
call ebx
test eax, eax
jne 0x401b46
push dword [0x4321a0]
lea eax, [ebp + 0x19c]
push dword [0x432188]
push str.SOFTWAREPythonPythonCore_d._dInstallPath
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x19c]
push eax
push 0x80000001
call esi
test eax, eax
je 0x401afa
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x19c]
push eax
push 0x80000002
call esi
test eax, eax
je 0x401afa
xor eax, eax
jmp 0x401b46
lea edi, [ebp + 0x98]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b01
mov eax, dword [ebp - 0x80]
mov esi, 0x4253ac
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b15
lea edi, [ebp + 0x98]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b25
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [ebp + 0x1ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077a5
add ebp, 0x1f0
leave
ret
Function at 0x401b5e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401c65
cmp dword [ebp - 4], esi
je 0x401c65
cmp dword [ebp - 0xc], esi
je 0x401c65
cmp dword [ebp - 8], esi
je 0x401c65
cmp dword [ebp - 0x10], esi
je 0x401c65
cmp dword [ebp - 0x14], esi
je 0x401c65
cmp dword [ebp - 0x18], esi
je 0x401c65
push str.__builtin__
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401c41
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43219c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432324], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c2b
mov eax, dword [ebp - 0x10]
mov dword [0x432210], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431144], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431148], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43218c], eax
xor eax, eax
jmp 0x401c68
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret