joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push esi
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10005e30
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.10005390
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1002f480
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10002dde
push dword [ebp - 0x14]
push esi
call fcn.10005120
add esp, 8
push edi
push str.BrightData_
push esi
call fcn.10005230
mov edx, dword [ebp - 0xc]
add esp, 8
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002df5
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
push edx
call fcn.10006520
add esp, 0xc
pop edi
test eax, eax
jne 0x10002e3e
push 0x14
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.100067f0
push dword [ebp - 4]
call fcn.10005040
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call fcn.100052d0
push dword [eax]
push esi
call fcn.10005230
add esp, 0x20
mov eax, dword [ebp - 8]
test eax, eax
je 0x10002e55
push eax
call fcn.1000830b
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x10002e6c
push eax
call fcn.1000830b
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10002e83
push eax
call fcn.1000830b
add esp, 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
call fcn.100050d0
lea eax, [ebp - 0x10]
push eax
call fcn.100050d0
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002f70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.10005e30
lea eax, [ebp - 4]
push str.luminati
push eax
call fcn.10005230
add esp, 0xc
cmp dword [section..data], 0
je 0x10003010
push dword [ebp - 4]
call fcn.10005b70
add esp, 4
test eax, eax
jne 0x10003010
lea eax, [ebp - 4]
push esi
push eax
call fcn.10002d70
push 0x5c
push dword [ebp - 4]
call fcn.10006f62
mov esi, eax
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
call fcn.10008343
push 0x1ff
push dword [ebp - 4]
call fcn.10008374
mov eax, 0x5c
mov word [esi], ax
push dword [ebp - 4]
call fcn.10008343
push 0x1ff
push dword [ebp - 4]
call fcn.10008374
add esp, 0x24
lea eax, [ebp - 4]
pop esi
push eax
call fcn.100050d0
add esp, 4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.10005e30
push 0x1ff
push dword [ebp - 8]
call fcn.10004da0
lea eax, [ebp - 8]
push eax
call fcn.100050d0
push dword [ebp - 4]
call fcn.10008343
push 0x1ff
push dword [ebp - 4]
call fcn.10004da0
add esp, 0x1c
lea eax, [ebp - 4]
push eax
call fcn.100050d0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10003060
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10038198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x25c]
xor esi, esi
push eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], esi
call fcn.10005e30
lea eax, [ebp - 0x25c]
push str.luminati
push eax
call fcn.10005230
add esp, 0xc
cmp dword [section..data], esi
je 0x100030cc
push dword [ebp - 0x25c]
call fcn.10005b70
add esp, 4
test eax, eax
jne 0x100030cc
lea eax, [ebp - 0x25c]
push eax
call fcn.10002d70
add esp, 4
push dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
call fcn.10005120
lea eax, [ebp - 0x258]
push str.perr_.sent
push eax
call fcn.10005230
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
cmove ebx, eax
test ebx, ebx
je 0x1000321b
push edi
jmp 0x10003120
lea eax, [ebp - 0x228]
push 0x1002eda0
push eax
call fcn.10005200
add esp, 8
test eax, eax
jne 0x100031aa
push dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
call fcn.10005120
lea eax, [ebp - 0x258]
push 0x1002edb4
push eax
call fcn.10005230
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.10005230
push 1
push 0xc
call fcn.100082cb
push dword [ebp - 0x258]
mov edi, eax
lea ecx, [edi + 8]
push ecx
call fcn.10005120
add esp, 0x28
test esi, esi
je 0x1000319f
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
jmp 0x100031a4
mov dword [edi + 4], edi
mov esi, edi
mov dword [edi], 0
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003120
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x1000321a
jmp 0x100031d0
push dword [esi + 8]
call fcn.10008427
mov edi, esi
add esp, 4
mov esi, dword [esi]
mov ecx, dword [edi]
test ecx, ecx
je 0x100031ed
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x100031f7
test esi, esi
je 0x100031f7
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
lea eax, [edi + 8]
mov dword [edi], 0
push eax
mov dword [edi + 4], 0
call fcn.100050d0
push edi
call fcn.1000830b
add esp, 8
test esi, esi
jne 0x100031d0
pop edi
lea eax, [ebp - 0x258]
push eax
call fcn.100050d0
lea eax, [ebp - 0x25c]
push eax
call fcn.100050d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
pop ebx
call fcn.100084a8
mov esp, ebp
pop ebp
ret
Function at 0x100032b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1003980c]
sub esp, 0xc
test eax, eax
jne 0x100033bb
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10005e30
lea eax, [ebp - 0xc]
push str.channel.txt
push eax
call fcn.10005230
push dword [ebp - 0xc]
call fcn.10005b00
add esp, 0x10
test eax, eax
je 0x10003398
push 0x1002efa4
push dword [ebp - 0xc]
call fcn.10005a80
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x10003398
push esi
push 2
push 0
push eax
call fcn.100075b6
push dword [ebp - 4]
call fcn.100079c9
push dword [ebp - 4]
mov esi, eax
call fcn.10007c10
add esp, 0x14
cmp esi, 0x32
jg 0x10003397
lea eax, [ebp - 8]
push esi
push eax
call fcn.10004ef0
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 8]
call fcn.1000747b
mov eax, dword [ebp - 8]
add esp, 0x18
xor ecx, ecx
mov byte [esi + eax], 0
mov edx, dword [ebp - 8]
test esi, esi
jle 0x10003389
mov al, byte [ecx + edx]
cmp al, 0x30
jl 0x1000336c
cmp al, 0x39
jle 0x10003384
cmp al, 0x41
jl 0x10003374
cmp al, 0x5a
jle 0x10003384
cmp al, 0x61
jl 0x1000337c
cmp al, 0x7a
jle 0x10003384
cmp al, 0x2e
je 0x10003384
cmp al, 0x5f
jne 0x10003397
inc ecx
cmp ecx, esi
jl 0x10003361
push edx
push 0x1003980c
call fcn.100052d0
add esp, 8
pop esi
lea eax, [ebp - 4]
push eax
call fcn.10005ae0
lea eax, [ebp - 8]
push eax
call fcn.10004f20
lea eax, [ebp - 0xc]
push eax
call fcn.100050d0
mov eax, dword [0x1003980c]
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10003620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1002f098
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10003651
imul eax, dword [ebp + 0x14], 0x64
pop edi
pop esi
inc eax
mov dword [0x10039324], eax
xor eax, eax
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000366f
imul eax, dword [ebp + 0x14], 0x64
pop edi
pop esi
add eax, 2
mov dword [0x10039324], eax
xor eax, eax
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10003690
imul eax, dword [ebp + 0x14], 0x64
pop ebx
pop edi
pop esi
add eax, 3
mov dword [0x10039324], eax
xor eax, eax
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10003750
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
imul esi, dword [ebp + 0x14], 0x64
push edi
or edi, 0xffffffff
mov dword [ebp - 8], 0
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003620
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x100038cf
lea eax, [ebp + 0x14]
push eax
call fcn.10005e30
lea eax, [ebp + 0x14]
push str.luminati
push eax
call fcn.10005230
add esp, 0xc
cmp dword [section..data], 0
je 0x100037d3
push dword [ebp + 0x14]
call fcn.10005b70
add esp, 4
test eax, eax
jne 0x100037d3
lea eax, [ebp + 0x14]
push eax
call fcn.10002d70
add esp, 4
push ebx
lea eax, [ebp + 0x14]
push 0x1002f0a8
push eax
call fcn.10005230
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
call fcn.10005230
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call fcn.10005120
lea eax, [ebp - 4]
push 0x1002f0ac
push eax
call fcn.10005230
push dword [ebp - 4]
call fcn.10008427
push dword [ebp + 0x14]
call fcn.10005b00
mov ebx, dword [ebp - 0x10]
add esp, 0x28
test eax, eax
je 0x10003877
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x14]
call fcn.100036b0
add esp, 0xc
test eax, eax
jne 0x100038cc
push dword [ebp + 0x14]
call fcn.10008427
push dword [ebp + 0x14]
call fcn.10005b00
add esp, 8
test eax, eax
je 0x1000385e
push dword [ebp - 4]
push dword [ebp + 0x14]
call fcn.10008430
add esp, 8
push dword [ebp + 0x14]
call fcn.10005b00
add esp, 4
test eax, eax
je 0x10003877
lea eax, [esi + 2]
mov dword [0x10039324], eax
jmp 0x100038ce
push str.rbe
push dword [ebp + 0x14]
call fcn.10005a80
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x100038af
push str.wbe
push dword [ebp + 0x14]
call fcn.10005a80
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x100038af
lea eax, [esi + 3]
mov dword [0x10039324], eax
jmp 0x100038ce
push eax
push ebx
push 1
push dword [ebp - 0xc]
call fcn.10007b8e
add esp, 0x10
cmp eax, ebx
je 0x100038cc
lea eax, [esi + 4]
mov dword [0x10039324], eax
jmp 0x100038ce
xor edi, edi
pop ebx
lea eax, [ebp + 0x14]
push eax
call fcn.100050d0
lea eax, [ebp - 4]
push eax
call fcn.100050d0
lea eax, [ebp - 8]
push eax
call fcn.10005ae0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 8], 0
xor esi, esi
call fcn.10005230
lea eax, [ebp - 4]
push 0x1002e738
push eax
call fcn.10005230
push dword [ebp - 4]
call fcn.10008427
push esi
call fcn.100082ac
push 0x1002e774
push dword [ebp - 4]
call fcn.10005a80
add esp, 0x20
mov dword [ebp - 8], eax
test eax, eax
jne 0x100042b8
push 0x1002e780
push dword [ebp - 4]
call fcn.10005a80
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x100042b8
call fcn.100081f3
imul esi, dword [eax], 0x64
inc esi
jmp 0x100042e3
push 0
call fcn.100082ac
push dword [ebp - 8]
push 1
push 1
push 0x1002e734
call fcn.10007b8e
add esp, 0x14
cmp eax, 1
je 0x100042e3
call fcn.100081f3
imul esi, dword [eax], 0x64
add esi, 2
lea eax, [ebp - 8]
push eax
call fcn.10005ae0
push dword [ebp - 4]
call fcn.10008427
lea eax, [ebp - 4]
push eax
call fcn.100050d0
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005770
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0x10]
push 2
push dword [edi]
call fcn.1000a035
add esp, 8
mov dword [edi], eax
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x10]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100057b3
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 4], ebx
jg 0x100057c7
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
inc eax
push esi
mov dword [ebp + 0x10], eax
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0
call fcn.1000a035
add esp, 8
mov dword [ebp - 8], eax
xor ecx, ecx
mov word [eax], cx
push ecx
push ecx
push ecx
push ecx
mov word [esi + eax], cx
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
pop esi
test eax, eax
je 0x1000580d
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
test eax, eax
je 0x10005822
push eax
call fcn.1000830b
add esp, 4
mov dword [edi], 0
mov eax, dword [ebp - 8]
mov dword [edi], eax
xor eax, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10005830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x10005858
push eax
call fcn.1000830b
add esp, 4
mov dword [edi], 0
push ebx
push 0x1002fb58
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100055c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100058e2
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100058e2
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.10009fa3
mov dword [edi], eax
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], 0
mov ecx, dword [ebp - 4]
mov byte [eax + ecx + 1], 0
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi], 0
mov esi, eax
jne 0x100058e2
push 0x1002fb42
call fcn.10009724
push dword [ebp + 0x18]
call fcn.1000830b
add esp, 8
mov ecx, dword [ebp + 0x1c]
pop ebx
test ecx, ecx
je 0x100058ef
mov eax, dword [ebp - 4]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10038198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x54], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x5c], eax
lea ebx, [ebx]
movzx eax, word [ecx + 0x1002fb5c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a], ax
test ax, ax
jne 0x10005c00
lea eax, [ebp - 0x18]
push eax
call fcn.10005a20
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.100069d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10005d05
push esi
call fcn.1000a919
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], eax
push ecx
push eax
call fcn.1000a93d
add esp, 0xc
test eax, eax
jne 0x10005d05
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x54], ecx
lea eax, [eax*2 - 2]
cdq
mov edi, eax
cmp ecx, edx
jg 0x10005c75
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
jl 0x10005c7f
cmp eax, edi
jb 0x10005c7f
mov eax, edi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
mov ecx, edx
push 0
push 2
push ecx
push eax
call fcn.1000b080
mov ecx, dword [ebp - 0x54]
mov edi, eax
mov eax, dword [ebp - 0x58]
neg eax
push 2
adc ecx, 0
neg ecx
push ecx
push eax
push dword [ebp - 0x60]
call fcn.1000acc4
mov eax, dword [ebp - 0x58]
add eax, 2
push eax
call fcn.10009fa3
push esi
push dword [ebp - 0x58]
mov dword [ebx], eax
push 1
push eax
call fcn.1000747b
mov eax, dword [ebx]
xor ecx, ecx
add esp, 0x24
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x5c]
cmp edi, eax
jle 0x10005d01
mov ebx, dword [ebx]
push eax
push 0xa
push ebx
call fcn.10006e50
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10005d01
sub eax, ebx
sar eax, 1
sub edi, eax
cmp edi, dword [ebp - 0x5c]
jle 0x10005d01
lea eax, [edi + edi]
push eax
lea eax, [ecx + 2]
push eax
push ebx
call fcn.100090c0
add esp, 0xc
xor edi, edi
jmp 0x10005d1a
mov eax, dword [ebx]
test eax, eax
je 0x10005d1a
push eax
call fcn.1000830b
add esp, 4
mov dword [ebx], 0
test esi, esi
je 0x10005d27
push esi
call fcn.1000a8a2
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100084a8
mov esp, ebp
pop ebp
ret

