joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov ebx, dword [esp]
add esp, 4
sub esi, 0x92ad32d6
sub esi, 0x1a12cc7e
call fcn.0043b67a
add ecx, esi
xor dword [eax], ebx
sub esi, esi
inc eax
add esi, 1
inc esi
mov ecx, esi
cmp eax, edi
jne fcn.0043b63b
dec esi
ret
Function at 0x40103d
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x210
push ebx
mov ebx, edx
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x4010f7
push ebp
push esi
push dword [eax + edi*4]
push 0
push 0x600
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4010e8
push 0x104
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x4010e1
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.004013be
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4010a6
xor eax, eax
mov word [esi], ax
add esi, 2
jmp 0x4010aa
lea esi, [esp + 0x18]
push esi
call fcn.0040135a
pop ecx
xor ebx, ebx
push dword [ebx + 0x4026c0]
push esi
call fcn.00401375
pop ecx
pop ecx
test eax, eax
je 0x4010cf
add ebx, 4
cmp ebx, 0x60
jb 0x4010b3
jmp 0x4010dd
push dword [esp + 0x224]
push ebp
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ebx, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
inc edi
cmp edi, ebx
jl 0x40105d
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x210
ret
Function at 0x414838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ec90]
jne 0x414842
repz ret
jmp fcn.0041a6eb

Function at 0x41d080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x41d08f
pop dword [ebp - 0x38]
mov eax, 0xcadcb708
add eax, 0x35651987
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x49a86
push 0
mov eax, 0x2d527723
add eax, 0xd2f14b35
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x21a76558
sub ecx, 0x21a72c62
mov edi, eax
mov ebx, 0x46b200
add ebx, dword [ebp - 0x38]
mov edx, 0xea09a935
add edx, 0x7cd8e332
add dword [ebp - 0x1c], ecx
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x10], edx
mov dword [edi], esi
sub dword [ebp - 0x10], eax
add edi, 0x309bb215
sub edi, 0x309bb211
add ebx, 0x6cfd21c0
sub ebx, 0x6cfd21bc
loop 0x41d0e8
add eax, 0xd6ab
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x406fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00406c00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407012
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x43113c]
call dword [ebp - 8]
jmp 0x40701c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x42b9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42b9e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b9d8
mov eax, 1
add ebx, ebx
jne 0x42b9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b9f0
jne 0x42ba0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b9f0
xor ecx, ecx
sub eax, 3
jb 0x42ba20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ba92
mov ebp, eax
add ebx, ebx
jne 0x42ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ba5c
inc ecx
add ebx, ebx
jne 0x42ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ba3d
jne 0x42ba59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ba3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ba7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ba6d
jmp 0x42b9de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ba7c
add edi, ecx
jmp 0x42b9de
pop esi
mov edi, esi
mov ecx, 0x2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ba9a
cmp byte [edi], 2
jne 0x42ba9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ba9f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bb0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b178]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bacc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b180]
or eax, eax
je 0x42bb08
mov dword [ebx], eax
add ebx, 4
jmp 0x42bae9
call dword [esi + 0x2b17c]
mov ebp, dword [esi + 0x2b184]
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 0x42bb42
sub esp, 0xffffff80
jmp 0x401219
Function at 0x4079b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4079d9
jl 0x4079d0
test edi, edi
jne 0x4079d9
xor eax, eax
xor edx, edx
jmp 0x407a9a
cmp dword [ebx + 0x38], 0
je 0x4079ee
push eax
push edi
push dword [ebp + 8]
call fcn.00407aa0
jmp 0x407a9a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407a35
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407a35
cmp eax, edi
jb 0x407a0f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040aec0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407a3b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407a8f
mov ecx, ebx
call fcn.00407220
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407a7a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411b45
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407a8f
jmp 0x407a4d
test edx, edx
je 0x407a8f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411b45
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a6a5
Capabilities:
Parse pe header

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

Function at 0x41781d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bb68
push 0x42bb60
push str.FlsAlloc
push 0x1e
call fcn.0041768a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417851
push dword [ebp + 8]
mov ecx, esi
call dword [0x42814c]
call esi
jmp 0x417857
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41789b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bb78
push 0x42bb70
push str.FlsGetValue
push 0x20
call fcn.0041768a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4178d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42814c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b072
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ad14

Function at 0x41b07d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041aea3

Function at 0x41b477
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a810
mov eax, dword [0x436010]
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.00418db2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b4b9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b615
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427250
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 + 0x459ef0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c649
mov ecx, dword [esi*4 + 0x459ef0]
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 0x41b60e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b60e
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 0x41b60e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c649
add esp, 0x14
test edx, edx
jl 0x41b60e
jg 0x41b584
test eax, eax
jb 0x41b60e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b60e
jl 0x41b59e
cmp dword [ebp - 0x1008], eax
ja 0x41b60e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b5bc
test ebx, ebx
je 0x41b5f5
cmp ecx, edi
jae 0x41b5f5
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b5d6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b5e2
cmp byte [ecx + 1], 0xa
jne 0x41b5e2
inc ecx
jmp 0x41b5e2
movzx eax, al
movsx eax, byte [eax + 0x4362a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b5bc
cmp edx, ebx
jne 0x41b5bc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b613
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a44
leave
ret
Function at 0x41bae5
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 + 0x459ef0]
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 0x41bb25
cmp byte [ebx], 0xa
jne 0x41bb25
or byte [eax + edi + 0x28], 4
jmp 0x41bb2a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bc28
mov al, byte [edx]
cmp al, 0x1a
je 0x41bc0a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb59
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb7e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb88
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 0x41bb3b
jmp 0x41bc28
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 0x41bc05
cmp dword [ebp - 0xc], 0
je 0x41bc05
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x459ef0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbdf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bbca
mov byte [esi], dl
jmp 0x41bbdb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x459ef0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bc28
cmp byte [ebp - 1], 0xa
jne 0x41bbee
cmp esi, ebx
jne 0x41bbee
mov byte [esi], 0xa
jmp 0x41bc27
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c667
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bc28
mov byte [esi], 0xd
jmp 0x41bc27
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x459ef0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc24
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bc28
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc31
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 + 0x459ef0]
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 0x41bc74
cmp word [esi], dx
jne 0x41bc74
or byte [edi + eax + 0x28], 4
jmp 0x41bc79
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 0x41bdcc
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 0x41bdac
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bcbb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcf1
cmp eax, edx
jae 0x41bcfd
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 0x41bc93
jmp 0x41bdcc
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 0x41bda8
cmp dword [ebp - 0x14], 0
je 0x41bda8
mov eax, dword [ebx*4 + 0x459ef0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd80
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd49
mov word [esi], cx
jmp 0x41bd7c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x459ef0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x459ef0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x459ef0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bdcc
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd91
cmp esi, dword [ebp + 0xc]
jne 0x41bd91
mov word [esi], bx
jmp 0x41bdc9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c667
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bdcc
push 0xd
jmp 0x41bdc5
mov ecx, dword [ebx*4 + 0x459ef0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bdc3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bdcc
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 0x4200ad
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 0x42014a
push ebx
push esi
call fcn.00420076
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.0041ecfb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4200f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420149
push edi
push eax
call fcn.00417e50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420117
call fcn.004173af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420148
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ecfb
add esp, 0x20
test eax, eax
jne 0x420136
push edi
call fcn.004173af
jmp 0x42013e
push ebx
call fcn.004173af
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 0x427050
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4738d7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4735cc
add ecx, esi
call fcn.00473917
add ecx, ecx
sub ecx, 1
xor dword [ebx], eax
sub ecx, 0x1ffcb736
add ecx, esi
push ecx
pop ecx
add ebx, 2
sub esi, esi
push 0xe1010fb6
mov ecx, dword [esp]
add esp, 4
cmp ebx, edi
jl fcn.004738d7
or ecx, ecx
or ecx, esi
and ecx, ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219