joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ca0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x2c
movzx eax, word [ecx]
mov dword [ebp - 0x1c], ecx
test ax, ax
je 0x407e50
mov edi, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x407cc0
mov edx, dword [ebp - 0x1c]
sub ecx, edx
mov ebx, ecx
sar ebx, 1
je 0x407e50
xor ecx, ecx
lea esi, [esi]
cmp ax, 0xa
sete al
add edx, 2
movzx eax, al
add ecx, eax
movzx eax, word [edx]
test ax, ax
jne 0x407ce0
xor eax, eax
cmp word [edx - 2], 0xa
setne al
add ebx, dword [edi]
mov dword [esp + 4], 0
add ecx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x20], ecx
lea edx, [ebx + ecx*4 + 1]
add edx, edx
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x20]
sub esp, 0x10
mov dword [esi], eax
test ecx, ecx
je 0x407e50
mov edx, dword [ebp - 0x1c]
mov ebx, ecx
lea esi, [esi]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, 0xa
je 0x407d75
test ax, ax
je 0x407d75
mov eax, ecx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, 0xa
jne 0x407d5c
sub ebx, 1
test ax, ax
jne 0x407e10
cmp word [edx], 0
mov eax, edx
je 0x407e58
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407d90
sub eax, edx
mov dword [ebp - 0x20], eax
sar eax, 1
add eax, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [edi]
mov eax, dword [esi]
mov word [eax + ecx*2], 0x20
mov ecx, dword [edi]
mov eax, dword [esi]
mov word [eax + ecx*2 + 2], 0x20
mov ecx, dword [edi]
mov eax, dword [esi]
mov word [eax + ecx*2 + 4], 0x20
mov ecx, dword [edi]
mov eax, dword [esi]
mov word [eax + ecx*2 + 6], 0x20
mov ecx, dword [edi]
mov eax, dword [esi]
mov dword [esp + 4], edx
lea eax, [eax + ecx*2 + 8]
mov ecx, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcpy
mov eax, dword [ebp - 0x24]
add eax, dword [edi]
xor ecx, ecx
test ebx, ebx
mov dword [edi], eax
mov edx, dword [esi]
mov word [edx + eax*2], cx
je 0x407e50
mov edx, dword [ebp - 0x1c]
jmp 0x407d50
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], 0
je 0x407e6b
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x407e20
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
add eax, 5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, 0xa
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x1c], eax
jmp 0x407da6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
jmp 0x407da6
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], 2
jmp 0x407e3a
Function at 0x407f60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, eax
mov esi, edx
sub esp, 0x2c
cmp word [ecx], 0
je 0x407fe5
mov ebx, ecx
add ebx, 2
cmp word [ebx], 0
jne 0x407f75
sub ebx, ecx
sar ebx, 1
lea eax, [ebx + ebx + 2]
mov dword [ebp - 0x20], eax
mov edx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov eax, dword fs:[0x18]
add edx, ebx
lea edx, [edx + edx + 2]
mov dword [esp + 0xc], edx
mov edx, dword [edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [edi], eax
mov edx, dword [esi]
sub esp, 0x10
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + edx*2]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
add dword [esi], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], 2
xor ebx, ebx
jmp 0x407f89
Function at 0x40df00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40df5b
cmp byte [ebx + esi - 1], 0xa
je 0x40df2f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41a484], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40e5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40e7a0
mov eax, dword fs:[0x18]
mov edi, dword [global_dest]
cmp dword [eax + 0x24], edi
je 0x40e792
test byte [0x40f2e8], 8
jne 0x40e740
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x40f2f8], 8
jne 0x40e700
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40e693
cmp esi, 3
ja 0x40e693
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x417274]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40e6a4
mov esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
shr esi, 0x10
test edx, 0x8080
mov dword [esp], ebx
cmove edx, esi
lea esi, [ecx + 2]
mov eax, edx
cmove ecx, esi
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40f2f8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40e62e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40e62e
mov dword [esp], 0x40f2e8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40e61b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov ecx, eax
lea ebx, [esp + 0x28]
mul edx
mov dword [esp + 4], str._3u._03u:
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40e621
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x40e6f1

Function at 0x40e810
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___argv
mov esi, dword [eax]
call sym.__get_initial_narrow_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x40e8d0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40e94e
cmp al, 9
je 0x40e940
cmp al, 0x20
je 0x40e940
xor edi, edi
xor esi, esi
cmp al, 0x5c
je 0x40e9b5
cmp al, 0x22
je 0x40e9a4
xor esi, esi
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40e94e
cmp al, 9
sete cl
cmp al, 0x20
sete dl
or cl, dl
je 0x40e904
test edi, 1
jne 0x40e904
lea esi, [esi]
lea edi, [edi]
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40e940
cmp al, 0x20
je 0x40e940
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40e969
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x40e914
xor edi, 1
jmp 0x40e916
add esi, 1
jmp 0x40e916
Function at 0x401800
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push esi
push 0
push 0
push 0x8003
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x402058
Capabilities:
Parse pe header

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

Function at 0x40968d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x420288]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4096cd
cmp byte [ebx], 0xa
jne 0x4096cd
or byte [edi + eax + 0x28], 4
jmp 0x4096d2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4097d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4097b4
inc eax
cmp dl, 0xd
je 0x4096fe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x409724
cmp eax, ecx
jae 0x409732
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4096e6
jmp 0x4097d1
push 0
lea eax, [ebp - 0x10]
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 0x4097af
cmp dword [ebp - 0x10], 0
je 0x4097af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x420288]
test byte [eax + edi + 0x28], 0x48
je 0x409789
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x409774
mov byte [esi], dl
jmp 0x409785
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x420288]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4097d1
cmp byte [ebp - 1], 0xa
jne 0x409798
cmp esi, ebx
jne 0x409798
mov byte [esi], 0xa
jmp 0x4097d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041086d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4097d1
mov byte [esi], 0xd
jmp 0x4097d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x420288]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4097ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4097d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4097da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x420288]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x409820
cmp word [ebx], dx
jne 0x409820
or byte [eax + edi + 0x28], 4
jmp 0x409825
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x409988
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x409968
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x409866
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40989c
cmp eax, edx
jae 0x4098aa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x409841
jmp 0x409988
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409963
cmp dword [ebp - 0x18], 0
je 0x409963
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x420288]
test byte [eax + edi + 0x28], 0x48
je 0x409939
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4098fd
mov word [esi], cx
jmp 0x409934
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x420288]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x420288]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x420288]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x409988
pop eax
cmp word [ebp - 4], ax
jne 0x409949
cmp esi, ebx
jne 0x409949
mov word [esi], ax
jmp 0x409985
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041086d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x409988
push 0xd
pop eax
jmp 0x409944
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x420288]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x409982
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x409988
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b616
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419320
push 0x419318
push str.FlsAlloc
push 0x1f
call fcn.0040b4d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b64a
push dword [ebp + 8]
mov ecx, esi
call dword [0x417140]
call esi
jmp 0x40b650
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b694
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419330
push 0x419328
push str.FlsGetValue
push 0x21
call fcn.0040b4d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b6cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x417140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b6d3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419338
push 0x419330
push str.FlsSetValue
push 0x22
call fcn.0040b4d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b70d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e0fa
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 0x40e197
push ebx
push esi
call fcn.0040e0c3
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.0040e057
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e144
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e196
push edi
push eax
call fcn.0040bb1c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e164
call fcn.004082c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e195
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e057
add esp, 0x20
test eax, eax
jne 0x40e183
push edi
call fcn.004082c2
jmp 0x40e18b
push ebx
call fcn.004082c2
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 0x413565
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004134e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4136d4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4136d4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x413689
jg 0x4135c1
test eax, eax
je 0x41367f
push 1
push 0x1000
call fcn.0040b345
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4135e4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x413676
push 0x8000
push ebx
call fcn.00407ddb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41360d
jg 0x413608
cmp ecx, 0x1000
jb 0x41360d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040aa91
add esp, 0x10
cmp eax, 0xffffffff
je 0x413652
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 0x413608
jl 0x413639
test ecx, ecx
jne 0x4135fa
push dword [ebp - 0xc]
push ebx
call fcn.00407ddb
push esi
call fcn.004082c2
add esp, 0xc
xor ebx, ebx
jmp 0x4136e2
cmp byte [edi + 0x24], 0
je 0x413669
cmp dword [edi + 0x20], 5
jne 0x413669
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413674
mov ebx, dword [edi + 0x18]
jmp 0x413676
xor ebx, ebx
push esi
call fcn.004082c2
pop ecx
jmp 0x4136e2
test ecx, ecx
jg 0x41364b
jl 0x413689
test eax, eax
jae 0x41364b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041086d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4136a9
cmp byte [edi + 0x1c], 0
je 0x41364b
jmp 0x4136da
push ebx
call fcn.0040ed18
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41364b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4136e2
cmp byte [edi + 0x1c], 0
je 0x4136df
mov ebx, dword [edi + 0x18]
jmp 0x4136e2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041086d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415de0
Capabilities:
Parse pe header

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

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425b01
ret

Function at 0x428a34
Capabilities:
Encode data using xor

Disassembly:
rcl byte [ebx + ebp*8], 6
xor cx, word [edx]
add edx, 2
cmp edx, eax
jl 0x428a38
mov eax, ecx
ret

Function at 0x486762
Capabilities:
Get number of processors

Disassembly:
push dword [ebx]
rcl byte [ebp + 0x68], 0x64
dec eax
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x48677c
call fcn.00404d37
test eax, eax
jne 0x486797
mov edx, dword [ebp - 4]
mov eax, 0x48678c
call fcn.00404d37
test eax, eax
jne 0x486797
xor ebx, ebx
jmp 0x486799
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48676b
lea eax, [ebp - 4]
call fcn.00404743
ret

Function at 0x49bb62
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test dl, dl
je 0x49bb77
add esp, 0xfffffff0
call fcn.00403d4a
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404bf2
xor eax, eax
push ebp
push 0x49bb99
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.004047a6
lea eax, [esi + 8]
call fcn.00404752
mov dword [esi + 0x30], 0xffffffff
lea eax, [ebp - 0x14]
call fcn.004869ce
push esi
lea edi, [esi + 0xc]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push esi
lea edi, [esi + 0x1c]
add esi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov byte [esi + 0x2c], 0
mov dword [esi + 0x34], 0xffffffff
mov byte [esi + 0x38], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bba0
lea eax, [ebp - 4]
call fcn.00404752
ret

Function at 0x4f6060
Capabilities:
Encode data using xor

Disassembly:
call fcn.00404c29
xor eax, eax
push ebp
push 0x4f6035
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a41
mov edx, eax
mov eax, edi
call fcn.00404dc5
mov eax, dword [ebp - 4]
call fcn.00404a41
mov esi, eax
test esi, esi
jle 0x4f60b0
mov ebx, 1
mov eax, edi
call fcn.00404c91
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xff
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4f6097
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f603c
lea eax, [ebp - 4]
call fcn.00404789
ret
Function at 0x50558b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x50558d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x505612
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00404a4b
mov esi, eax
test esi, esi
jle 0x5055fc
mov ebx, 1
lea eax, [ebp - 0xc]
call fcn.00404c9b
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx - 1]
xor dl, 0xff
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x5055e2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x5055c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505594
lea eax, [ebp - 0xc]
call fcn.00404793
ret
Function at 0x100016c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100016fa
cmp byte [0x10023f20], 0
jne 0x100016fa
push 0
push 0
push dword [ebp + 8]
push 0x10001620
push 0
push 0
call dword [sym.imp.kernEl32.dlL_CreateThread]
test eax, eax
je 0x100016fa
push eax
call dword [sym.imp.kernEl32.dlL_CloseHandle]
mov byte [0x10023f20], 1
mov eax, 1
pop ebp
ret 0xc