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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43010d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
cmp dword [ecx + 0x24], 7
lea eax, [ecx + 0x10]
jbe 0x412470
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4125cd
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4125c6
push dword [ebp - 0x48]
call fcn.00422766
mov edi, eax
add esp, 4
test edi, edi
je 0x4125c6
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebp - 0x48]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4125ba
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push edi
push dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
call fcn.004041b0
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x38]
push 0
push 1
mov dword [eax + 0x24], 0
call fcn.00403c70
mov edi, dword [ebp - 0x54]
add esp, 0x30
mov al, byte [ebp - 0x50]
mov cl, byte [edi]
mov byte [edi], al
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x48]
mov byte [ebp - 0x50], cl
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x50]
mov dword [edi + 8], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], esi
call fcn.00402d80
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x4125ab
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412586
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125ed
push ecx
push edx
call fcn.00417ffd
add esp, 8
push dword [ebp - 0x3c]
call fcn.004224c5
add esp, 4
mov al, 1
jmp 0x4125cf
push dword [ebp - 0x3c]
call fcn.004224c5
add esp, 4
mov al, 1
jmp 0x4125cf
lea eax, [ebp - 0x3c]
push eax
call fcn.004224c5
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00417fbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422715
int3
Function at 0x412f00
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43020d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x3c], esi
call fcn.00411f60
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
sub esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
mov ecx, esi
push eax
call fcn.00413b20
mov esi, eax
lea eax, [ebp - 0x34]
cmp eax, esi
je 0x412fef
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x412fbb
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412fb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130de
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x413023
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413019
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130de
push ecx
push edx
call fcn.00417ffd
add esp, 8
cmp dword [ebp - 0x20], 0xf
lea edi, [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
cmova edi, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 7
jbe 0x41303c
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41307a
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x4130c0
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4130a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130e3
push ecx
push edx
call fcn.00417ffd
add esp, 8
jmp 0x4130c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00417fbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422715
call fcn.00422715
int3
Function at 0x415d30
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43047d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0
lea edx, [ebx + 8]
cmp dword [ebx + 0x1c], 0xf
lea ecx, [ebp - 0xa8]
push dword [ebx + 0x18]
cmova edx, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xa0], 0x6a09e667
movlpd qword [ebp - 0xa8], xmm0
mov dword [ebp - 0x9c], 0xbb67ae85
mov dword [ebp - 0x98], 0x3c6ef372
mov dword [ebp - 0x94], 0xa54ff53a
mov dword [ebp - 0x90], 0x510e527f
mov dword [ebp - 0x8c], 0x9b05688c
mov dword [ebp - 0x88], 0x1f83d9ab
mov dword [ebp - 0x84], 0x5be0cd19
call fcn.00410af0
add esp, 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.00410ba0
push 0x10
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00416860
add esp, 4
mov dword [ebp - 0xb4], 2
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x415e57
mov ecx, dword [esi]
mov edi, ecx
mov edx, ecx
jmp 0x415e5b
mov edi, esi
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
mov dword [ebp - 0xb0], eax
cmp ecx, eax
je 0x415f52
nop
push 1
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
push edi
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xd8], xmm0
call fcn.004041b0
mov dword [ebp - 4], 2
call fcn.0041ec6e
cmp dword [ebp - 0xc4], 0xf
lea esi, [ebp - 0xd8]
mov dword [ebp - 0xb8], eax
cmova esi, dword [ebp - 0xd8]
mov dword [eax], 0
lea eax, [ebp - 0xac]
push 0x10
push eax
push esi
call fcn.0041eacb
add esp, 0xc
mov dword [ebp - 0xbc], eax
cmp esi, dword [ebp - 0xac]
je 0x415fb1
mov ecx, dword [ebp - 0xb8]
cmp dword [ecx], 0x22
je 0x415fa7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0xf
jbe 0x415f3b
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415f2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415fa2
push ecx
push edx
call fcn.00417ffd
mov eax, dword [ebp - 0xbc]
add esp, 8
add al, 0x61
mov byte [edi], al
inc edi
cmp edi, dword [ebp - 0xb0]
jne 0x415e70
mov esi, dword [ebp - 0xc0]
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x415f82
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415f78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415fa2
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417fbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422715
push str.stoi_argument_out_of_range
call fcn.00417f99
push str.invalid_stoi_argument
call fcn.00417f59
int3
Function at 0x4167b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov dword [ebp - 0x18], edx
xor bl, bl
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41684b
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x416844
push dword [ebp - 0x14]
call fcn.00422766
mov edi, eax
add esp, 4
test edi, edi
je 0x416844
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 0x18]
je 0x41683b
mov ecx, dword [ebp - 0x1c]
mov bl, 1
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x416844
push eax
call fcn.004224c5
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417fbf
mov esp, ebp
pop ebp
ret

Function at 0x4174f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov ecx, 5
push esi
push 0
push 0
push 0x23
push 0
push 0x7b1e661e
push 0xd74cca2c
call fcn.00410fc0
add esp, 8
call eax
test eax, eax
js 0x417559
push str.WebDataUtils3
push esi
push 0x55f7b28c
push 0x77adbbec
mov ecx, 2
call fcn.00410fc0
add esp, 8
call eax
test eax, eax
je 0x417559
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41754c
test al, 0x10
jne 0x417555
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x418955
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x418994
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418994
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418994
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x418994
cmp dword [ecx + 0x74], 0xe
jbe 0x418994
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42616a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433f78
push 0x433f70
push str.FlsAlloc
push 0x1f
call fcn.00426086
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42619e
push dword [ebp + 8]
mov ecx, esi
call dword [0x431164]
call esi
jmp 0x4261a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4261e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433f88
push 0x433f80
push str.FlsGetValue
push 0x21
call fcn.00426086
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42621f
push dword [ebp + 8]
mov ecx, esi
call dword [0x431164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x426227
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433f90
push 0x433f88
push str.FlsSetValue
push 0x22
call fcn.00426086
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426261
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4278a7
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 0x427944
push ebx
push esi
call fcn.00427870
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.00427804
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4278f1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427943
push edi
push eax
call fcn.0042475d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427911
call fcn.00424723
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427942
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427804
add esp, 0x20
test eax, eax
jne 0x427930
push edi
call fcn.00424723
jmp 0x427938
push ebx
call fcn.00424723
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 0x42e850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e87d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e87d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419e15
Capabilities:
Authenticate hmac

Disassembly:
cmp eax, 0x8f25a23c
pop ebp
sti
push edx
shl byte [eax - 0x25], 1
and edi, dword [edi + 0x29]
inc edx
xor al, byte [edi]
cli
aam 0x5c
jnp 0x419e94
jne 0x419e7a
xor ah, byte [ebx - 0x5e]
or bl, byte ss:[ebp - 0x49239c5f]
invalid
pop ss
mov dword [ecx - 0x44], eax
arpl word [eax*2 - 0x74dcbcca], ax
xor esi, dword [eax + 0x6b6272c2]
pushal
shl bl, 1
and dword [ebx], ebp
inc edx
cdq
sub edi, edx
and al, 0x75
nop
xchg ebp, eax
pop eax
add esi, dword [esi - 0x1a]
push esi
push ebx
mov byte [ebx + 0x20], 0x36
cmpsb byte [esi], byte es:[edi]
sbb cl, ah
test byte [esi - 0x1e], bl
push cs
popal
jmp 0xdd51845

Function at 0x44b610
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push 0
call esi
cmp eax, 7
jne 0x44b624
push 1
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_RaiseException]
mov al, 2
mov byte [0x660210], al
mov byte [0xa626f4], al
mov eax, 0xd7b0
mov dword [0x660228], ecx
mov word [0xa6274c], ax
mov word [0xa6274e], ax
mov word [0x660624], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x660258], eax
call esi
and eax, 0x80000000
cmp eax, 0x80000000
je 0x44b678
call esi
cmp al, 4
ja 0x44b67e
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x660254], eax
pop esi
ret
Function at 0x5907b5
Capabilities:
Encode data using xor

Disassembly:
pop ss
xchg dword [ecx + edi + 0x14], ecx
dec ebx
jne 0x590807
jecxz 0x5907e5
xor eax, 0x3ad52ac5
cmp al, 0xed
xor byte [eax - 0x32], bh
inc ebx
jmp 0x103af1b5
bound eax, qword [esi + 0x45]
nop
bound edi, qword [ebp - 0x2fcea49f]
mov ebp, 0xd0315b61
mov cl, 0xdb
sar byte [ebp + 0x22b16ebd], cl
xor dl, byte [ebp - 0x4393e09]
sbb eax, 0xdcdb635d
adc byte [esi], 0x75
sub dword [ecx], edi
cwde
xchg ecx, eax
wait
js 0x5907ea
xlatb
dec esp
and eax, 0xc883fde9
into
leave
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x45a462
push 0x14
push 0x47b790
call fcn.0045a7f0
push 1
call fcn.0045a048
pop ecx
test al, al
jne 0x45a319
push 7
call fcn.0045ab0c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0045a013
mov byte [ebp - 0x24], al
mov eax, dword [0x8aeda4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x45a312
test eax, eax
jne 0x45a383
mov dword [0x8aeda4], ecx
push 0x46c420
push 0x46c408
call fcn.0046018c
pop ecx
pop ecx
test eax, eax
je 0x45a366
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x45a45c
push 0x46c404
push 0x46c3b0
call fcn.00460130
pop ecx
pop ecx
mov dword [0x8aeda4], 2
jmp 0x45a388
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0045a1a2
pop ecx
call fcn.0045adfa
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x45a3b8
push esi
call fcn.0045a118
pop ecx
test al, al
je 0x45a3b8
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0045a7e7
call esi
call fcn.0045ae00
mov esi, eax
cmp dword [esi], edi
je 0x45a3d6
push esi
call fcn.0045a118
pop ecx
test al, al
je 0x45a3d6
push dword [esi]
call fcn.0045f59a
pop ecx
call fcn.0045ac27
movzx eax, ax
push eax
call fcn.004600dd
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0045ac5a
test al, al
jne 0x45a401
push esi
call fcn.0045f5d2
test bl, bl
jne 0x45a40a
call fcn.0045f575
push edi
push 1
call fcn.0045a1bf
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x45a45c
call fcn.0045a836
ret
call fcn.0045acf3
jmp 0x45a2fa
Function at 0x402810
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x402845
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x402838
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x4028c1
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + 0x46c440]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + 0x46c440]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + 0x46c440]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x46c440]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40290e
cmp esi, 4
jne 0x402911
cmp edi, 6
jbe 0x402911
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x46c440]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x46c440]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x46c440]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x46c440]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x402860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x404503
call fcn.004042d0
test eax, eax
je 0x404503
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x404566
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.004042d0
cmp eax, 7
jb 0x404560
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4047f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x8aae74]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x404839
push str.SetDefaultDllDirectories
push 0x46c5d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404839
push 0xc00
call eax
test eax, eax
jne 0x4048d7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4048d7
cmp eax, 0x104
ja 0x4048d7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x404877
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4048d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4048b0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4048a0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x404897
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459a12
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.0045b490
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x40a907
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x46c5f0]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x40a950
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x40a934
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x40a930
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x40a9a0
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x40a990
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x8aae4c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4