joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009880e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100988b9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10098856
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10037b55
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10033ee6
jmp 0x10098861
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10044131
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1009af8b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1013e3b8
call fcn.100418d9
cmp dword [eax + 0x14], 0
jne 0x1009afa6
mov ecx, esi
pop esi
jmp fcn.1009a2d6
pop esi
ret
Function at 0x100a2311
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x100a232a
call fcn.10041885
mov esi, dword [eax + 0xc]
push 0x101f63a8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100a2380
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100a237f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a2360
xor esi, esi
jmp 0x100a2376
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.100a2388
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10139575
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10004bf0
call fcn.100418d9
cmp dword [eax + 0x14], 0
jne 0x10139590
mov ecx, esi
pop esi
jmp fcn.10138df3
pop esi
ret

Function at 0x10184b14
Capabilities:
Read file on windows

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

Function at 0x10189f3b
Capabilities:
Set environment variable

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

Function at 0x10191886
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 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
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 ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021ac
push 0x4021b0
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
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 0x4130e2
Capabilities:
Read file on windows

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

Function at 0x4130ed
Capabilities:
Read file on windows

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

Function at 0x4134e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407120
mov eax, dword [0x46dd00]
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.00411f79
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413529
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413685
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d920
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 + 0x46f828]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004146b7
mov ecx, dword [esi*4 + 0x46f828]
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 0x41367e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41367e
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 0x41367e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004146b7
add esp, 0x14
test edx, edx
jl 0x41367e
jg 0x4135f4
test eax, eax
jb 0x41367e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41367e
jl 0x41360e
cmp dword [ebp - 0x1008], eax
ja 0x41367e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41362c
test ebx, ebx
je 0x413665
cmp ecx, edi
jae 0x413665
mov al, byte [ecx]
cmp al, 0xd
jne 0x413646
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413652
cmp byte [ecx + 1], 0xa
jne 0x413652
inc ecx
jmp 0x413652
movzx eax, al
movsx eax, byte [eax + 0x46dfb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41362c
cmp edx, ebx
jne 0x41362c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413683
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406635
leave
ret
Function at 0x413b55
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 + 0x46f828]
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 0x413b95
cmp byte [ebx], 0xa
jne 0x413b95
or byte [eax + edi + 0x28], 4
jmp 0x413b9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x413c98
mov al, byte [edx]
cmp al, 0x1a
je 0x413c7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x413bc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x413bee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x413bf8
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 0x413bab
jmp 0x413c98
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 0x413c75
cmp dword [ebp - 0xc], 0
je 0x413c75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46f828]
test byte [eax + edi + 0x28], 0x48
je 0x413c4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413c3a
mov byte [esi], dl
jmp 0x413c4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46f828]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413c98
cmp byte [ebp - 1], 0xa
jne 0x413c5e
cmp esi, ebx
jne 0x413c5e
mov byte [esi], 0xa
jmp 0x413c97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004146d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413c98
mov byte [esi], 0xd
jmp 0x413c97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46f828]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413c94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413c98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413ca1
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 + 0x46f828]
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 0x413ce4
cmp word [esi], dx
jne 0x413ce4
or byte [edi + eax + 0x28], 4
jmp 0x413ce9
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 0x413e3c
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 0x413e1c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x413d2b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413d61
cmp eax, edx
jae 0x413d6d
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 0x413d03
jmp 0x413e3c
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 0x413e18
cmp dword [ebp - 0x14], 0
je 0x413e18
mov eax, dword [ebx*4 + 0x46f828]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x413df0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x413db9
mov word [esi], cx
jmp 0x413dec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46f828]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46f828]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46f828]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x413e3c
pop ebx
cmp word [ebp - 4], bx
jne 0x413e01
cmp esi, dword [ebp + 0xc]
jne 0x413e01
mov word [esi], bx
jmp 0x413e39
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004146d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x413e3c
push 0xd
jmp 0x413e35
mov ecx, dword [ebx*4 + 0x46f828]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413e33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413e3c
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 0x417c74
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 0x417d11
push ebx
push esi
call fcn.00417c3d
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.004168c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417cbe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417d10
push edi
push eax
call fcn.00414bc2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417cde
call fcn.004114d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417d0f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004168c2
add esp, 0x20
test eax, eax
jne 0x417cfd
push edi
call fcn.004114d8
jmp 0x417d05
push ebx
call fcn.004114d8
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 0x41d8e0
Capabilities:
Parse pe header

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

Function at 0x41f254
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x46d810
mov esi, eax
push edi
call fcn.0041f1ae
push ebx
push edi
push esi
call fcn.00407150
add esp, 0x14
call fcn.0041f194
push ebp
push ebp
push 0x42a010
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x65a86eb3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2450587e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x4a3d24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [esp], ah
cld
push 0x2c93bd2e
rep movsb byte es:[edi], byte [esi]
mov si, word [esp + 4]
rcr edi, 0xc
mov edi, dword [esp + 0x10]
shl si, cl
mov esi, dword [esp + 0x14]
cmp si, 0x8da7
test sp, 0xb61f
cld
test ch, 0xf
push dword [esp + 0x18]
popfd
pushal
mov byte [esp + 4], 0x32
mov byte [esp], 0x4a
lea esp, [esp + 0x3c]
jmp 0x4a4acc

Function at 0x4a48a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push dword [esp + 8]
pop dword [ebp]
pushfd
pushfd
lea esp, [esp + 0x14]
jmp 0x4a4acc

Function at 0x4a4aa7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add edi, 0xa715c8f3
sub esp, 0xbc
rol di, 0xf
stc
mov edi, esp

Function at 0x4a5034
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.004a46fa
pushfd
pushal
push 0xff9a2d7b
pushfd
pushfd
pop dword [esp + 0x28]
mov byte [esp + 4], al
pushfd
push dword [esp + 0x2c]
pop dword [ebp]
mov dword [esp + 8], eax
pushfd
pushfd
pushfd
lea esp, [esp + 0x3c]
jmp 0x4a4acc
mov dword [ebp + 4], eax
pushfd
lea esp, [esp + 0x30]
js 0x4a4e69
pushal
pushal
pushfd
pop dword [esp + 0x3c]
lea esp, [esp + 0x3c]
jbe 0x4a37d5
push 0x4486b256
push dword [esp]
pushfd
push dword [esp + 0xc]
pop dword [ebp]
pushal
mov byte [esp], 5
pushfd
push dword [esp + 4]
lea esp, [esp + 0x38]
jmp 0x4a4acc

Function at 0x4a576c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [esp], dh
mov word [ebp], ax
mov byte [esp], 0x7c
mov byte [esp], 0x54
mov byte [esp], ch
lea esp, [esp + 0x58]
jmp 0x4a3df3
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4012fa
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4023c8
call fcn.00401909
push 1
call fcn.0040149a
pop ecx
test al, al
jne 0x40119d
push 7
call fcn.00401707
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401465
mov byte [ebp - 0x24], al
mov eax, dword [0x40332c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401196
test eax, eax
jne 0x401207
mov dword [0x40332c], ecx
push 0x4020f0
push 0x4020e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4011ea
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4012f4
push 0x4020dc
push 0x4020d4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40332c], 2
jmp 0x40120c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004015f7
pop ecx
call fcn.004016fb
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40123c
push esi
call fcn.0040156a
pop ecx
test al, al
je 0x40123c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00401903
call esi
call fcn.00401701
mov esi, eax
cmp dword [esi], edi
je 0x40125a
push esi
call fcn.0040156a
pop ecx
test al, al
je 0x40125a
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
push eax
push dword [edi]
push dword [esi]
call main
mov esi, eax
push 0
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
add esp, 0x14
call fcn.0040181c
test al, al
jne 0x401298
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4012a1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.00401614
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4012f4
call fcn.0040194f
ret
call fcn.0040100e
jmp 0x40117e

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004064af
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406abd
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403347
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403370
mov eax, dword [0x7a7dd8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c954], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031c8
test eax, eax
js 0x403446
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406b1f
test eax, eax
je 0x403441
push dword [ebp + 8]
add dword [0x40c954], 4
call fcn.004031c8
mov esi, eax
test esi, esi
js 0x40343d
cmp dword [ebp + 0x10], edi
jne 0x403411
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x40343d
mov ebx, 0x4000
mov edi, 0x793238
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406b1f
test eax, eax
je 0x403441
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406be2
test eax, eax
je 0x40340d
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c954], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x4033c9
jmp 0x40343d
push 0xfffffffffffffffe
jmp 0x403443
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403441
mov esi, dword [ebp - 4]
add dword [0x40c954], esi
mov eax, esi
jmp 0x403444
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403469
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403491
mov eax, dword [0x40c968]
test eax, eax
je 0x403488
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c968], 0
leave
ret
cmp dword [0x40c968], 0
je 0x4034a3
push 0
call fcn.004063e6
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a7d80]
jbe 0x40350d
cmp dword [0x7a6d78], 0
je 0x4034e8
test byte [0x7a7e74], 1
je 0x40350d
call fcn.0040344b
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405f20
leave
ret
push 0
push 0x4037cb
push 0
push 0x6f
push dword [0x7a6d74]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c968], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret