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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f26f5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x53e060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x49a835
mov edx, dword [ebx]
mov edi, dword [ebx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x49a854
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x49a843
push esi
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.0049c130
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49a883
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x540fe8], 0x71c71c7
je 0x49a9d1
mov dword [ebp - 0x1c], 0x540fe4
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x18], 0
call fcn.004be4c6
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea ecx, [edi + 8]
push ebx
call fcn.004053e0
mov ecx, dword [ebx + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov ecx, dword [0x540fe8]
mov ebx, dword [0x540ffc]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x534b20]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x534b20]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
movss xmm1, dword [0x540fe0]
comiss xmm2, xmm1
jbe 0x49a96d
divss xmm0, xmm1
call fcn.004062f0
call fcn.004ec900
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x49a94f
cmp ebx, 0x200
jae 0x49a94d
shl ebx, 3
cmp ebx, ecx
jae 0x49a94f
mov ebx, ecx
push ebx
call fcn.0049b450
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0049c130
mov ecx, dword [0x540fe8]
mov edx, dword [eax]
jmp 0x49a970
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x540fe8], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x540ff8]
mov ecx, dword [0x540fec]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x540fe4]
jne 0x49a9a1
mov dword [ecx + eax*8], edi
jmp 0x49a9b0
cmp esi, edx
jne 0x49a9aa
mov dword [ecx + eax*8], edi
jmp 0x49a9b4
cmp dword [ecx + eax*8 + 4], ebx
jne 0x49a9b4
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.004bd7c6
int3
Function at 0x49ae50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f26f5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x53e060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x49ae85
mov edx, dword [ebx]
mov edi, dword [ebx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x49aea4
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x49ae93
push esi
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.0049c5c0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49aed3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x56c3e4], 0x71c71c7
je 0x49b021
mov dword [ebp - 0x1c], 0x56c3e0
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x18], 0
call fcn.004be4c6
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea ecx, [edi + 8]
push ebx
call fcn.004053e0
mov cl, byte [ebx + 0x18]
mov byte [edi + 0x20], cl
mov dword [ebp - 4], 1
mov ecx, dword [0x56c3e4]
mov ebx, dword [0x56c3f8]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x534b20]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x534b20]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
movss xmm1, dword [0x56c3dc]
comiss xmm2, xmm1
jbe 0x49afbd
divss xmm0, xmm1
call fcn.004062f0
call fcn.004ec900
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x49af9f
cmp ebx, 0x200
jae 0x49af9d
shl ebx, 3
cmp ebx, ecx
jae 0x49af9f
mov ebx, ecx
push ebx
call fcn.0049b630
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0049c5c0
mov ecx, dword [0x56c3e4]
mov edx, dword [eax]
jmp 0x49afc0
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x56c3e4], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x56c3f4]
mov ecx, dword [0x56c3e8]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x56c3e0]
jne 0x49aff1
mov dword [ecx + eax*8], edi
jmp 0x49b000
cmp esi, edx
jne 0x49affa
mov dword [ecx + eax*8], edi
jmp 0x49b004
cmp dword [ecx + eax*8 + 4], ebx
jne 0x49b004
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.004bd7c6
int3
Function at 0x4bf341
Capabilities:
Parse pe header

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

