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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3338
cmp edx, dword [eax]
je 0x4bb38f
add eax, 8
inc ecx
cmp eax, 0x4c33c8
jl 0x4bb380
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3338]
jne 0x4bb4bd
mov eax, dword [0x4c7cbc]
cmp eax, 1
je 0x4bb497
test eax, eax
jne 0x4bb3c0
cmp dword [0x4c3264], 1
je 0x4bb497
cmp edx, 0xfc
je 0x4bb4bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bbd50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb43a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c088c
push edi
call fcn.004be0b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bbd50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd60
lea eax, [ebp - 0xa0]
push 0x4c086c
push eax
call fcn.004bbd60
push dword [esi + 0x4c333c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be024
add esp, 0x2c
pop edi
jmp 0x4bb4bd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c333c]
push 0
push eax
push dword [esi]
call fcn.004bc1e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x5bd0df
Capabilities:
Encode data using xor

Disassembly:
add al, 0x58
pop ebx
cmp byte [eax], bh
mov esp, 0xb93f2795
ja 0x5bd0b9
push 0xeb0d0a5f
les eax, [eax - 0x709c2db]
sbb bl, dh
test eax, 0xca03ca0a
cmp eax, 0x4312ed49
or ch, byte [edi]
add bl, byte ds:[ebx - 0x1393d86]
cmpsb byte [esi], byte es:[edi]
inc esp
ror byte [edx], 1
inc ecx
xor byte [ecx], ch
inc ecx
jp 0x5bd107
invalid
ret 0x5b43
Function at 0x40ad87
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 0x40ada8
jl 0x40ad9f
test edi, edi
jne 0x40ada8
xor eax, eax
xor edx, edx
jmp 0x40ae69
cmp dword [ebx + 0x38], 0
je 0x40adbd
push eax
push edi
push dword [ebp + 8]
call fcn.0040ae6f
jmp 0x40ae69
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ae04
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae04
cmp eax, edi
jb 0x40adde
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040caa0
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 0x40ae0a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ae5e
mov ecx, ebx
call fcn.0040a61e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ae49
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00417b66
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 0x40ae5e
jmp 0x40ae1c
test edx, edx
je 0x40ae5e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00417b66
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 0x40c44b
Capabilities:
Parse pe header

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

Function at 0x41e8d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x434e00
push 0x434df8
push str.FlsAlloc
push 0x1e
call fcn.0041e73f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e906
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d130]
call esi
jmp 0x41e90c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e950
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x434e10
push 0x434e08
push str.FlsGetValue
push 0x20
call fcn.0041e73f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e987
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42096c
Capabilities:
Read file on windows

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