Function at 0x10005de0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10005df0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebx
push esi
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
push 1
lea edi, [ecx*4]
lea ecx, [edi + 4]
push ecx
call fcn.100082cb
push edi
mov esi, eax
push ebx
push esi
call fcn.1000b160
mov eax, dword [ebp + 8]
add esp, 0x14
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10005e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003800c]
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x10005e91
mov esi, dword [0x10038008]
mov ebx, eax
mov eax, dword [0x10038014]
mov edi, dword [0x10038010]
mov edx, dword [0x10038018]
mov ecx, dword [0x1003801c]
mov dword [ebp - 4], eax
jmp 0x10005f6b
cmp dword [0x10039a20], ebx
jne 0x10005eb6
push 0x10039a20
mov dword [0x10039a20], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10005f42
mov ebx, dword [0x10039a24]
mov eax, dword [0x10039a2c]
mov edi, dword [0x10039a28]
mov edx, dword [0x10039a30]
movzx ecx, word [0x10039b34]
mov dword [ebp - 4], eax
cmp ebx, 0xa
jg 0x10005f3b
jne 0x10005ee9
test edi, edi
jns 0x10005f3b
mov esi, 6
jmp 0x10005f48
cmp ebx, 6
jg 0x10005ee2
jne 0x10005f18
cmp edi, 3
jge 0x10005ee2
cmp edi, 2
jge 0x10005f11
cmp edi, 1
jge 0x10005f0a
test edi, edi
js 0x10005f34
mov esi, 3
jmp 0x10005f48
mov esi, 4
jmp 0x10005f48
mov esi, 5
jmp 0x10005f48
cmp ebx, 5
jg 0x10005f34
jne 0x10005f48
cmp edi, 2
jge 0x10005f34
cmp edi, 1
jge 0x10005f34
test edi, edi
js 0x10005f48
mov esi, 1
jmp 0x10005f48
mov esi, 2
jmp 0x10005f48
mov esi, 7
jmp 0x10005f48
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [0x10038008], esi
mov dword [0x1003800c], ebx
mov dword [0x10038010], edi
mov dword [0x10038014], eax
mov dword [0x10038018], edx
mov dword [0x1003801c], ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10005f74
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005f7d
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10005f86
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10005f92
mov esi, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10005f9e
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10005fa7
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10005fb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10038008]
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x100060c7
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x1003800c], eax
jne 0x100060c4
cmp dword [0x10039a20], ebx
jne 0x10006007
push 0x10039a20
mov dword [0x10039a20], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10006096
mov eax, dword [0x10039a2c]
mov ebx, dword [0x10039a24]
mov edi, dword [0x10039a28]
mov dword [ebp - 4], eax
mov eax, dword [0x10039a30]
mov dword [ebp - 8], eax
movzx eax, word [0x10039b34]
mov dword [ebp - 0xc], eax
cmp ebx, 0xa
jg 0x10006091
jne 0x1000603f
test edi, edi
jns 0x10006091
mov esi, 6
jmp 0x10006096
cmp ebx, 6
jg 0x10006038
jne 0x1000606e
cmp edi, 3
jge 0x10006038
cmp edi, 2
jge 0x10006067
cmp edi, 1
jge 0x10006060
test edi, edi
js 0x1000608a
mov esi, 3
jmp 0x10006096
mov esi, 4
jmp 0x10006096
mov esi, 5
jmp 0x10006096
cmp ebx, 5
jg 0x1000608a
jne 0x10006096
cmp edi, 2
jge 0x1000608a
cmp edi, 1
jge 0x1000608a
test edi, edi
js 0x10006096
mov esi, 1
jmp 0x10006096
mov esi, 2
jmp 0x10006096
mov esi, 7
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [0x10038014], ecx
mov ecx, dword [ebp - 8]
mov dword [0x10038018], ecx
mov ecx, dword [ebp - 0xc]
mov dword [0x10038008], eax
mov dword [0x1003800c], ebx
mov dword [0x10038010], edi
mov dword [0x1003801c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006360
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.1000b130
mov eax, dword [0x10038198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov eax, dword [edi]
test eax, eax
je 0x100063ac
push eax
call fcn.1000830b
add esp, 4
mov dword [edi], 0
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + 0x1002fc28]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a], ax
test ax, ax
jne 0x100063b0
lea eax, [ebp - 0x18]
push eax
call fcn.10005a20
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.100069d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100064e5
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100064dc
lea eax, [ebp - 0x101c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100064dc
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.1000747b
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jle 0x1000648a
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
push 0
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x101c]
call ebx
test eax, eax
je 0x100064d9
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.1000747b
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jg 0x10006450
or ebx, 0xffffffff
push 1
push 0x14
mov dword [ebp - 0x1024], 0x14
call fcn.100082cb
add esp, 8
mov dword [edi], eax
lea ecx, [ebp - 0x1024]
push 0
push ecx
push eax
push 2
push dword [ebp - 0x101c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100064d5
mov eax, dword [edi]
test eax, eax
je 0x100064dc
push eax
call fcn.1000830b
add esp, 4
mov dword [edi], 0
jmp 0x100064dc
xor ebx, ebx
jmp 0x100064dc
or ebx, 0xffffffff
push esi
call fcn.1000a8a2
add esp, 4
mov eax, dword [ebp - 0x1020]
test eax, eax
je 0x100064f8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x101c]
test ecx, ecx
je 0x10006509
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100084a8
mov esp, ebp
pop ebp
ret