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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
call fcn.00443270
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4c0510]
mov esi, eax
add esp, 8
test esi, esi
je 0x46b021
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x46af30
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp - 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x46af91
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp - 8], 1
jne 0x46af50
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
lea edi, [eax + 4]
jmp 0x46af94
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x46afc8
nop dword [eax]
mov eax, dword [edi]
push 1
push 0x4adfd1
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4adfd2
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x46afa0
push dword [ebp + 0x18]
call fcn.00443270
mov ecx, dword [esi]
push eax
push dword [ebp + 0x14]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x46aff0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x4c0514]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b110
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x46b138
mov eax, 0x1b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46b16c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0xc], 0
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.00443270
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x20
jne 0x46b1ba
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46b1c8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x46b1d8
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x46b5b6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x46b5dd
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x46b5e0
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0046b592
pop esi
leave
ret 8

Function at 0x46d87f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46d8be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46d8be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d8be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46d8be
cmp dword [ecx + 0x74], 0xe
jbe 0x46d8be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x47e56e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046d0a0
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00489f5d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47e5b0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47e70c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046ce80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c29e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0048dd0c
mov ecx, dword [esi*4 + 0x4c29e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x47e705
cmp eax, dword [edi + ecx + 0x24]
jne 0x47e705
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e705
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048dd0c
add esp, 0x14
test edx, edx
jl 0x47e705
jg 0x47e67b
test eax, eax
jb 0x47e705
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47e705
jl 0x47e695
cmp dword [ebp - 0x1008], eax
ja 0x47e705
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47e6b3
test ebx, ebx
je 0x47e6ec
cmp ecx, edi
jae 0x47e6ec
mov al, byte [ecx]
cmp al, 0xd
jne 0x47e6cd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47e6d9
cmp byte [ecx + 1], 0xa
jne 0x47e6d9
inc ecx
jmp 0x47e6d9
movzx eax, al
movsx eax, byte [eax + 0x4c0b40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47e6b3
cmp edx, ebx
jne 0x47e6b3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47e70a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046ca44
leave
ret
Function at 0x482b3e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4b1060
push esi
call fcn.00490a3b
pop ecx
pop ecx
test eax, eax
jne 0x482b6c
xor al, al
jmp 0x482be9
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00482875
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x482ba6
push dword [ebp - 0x210]
call fcn.00472719
xor al, al
jmp 0x482be7
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x482bac
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x482bcc
push edx
call fcn.00482a74
pop ecx
test al, al
je 0x482b97
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x482bda
mov bl, 1
push dword [ebp - 0x210]
call fcn.00472719
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046ca44
leave
ret
Function at 0x488464
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 + 0x4c29e8]
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 0x4884a4
cmp byte [ebx], 0xa
jne 0x4884a4
or byte [eax + edi + 0x28], 4
jmp 0x4884a9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4885a7
mov al, byte [edx]
cmp al, 0x1a
je 0x488589
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4884d8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4884fd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x488507
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 0x4884ba
jmp 0x4885a7
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 0x488584
cmp dword [ebp - 0xc], 0
je 0x488584
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c29e8]
test byte [eax + edi + 0x28], 0x48
je 0x48855e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x488549
mov byte [esi], dl
jmp 0x48855a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c29e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4885a7
cmp byte [ebp - 1], 0xa
jne 0x48856d
cmp esi, ebx
jne 0x48856d
mov byte [esi], 0xa
jmp 0x4885a6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048dd2a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4885a7
mov byte [esi], 0xd
jmp 0x4885a6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c29e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4885a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4885a7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4885b0
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 + 0x4c29e8]
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 0x4885f3
cmp word [esi], dx
jne 0x4885f3
or byte [edi + eax + 0x28], 4
jmp 0x4885f8
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 0x488731
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 0x488711
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48863a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x488670
cmp eax, edx
jae 0x48867c
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 0x488612
jmp 0x488731
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 0x48870d
cmp dword [ebp - 0x14], 0
je 0x48870d
mov eax, dword [ebx*4 + 0x4c29e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4886e5
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x48872b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c29e8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4c29e8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c29e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x48872e
pop ebx
cmp word [ebp - 4], bx
jne 0x4886f6
cmp esi, dword [ebp + 0xc]
jne 0x4886f6
mov word [esi], bx
jmp 0x48872e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048dd2a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x488731
push 0xd
jmp 0x48872a
mov ecx, dword [ebx*4 + 0x4c29e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x488728
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x488731
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 0x48ad75
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048acf7

Function at 0x48c91f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b28ec
push 0x4b28e4
push str.FlsAlloc
push 0x1e
call fcn.0048c6cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c953
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a0384]
call esi
jmp 0x48c959
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48c99d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b28fc
push 0x4b28f4
push str.FlsGetValue
push 0x20
call fcn.0048c6cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c9d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a0384]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48d6e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d558
Function at 0x49054d
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.004904c9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4906c5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4906c5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x490674
jg 0x4905a6
test eax, eax
je 0x49066a
push 1
push 0x1000
call fcn.0048b307
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4905cc
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x490661
push 0x8000
push ebx
call fcn.00485d1a
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 0x4905f8
jg 0x4905f3
cmp ecx, 0x1000
jb 0x4905f8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004896b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x49063d
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 0x4905f3
jl 0x490624
test ecx, ecx
jne 0x4905e5
push dword [ebp - 0xc]
push ebx
call fcn.00485d1a
push esi
call fcn.0048b364
add esp, 0xc
xor edi, edi
jmp 0x4906d6
cmp byte [edi + 0x24], 0
je 0x490654
cmp dword [edi + 0x20], 5
jne 0x490654
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49065f
mov edi, dword [edi + 0x18]
jmp 0x490661
xor edi, edi
push esi
call fcn.0048b364
pop ecx
jmp 0x4906d6
test ecx, ecx
jg 0x490636
jl 0x490674
test eax, eax
jae 0x490636
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048dd2a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x490697
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x490636
jmp 0x4906ce
push ebx
call fcn.0049045f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x490636
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 0x4906d6
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4906d3
mov edi, dword [edi + 0x18]
jmp 0x4906d6
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048dd2a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x491f43
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 0x491fe0
push ebx
push esi
call fcn.00491f0c
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.0048f425
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x491f8d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x491fdf
push edi
push eax
call fcn.0048df09
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x491fad
call fcn.0048b364
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x491fde
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048f425
add esp, 0x20
test eax, eax
jne 0x491fcc
push edi
call fcn.0048b364
jmp 0x491fd4
push ebx
call fcn.0048b364
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 0x491fe3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x491ff4
pop esi
ret
push ebx
push edi
push esi
call fcn.00491f0c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048df09
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49201c
push ebx
push esi
push edi
call fcn.0046e120
add esp, 0xc
push 0
call fcn.0048b364
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x492768
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049228f
Function at 0x49b250
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b260

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b4f0