Function at 0x420d66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c5b0
mov eax, dword [0x43b040]
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.0041dc85
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420da8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420f04
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b9f0
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 + 0x43ca98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421d43
mov ecx, dword [esi*4 + 0x43ca98]
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 0x420efd
cmp eax, dword [edi + ecx + 0x24]
jne 0x420efd
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 0x420efd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421d43
add esp, 0x14
test edx, edx
jl 0x420efd
jg 0x420e73
test eax, eax
jb 0x420efd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420efd
jl 0x420e8d
cmp dword [ebp - 0x1008], eax
ja 0x420efd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420eab
test ebx, ebx
je 0x420ee4
cmp ecx, edi
jae 0x420ee4
mov al, byte [ecx]
cmp al, 0xd
jne 0x420ec5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420ed1
cmp byte [ecx + 1], 0xa
jne 0x420ed1
inc ecx
jmp 0x420ed1
movzx eax, al
movsx eax, byte [eax + 0x43b308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420eab
cmp edx, ebx
jne 0x420eab
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420f02
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b6c0
leave
ret
Function at 0x4211fb
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 + 0x43ca98]
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 0x42123b
cmp byte [ebx], 0xa
jne 0x42123b
or byte [eax + edi + 0x28], 4
jmp 0x421240
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42133e
mov al, byte [edx]
cmp al, 0x1a
je 0x421320
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42126f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421294
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42129e
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 0x421251
jmp 0x42133e
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 0x42131b
cmp dword [ebp - 0xc], 0
je 0x42131b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43ca98]
test byte [eax + edi + 0x28], 0x48
je 0x4212f5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4212e0
mov byte [esi], dl
jmp 0x4212f1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ca98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42133e
cmp byte [ebp - 1], 0xa
jne 0x421304
cmp esi, ebx
jne 0x421304
mov byte [esi], 0xa
jmp 0x42133d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421d61
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42133e
mov byte [esi], 0xd
jmp 0x42133d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43ca98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42133a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42133e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421347
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 + 0x43ca98]
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 0x42138a
cmp word [esi], dx
jne 0x42138a
or byte [edi + eax + 0x28], 4
jmp 0x42138f
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 0x4214c8
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 0x4214a8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4213d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421407
cmp eax, edx
jae 0x421413
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 0x4213a9
jmp 0x4214c8
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 0x4214a4
cmp dword [ebp - 0x14], 0
je 0x4214a4
mov eax, dword [ebx*4 + 0x43ca98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42147c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4214c2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43ca98]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x43ca98]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43ca98]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4214c5
pop ebx
cmp word [ebp - 4], bx
jne 0x42148d
cmp esi, dword [ebp + 0xc]
jne 0x42148d
mov word [esi], bx
jmp 0x4214c5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421d61
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4214c8
push 0xd
jmp 0x4214c1
mov ecx, dword [ebx*4 + 0x43ca98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4214bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4214c8
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 0x4235b8
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 0x423655
push ebx
push esi
call fcn.00423581
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.00422206
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423602
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423654
push edi
push eax
call fcn.0041ce50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423622
call fcn.0041cc19
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423653
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422206
add esp, 0x20
test eax, eax
jne 0x423641
push edi
call fcn.0041cc19
jmp 0x423649
push ebx
call fcn.0041cc19
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 0x42b7f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b81d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b81d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100252d0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
add esi, edi
add eax, edi
mov dword [ebp - 8], eax
jmp 0x1002548d
add eax, edi
add ecx, edi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jle 0x100259f4
jmp 0x10025186
add eax, 0x2bf402a7
rol ax, cl
mov eax, dword [ebp - 4]
mov edx, dword [eax + ebx*4]
add edx, edi
jne 0x1002564f
jmp 0x1002564b
push ebp
add ebp, ebp
xor ebp, dword [esp + 0x1c]
mov ebp, 0x2e4e0d8d
or ebp, dword [esp + 8]
sub ebp, 0x23976abe
mov ebp, esp
sub esp, 0xc
or al, bl
shl eax, cl
mov eax, dword [edi + 0x3c]
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x24]
mov ecx, dword [esi + edi + 0x1c]
jmp 0x10025045
shl al, cl
mov eax, dword [esi + 0x20]
jmp 0x1002511b
add esp, 0x28
ret
mov al, byte [edx]
xor ecx, ecx
test al, al
jmp 0x100256c2
je 0x100259a0
lea ebx, [ebx]
jmp 0x1002598b
movsx eax, al
rol ecx, 3
add edx, 1
xor ecx, eax
mov al, byte [edx]
test al, al
jne 0x1002598b
cmp ecx, dword [ebp + 8]
je 0x10025af0
jmp 0x100259e8
add ebx, 1
cmp ebx, dword [esi + 0x18]
jl 0x1002517a
pop esi
xor eax, eax
pop ebx
xor esp, 0x6ec14ec4
or esp, 0x1ebb21a4
shl esp, cl
mov esp, 0x39016407
mov esp, ebp
pop ebp
ret
sub ecx, ebx
mov ecx, 0x1d733a03
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + ebx*2]
jmp 0x10025be3
add eax, 0x504c608d
mov ax, cx
sub eax, dword [esp + 8]
or al, bl
rol eax, cl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop esi
add eax, edi
pop ebx
and esp, esp
mov esp, ebp
pop ebp
ret
Function at 0x100255a0
Capabilities:
Encode data using xor