Function at 0x4ca1d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004bf5a0
mov eax, dword [0x53e060]
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.004da789
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ca21a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ca376
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ec460
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 + 0x540ad8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004dab92
mov ecx, dword [esi*4 + 0x540ad8]
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 0x4ca36f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ca36f
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 0x4ca36f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004dab92
add esp, 0x14
test edx, edx
jl 0x4ca36f
jg 0x4ca2e5
test eax, eax
jb 0x4ca36f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ca36f
jl 0x4ca2ff
cmp dword [ebp - 0x1008], eax
ja 0x4ca36f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ca31d
test ebx, ebx
je 0x4ca356
cmp ecx, edi
jae 0x4ca356
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ca337
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ca343
cmp byte [ecx + 1], 0xa
jne 0x4ca343
inc ecx
jmp 0x4ca343
movzx eax, al
movsx eax, byte [eax + 0x53e2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ca31d
cmp edx, ebx
jne 0x4ca31d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ca374
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004be4ac
leave
ret
Function at 0x4db237
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 + 0x540ad8]
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 0x4db277
cmp byte [ebx], 0xa
jne 0x4db277
or byte [eax + edi + 0x28], 4
jmp 0x4db27c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4db37a
mov al, byte [edx]
cmp al, 0x1a
je 0x4db35c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4db2ab
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4db2d0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4db2da
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 0x4db28d
jmp 0x4db37a
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 0x4db357
cmp dword [ebp - 0xc], 0
je 0x4db357
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x540ad8]
test byte [eax + edi + 0x28], 0x48
je 0x4db331
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4db31c
mov byte [esi], dl
jmp 0x4db32d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x540ad8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4db37a
cmp byte [ebp - 1], 0xa
jne 0x4db340
cmp esi, ebx
jne 0x4db340
mov byte [esi], 0xa
jmp 0x4db379
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004dabb0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4db37a
mov byte [esi], 0xd
jmp 0x4db379
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x540ad8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4db376
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4db37a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4db383
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 + 0x540ad8]
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 0x4db3c6
cmp word [esi], dx
jne 0x4db3c6
or byte [edi + eax + 0x28], 4
jmp 0x4db3cb
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 0x4db51e
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 0x4db4fe
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4db40d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4db443
cmp eax, edx
jae 0x4db44f
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 0x4db3e5
jmp 0x4db51e
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 0x4db4fa
cmp dword [ebp - 0x14], 0
je 0x4db4fa
mov eax, dword [ebx*4 + 0x540ad8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4db4d2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4db49b
mov word [esi], cx
jmp 0x4db4ce
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x540ad8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x540ad8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x540ad8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4db51e
pop ebx
cmp word [ebp - 4], bx
jne 0x4db4e3
cmp esi, dword [ebp + 0xc]
jne 0x4db4e3
mov word [esi], bx
jmp 0x4db51b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004dabb0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4db51e
push 0xd
jmp 0x4db517
mov ecx, dword [ebx*4 + 0x540ad8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4db515
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4db51e
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 0x4dccda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dcb4b
Function at 0x4df1c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fb4e8
push 0x4fb4e0
push str.FlsAlloc
push 0x1e
call fcn.004df036
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df1fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f41c8]
call esi
jmp 0x4df203
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4df247
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fb4f8
push 0x4fb4f0
push str.FlsGetValue
push 0x20
call fcn.004df036
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df27e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f41c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4e3de8
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 0x4e3e85
push ebx
push esi
call fcn.004e3db1
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.004e01d6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e3e32
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3e84
push edi
push eax
call fcn.004dddec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e3e52
call fcn.004dc5da
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3e83
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e01d6
add esp, 0x20
test eax, eax
jne 0x4e3e71
push edi
call fcn.004dc5da
jmp 0x4e3e79
push ebx
call fcn.004dc5da
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 0x4e3e88
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e3e99
pop esi
ret
push ebx
push edi
push esi
call fcn.004e3db1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004dddec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e3ec1
push ebx
push esi
push edi
call fcn.004c0370
add esp, 0xc
push 0
call fcn.004dc5da
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e460d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e4134
Function at 0x4eb3c0
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.004eb33c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4eb538
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4eb538
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4eb4e7
jg 0x4eb419
test eax, eax
je 0x4eb4dd
push 1
push 0x1000
call fcn.004dd042
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4eb43f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4eb4d4
push 0x8000
push ebx
call fcn.004d85c2
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 0x4eb46b
jg 0x4eb466
cmp ecx, 0x1000
jb 0x4eb46b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ddbec
add esp, 0x10
cmp eax, 0xffffffff
je 0x4eb4b0
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 0x4eb466
jl 0x4eb497
test ecx, ecx
jne 0x4eb458
push dword [ebp - 0xc]
push ebx
call fcn.004d85c2
push esi
call fcn.004dc5da
add esp, 0xc
xor edi, edi
jmp 0x4eb549
cmp byte [edi + 0x24], 0
je 0x4eb4c7
cmp dword [edi + 0x20], 5
jne 0x4eb4c7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4eb4d2
mov edi, dword [edi + 0x18]
jmp 0x4eb4d4
xor edi, edi
push esi
call fcn.004dc5da
pop ecx
jmp 0x4eb549
test ecx, ecx
jg 0x4eb4a9
jl 0x4eb4e7
test eax, eax
jae 0x4eb4a9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004dabb0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4eb50a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4eb4a9
jmp 0x4eb541
push ebx
call fcn.004e4c5f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4eb4a9
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 0x4eb549
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4eb546
mov edi, dword [edi + 0x18]
jmp 0x4eb549
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004dabb0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ec380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ec3ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ec3ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014ad
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x500, 0
sub ebp, 0x86
lea eax, [ebp - 0x272]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor eax, eax
push 0x104
mov word [ebp + 0x66], ax
lea eax, [ebp - 0x47a]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp + 0x16]
push eax
push eax
mov byte [ebp + 0x16], 0
call dword [sym.imp.SHLWAPI.DLL_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x272]
push eax
mov byte [ebp + 0x76], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
xor al, al
mov byte [ebp + 0x7e], al
xor ah, ah
push ebx
mov word [ebp + 0x56], ax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0x7e]
push eax
lea eax, [ebp + 0x76]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
call dword [sym.imp.USER32.DLL_GetDesktopWindow]
mov ebx, eax
lea eax, [ebp - 0x47a]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp + 0x66]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 5
push ebx
call dword [sym.imp.USER32.DLL_GetWindow]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
xor eax, eax
mov word [ebp - 0x6a], ax
lea eax, [ebp - 0x6a]
push eax
push eax
call dword [sym.imp.SHLWAPI.DLL_PathAppendW]
lea eax, [esi - 3]
lea esp, [ebp + 0x86]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4020af
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov cl, byte [0x403050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x403054
add edx, dword [0x403050]
call fcn.00401fe8
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402baf
push edx
sub edi, fcn.00402359
push edi
xor eax, eax
push fcn.00402359
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x402121
mov eax, fcn.00402359
mov ebx, esi
mov edx, edi
call fcn.00401fe8
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401d13
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402359
Capabilities:
Encode data using xor

Disassembly:
mov edi, eax
inc esi
popal
add byte [ebx + 0x6c], al
inc ebp
add byte [edx - 1], dh
add byte [ebp + 0x72], ah
invalid

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40bf1b
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 0x40bfb8
push ebx
push esi
call fcn.0040bee4
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.0040be2d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bf65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfb7
push edi
push eax
call fcn.0040a8fb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bf85
call fcn.0040aa56
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040be2d
add esp, 0x20
test eax, eax
jne 0x40bfa4
push edi
call fcn.0040aa56
jmp 0x40bfac
push ebx
call fcn.0040aa56
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 0x40d1b0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4157b8
push 0x4157b0
push str.FlsAlloc
push 0x1e
call fcn.0040d071
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d1e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41312c]
call esi
jmp 0x40d1ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d22e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4157c8
push 0x4157c0
push str.FlsGetValue
push 0x20
call fcn.0040d071
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d265
push dword [ebp + 8]
mov ecx, esi
call dword [0x41312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]