joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020baf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10037878]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020bef
cmp byte [ebx], 0xa
jne 0x10020bef
or byte [eax + edi + 0x28], 4
jmp 0x10020bf4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10020cf2
mov al, byte [edx]
cmp al, 0x1a
je 0x10020cd4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10020c23
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10020c48
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10020c52
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10020c05
jmp 0x10020cf2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10020ccf
cmp dword [ebp - 0xc], 0
je 0x10020ccf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10037878]
test byte [eax + edi + 0x28], 0x48
je 0x10020ca9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10020c94
mov byte [esi], dl
jmp 0x10020ca5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10037878]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10020cf2
cmp byte [ebp - 1], 0xa
jne 0x10020cb8
cmp esi, ebx
jne 0x10020cb8
mov byte [esi], 0xa
jmp 0x10020cf1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001ffb6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10020cf2
mov byte [esi], 0xd
jmp 0x10020cf1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10037878]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10020cee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10020cf2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020cfb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10037878]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020d3e
cmp word [esi], dx
jne 0x10020d3e
or byte [edi + eax + 0x28], 4
jmp 0x10020d43
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10020e7c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10020e5c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10020d85
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10020dbb
cmp eax, edx
jae 0x10020dc7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10020d5d
jmp 0x10020e7c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10020e58
cmp dword [ebp - 0x14], 0
je 0x10020e58
mov eax, dword [ebx*4 + 0x10037878]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10020e30
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10020e76
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10037878]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10037878]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10037878]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10020e79
pop ebx
cmp word [ebp - 4], bx
jne 0x10020e41
cmp esi, dword [ebp + 0xc]
jne 0x10020e41
mov word [esi], bx
jmp 0x10020e79
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001ffb6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10020e7c
push 0xd
jmp 0x10020e75
mov ecx, dword [ebx*4 + 0x10037878]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10020e73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10020e7c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002169d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002150e

Function at 0x10021adb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f280
push 0x1002f278
push str.FlsAlloc
push 0x1e
call fcn.100219a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021b0f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c158]
call esi
jmp 0x10021b15
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10021b59
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f290
push 0x1002f288
push str.FlsGetValue
push 0x20
call fcn.100219a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021b90
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10025601
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 0x1002569e
push ebx
push esi
call fcn.100255ca
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.10024361
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002564b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002569d
push edi
push eax
call fcn.10022612
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002566b
call fcn.1001fd35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002569c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10024361
add esp, 0x20
test eax, eax
jne 0x1002568a
push edi
call fcn.1001fd35
jmp 0x10025692
push ebx
call fcn.1001fd35
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 0x1002a0f1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002a06d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002a269
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002a269
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002a218
jg 0x1002a14a
test eax, eax
je 0x1002a20e
push 1
push 0x1000
call fcn.1001fcd8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002a170
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1002a205
push 0x8000
push ebx
call fcn.10029f9e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002a19c
jg 0x1002a197
cmp ecx, 0x1000
jb 0x1002a19c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001fad8
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002a1e1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002a197
jl 0x1002a1c8
test ecx, ecx
jne 0x1002a189
push dword [ebp - 0xc]
push ebx
call fcn.10029f9e
push esi
call fcn.1001fd35
add esp, 0xc
xor edi, edi
jmp 0x1002a27a
cmp byte [edi + 0x24], 0
je 0x1002a1f8
cmp dword [edi + 0x20], 5
jne 0x1002a1f8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002a203
mov edi, dword [edi + 0x18]
jmp 0x1002a205
xor edi, edi
push esi
call fcn.1001fd35
pop ecx
jmp 0x1002a27a
test ecx, ecx
jg 0x1002a1da
jl 0x1002a218
test eax, eax
jae 0x1002a1da
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001ffb6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002a23b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1002a1da
jmp 0x1002a272
push ebx
call fcn.10027ffd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002a1da
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1002a27a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1002a277
mov edi, dword [edi + 0x18]
jmp 0x1002a27a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001ffb6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002b610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40673a
pop dword [ebp - 0x40]
mov eax, 0x40673a
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xde973f1a
sub dword [ebp - 0x50], 0x9044f9cf
mov dword [ebp - 0x4c], 0xdd651394
sub dword [ebp - 0x4c], 0xab31c74f
mov dword [ebp - 0x48], 0x31d9fd19
add dword [ebp - 0x48], 0x1a724715
mov dword [ebp - 0x44], 0x17ad4f06
add dword [ebp - 0x44], 0xe852b0fa
lea eax, [ebp - 0x50]
push eax
mov eax, 0xc030a216
sub eax, 0xbff02112
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x998f70af
add dword [ebp - 0x50], 0xdae2f8a7
mov dword [ebp - 0x4c], 0x577edf87
add dword [ebp - 0x4c], 0xe9ed81ee
mov dword [ebp - 0x48], 0x7e0e5d8c
sub dword [ebp - 0x48], 0x1a9ef120
mov dword [ebp - 0x44], 0xd9ba70c8
sub dword [ebp - 0x44], 0xd9ba70c8
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xbc27312e
add eax, 0x44194fd2
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3b4cd
push 0
call eax
mov ecx, 0xcadd6f36
sub ecx, 0xcadd1813
mov esi, eax
mov edi, 0xe5a2fa2c
add edi, 0x1aa3e9d4
add edi, dword [ebp - 0x40]
mov edx, 0x96516d3a
add edx, 0x61203051
xor dword [ebp - 0x20], 0xd24f7165
mov ebx, dword [edi]
add dword [ebp - 0x20], 0x5ddb650e
xor ebx, edx
sub dword [ebp - 0x14], ebx
mov dword [esi], ebx
add dword [ebp - 0x30], edi
add esi, 0xe6f866b3
add esi, 0x19079951
add edi, 4
loop 0x406857
add eax, 0x81c5f72c
add eax, 0x7e3b5833
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.00401912