Disassembly:
shr edx, 2
lea esi, [eax + edx*4]
lea eax, [ecx + 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x10025478
jmp 0x10025213
mov dword [ebp - 8], eax
jmp 0x1002521e
inc dl
and dl, 0x83
sub edx, 0x2e4d1e16
ror dx, cl
or dl, bl
mov edx, dword [ebp + 8]
jmp 0x10025717
sub dword [ebp - 8], 1
jne 0x1002521e
test eax, eax
jmp 0x10025a60
push ebp
or ebp, 0x36766b95
or ebp, 0x68d76bbf
ror ebp, cl
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
test eax, eax
jmp 0x100257d8
and edi, ecx
xor edi, 0x1b9902e3
xor edi, 0x172039e4
mov edi, edx
ror dx, cl
and edx, ebp
add edx, ebx
shl dx, cl
or dl, bl
mov edx, ecx
jmp 0x100251dc
test edx, edx
jle 0x10025742
ror cl, cl
and ecx, 0x18ef4edf
mov cx, 0x2323
xor cl, bl
sub ecx, dword [esp + 0x1c]
mov ecx, dword [esi]
sub edi, ecx
sub ecx, edi
sub edx, 1
mov dword [esi], ecx
jne 0x1002571f
sub esi, 4
jmp 0x1002546e
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
jne 0x100258dd
xor esp, 0x48
jmp 0x100258c6
ret 0xc
test ecx, ecx
jne 0x100255e3
push 0x7c
jmp 0x100258f5
sub dword [esp], 0x7d
push dword [ebp - 0xc]
push dword [ebp - 0xc]
ret
mov esi, dword [ebp - 0xc]
mov ecx, esi
jle 0x10025e91
and dl, 0xd0
ror dl, cl
rol dl, cl
and dx, 0x1375
mov edx, eax
add ebx, dword [ecx]
jmp 0x10025b33
add ecx, 4
sub edx, 1
jne 0x10025a79
test eax, eax
jmp 0x10025b9a
mov dword [ebp - 4], ebx
jle 0x10025e91
jmp 0x10025cd8
shl edi, cl
xor edi, 0x8283fca
add edi, 0x36c9723d
dec edi
shr edi, cl
mov edi, eax
jmp 0x10025d9c
push ecx
push eax
jmp 0x10025def
call fcn.10025880
rol ecx, cl
xor cx, bx
sub ecx, dword [esp + 0x14]
mov cx, 0x31e
sub ecx, dword [esp + 0x20]
mov ecx, eax
mov ax, 0x3e9e
mov ax, 0x516d
mov ax, bx
mov eax, dword [ebp - 4]
jmp 0x10025e34
ror eax, 1
mov dword [ebp - 4], eax
pop eax
pop ecx
rol ax, cl
sub al, cl
xor al, dl
xor eax, 0x1b03b4a
mov eax, dword [ebp - 4]
xor dword [esi], eax
add esi, 4
jmp 0x10025e88
sub edi, 1
jne 0x10025d9c
pop edi
pop esi
pop ebx
sub esp, esp
mov esp, ebp
pop ebp
ret
Function at 0x6880f8
Capabilities:
Read file on windows

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

Function at 0x688103
Capabilities:
Read file on windows

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

Function at 0x69623b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x4011de
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x402018]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x844]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x888]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x210], si
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x41c], si
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
mov word [ebp - 0x830], si
mov ecx, 0x104
lea edi, [ebp - 0x82e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 0x884], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x40130f
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x401285
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x4010fc
push eax
call edi
add esp, 0xc
call fcn.004011a9
test eax, eax
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x830]
push 0x4010d0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x888]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40135c
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push 0x400
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401372
push 0x10
push 0x4010bc
push dword [ebp - 0x834]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401372
push dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.004013f8
leave
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x4ac6c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4ac6cc]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x4ac6d0]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4ac6d4]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x4bb914], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x4bb914]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x4bb910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c3
push str.nunalozohitasuboxanefezaxo
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x4bb868], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x4bb90c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x4bb914], 0xb03
jne 0x401144
push str.ruyenemilimusibubigukexem
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4