joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416122
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 + 0x4ddda0]
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 0x416162
cmp byte [ebx], 0xa
jne 0x416162
or byte [eax + edi + 0x28], 4
jmp 0x416167
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416265
mov al, byte [edx]
cmp al, 0x1a
je 0x416247
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416196
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4161bb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4161c5
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 0x416178
jmp 0x416265
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 0x416242
cmp dword [ebp - 0xc], 0
je 0x416242
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ddda0]
test byte [eax + edi + 0x28], 0x48
je 0x41621c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416207
mov byte [esi], dl
jmp 0x416218
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ddda0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416265
cmp byte [ebp - 1], 0xa
jne 0x41622b
cmp esi, ebx
jne 0x41622b
mov byte [esi], 0xa
jmp 0x416264
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ca2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416265
mov byte [esi], 0xd
jmp 0x416264
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ddda0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416261
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416265
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41626e
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 + 0x4ddda0]
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 0x4162b1
cmp word [esi], dx
jne 0x4162b1
or byte [edi + eax + 0x28], 4
jmp 0x4162b6
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 0x416409
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 0x4163e9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4162f8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41632e
cmp eax, edx
jae 0x41633a
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 0x4162d0
jmp 0x416409
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 0x4163e5
cmp dword [ebp - 0x14], 0
je 0x4163e5
mov eax, dword [ebx*4 + 0x4ddda0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4163bd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416386
mov word [esi], cx
jmp 0x4163b9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ddda0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ddda0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ddda0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416409
pop ebx
cmp word [ebp - 4], bx
jne 0x4163ce
cmp esi, dword [ebp + 0xc]
jne 0x4163ce
mov word [esi], bx
jmp 0x416406
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416ca2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416409
push 0xd
jmp 0x416402
mov ecx, dword [ebx*4 + 0x4ddda0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416400
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416409
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 0x418bbb
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 0x418c58
push ebx
push esi
call fcn.00418b84
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.00417965
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418c05
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418c57
push edi
push eax
call fcn.004137c3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418c25
call fcn.00412a7b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418c56
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417965
add esp, 0x20
test eax, eax
jne 0x418c44
push edi
call fcn.00412a7b
jmp 0x418c4c
push ebx
call fcn.00412a7b
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 0x41e950
Capabilities:
Parse pe header

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

Function at 0x420545
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4205c5
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x4205c4
push ebx
mov ebx, 0x4dd3e8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x421548
mov byte [edi + esi], al
call fcn.0040d3de
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x420567
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040433b
pop edi
pop ebp
ret 0x14

Function at 0x4205d2
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x4205ee
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x51022477
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x583612ed
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x14b94509
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x10ba58ad
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401db3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4071a8
call fcn.00403780
mov edi, 0x94
mov eax, edi
call fcn.004038e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4093f0], ecx
mov eax, dword [esi + 4]
mov dword [0x4093fc], eax
mov edx, dword [esi + 8]
mov dword [0x409400], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4093f4], esi
cmp ecx, 2
je 0x401e13
or esi, 0x8000
mov dword [0x4093f4], esi
shl eax, 8
add eax, edx
mov dword [0x4093f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401e4e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e4e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401e66
cmp eax, 0x20b
je 0x401e53
mov dword [ebp - 0x1c], esi
jmp 0x401e7a
cmp dword [ecx + 0x84], 0xe
jbe 0x401e4e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401e74
cmp dword [ecx + 0x74], 0xe
jbe 0x401e4e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040372f
pop ecx
test eax, eax
jne 0x401ea6
cmp dword [0x4093d8], 1
jne 0x401e93
call fcn.00402ee4
push 0x1c
call fcn.00402d6d
push 0xff
call fcn.00402b62
pop ecx
pop ecx
call fcn.0040368d
mov dword [ebp - 4], esi
call fcn.004034e2
test eax, eax
jge 0x401ebf
push 0x1b
call fcn.00401d8e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409994], eax
call fcn.004033c0
mov dword [0x4093d0], eax
call fcn.0040331e
test eax, eax
jge 0x401ee5
push 8
call fcn.00401d8e
pop ecx
call fcn.004030eb
test eax, eax
jge 0x401ef6
push 9
call fcn.00401d8e
pop ecx
push 1
call fcn.00402b92
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401f0c
push eax
call fcn.00401d8e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040308e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401f2d
movzx eax, word [ebp - 0x40]
jmp 0x401f30
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406910
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401f4e
push edi
call fcn.00402cbd
call fcn.00402cdf
jmp 0x401f80
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004037bb
ret
Function at 0x6f0cf752
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6fb53014]
mov dword [ebp - 0xc], eax
jmp 0x6f0cf851
jmp 0x6f0cf942
jmp 0x6f0cfa33
jmp 0x6f0cfb24
jmp 0x6f0cfc15
jmp 0x6f0cfd06
jmp 0x6f0cfdf7
jmp 0x6f0cfee8
jmp 0x6f0cffd9
jmp 0x6f0d00ca
jmp 0x6f0d01bb
jmp 0x6f0d02ac
jmp 0x6f0d039d
jmp 0x6f0d048e
jmp 0x6f0d057f
jmp 0x6f0d0670
jmp 0x6f0d0761
jmp 0x6f0d0852
jmp 0x6f0d0943
jmp 0x6f0d0a34
jmp 0x6f0d0b25
jmp 0x6f0d0c16
jmp 0x6f0d0d07
jmp 0x6f0d0df8
jmp 0x6f0d0ee9
jmp 0x6f0d0fda
jmp 0x6f0d10cb
jmp 0x6f0d11bc
jmp 0x6f0d12ad
jmp 0x6f0d139e
cmp dword [ebp - 0xc], 0
je 0x6f0d84f2
mov eax, dword [0x6fb53014]
mov dword [0x6fb5300c], eax
jmp 0x6f0d14a3
jmp 0x6f0d1594
jmp 0x6f0d1685
jmp 0x6f0d1776
jmp 0x6f0d1867
jmp 0x6f0d1958
jmp 0x6f0d1a49
jmp 0x6f0d1b3a
jmp 0x6f0d1c2b
jmp 0x6f0d1d1c
jmp 0x6f0d1e0d
jmp 0x6f0d1efe
jmp 0x6f0d1fef
jmp 0x6f0d20e0
jmp 0x6f0d21d1
jmp 0x6f0d22c2
jmp 0x6f0d23b3
jmp 0x6f0d24a4
jmp 0x6f0d2595
jmp 0x6f0d2686
jmp 0x6f0d2777
jmp 0x6f0d2868
jmp 0x6f0d2959
jmp 0x6f0d2a4a
jmp 0x6f0d2b3b
jmp 0x6f0d2c2c
jmp 0x6f0d2d1d
jmp 0x6f0d2e0e
jmp 0x6f0d2eff
jmp 0x6f0d2ff0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6fb53008], eax
jmp 0x6f0d30f1
jmp 0x6f0d31e2
jmp 0x6f0d32d3
jmp 0x6f0d33c4
jmp 0x6f0d34b5
jmp 0x6f0d35a6
jmp 0x6f0d3697
jmp 0x6f0d3788
jmp 0x6f0d3879
jmp 0x6f0d396a
jmp 0x6f0d3a5b
jmp 0x6f0d3b4c
jmp 0x6f0d3c3d
jmp 0x6f0d3d2e
jmp 0x6f0d3e1f
jmp 0x6f0d3f10
jmp 0x6f0d4001
jmp 0x6f0d40f2
jmp 0x6f0d41e3
jmp 0x6f0d42d4
jmp 0x6f0d43c5
jmp 0x6f0d44b6
jmp 0x6f0d45a7
jmp 0x6f0d4698
jmp 0x6f0d4789
jmp 0x6f0d487a
jmp 0x6f0d496b
jmp 0x6f0d4a5c
jmp 0x6f0d4b4d
jmp 0x6f0d4c3e
mov eax, dword [0x6fb53008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x6f0d4d3a
jmp 0x6f0d4e2b
jmp 0x6f0d4f1c
jmp 0x6f0d500d
jmp 0x6f0d50fe
jmp 0x6f0d51ef
jmp 0x6f0d52e0
jmp 0x6f0d53d1
jmp 0x6f0d54c2
jmp 0x6f0d55b3
jmp 0x6f0d56a4
jmp 0x6f0d5795
jmp 0x6f0d5886
jmp 0x6f0d5977
jmp 0x6f0d5a68
jmp 0x6f0d5b59
jmp 0x6f0d5c4a
jmp 0x6f0d5d3b
jmp 0x6f0d5e2c
jmp 0x6f0d5f1d
jmp 0x6f0d600e
jmp 0x6f0d60ff
jmp 0x6f0d61f0
jmp 0x6f0d62e1
jmp 0x6f0d63d2
jmp 0x6f0d64c3
jmp 0x6f0d65b4
jmp 0x6f0d66a5
jmp 0x6f0d6796
jmp 0x6f0d6887
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6fb53004], eax
jmp 0x6f0d69a5
jmp 0x6f0d6a96
jmp 0x6f0d6b87
jmp 0x6f0d6c78
jmp 0x6f0d6d69
jmp 0x6f0d6e5a
jmp 0x6f0d6f4b
jmp 0x6f0d703c
nop
leave
ret
Function at 0x6f13ba60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6fb52040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6f13bac0

Function at 0x6f13bac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6fb53378]
test esi, esi
jle 0x6f13bbad
mov edi, dword [0x6fb5337c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6f13baf4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6f13bba6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6f13bae0
mov dword [esp], eax
mov esi, eax
call fcn.6f13c260
test eax, eax
mov edi, eax
je 0x6f13bbea
mov esi, dword [0x6fb5337c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6f13c370
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6fb5337c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6f13bbca
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6f13bb9f
sub eax, 0x40
and eax, 0xffffffbf
je 0x6f13bb9f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6fb5337c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6f13bbb4
add dword [0x6fb53378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6f13bafe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6f13ba60
mov eax, dword [0x6fb5337c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6f13ba60
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6f13ba60
lea esi, [esi]
Function at 0x6f13bed0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6fb53388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6fb53380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6f13bf25
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6f13bf1e
test esi, esi
je 0x6f13bf1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6f13bf00
mov dword [esp], 0x6fb53388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x60fc73
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [edi + eax]
movzx edx, al
mov ebx, edx
mov dword [esp + 0x24], edx
sub ebx, ecx
cmp edi, dword [esp + 0x20]
jl 0x60fbfc
or ebx, 0xffffffff
jmp 0x60fc12
mov edx, dword [esp + 0x1c]
cmp al, byte [edi + edx + 1]
jne 0x60fced
test ebx, ebx
je 0x60fced
mov eax, ebx
mov ecx, edi
cdq
sub ecx, esi
xor eax, edx
dec ecx
sub eax, edx
mov dword [esp + 0x10], ecx
cmp eax, 1
jne 0x60fcd3
mov eax, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x60fcd3
test ecx, ecx
jle 0x60fcd3
lea eax, [ebx + ebp]
mov edx, ebx
mov dword [esp + 0x18], edx
test eax, eax
jne 0x60fc9b
cmp esi, edi
jge 0x60fce1
xor ebp, ebp
nop dword [eax]
mov eax, ebp
cdq
idiv ecx
add eax, 0xff
cdq
xor eax, edx
sub eax, edx
test ebx, ebx
fstp xword [ecx + 0xd]
fstp xword [ecx + 0xd]
mov ecx, 0xff
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub ebp, 0x1fe
mov byte [esi + edx], al
inc esi
cmp esi, edi
jl 0x60fc63
mov edx, dword [esp + 0x18]
jmp 0x60fce1
cmp ebp, ebx
jne 0x60fce1
cmp esi, edi
jge 0x60fce1
xor ebp, ebp
mov eax, ebp
cdq
idiv ecx
test ebx, ebx
jns 0x60fcbb
mov ecx, 0xff
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ebp, 0xff
mov byte [esi + edx], al
inc esi
cmp esi, edi
jl 0x60fca5
mov edx, dword [esp + 0x18]
jmp 0x60fce1
xor edx, edx
test ebx, ebx
setg dl
lea edx, [edx*2 - 1]
mov ecx, dword [esp + 0x24]
mov ebp, edx
mov dword [esp + 0x18], ebx
mov esi, edi
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x60fbe3
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret

Function at 0x653dc3
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
shl ch, 0x3d
pop ebp
enter 0x683d, 0xffffffffffffffd9
push 0x41333e3b
mov edi, 0xe3cef904
pop eax
cmp eax, 0x3b68d968
xor eax, dword ds:[ecx - 0x41]
add al, 0xf9
into
jecxz 0x653e2e
fistp dword [ecx]
sub cl, byte [ebp + 0x4ce51685]
mov ch, 0x47
xor eax, 0x408cc326
mov esi, 0xb5db91f2
or eax, 0x1fc9b6f5
and al, 3
cmp bl, bh
outsb dx, byte [esi]
xor dword [ecx], ecx
ror dword [edi], cl
scasd eax, dword es:[edi]
push ebx
imul edi, dword [edi - 0x79], 0xffffffae
test dword [ecx - 0x6d], esp
pop edi
and al, 0xa5
and al, 0x46
adc eax, 0x25e0c560
dec eax
inc esp
cli
dec edi
jo 0x653dc8
pop ss
rol byte [edi + 0x49f60426], 1
mov al, 0x50
push esi
or dword [ebp + 0x56], esp
invalid
cmp byte [esi], dl
sub ecx, eax
and eax, 0x1d15b000
movsd dword es:[edi], dword [esi]
imul ecx, dword [ebx - 0x79], 0xfffffff5
test byte [eax - 0x4a], cl
in al, 0x62
ret 0x7d92
Function at 0x100013e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x10001430
mov eax, esp
mov dword [eax], 0x97e
mov eax, dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
jmp 0x10001454
mov eax, dword [ebp - 0x18]
mov ecx, 0xaaaaaaab
mov dword [ebp - 0x1c], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x100013ed
jmp 0x10001423
mov eax, dword [ebp - 0x20]
sub eax, 0xb
mov dword [ebp - 0x24], eax
je 0x100013ed
jmp 0x10001454
mov eax, dword [ebp - 0x10]
mov ecx, esp
mov dword [ecx], 0x39
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
mov dword [ebp - 0x28], eax
call ecx
sub esp, 4
xor ecx, ecx
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x18], ecx
jmp 0x10001404
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x60
mov dword [ebp - 0x18], eax
jne 0x10001404
mov dword [ebp - 4], 0xf17a94
mov dword [ebp - 8], 0x929
mov eax, esp
lea ecx, [ebp - 8]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 4]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0xdbb
mov dword [eax + 4], 0xee7
mov dword [eax], 0xee7
mov eax, dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
call eax
sub esp, 0x14
mov ecx, dword [ebp - 0x28]
sub ecx, 0x12
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
je 0x100014bd
jmp 0x100014b0
mov eax, dword [ebp - 0x28]
sub eax, 0x25
mov dword [ebp - 0x38], eax
jne 0x10001503
jmp 0x100014bd
mov eax, 0xa04969
mov dword [ebp - 0xc], eax
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x18], 0xf5
mov dword [eax + 0x14], 0x1bf
mov dword [eax + 0x10], 0xb1
mov dword [eax + 8], 0xc9c998
mov dword [eax + 4], 0xf9c655
mov dword [eax], 0xc9c998
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
call eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
cmp ecx, 0x3c
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x10], ecx
jne 0x10001430
add esp, 0x5c
pop ebp
ret

Function at 0x101514fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102dbc9c]
jne 0x10151504
repz ret
jmp fcn.101572ca
Function at 0x1015a575
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1014f664
and dword [ebp - 4], 0
cmp dword [0x102dd3d4], 0
mov ebx, eax
jne 0x1015a626
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1015a6d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1015a6d7
push eax
call fcn.1014f5f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102dd3d4], eax
call esi
push eax
call fcn.1014f5f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102dd3d8], eax
call esi
push eax
call fcn.1014f5f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102dd3dc], eax
call esi
push eax
call fcn.1014f5f2
pop ecx
mov dword [0x102dd3e4], eax
test eax, eax
je 0x1015a626
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1014f5f2
pop ecx
mov dword [0x102dd3e0], eax
mov eax, dword [0x102dd3e0]
cmp eax, ebx
je 0x1015a67e
cmp dword [0x102dd3e4], ebx
je 0x1015a67e
push eax
call fcn.1014f66d
push dword [0x102dd3e4]
mov esi, eax
call fcn.1014f66d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1015a67e
test edi, edi
je 0x1015a67e
call esi
test eax, eax
je 0x1015a675
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1015a675
test byte [ebp - 0xc], 1
jne 0x1015a67e
or dword [ebp + 0x10], 0x200000
jmp 0x1015a6b7
mov eax, dword [0x102dd3d8]
cmp eax, ebx
je 0x1015a6b7
push eax
call fcn.1014f66d
pop ecx
test eax, eax
je 0x1015a6b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1015a6b7
mov eax, dword [0x102dd3dc]
cmp eax, ebx
je 0x1015a6b7
push eax
call fcn.1014f66d
pop ecx
test eax, eax
je 0x1015a6b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102dd3d4]
call fcn.1014f66d
pop ecx
test eax, eax
je 0x1015a6d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1015a6d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret