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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x6c]
push edx
call fcn.00408ac4
add esp, 0x10
push 1
mov eax, dword [ebp - 0x30]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x164]
push eax
call fcn.00408ac4
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f833
add esp, 0xc
mov ax, word [ebp - 0x15e]
mov word [ebp - 0x16c], ax
xor ecx, ecx
mov word [ebp - 0x168], cx
jmp 0x403984
mov dx, word [ebp - 0x168]
add dx, 1
mov word [ebp - 0x168], dx
movzx eax, word [ebp - 0x168]
movzx ecx, word [ebp - 0x16c]
cmp eax, ecx
jge 0x4039ff
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x2c]
push eax
call fcn.00408ac4
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040f870
add esp, 4
test eax, eax
je 0x4039e6
push 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c7a
add esp, 0xc
test eax, eax
je 0x4039e6
push 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040f4e0
add esp, 0xc
test eax, eax
jne 0x4039fa
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov al, 1
jmp 0x403a01
jmp 0x403972
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f8e
mov esp, ebp
pop ebp
ret

Function at 0x403a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00408ac4
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00408ac4
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x403b32
push 1
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0040f833
add esp, 0xc
push 1
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
push 1
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.0040f833
add esp, 0xc
push 1
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
mov al, 1
jmp 0x403b34
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f8e
mov esp, ebp
pop ebp
ret
Function at 0x403ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00408ac4
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00408ac4
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x403c8a
push 1
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.0040f833
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x140]
push ecx
call fcn.00408ac4
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x144]
push eax
call fcn.00408ac4
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004037e0
add esp, 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov eax, dword [ebp - 0x144]
jmp 0x403c8c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f8e
mov esp, ebp
pop ebp
ret

