joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ff40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51ff4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x52004e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x6aea1c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6aea1c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6aea1c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6aea1c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6aea1c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6aea1c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6aea1c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6aea1c]
xor eax, edx
inc ecx
dec edi
jne 0x51ff66
pop edi
test esi, esi
je 0x520070
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6aea1c]
xor eax, edx
inc ecx
dec esi
jne 0x520052
pop esi
pop ebx
not eax
ret

Function at 0x5252b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x717978]
xor edx, edx
cmp eax, edx
jne 0x5252d6
xor eax, eax
mov byte [eax + 0x717878], al
inc eax
cmp eax, 0x100
jl 0x5252be
mov dword [0x717978], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x717878
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x525367
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x52533a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x525308
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5253e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x525433
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x52541a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52bdf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55cdde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0052c710
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6af06c
call fcn.0054be79
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x52be83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054be79
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52be7c
push 0
mov ecx, eax
call fcn.00522ef0
mov dword [esi + 0xc], eax
jmp 0x52be85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x52be85
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401825
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40186a
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401895
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4018b1
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.0043ba1d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4018b6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4018c7
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x403045
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403088
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030b2
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030e6
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4030ee
mov esp, ebp
pop ebp
ret 4

Function at 0x4030f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x403113
mov dword [ebp + 0x14], 0
jmp 0x403130
cmp dword [ebp + 0x14], 2
jne 0x403129
mov dword [ebp + 0x14], 7
jmp 0x403130
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x44422d
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40316b
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x403187
mov eax, 0
jmp 0x403191
mov eax, 1
jmp 0x403191
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409a8a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0x14e
jle 0x409ab4
cmp dword [ebp + 8], 0x180
jge 0x409ab4
mov eax, 1
jmp 0x409ab6
xor eax, eax
test eax, eax
je 0x409b0a
cmp dword [ebp + 0xc], 0xc8
jle 0x409adf
cmp dword [ebp + 0xc], 0xd9
jge 0x409adf
mov eax, 1
jmp 0x409ae1
xor eax, eax
test eax, eax
je 0x409b0a
mov eax, 0x453102
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b0a
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x151
jle 0x409b2b
cmp dword [ebp + 8], 0x180
jge 0x409b2b
mov eax, 1
jmp 0x409b2d
xor eax, eax
test eax, eax
je 0x409b81
cmp dword [ebp + 0xc], 0xe7
jle 0x409b56
cmp dword [ebp + 0xc], 0xf5
jge 0x409b56
mov eax, 1
jmp 0x409b58
xor eax, eax
test eax, eax
je 0x409b81
mov eax, str.https:__aq.qq.com_cn2_findpsw_pc_pc_find_pwd_input_account_pw_type0aquin
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b81
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x193
jle 0x409ba2
cmp dword [ebp + 8], 0x1a6
jge 0x409ba2
mov eax, 1
jmp 0x409ba4
xor eax, eax
test eax, eax
je 0x409bdb
cmp dword [ebp + 0xc], 4
jle 0x409bc7
cmp dword [ebp + 0xc], 0x13
jge 0x409bc7
mov eax, 1
jmp 0x409bc9
xor eax, eax
test eax, eax
je 0x409bdb
push 0
call fcn.0043ba0b
add esp, 4
cmp dword [ebp + 8], 0x177
jle 0x409bfc
cmp dword [ebp + 8], 0x18a
jge 0x409bfc
mov eax, 1
jmp 0x409bfe
xor eax, eax
test eax, eax
je 0x409c44
cmp dword [ebp + 0xc], 6
jle 0x409c21
cmp dword [ebp + 0xc], 0x16
jge 0x409c21
mov eax, 1
jmp 0x409c23
xor eax, eax
test eax, eax
je 0x409c44
push 1
push 1
push 0x480c77
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1a0]
mov eax, 1
jmp 0x409c4e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409c54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x44422d
push 0x44422d
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x409c9a
push 6
call fcn.0043ba29
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40fb8f
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40fbba
push 6
call fcn.0043ba29
add esp, 4
push 0x44427d
push dword [ebp - 4]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40fbda
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40fbeb
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40fbf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40fc0b
call fcn.0040fc7b
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40fc37
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40fc61
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40fc75
mov esp, ebp
pop ebp
ret 8
Function at 0x429d27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x429d6d
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x452c24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040342a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x429dc0
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x429df9
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x429e15
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.0043ba1d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x429e1a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x429e2b
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43d8d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0043d370
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x43e0b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0043d370
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x43e107
push ebx
push edi
call fcn.0043d400
push esi
mov ebx, esi
call fcn.0043d370
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x43e0de
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x18
cmp word [0x400000], 0x5a4d
mov dword [0x4f61ac], 1
mov dword [0x4f61a8], 1
mov dword [0x4f61a4], 1
jne 0x401059
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4f600c], eax
mov eax, dword [0x4f61b8]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4f61cc]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4f61b4]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x4ba0d8], 1
je 0x4010e0
leave
xor eax, eax
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401073
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f0
cmp dx, 0x20b
jne 0x401059
cmp dword [ecx + 0x84], 0xe
jbe 0x401059
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401059
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
leave
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401059
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401059
Function at 0x413810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x41390d
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
jne 0x41390d
mov eax, dword [edi + 8]
cmp eax, dword [esi + 8]
jne 0x41390d
movzx eax, word [edi + 0xc]
cmp ax, word [esi + 0xc]
jne 0x41390d
movzx eax, word [edi + 0xe]
cmp ax, word [esi + 0xe]
jne 0x41390d
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x10]
jne 0x41390d
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x41390d
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x41390d
mov eax, dword [edi + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x41390d
mov eax, dword [edi + 0x20]
cmp eax, dword [esi + 0x20]
jne 0x41390d
mov eax, dword [edi + 0x24]
cmp eax, dword [esi + 0x24]
jne 0x41390d
mov eax, dword [edi + 0x28]
cmp eax, dword [esi + 0x28]
jne 0x41390d
mov eax, dword [edi + 0x2c]
cmp eax, dword [esi + 0x2c]
jne 0x41390d
mov eax, dword [edi + 0x30]
cmp eax, dword [esi + 0x30]
jne 0x41390d
mov eax, dword [edi + 0x34]
cmp eax, dword [esi + 0x34]
jne 0x41390d
mov eax, dword [edi + 0x38]
cmp eax, dword [esi + 0x38]
jne 0x41390d
lea ecx, [edi + 0x3c]
lea edx, [esi + 0x3c]
call sym.__LT_windows..Windows..Win32..Graphics..Gdi..CIEXYZTRIPLE_u20_as_u20_core..cmp..PartialEq_GT_::eq::h429bd4d120ad5b8a
test al, al
je 0x41390d
mov eax, dword [edi + 0x60]
cmp eax, dword [esi + 0x60]
jne 0x41390d
mov eax, dword [edi + 0x64]
cmp eax, dword [esi + 0x64]
jne 0x41390d
mov eax, dword [edi + 0x68]
cmp eax, dword [esi + 0x68]
jne 0x41390d
mov eax, dword [edi + 0x6c]
cmp eax, dword [esi + 0x6c]
jne 0x41390d
mov eax, dword [edi + 0x70]
cmp eax, dword [esi + 0x70]
jne 0x41390d
mov eax, dword [edi + 0x74]
cmp eax, dword [esi + 0x74]
jne 0x41390d
mov eax, dword [edi + 0x78]
cmp eax, dword [esi + 0x78]
sete al
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x4411a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4411d4
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4411e4
mov eax, dword [0x4c28c0]
mov ecx, dword [0x4c28c4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x442610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov esi, 0x200
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 2
cmp esi, 0x201
jae 0x442670
jmp 0x44265e
jbe 0x4426e0
cmp esi, 0x201
jae 0x442670
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x434]
mov ebx, esi
jmp 0x44269a
mov ebx, dword [ebp - 0x24]
sub esi, ebx
je 0x44268e
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h20e2001013f05adb
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push 0
call sub.kernel32.dll_SetLastError
push edi
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x4426b7
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x442730
cmp esi, ebx
jne 0x442650
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x44274e
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x44265e
jmp 0x442670
mov eax, dword [ebp - 0x20]
cmp esi, eax
ja 0x442764
lea eax, [ebp - 0x34]
push esi
push edi
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hdc9efc66b333cddc
add esp, 0xc
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x442722
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x442712
jmp 0x442722
push 0x4c29f0
push 0x28
push str.internal_error:_entered_unreachable_code
call sym.core::panicking::panic::h2de0902fd6c3d9b1
add esp, 0xc
jmp 0x442773
push 0x4c29e0
push eax
push esi
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2

Function at 0x4427a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
call sub.kernel32.dll_GetEnvironmentStringsW
test eax, eax
je 0x4427ba
mov edx, eax
add esp, 0x28
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x4c2290
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::hb3a737c4f0103051
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
push 0x4c2298
push eax
call sym.core::panicking::panic_fmt::h653fda680bf9012e
add esp, 8
ud2