joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ebc
mov dword [ebp - 8], GetDlgItemTextA
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402ece
mov dword [ebp - 0xc], 0x418438
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ee3
mov ecx, dword [0x42e458]
add ecx, eax
push ecx
call fcn.004030c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b1
test eax, eax
je 0x40309f
test byte [ebp + 0x17], 0x80
je 0x40304a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ad9c], 0
and dword [0x40ad98], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40c420
mov dword [0x40a880], 8
mov dword [0x414428], eax
mov dword [0x414424], eax
mov eax, dword [ebp + 0x14]
mov dword [0x414420], 0x414420
mov dword [ebp + 8], eax
jle 0x4030a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f5c
mov esi, dword [ebp + 0x14]
mov edi, 0x414438
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
sub dword [ebp + 0x14], esi
mov dword [0x40a870], edi
mov dword [0x40a874], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40a870
mov dword [0x40a878], edi
mov dword [0x40a87c], eax
call fcn.004061ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403042
mov esi, dword [0x40a878]
sub esi, edi
call ebx
test byte [0x42e4b4], 1
mov edi, eax
je 0x402ffd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x402fca
cmp dword [ebp + 0x14], 0
jne 0x402ffd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404f4c
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403036
cmp dword [ebp + 0x10], 0
jne 0x40301c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405a4d
test eax, eax
je 0x403046
add dword [ebp - 4], esi
jmp 0x40302a
mov eax, dword [0x40a878]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x402f7f
jmp 0x4030a7
cmp dword [ebp + 0x14], 0
jg 0x402f4f
jmp 0x4030a7
push 0xfffffffffffffffc
jmp 0x4030a1
push 0xfffffffffffffffe
jmp 0x4030a1
test edi, edi
jne 0x40308c
cmp dword [ebp + 0x14], edi
jle 0x4030a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403060
mov esi, ebx
mov edi, 0x414438
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405a4d
test eax, eax
je 0x403046
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403056
jmp 0x4030a7
cmp dword [ebp + 0x14], esi
jge 0x403094
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b1
test eax, eax
jne 0x4030a4
push 0xfffffffffffffffd
pop eax
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405412
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40732c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40731c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405463
xor eax, eax
jmp 0x40548a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40548a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40545f
call esi
pop esi
leave
ret 4

Function at 0x4054c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b088], 0x44
push eax
xor eax, eax
push 0x42b088
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405503
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40558d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405981
mov edi, eax
cmp edi, 0xffffffff
je 0x4055ce
test byte [esp + 0x10], 1
push esi
je 0x4055b0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055b6
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055bf
xor eax, eax
inc eax
jmp 0x4055d0
test byte [esp + 0x10], 4
jne 0x4055ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055d5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405893
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405614
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e488], eax
jmp 0x40579e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40562e
test eax, eax
je 0x40574c
test bl, 2
je 0x40574c
mov esi, 0x42a888
push edi
push esi
call fcn.00405d33
cmp dword [ebp + 8], 0
je 0x40564d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405653
push edi
call fcn.004057ec
cmp byte [edi], 0
jne 0x405661
cmp byte [0x42a888], 0x5c
jne 0x40566c
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405742
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057d0
cmp byte [eax], 0
je 0x4056b2
cmp byte [ebp - 0x1c], 0
je 0x4056b2
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056c8
mov al, byte [esi + 1]
test al, al
je 0x405721
cmp al, 0x2e
jne 0x4056c8
cmp byte [esi + 2], 0
je 0x405721
push esi
push ebx
call fcn.00405d33
test byte [ebp - 0x14c], 0x10
je 0x4056ed
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405721
push dword [ebp + 0xc]
push edi
call fcn.004055d5
jmp 0x405721
push dword [ebp - 4]
push edi
call fcn.0040558d
test eax, eax
jne 0x405719
cmp dword [ebp - 4], eax
je 0x405711
push edi
push 0xfffffffffffffff1
call fcn.00404f4c
push 0
push edi
call fcn.00405bee
jmp 0x405721
inc dword [0x42e488]
jmp 0x405721
push edi
push 0xfffffffffffffff2
call fcn.00404f4c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405690
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40574c
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40579e
cmp dword [ebp - 0xc], esi
jne 0x405760
inc dword [0x42e488]
jmp 0x40579e
push edi
call fcn.00406037
test eax, eax
je 0x40579e
push edi
call fcn.004057a5
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040558d
test eax, eax
jne 0x405796
cmp dword [ebp - 4], esi
je 0x405758
push edi
push 0xfffffffffffffff1
call fcn.00404f4c
push esi
push edi
call fcn.00405bee
jmp 0x40579e
push edi
push 0xffffffffffffffe5
call fcn.00404f4c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405893
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac88
push esi
call fcn.00405d33
push esi
call fcn.0040583e
mov edi, eax
test edi, edi
jne 0x4058b4
xor eax, eax
jmp 0x405906
push edi
call fcn.00405f9e
test byte [0x42e418], 0x80
je 0x4058cd
mov al, byte [edi]
test al, al
je 0x4058b0
cmp al, 0x5c
je 0x4058b0
sub edi, esi
jmp 0x4058e5
call fcn.00406037
test eax, eax
je 0x4058df
test byte [eax], 0x10
je 0x4058b0
push esi
call fcn.004057ec
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058d1
call fcn.004057a5
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 0x405981
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 0x4059a0
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 0x4059a6
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 0x4059d5
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 [0x4093c4]
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 0x405a1a
test edi, edi
jne 0x4059e0
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a14
Function at 0x405a7c
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x42b610
push 0x4093e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405aca
push 1
push 0
push esi
call fcn.004059a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be9
cmp eax, ebx
jg 0x405be9
mov esi, 0x42ba10
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405be9
cmp eax, ebx
jg 0x405be9
push esi
push edi
push str._s_s_r_n
push 0x42b210
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42e410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d55
push 4
push 0xc0000000
push esi
call fcn.004059a6
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405be9
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 0x405be2
push edi
push esi
push ebp
call fcn.00405a1e
test eax, eax
je 0x405be2
push str._Rename__r_n
push esi
call fcn.0040590b
test eax, eax
jne 0x405b80
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bb5
add eax, 0xa
push 0x4093c8
push eax
call fcn.0040590b
mov ebp, eax
test ebp, ebp
je 0x405bb1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ba2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b9c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405bb7
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42b210
push eax
call fcn.00405961
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a4d
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
ret

Function at 0x405bee
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405c11
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a7c
pop ecx
pop ecx
inc dword [0x42e490]
ret 8
Function at 0x405c1a
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 0x405c8b
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 0x405c7a
cmp dword [ebp + 0x14], 1
je 0x405c7c
cmp dword [ebp + 0x14], 2
je 0x405c7c
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 0x40605e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406082
xor eax, eax
test eax, eax
je 0x406094
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406094
xor ecx, ecx
jmp 0x406097
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

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

Disassembly:
cmp dword [0x42be14], 0
push esi
jne 0x406174
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 0x40614e
mov dword [ecx*4 + 0x42be10], eax
inc ecx
cmp ecx, 0x100
jl 0x406149
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061a5
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 + 0x42be10]
xor eax, esi
inc ecx
dec edx
jne 0x406187
pop edi
not eax
pop esi
ret 0xc
Function at 0x841bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x86d040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x28], ecx
xor ecx, ecx
push edi
mov dword [esp + 0x24], ebx
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x841c1a
xor edi, edi
xor esi, esi
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x841c5e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x841c3b
and dword [esp + 0x10], 0
xor eax, eax
and dword [esp + 0x18], eax
mov esi, 0x3e8
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x841ca4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x841cbb
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.008449a4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x841c95
mov ebx, dword [esp + 0x18]
and dword [esp + 0x28], esi
mov dword [esp + 0x14], edi
cmp dword [ebx], esi
jle 0x841d56
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
inc edx
and edx, 0x800000ff
jns 0x841ced
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x30]
mov eax, dword [esp + 0xc]
movzx esi, cl
add eax, esi
mov dword [esp + 0x10], edx
and eax, 0x800000ff
jns 0x841d0c
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0xc], eax
mov al, byte [esp + eax + 0x30]
mov byte [esp + edx + 0x30], al
mov eax, dword [esp + 0xc]
push 0
mov byte [esp + eax + 0x34], cl
mov eax, edi
xor eax, 4
push eax
call fcn.0084278c
push eax
call fcn.00843b06
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [esp + edx + 0x30]
add eax, esi
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + edi], al
inc edi
cmp edi, dword [ebx]
jl 0x841cdc
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.008444af
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00846ca2
mov esp, ebp
pop ebp
ret
Function at 0x841f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x86d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x8cf548]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x841fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.008428d3
lea ecx, [esp + 0x1c]
call fcn.00841d79
cmp eax, dword [esp + 0x10]
je 0x841fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00843198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x841f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00846ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00843b38
push eax
call fcn.00843b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00843198
jmp 0x841fbb

Function at 0x842003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x8cf548], eax
pop edi
pop esi
ret

Function at 0x847a6d
Capabilities:
Parse pe header

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

Function at 0x85612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x867050
push 0x867048
push 0x864b94
push 0x1e
call fcn.00856015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x856160
push dword [ebp + 8]
mov ecx, esi
call dword [0x86312c]
call esi
jmp 0x856166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x8561aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x867060
push 0x867058
push 0x864bb8
push 0x20
call fcn.00856015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x8561e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x86312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x856f76
Capabilities:
Read file on windows

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

Function at 0x856f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00856da7
Function at 0x8585ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00847be0
mov eax, dword [0x86d040]
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.008549e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x85862e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x85878a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00861a10
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 + 0x8cf140]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00858a12
mov ecx, dword [esi*4 + 0x8cf140]
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 0x858783
cmp eax, dword [edi + ecx + 0x24]
jne 0x858783
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 0x858783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00858a12
add esp, 0x14
test edx, edx
jl 0x858783
jg 0x8586f9
test eax, eax
jb 0x858783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x858783
jl 0x858713
cmp dword [ebp - 0x1008], eax
ja 0x858783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x858731
test ebx, ebx
je 0x85876a
cmp ecx, edi
jae 0x85876a
mov al, byte [ecx]
cmp al, 0xd
jne 0x85874b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x858757
cmp byte [ecx + 1], 0xa
jne 0x858757
inc ecx
jmp 0x858757
movzx eax, al
movsx eax, byte [eax + 0x86d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x858731
cmp edx, ebx
jne 0x858731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x858788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00846ca2
leave
ret
Function at 0x859b73
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x86d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x859bbe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00859d12
test al, al
jne 0x859bb8
sub edx, 2
cmp edx, edi
jne 0x859b9e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x859be0
lea eax, [edi + 2]
cmp edx, eax
je 0x859be0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00859abf
add esp, 0x10
jmp 0x859cda
push esi
lea ecx, [ebp - 0x255]
call fcn.00859d12
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x859c23
push dword [ebp - 0x25c]
jmp 0x859bd0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x859c60
cmp word [ebp - 0x226], 0
je 0x859c81
cmp word [ebp - 0x226], ax
jne 0x859c60
cmp word [ebp - 0x224], 0
je 0x859c81
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00859abf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x859ccd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x859c3a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x859cb5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x859cda
push 0x8598ef
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0085f8e0
add esp, 0x10
jmp 0x859caa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00846ca2
leave
ret