joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4c99bc
mov eax, dword [ebp + 8]
cmp dword [0x551dfc], eax
jg 0x4c99bc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x4c99ab
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c99ab
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x4c9980
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x4c99bc
cmp byte [ecx + eax - 1], 0xa
jne 0x4c99d4
cmp dword [ebp + 8], 3
je 0x4c9a21
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x520e31
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x520e32
jae 0x4c99bc
mov dword [ebp - 0x14], 0
mov eax, 0x520e32
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c99bc
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x4c99f0
jmp 0x4c99bc
int3

Function at 0x4ca890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4ca8c8
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5328ec]
inc esi
cmp ecx, esi
jne 0x4ca8b0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0f50
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x184
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xc0], xmm0
movdqu xmmword [ebp - 0xd0], xmm0
movdqu xmmword [ebp - 0xe0], xmm0
movdqu xmmword [ebp - 0xf0], xmm0
lea esi, [ebp - 0xf0]
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.0048a450
add esp, 0xc
and byte [ebp - 0xf0], 0xf8
movzx eax, byte [ebp - 0xd1]
and al, 0x3f
or al, 0x40
mov byte [ebp - 0xd1], al
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x100], xmm0
movdqu xmmword [ebp - 0x110], xmm0
movdqu xmmword [ebp - 0x120], xmm0
movdqu xmmword [ebp - 0x130], xmm0
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x150], xmm0
movdqu xmmword [ebp - 0x160], xmm0
movdqu xmmword [ebp - 0x170], xmm0
movdqu xmmword [ebp - 0x180], xmm0
movdqu xmmword [ebp - 0x190], xmm0
lea edi, [ebp - 0x190]
push 0x532f34
push esi
push edi
call fcn.004cdad0
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x50], xmm0
movdqu xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
movdqu xmmword [ebp - 0xa0], xmm0
movdqu xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
movsd xmm0, qword [ebp - 0x120]
movsd qword [ebp - 0x18], xmm0
movdqu xmm0, xmmword [ebp - 0x140]
movups xmm1, xmmword [ebp - 0x130]
movups xmmword [ebp - 0x28], xmm1
movdqu xmmword [ebp - 0x38], xmm0
lea esi, [ebp - 0x60]
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004d7ef0
lea ebx, [ebp - 0x88]
mov ecx, ebx
mov edx, edi
push esi
call fcn.004d82b0
add esp, 4
lea edx, [ebp - 0x168]
lea edi, [ebp - 0xb0]
mov ecx, edi
push esi
call fcn.004d82b0
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.004cb920
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
movdqu xmmword [ebp - 0x38], xmm0
lea ecx, [ebp - 0x38]
mov edx, ebx
call fcn.004cb920
movzx eax, byte [ebp - 0x38]
shl al, 7
xor byte [esi + 0x1f], al
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
mov eax, dword [ebp + 0xc]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
add esp, 0x184
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f5c81
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.004f5e24
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f5df9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f5df9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f5da8
jg 0x4f5cda
test eax, eax
je 0x4f5d9e
push 1
push 0x1000
call fcn.0044be90
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f5d00
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4f5d95
push 0x8000
push ebx
call fcn.004fae63
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 0x4f5d2c
jg 0x4f5d27
cmp ecx, 0x1000
jb 0x4f5d2c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004fddfa
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f5d71
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 0x4f5d27
jl 0x4f5d58
test ecx, ecx
jne 0x4f5d19
push dword [ebp - 0xc]
push ebx
call fcn.004fae63
push esi
call fcn.0044be10
add esp, 0xc
xor edi, edi
jmp 0x4f5e0a
cmp byte [edi + 0x24], 0
je 0x4f5d88
cmp dword [edi + 0x20], 5
jne 0x4f5d88
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f5d93
mov edi, dword [edi + 0x18]
jmp 0x4f5d95
xor edi, edi
push esi
call fcn.0044be10
pop ecx
jmp 0x4f5e0a
test ecx, ecx
jg 0x4f5d6a
jl 0x4f5da8
test eax, eax
jae 0x4f5d6a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00505e90
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f5dcb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f5d6a
jmp 0x4f5e02
push ebx
call fcn.004f93da
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f5d6a
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 0x4f5e0a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f5e07
mov edi, dword [edi + 0x18]
jmp 0x4f5e0a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00505e90
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f8e13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ea000
mov eax, dword [0x53c014]
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.004f8a45
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f8e55
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f8fb1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005099b0
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 + 0x540ae8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00505eee
mov ecx, dword [esi*4 + 0x540ae8]
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 0x4f8faa
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f8faa
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 0x4f8faa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00505eee
add esp, 0x14
test edx, edx
jl 0x4f8faa
jg 0x4f8f20
test eax, eax
jb 0x4f8faa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f8faa
jl 0x4f8f3a
cmp dword [ebp - 0x1008], eax
ja 0x4f8faa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f8f58
test ebx, ebx
je 0x4f8f91
cmp ecx, edi
jae 0x4f8f91
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f8f72
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f8f7e
cmp byte [ecx + 1], 0xa
jne 0x4f8f7e
inc ecx
jmp 0x4f8f7e
movzx eax, al
movsx eax, byte [eax + 0x53c280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f8f58
cmp edx, ebx
jne 0x4f8f58
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f8faf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e96e3
leave
ret
Function at 0x4fa978
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 + 0x540ae8]
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 0x4fa9b8
cmp byte [ebx], 0xa
jne 0x4fa9b8
or byte [eax + edi + 0x28], 4
jmp 0x4fa9bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4faabb
mov al, byte [edx]
cmp al, 0x1a
je 0x4faa9d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4fa9ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4faa11
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4faa1b
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 0x4fa9ce
jmp 0x4faabb
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 0x4faa98
cmp dword [ebp - 0xc], 0
je 0x4faa98
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x540ae8]
test byte [eax + edi + 0x28], 0x48
je 0x4faa72
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4faa5d
mov byte [esi], dl
jmp 0x4faa6e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x540ae8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4faabb
cmp byte [ebp - 1], 0xa
jne 0x4faa81
cmp esi, ebx
jne 0x4faa81
mov byte [esi], 0xa
jmp 0x4faaba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00505e90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4faabb
mov byte [esi], 0xd
jmp 0x4faaba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x540ae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4faab7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4faabb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4faac4
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 + 0x540ae8]
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 0x4fab07
cmp word [esi], dx
jne 0x4fab07
or byte [edi + eax + 0x28], 4
jmp 0x4fab0c
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 0x4fac45
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 0x4fac25
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4fab4e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4fab84
cmp eax, edx
jae 0x4fab90
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 0x4fab26
jmp 0x4fac45
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 0x4fac21
cmp dword [ebp - 0x14], 0
je 0x4fac21
mov eax, dword [ebx*4 + 0x540ae8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4fabf9
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4fac3f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x540ae8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x540ae8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x540ae8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4fac42
pop ebx
cmp word [ebp - 4], bx
jne 0x4fac0a
cmp esi, dword [ebp + 0xc]
jne 0x4fac0a
mov word [esi], bx
jmp 0x4fac42
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00505e90
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4fac45
push 0xd
jmp 0x4fac3e
mov ecx, dword [ebx*4 + 0x540ae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4fac3c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4fac45
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 0x503936
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5166c8
push 0x5166c0
push 0x5166c8
push 0x1e
call fcn.00503e92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50396a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x503970
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5039b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5166ec
push 0x5166e4
push 0x5166ec
push 0x20
call fcn.00503e92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5039eb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x508842
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53c014]
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 0x50888d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005089b8
test al, al
jne 0x508887
sub edx, 2
cmp edx, edi
jne 0x50886d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5088af
lea eax, [edi + 2]
cmp edx, eax
je 0x5088af
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0050878e
add esp, 0x10
jmp 0x5089a9
push esi
lea ecx, [ebp - 0x255]
call fcn.005089b8
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 0x5088f2
push dword [ebp - 0x25c]
jmp 0x50889f
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 0x50892f
cmp word [ebp - 0x226], 0
je 0x508950
cmp word [ebp - 0x226], ax
jne 0x50892f
cmp word [ebp - 0x224], 0
je 0x508950
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0050878e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x50899c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x508909
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x508984
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5089a9
push 0x5089e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004fff70
add esp, 0x10
jmp 0x508979
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.004e96e3
leave
ret
Function at 0x509b11
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 0x509bae
push ebx
push esi
call fcn.00509bff
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.00509a5a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x509b5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x509bad
push edi
push eax
call fcn.0044bdc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x509b7b
call fcn.0044be10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x509bac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00509a5a
add esp, 0x20
test eax, eax
jne 0x509b9a
push edi
call fcn.0044be10
jmp 0x509ba2
push ebx
call fcn.0044be10
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 0x509bb1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x509bc2
pop esi
ret
push ebx
push edi
push esi
call fcn.00509bff
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044bdc0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x509bea
push ebx
push esi
push edi
call fcn.004ebcd0
add esp, 0xc
push 0
call fcn.0044be10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x509c41
Capabilities:
Set environment variable

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

Function at 0x50c5f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050c602
Function at 0x402a3d
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.MSVCR100.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x40104d
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Windows_original_main_args:_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
xor esi, esi
pop ecx
cmp dword [eax], ebx
jle 0x40104d
mov eax, dword [sym.imp.MSVCR100.dll___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
add esp, 0xc
inc esi
cmp esi, dword [eax]
jl 0x40102e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
xor ecx, ecx
cmp edi, ebx
jle 0x401087
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x40107c
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov ecx, eax
cmp eax, ebx
jne 0x401097
mov ecx, dword [esi]
mov eax, dword [str.java]
cmp eax, ebx
jne 0x4010a2
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x402190
push 0x402180
push 0x403018
push 2
push 0x403010
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x556a92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x556b67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0x556b31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0x556b5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00556b71
test eax, eax
je 0x556b67
add ebx, 0x14
jmp 0x556b3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8