Function at 0x49c3a0
Capabilities:
Parse pe header

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

Function at 0x8ccba1
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
add edi, 1
or edi, edi
mov ebx, edi
call fcn.008ccbda
sub ebx, 0x149a7f75
sub edi, 0x9bdedb2
add edi, ebx
xor dword [ecx], edx
and ebx, ebx
inc ecx
add ebx, 0x5f646035
inc edi
and ebx, ebx
cmp ecx, esi
jne fcn.008ccba1
add ebx, ebx
ret

Function at 0x8ccbb8
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
pop eax
mov ebx, edi
add ebx, 0x7673bfc2
call fcn.008ccbe7
dec ebx
and edi, edi
xor dword [esi], eax
or ebx, edi
add esi, 1
sub edi, edi
cmp esi, ecx
jne fcn.008ccbb8
add edi, ebx
add ebx, ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x77ae51c0
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x14d66cc4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4149bc
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
sub ecx, 0x13a1c
and ecx, 0x14326
pop ecx
push edx
push ecx
add esp, 4
jmp 0x414886
pop edx
push eax
add eax, 0x181ab
pop eax
imul edx, dword [ebp - 0xfac], 0x138
add edx, 0x44f3644b
imul eax, dword [ebp - 0xfac], 0x138
sub edx, eax
xor edx, 0xabe912
imul edx, dword [ebp - 0xfac]
imul ecx, dword [ebp - 0xfac], 0x138
sub edx, ecx
mov dword [ebp - 0xfb0], edx
push ebx
push edx
add esp, 4
or ebx, 0x7e1
call 0x4148e2
add byte [ebx + 0x44], cl
cmp al, 0x33
cmp cl, byte [ebp + 0x36]
add esp, 4
pop ebx
push edx
or edx, 0x11f37
xor edx, 0x12d9e
pop edx
push eax
sub eax, 0x1394a
pop eax
mov dword [ebp - 0x10], 1
push esi
push esi
add esp, 4
sub esi, 0xe6a7
sub esi, 0xd002
sub esi, 0x6852
or esi, 0x124e4
pop esi
push edx
or edx, 0xa32a
pop edx
push edi
push edx
add esp, 4
sub edi, 0x49ff
pop edi
imul edx, dword [ebp - 0x10], 0x138
add edx, 0x44f3644b
imul eax, dword [ebp - 0x10], 0x138
sub edx, eax
xor edx, 0x153c
imul edx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x10], 0x138
sub edx, ecx
mov dword [ebp - 0x14], edx
push ebx
push eax
add esp, 4
and ebx, 0x16cb3
pop ebx
push esi
push esi
add esp, 4
and esi, 0xac3e
and esi, 0x513c
add esi, 0xad7c
pop esi
push esi
and esi, 0x2130
xor esi, 0x6b15
pop esi
push eax
jmp 0x41499c
pop eax
push esi
push eax
add esp, 4
jmp 0x4149a9
sub esi, 0x183
call 0x4149bc
add byte [edi], dh
dec esi
dec ebx
inc ecx
cmp dword [eax], edi
cmp eax, 0xeb04c483
add eax, dword [edx + 0x3f]
pop esi
mov dword [ebp - 0x2c], 1
push eax
push edx
add esp, 4
call 0x4149e1
add byte [esi], dh
xor eax, 0x444e4132
inc esp
dec ebx
dec ecx
add esp, 4
xor eax, 0x604b
jmp 0x4149ef
or eax, 0x16d7c
pop eax
push edi
xor edi, 0x3c30
pop edi
imul edx, dword [ebp - 0x2c], 0x138
add edx, 0x44f3644b
imul eax, dword [ebp - 0x2c], 0x138
sub edx, eax
xor edx, 0
imul edx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x2c], 0x138
sub edx, ecx
mov dword [ebp - 0x30], edx
jmp 0x414bdf