Function at 0x4047e7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00403fa0
mov eax, dword [0x427040]
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.00411959
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40fd4f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40feab
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e730
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 + 0x427f60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00415d63
mov ecx, dword [esi*4 + 0x427f60]
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 0x40fea4
cmp eax, dword [edi + ecx + 0x24]
jne 0x40fea4
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 0x40fea4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415d63
add esp, 0x14
test edx, edx
jl 0x40fea4
jg 0x40fe1a
test eax, eax
jb 0x40fea4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40fea4
jl 0x40fe34
cmp dword [ebp - 0x1008], eax
ja 0x40fea4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40fe52
test ebx, ebx
je 0x40fe8b
cmp ecx, edi
jae 0x40fe8b
mov al, byte [ecx]
cmp al, 0xd
jne 0x40fe6c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40fe78
cmp byte [ecx + 1], 0xa
jne 0x40fe78
inc ecx
jmp 0x40fe78
movzx eax, al
movsx eax, byte [eax + 0x427218]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40fe52
cmp edx, ebx
jne 0x40fe52
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40fea9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403f8e
leave
ret
Function at 0x412bcf
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 + 0x427f60]
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 0x412c0f
cmp byte [ebx], 0xa
jne 0x412c0f
or byte [eax + edi + 0x28], 4
jmp 0x412c14
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x412d12
mov al, byte [edx]
cmp al, 0x1a
je 0x412cf4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x412c43
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x412c68
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x412c72
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 0x412c25
jmp 0x412d12
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 0x412cef
cmp dword [ebp - 0xc], 0
je 0x412cef
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x427f60]
test byte [eax + edi + 0x28], 0x48
je 0x412cc9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412cb4
mov byte [esi], dl
jmp 0x412cc5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x427f60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412d12
cmp byte [ebp - 1], 0xa
jne 0x412cd8
cmp esi, ebx
jne 0x412cd8
mov byte [esi], 0xa
jmp 0x412d11
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415d81
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412d12
mov byte [esi], 0xd
jmp 0x412d11
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x427f60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412d0e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412d12
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412d1b
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 + 0x427f60]
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 0x412d5e
cmp word [esi], dx
jne 0x412d5e
or byte [edi + eax + 0x28], 4
jmp 0x412d63
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 0x412eb6
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 0x412e96
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x412da5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x412ddb
cmp eax, edx
jae 0x412de7
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 0x412d7d
jmp 0x412eb6
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 0x412e92
cmp dword [ebp - 0x14], 0
je 0x412e92
mov eax, dword [ebx*4 + 0x427f60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x412e6a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x412e33
mov word [esi], cx
jmp 0x412e66
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x427f60]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x427f60]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x427f60]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x412eb6
pop ebx
cmp word [ebp - 4], bx
jne 0x412e7b
cmp esi, dword [ebp + 0xc]
jne 0x412e7b
mov word [esi], bx
jmp 0x412eb3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415d81
add esp, 0x10
cmp word [ebp - 4], bx
je 0x412eb6
push 0xd
jmp 0x412eaf
mov ecx, dword [ebx*4 + 0x427f60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412ead
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412eb6
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 0x4136d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413549
Function at 0x417181
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 0x41721e
push ebx
push esi
call fcn.0041714a
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.00417093
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4171cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41721d
push edi
push eax
call fcn.0041454d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4171eb
call fcn.004116b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41721c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417093
add esp, 0x20
test eax, eax
jne 0x41720a
push edi
call fcn.004116b6
jmp 0x417212
push ebx
call fcn.004116b6
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 0x41806c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4224f8
push 0x4224f0
push str.FlsAlloc
push 0x1e
call fcn.00417f8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4180a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f160]
call esi
jmp 0x4180a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4180ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422508
push 0x422500
push str.FlsGetValue
push 0x20
call fcn.00417f8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418121
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c495
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.0041c411
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41c60d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41c60d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41c5bc
jg 0x41c4ee
test eax, eax
je 0x41c5b2
push 1
push 0x1000
call fcn.00415ac4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41c514
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41c5a9
push 0x8000
push ebx
call fcn.00410aaa
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 0x41c540
jg 0x41c53b
cmp ecx, 0x1000
jb 0x41c540
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413fd0
add esp, 0x10
cmp eax, 0xffffffff
je 0x41c585
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 0x41c53b
jl 0x41c56c
test ecx, ecx
jne 0x41c52d
push dword [ebp - 0xc]
push ebx
call fcn.00410aaa
push esi
call fcn.004116b6
add esp, 0xc
xor edi, edi
jmp 0x41c61e
cmp byte [edi + 0x24], 0
je 0x41c59c
cmp dword [edi + 0x20], 5
jne 0x41c59c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41c5a7
mov edi, dword [edi + 0x18]
jmp 0x41c5a9
xor edi, edi
push esi
call fcn.004116b6
pop ecx
jmp 0x41c61e
test ecx, ecx
jg 0x41c57e
jl 0x41c5bc
test eax, eax
jae 0x41c57e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415d81
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41c5df
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41c57e
jmp 0x41c616
push ebx
call fcn.004176bc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41c57e
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 0x41c61e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41c61b
mov edi, dword [edi + 0x18]
jmp 0x41c61e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415d81
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e4b0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x468124], 0
jne 0x406ab8
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a8e
mov dword [ecx*4 + 0x468120], eax
inc ecx
cmp ecx, 0x100
jl 0x406a89
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ae5
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x468120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ac6
not eax
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401210
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x4012e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x18]
mov ebx, edx
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
push edi
call eax
add esp, 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
sbb edx, dword [ebp - 0x14]
call fcn.00402bc0
mulsd xmm0, qword [0x403300]
mov edx, dword [0x4043dc]
mov ecx, dword [0x4043d8]
movsd qword [ebp - 0x20], xmm0
call fcn.00402bc0
movsd xmm1, qword [ebp - 0x20]
sub esp, 8
divsd xmm1, xmm0
movsd qword [esp], xmm1
push ebx
push str.table___s__took__.2fms_n
call fcn.004011e0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop ebx
call fcn.00401f33
mov esp, ebp
pop ebp
ret

Function at 0x402732
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402771
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402771
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402771
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402771
cmp dword [ecx + 0x74], 0xe
jbe 0x402771
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
jmp 0x408f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408f70
mov eax, 1
add ebx, ebx
jne 0x408f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408f88
jne 0x408fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408f88
xor ecx, ecx
sub eax, 3
jb 0x408fb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40902a
mov ebp, eax
add ebx, ebx
jne 0x408fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408ff4
inc ecx
add ebx, ebx
jne 0x408fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408fd5
jne 0x408ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408fd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409005
jmp 0x408f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409014
add edi, ecx
jmp 0x408f76
pop esi
mov edi, esi
mov ecx, 0xe00
jmp 0x409065
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x409045
cmp al, 0x8f
ja 0x409045
cmp byte [edi - 2], 0xf
je 0x40904b
sub al, 0xe8
cmp al, 1
ja 0x40906f
cmp ecx, 4
jb 0x409074
mov eax, dword [edi]
sub al, 8
jne 0x40906f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x409074
mov al, byte [edi]
inc edi
jmp 0x409045
sub ecx, 1
jae 0x409034
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4090bc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa5a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40907a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa5a8]
or eax, eax
je 0x4090b6
mov dword [ebx], eax
add ebx, 4
jmp 0x409097
call dword [esi + 0xa5a4]
mov ebp, dword [esi + 0xa5ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4090f0
sub esp, 0xffffff80
jmp 0x40106f

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx