joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0940
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x71bad4], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x4e09b5
test edi, edi
je 0x4e09b5
mov eax, dword [0x71bad8]
test eax, eax
jne 0x4e09af
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.004e0660
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.00638a64
add esp, 4
push eax
call fcn.004e1040
push dword [0x71bad0]
call fcn.00638e42
add esp, 0x18
call fcn.0064607b
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x71bad8], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x4e09e8
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.004e0660
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x507170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x717dac]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x71bc9c], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x5071a9
call fcn.00574c60
test eax, eax
je 0x5071c1
mov byte [0x71bc9c], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0062f00e
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9f8]
test eax, eax
je 0x5071e2
push 0x400
push eax
call fcn.00575920
add esp, 8
call fcn.00574c60
test eax, eax
jne 0x5071a9
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.004e7e20
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
call fcn.004f1070
lea eax, [esp + 0x5c]
push eax
call fcn.004e7e20
mov esi, dword [eax + 8]
lea eax, [esp + 0x70]
push eax
call fcn.004e7e20
add esp, 0x14
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.0062f630
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.0062f630
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.004e7e20
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.004e7e20
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x507210
movsd xmm0, qword [0x689bc8]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00574a90
add esp, 0x10
call fcn.00574c60
test eax, eax
je 0x5071f0
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.00575760
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x507374
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.00575920
add esp, 8
call fcn.00574c60
test eax, eax
jne 0x5071a9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.004f1250
add esp, 8
call fcn.00574c60
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.0062f00e
add esp, 0x1c4
ret
Function at 0x50c260
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x689bd0
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.004e0790
mov edi, eax
add esp, 0x10
test edi, edi
je 0x50c2bd
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x50c2db
cmp esi, ebx
je 0x50c2db
cmp esi, 0x8000
ja 0x50c2db
cmp esi, ebx
jb 0x50c2d4
push 0x689bd0
push 0x2d
push esi
push edi
call fcn.004e0790
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c280
push 0x689bd0
push 0x2f
push ebp
call fcn.004e0620
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x689bd0
push 0x3a
push edi
call fcn.004e0620
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5d7ec0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x5d7ed4
mov dword [esp + 0x18], fcn.005d66a0
jmp fcn.005cfa00
mov dword [esp + 0x18], fcn.005d5940
jmp fcn.005cf700
Function at 0x6388b8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x717dac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6f6310
push esi
call fcn.00650da4
pop ecx
pop ecx
test eax, eax
jne 0x6388e6
xor al, al
jmp 0x638963
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006385bc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x638920
push dword [ebp - 0x210]
call fcn.00634e2e
xor al, al
jmp 0x638961
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x638926
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x638946
push edx
call fcn.006387ee
pop ecx
test al, al
je 0x638911
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x638954
mov bl, 1
push dword [ebp - 0x210]
call fcn.00634e2e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0062f00e
leave
ret
Function at 0x63e5d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0062f840
mov eax, dword [0x717dac]
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.00649f00
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x63e61a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x63e776
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0062f930
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 + 0x71f838]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00649be3
mov ecx, dword [esi*4 + 0x71f838]
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 0x63e76f
cmp eax, dword [edi + ecx + 0x24]
jne 0x63e76f
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 0x63e76f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00649be3
add esp, 0x14
test edx, edx
jl 0x63e76f
jg 0x63e6e5
test eax, eax
jb 0x63e76f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x63e76f
jl 0x63e6ff
cmp dword [ebp - 0x1008], eax
ja 0x63e76f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x63e71d
test ebx, ebx
je 0x63e756
cmp ecx, edi
jae 0x63e756
mov al, byte [ecx]
cmp al, 0xd
jne 0x63e737
lea eax, [edi - 1]
cmp ecx, eax
jae 0x63e743
cmp byte [ecx + 1], 0xa
jne 0x63e743
inc ecx
jmp 0x63e743
movzx eax, al
movsx eax, byte [eax + 0x717f98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x63e71d
cmp edx, ebx
jne 0x63e71d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x63e774
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0062f00e
leave
ret
Function at 0x64d4e2
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 + 0x71f838]
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 0x64d522
cmp byte [ebx], 0xa
jne 0x64d522
or byte [eax + edi + 0x28], 4
jmp 0x64d527
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x64d625
mov al, byte [edx]
cmp al, 0x1a
je 0x64d607
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x64d556
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x64d57b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x64d585
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 0x64d538
jmp 0x64d625
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 0x64d602
cmp dword [ebp - 0xc], 0
je 0x64d602
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x71f838]
test byte [eax + edi + 0x28], 0x48
je 0x64d5dc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x64d5c7
mov byte [esi], dl
jmp 0x64d5d8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x71f838]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x64d625
cmp byte [ebp - 1], 0xa
jne 0x64d5eb
cmp esi, ebx
jne 0x64d5eb
mov byte [esi], 0xa
jmp 0x64d624
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00649c01
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x64d625
mov byte [esi], 0xd
jmp 0x64d624
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x71f838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x64d621
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x64d625
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x64d62e
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 + 0x71f838]
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 0x64d671
cmp word [esi], dx
jne 0x64d671
or byte [edi + eax + 0x28], 4
jmp 0x64d676
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 0x64d7c9
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 0x64d7a9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x64d6b8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x64d6ee
cmp eax, edx
jae 0x64d6fa
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 0x64d690
jmp 0x64d7c9
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 0x64d7a5
cmp dword [ebp - 0x14], 0
je 0x64d7a5
mov eax, dword [ebx*4 + 0x71f838]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x64d77d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x64d746
mov word [esi], cx
jmp 0x64d779
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x71f838]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x71f838]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x71f838]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x64d7c9
pop ebx
cmp word [ebp - 4], bx
jne 0x64d78e
cmp esi, dword [ebp + 0xc]
jne 0x64d78e
mov word [esi], bx
jmp 0x64d7c6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00649c01
add esp, 0x10
cmp word [ebp - 4], bx
je 0x64d7c9
push 0xd
jmp 0x64d7c2
mov ecx, dword [ebx*4 + 0x71f838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x64d7c0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x64d7c9
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 0x650826
Capabilities:
Read file on windows

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

Function at 0x6512e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6fc8d4
push 0x6fc8cc
push str.FlsAlloc
push 0x1e
call fcn.0065110f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x651316
push dword [ebp + 8]
mov ecx, esi
call dword [0x66588c]
call esi
jmp 0x65131c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x651360
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6fc8e4
push 0x6fc8dc
push str.FlsGetValue
push 0x20
call fcn.0065110f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x651397
push dword [ebp + 8]
mov ecx, esi
call dword [0x66588c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x65aa6e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x717dac]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x65aab9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0065ac0d
test al, al
jne 0x65aab3
sub edx, 2
cmp edx, edi
jne 0x65aa99
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x65aadb
lea eax, [edi + 2]
cmp edx, eax
je 0x65aadb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0065a9ba
add esp, 0x10
jmp 0x65abd5
push esi
lea ecx, [ebp - 0x255]
call fcn.0065ac0d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x65ab1e
push dword [ebp - 0x25c]
jmp 0x65aacb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x65ab5b
cmp word [ebp - 0x226], 0
je 0x65ab7c
cmp word [ebp - 0x226], ax
jne 0x65ab5b
cmp word [ebp - 0x224], 0
je 0x65ab7c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0065a9ba
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x65abc8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x65ab35
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x65abb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x65abd5
push 0x65a7ea
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.006463b0
add esp, 0x10
jmp 0x65aba5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062f00e
leave
ret
Function at 0x65ad13
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 0x65adb0
push ebx
push esi
call fcn.0065acdc
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.00656bf0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x65ad5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x65adaf
push edi
push eax
call fcn.00650bae
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x65ad7d
call fcn.0064f98e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x65adae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00656bf0
add esp, 0x20
test eax, eax
jne 0x65ad9c
push edi
call fcn.0064f98e
jmp 0x65ada4
push ebx
call fcn.0064f98e
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 0x65adb3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x65adc4
pop esi
ret
push ebx
push edi
push esi
call fcn.0065acdc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00650bae
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x65adec
push ebx
push esi
push edi
call fcn.00630ee0
add esp, 0xc
push 0
call fcn.0064f98e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x65b538
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065b05f
Function at 0x65bdc6
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.0065bd42
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x65bf3e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x65bf3e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x65beed
jg 0x65be1f
test eax, eax
je 0x65bee3
push 1
push 0x1000
call fcn.00651f1f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x65be45
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x65beda
push 0x8000
push ebx
call fcn.0064a0a2
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 0x65be71
jg 0x65be6c
cmp ecx, 0x1000
jb 0x65be71
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0064e748
add esp, 0x10
cmp eax, 0xffffffff
je 0x65beb6
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 0x65be6c
jl 0x65be9d
test ecx, ecx
jne 0x65be5e
push dword [ebp - 0xc]
push ebx
call fcn.0064a0a2
push esi
call fcn.0064f98e
add esp, 0xc
xor edi, edi
jmp 0x65bf4f
cmp byte [edi + 0x24], 0
je 0x65becd
cmp dword [edi + 0x20], 5
jne 0x65becd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x65bed8
mov edi, dword [edi + 0x18]
jmp 0x65beda
xor edi, edi
push esi
call fcn.0064f98e
pop ecx
jmp 0x65bf4f
test ecx, ecx
jg 0x65beaf
jl 0x65beed
test eax, eax
jae 0x65beaf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00649c01
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x65bf10
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65beaf
jmp 0x65bf47
push ebx
call fcn.00651aa6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x65beaf
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 0x65bf4f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65bf4c
mov edi, dword [edi + 0x18]
jmp 0x65bf4f
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00649c01
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
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 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
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 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

Function at 0xdb3500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x683000]
push edi
or ebp, 0xffffffff
jmp 0xdb3522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdb3529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb3518
mov eax, 1
add ebx, ebx
jne 0xdb353b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdb354c
jne 0xdb355c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb355c
dec eax
add ebx, ebx
jne 0xdb3558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xdb3530
xor ecx, ecx
sub eax, 3
jb 0xdb3574
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdb35e6
sar eax, 1
mov ebp, eax
jmp 0xdb357f
add ebx, ebx
jne 0xdb357f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xdb358c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xdb35b0
inc ecx
add ebx, ebx
jne 0xdb359c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdb3591
jne 0xdb35ad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdb3591
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdb35d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdb35c1
jmp 0xdb351e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdb35d0
add edi, ecx
jmp 0xdb351e
pop esi
mov edi, esi
mov ecx, 0xd7a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xdb35ee
cmp byte [edi], 9
jne 0xdb35ee
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 eax, ebx
loop 0xdb35f3
lea edi, [esi + 0x9b1000]
mov eax, dword [edi]
or eax, eax
je 0xdb366b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9bd198]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9bd224]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdb3620
mov ecx, edi
jns 0xdb364f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9bd228]
or eax, eax
je 0xdb3665
mov dword [ebx], eax
add ebx, 4
jmp 0xdb363d
call dword [esi + 0x9bd22c]
popal
jmp 0x423f2b