Function at 0x4077ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040263b
and dword [ebp - 4], 0
cmp dword [0x42b284], 0
mov ebx, eax
jne 0x40785f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407910
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407910
push eax
call fcn.004025c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b284], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b288], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b28c], eax
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x42b294], eax
test eax, eax
je 0x40785f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x42b290], eax
mov eax, dword [0x42b290]
cmp eax, ebx
je 0x4078b7
cmp dword [0x42b294], ebx
je 0x4078b7
push eax
call fcn.00402644
push dword [0x42b294]
mov esi, eax
call fcn.00402644
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078b7
test edi, edi
je 0x4078b7
call esi
test eax, eax
je 0x4078ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078ae
test byte [ebp - 0xc], 1
jne 0x4078b7
or dword [ebp + 0x10], 0x200000
jmp 0x4078f0
mov eax, dword [0x42b288]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f0
mov eax, dword [0x42b28c]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b284]
call fcn.00402644
pop ecx
test eax, eax
je 0x407910
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425436
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x425493
and dword [ebp - 0x408], 0
lea ecx, [ebp - 0x408]
call fcn.0042542e
mov al, byte [ebp - 0x408]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x42548e
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x425450
pop esi
cmp ebx, 0x2d
jne 0x4254aa
or dword [0x27133bc], 0xffffffff
mov dword [0x27133b8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x4013f0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x42fe70]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0040a676
test eax, eax
jne 0x401441
push 0x42a5f0
call fcn.00414622
add esp, 4
mov dword [ebp - 0x218], 1
call section..text
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00415590
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x214]
call fcn.00402670
lea eax, [ebp - 0x210]
push eax
push str.__i___s_
lea ecx, [ebp - 0x214]
push ecx
call fcn.00401b10
add esp, 0xc
xor edx, edx
je 0x40158d
push 0x44
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.00415590
add esp, 0xc
mov dword [ebp - 0x270], 0x44
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x270]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x214]
call fcn.00401f90
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401573
lea ecx, [ebp - 0x274]
call fcn.00402670
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42a624
lea ecx, [ebp - 0x274]
push ecx
call fcn.00401b10
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x274]
call fcn.00401f90
push eax
call fcn.0040a367
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x274]
call fcn.00402510
lea ecx, [ebp - 0x214]
call fcn.00402510
mov eax, dword [ebp - 0x278]
jmp 0x4015d5
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0
lea ecx, [ebp - 0x214]
call fcn.00401f90
push eax
mov ecx, 0x433bec
call fcn.00401f90
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x27c], ecx
lea ecx, [ebp - 0x214]
call fcn.00402510
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004143fb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405a50
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x405bb1
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x428e10]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x428e10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x428e10]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x428e10]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x428e10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x428e10]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x428e10]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x428e10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x405a5c
cmp dword [ebp + 0x10], 0
je 0x405bea
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x428e10]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x405bb7
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x405c00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x428e10]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x428e10]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x406300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
jne 0x406343
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40633e
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x406392
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jbe 0x406363
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0x14]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x14]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418a00
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret