joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40570f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac28
push esi
call fcn.00405b91
push esi
call fcn.004056ba
mov edi, eax
test edi, edi
jne 0x405730
xor eax, eax
jmp 0x405782
push edi
call fcn.00405dfc
test byte [0x42e3b8], 0x80
je 0x405749
mov al, byte [edi]
test al, al
je 0x40572c
cmp al, 0x5c
je 0x40572c
sub edi, esi
jmp 0x405761
call fcn.00405e95
test eax, eax
je 0x40575b
test byte [eax], 0x10
je 0x40572c
push esi
call fcn.00405668
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40574d
call fcn.00405621
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057fd
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40581c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405822
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405851
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405896
test edi, edi
jne 0x40585c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405890
Function at 0x4058c9
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x42b5b0
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405918
push 1
push 0
push esi
call fcn.00405822
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a3f
cmp eax, ebx
jg 0x405a3f
mov esi, 0x42b9b0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a3f
cmp eax, ebx
jg 0x405a3f
push esi
push edi
push str._s_s_r_n
push 0x42b1b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42e3b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bb3
push 4
push 0xc0000000
push esi
call fcn.00405822
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a3f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a38
push edi
push esi
push ebp
call fcn.0040589a
test eax, eax
je 0x405a38
push str._Rename__r_n
push esi
call fcn.00405787
test eax, eax
jne 0x4059ce
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a03
add eax, 0xa
push 0x40936c
push eax
call fcn.00405787
mov ebp, eax
test ebp, ebp
je 0x4059ff
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059f0
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059ea
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a05
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x42b1b0
push eax
call fcn.004057dd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ae9
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ad8
cmp dword [ebp + 0x14], 1
je 0x405ada
cmp dword [ebp + 0x14], 2
je 0x405ada
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f2e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f65
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f3f
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f96
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f78
pop edi
not eax
pop esi
ret 0xc
Function at 0x4015a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100
push 0x409620
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jb 0x40160d
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4015f6
mov eax, 0x4062b4
jmp 0x40161f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
jmp 0x40161f
cmp dword [ebp - 4], 0
jne 0x40161a
mov eax, 0x4062b8
jmp 0x40161f
mov eax, 0x409620
mov esp, ebp
pop ebp
ret
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10017111
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov dword [0x110e2d94], ecx
inc edx
mov esi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x110e2d94], ecx
inc edx
cmp edx, esi
jl 0x10017126
mov dword [0x110e2d90], esi
pop esi
pop ebp
ret 8

Function at 0x1001714c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x110e2d94
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x110e3120
jl 0x1001715a
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x110e33c4
jl 0x1001719a
mov ecx, dword [0x110e4110]
xor ecx, dword [0x110e2d94]
and ecx, edi
xor ecx, dword [0x110e4110]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x110e2d90], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x110e33c4]
mov dword [0x110e3750], eax
pop esi
ret
Function at 0x10027af5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10027b1b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10027b25
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x10037833
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1013ee39
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x10037957
cmp byte [ebx + 0x45], 0
je 0x10037957
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1003787d
xor al, al
jmp 0x10037959
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.10022e84
and dword [esp + 0x34], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100378e2
dec eax
je 0x100378e6
dec eax
dec eax
je 0x10037944
xor bl, bl
jmp 0x10037946
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x10037925
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10123811
add esp, 0x10
cmp esi, eax
jne 0x100378de
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x45], 0
je 0x10037944
test esi, esi
jne 0x100378a8
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.100371c7
jmp 0x100378a0
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.100141d2
mov al, bl
jmp 0x10037959
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003a7db
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10140989
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
push edi
test dl, dl
je 0x1003a807
call fcn.1003aea6
and dword [esp + 0x38], 0
xor eax, eax
push 7
pop edi
mov dword [esp + 0x3c], edi
mov word [esp + 0x28], ax
and dword [esp + 0x84], eax
push 0x64
pop ebx
push 5
pop edx
lea ecx, [esp + 0x58]
call fcn.10016696
push eax
mov edx, esi
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x14]
call fcn.1002a022
pop ecx
push 0
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call fcn.10014448
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.1003a70e
test eax, eax
jne 0x1003a876
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.10039f9a
push 0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 0
call fcn.10014448
dec ebx
jne 0x1003a824
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1003a9e4
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
push dword [esp + 0xc]
cmovae eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [eax + ecx*2]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.1003b539
lea eax, [esp + 0xc]
mov byte [esp + 0x84], 4
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call fcn.1003b038
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.1003b038
xor eax, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
push 0xa
mov byte [esp + 0x88], 5
mov ebx, dword [esp + 0x14]
pop esi
xor ecx, ecx
mov dword [esp + 0x5c], 3
mov eax, 0x414
mov dword [esp + 0x58], ecx
mov word [esp + 0x68], ax
cmp edi, 8
lea eax, [esp + 0x40]
mov dword [esp + 0x60], ebx
cmovae eax, dword [esp + 0x40]
mov dword [esp + 0x72], eax
lea eax, [esp + 0x58]
push eax
push 0x2e45
push 0xbb83
mov dword [esp + 0x70], ecx
mov dword [esp + 0x76], ecx
mov dword [esp + 0x7a], ecx
call fcn.100290d8
pop ecx
pop ecx
call eax
cmp eax, 0x20
jne 0x1003a9a4
push esi
mov edi, 0xf90b
push edi
push 0x84f9
call fcn.100290d8
pop ecx
pop ecx
call eax
push eax
push edi
push 0x1784d
call fcn.100290d8
pop ecx
pop ecx
call eax
add esi, 0xa
cmp esi, 0x6e
jge 0x1003a9a4
mov edi, dword [esp + 0x54]
jmp 0x1003a919
cmp byte [ebp + 8], 0
je 0x1003a9ce
lea ecx, [esp + 0x28]
call fcn.1003a10f
test al, al
je 0x1003a9ce
sub esp, 0x18
lea eax, [esp + 0x40]
mov ecx, esp
push eax
call fcn.10013ddc
call fcn.1003a75b
add esp, 0x18
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.10014448
lea ecx, [esp + 0x10]
call fcn.1001a357
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.10014448
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003bca4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10140a51
call fcn.1013e250
sub esp, 0x78
push ebx
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
push esi
push edi
mov dword [ebx + 0x14], 7
mov esi, edx
mov dword [ebx + 0x10], ecx
mov dword [ebp - 0x20], ebx
mov word [ebx], ax
mov dword [ebp - 4], ecx
mov edx, ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], 0x75004709
mov dword [ebp - 0x34], 0x7b015908
mov dword [ebp - 0x30], 0x430b6c03
mov dword [ebp - 0x2c], 0x3c0a4a06
mov dword [ebp - 0x28], 0x86057404
mov dword [ebp - 0x24], 0x6c074102
movzx ecx, byte [ebp + edx - 0x37]
sub ecx, edx
dec ecx
jns 0x1003bd24
or eax, 0xffffffff
sub eax, ecx
add ecx, 0x100
and eax, 0xffffff00
add ecx, eax
movzx eax, byte [ebp + edx - 0x38]
add edx, 2
mov word [ebp + eax*2 - 0x84], cx
cmp edx, 0x18
jb 0x1003bd08
xor eax, eax
lea ecx, [ebp - 0x50]
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x84]
push eax
call fcn.10013e17
xor eax, eax
mov dword [ebp - 4], 1
push 6
cmp dword [ebp - 0x3c], 8
lea edi, [ebp - 0x84]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp dword [esi + 0x14], 8
jb 0x1003bd77
mov esi, dword [esi]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10122905
add esp, 0xc
xor edi, edi
test eax, eax
jne 0x1003be19
cmp dword [ebp - 0x14], eax
je 0x1003be19
push 2
push edi
push dword [ebp - 0x14]
call fcn.10123d1e
push dword [ebp - 0x14]
call fcn.10123c23
push edi
push edi
push dword [ebp - 0x14]
mov esi, eax
call fcn.10123d1e
add esp, 0x1c
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push eax
lea eax, [esi + 1]
push eax
call fcn.1001a31b
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x2c]
call fcn.1012358d
push dword [ebp - 0x14]
call fcn.10123e0d
add esp, 0x14
lea ecx, [ebp - 0x68]
push dword [ebp - 0x2c]
call fcn.10013e17
push eax
mov ecx, ebx
call fcn.10019dfc
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.10014448
lea ecx, [ebp - 0x2c]
call fcn.1001a357
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.10014448
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10040340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x101410f5
call fcn.1013e250
sub esp, 0x1a8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xd8], ecx
push edi
mov dword [ebp - 0xd4], 0x3e5a2351
mov ecx, ebx
mov dword [ebp - 0xd0], 0x79293152
mov esi, ebx
mov dword [ebp - 0xcc], 0x74376e47
mov dword [ebp - 0xc8], 0x741c7308
mov dword [ebp - 0xc4], 0x411d7c4b
mov dword [ebp - 0xc0], 0x8c457a02
mov dword [ebp - 0xbc], 0x7e1f8833
mov dword [ebp - 0xb8], 0x87398258
mov dword [ebp - 0xb4], 0x50268610
mov dword [ebp - 0xb0], 0x960d9449
mov dword [ebp - 0xac], 0x9f289d20
mov dword [ebp - 0xa8], 0x9d349f0c
mov dword [ebp - 0xa4], 0xa650a516
mov dword [ebp - 0xa0], 0x96049b54
mov dword [ebp - 0x9c], 0x9d18672d
mov dword [ebp - 0x98], 0xa638b124
mov dword [ebp - 0x94], 0xb142b04a
mov dword [ebp - 0x90], 0x7535b82e
mov dword [ebp - 0x8c], 0x7309bb4e
mov dword [ebp - 0x88], 0xb02bbf03
mov dword [ebp - 0x84], 0xbb36c815
mov dword [ebp - 0x80], 0xc42cbc3c
mov dword [ebp - 0x7c], 0xbc4dcc01
mov dword [ebp - 0x78], 0xd111d131
mov dword [ebp - 0x74], 0xc41acf13
mov dword [ebp - 0x70], 0xda27ca07
mov dword [ebp - 0x6c], 0xde57cc43
mov dword [ebp - 0x68], 0xe33ed214
mov dword [ebp - 0x64], 0xdb3dd30b
mov dword [ebp - 0x60], 0xe705d655
mov dword [ebp - 0x5c], 0xe7449b0a
mov dword [ebp - 0x58], 0xe841e621
mov dword [ebp - 0x54], 0xf922e21e
mov dword [ebp - 0x50], 0x25f13a
mov dword [ebp - 0x4c], 0xf64ff01b
mov dword [ebp - 0x48], 0xf017f63b
mov dword [ebp - 0x44], 0xbc590306
mov dword [ebp - 0x40], 0xc5120a00
mov dword [ebp - 0x3c], 0x432100e
mov dword [ebp - 0x38], 0x230022f
mov dword [ebp - 0x34], 0xc23cf40
mov dword [ebp - 0x30], 0x61052a0a
mov dword [ebp - 0x2c], 0xb15e09f0
mov dword [ebp - 0x28], 0x183f072e
mov dword [ebp - 0x24], 0xd460c2a
mov dword [ebp - 0x20], 0xef48184c
mov dword [ebp - 0x1c], 0xd153220f
mov dword [ebp - 0x18], 0x21562319
cmp ecx, 0xa4
jne 0x100404fe
push 0xa
pop esi
add ecx, 8
jmp 0x10040531
movzx eax, byte [ebp + ecx - 0xd3]
lea edx, [esi - 1]
sub eax, ecx
add edx, eax
jns 0x10040521
or eax, 0xffffffff
sub eax, edx
add edx, 0x100
and eax, 0xffffff00
add edx, eax
movzx eax, byte [ebp + ecx - 0xd4]
mov word [ebp + eax*2 - 0x1b4], dx
add ecx, 2
cmp ecx, 0xc0
jb 0x100404ee
xor eax, eax
lea ecx, [ebp - 0xfc]
mov word [ebp - 0xfe], ax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10013e17
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xe4]
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], ebx
push eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xe0], ebx
push eax
push ebx
mov dword [ebp - 0xdc], ebx
call fcn.10038c22
push fcn.10013e74
push 1
push 0x18
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 2
push eax
call fcn.10120e3b
push 0x2e
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b4]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xd8]
lea edx, [ebp - 0xe4]
push 3
call fcn.1004524f
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.10029f2c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10046d18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1013ee39
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x10046e43
cmp byte [ebx + 0x46], 0
je 0x10046e43
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
jne 0x10046d69
xor al, al
jmp 0x10046e45
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.10022e84
and dword [esp + 0x34], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10046dce
dec eax
je 0x10046dd2
dec eax
dec eax
je 0x10046e30
xor bl, bl
jmp 0x10046e32
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x10046e11
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10123811
add esp, 0x10
cmp esi, eax
jne 0x10046dca
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x46], 0
je 0x10046e30
test esi, esi
jne 0x10046d94
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.100371c7
jmp 0x10046d8c
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.100141d2
mov al, bl
jmp 0x10046e45
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10051890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x10142129
call fcn.1013e250
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
lea ecx, [edi + 0x18]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.10019e3f
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10019e3f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005a413
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x18], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x1005a42e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1005a48a
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
xor esi, esi
mov eax, dword [eax]
inc esi
mov ecx, dword [edx]
mov eax, dword [edi]
cmp eax, dword [ecx + 4]
jle 0x1005a451
mov eax, dword [ebx]
cmp dword [edi], 0x5d1cc0c7
jg 0x1005a451
xor ecx, ecx
jmp 0x1005a453
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 4], ecx
mov ecx, 0x4043ca31
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [edx]
sub ecx, dword [eax + 8]
mov eax, dword [ebx]
add eax, ecx
je 0x1005a478
mov eax, dword [edx]
cmp dword [eax + 4], 0
jne 0x1005a47a
xor esi, esi
mov eax, dword [edx]
xor ecx, ecx
cmp esi, dword [eax + 8]
mov eax, dword [ebp + 0x10]
setne cl
pop esi
mov dword [eax], ecx
pop edi
pop ebx
pop ebp
ret
Function at 0x1005dc68
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1005dc7f
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1005dc98
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0xd
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret