joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100024e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10024848
push str.ntdll
xor bl, bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x1000261d
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000260a
push esi
push 0x18
lea eax, [ebp - 0x24c]
push eax
push esi
push edi
call dword [ebp - 0x234]
test eax, eax
push edi
cmove esi, dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1000260a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100172e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10002603
cmp esi, dword [ebp - 0x228]
je 0x100025c0
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100025a4
jmp 0x10002603
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100025d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xc
jne 0x10002601
push ecx
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.1000e8a3
add esp, 0xc
test eax, eax
jne 0x10002601
mov bl, 1
jmp 0x10002603
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret

Function at 0x10007330
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x10025054
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x10025070
push edi
call esi
push 0x10025078
push edi
mov dword [ebp - 4], eax
call esi
push str.GetModuleHandleA
push edi
mov ebx, eax
call esi
mov edi, dword [ebp - 4]
mov esi, eax
test edi, edi
je 0x100073c9
test ebx, ebx
je 0x100073c9
test esi, esi
je 0x100073c9
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x20
push eax
lea edx, [eax + 0x10]
mov dword [eax], edi
push edx
mov dword [eax + 8], esi
mov edi, edx
push 0
mov dword [eax + 4], ebx
mov ecx, 0x40
mov esi, 0x100075c0
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100073c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af03d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0040dc10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c767
test al, 0x10
jbe 0x40c767
mov bl, 1
jmp 0x40c769
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c7a8
mov edx, dword [ebp - 0x28]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40c7c4
add eax, eax
cmp eax, 0x1000
jb 0x40c79f
test cl, 0x1f
jne 0x40c7c4
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40c7c4
sub ecx, edx
cmp ecx, 4
jb 0x40c7c4
cmp ecx, 0x23
ja 0x40c7c4
push edx
call fcn.0041211c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
call fcn.0047f6df
int3

Function at 0x40c800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af07d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
call fcn.0040c700
test al, al
je 0x40c852
mov bl, 1
jmp 0x40c8b8
push 0
push esi
call fcn.004a0750
add esp, 8
test eax, eax
jne 0x40c870
mov ecx, esi
call fcn.0040c700
test al, al
jne 0x40c870
xor bl, bl
jmp 0x40c8b8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0040dc10
test bl, bl
je 0x40c89e
lea ecx, [ebp - 0x28]
call fcn.0040ddf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jmp 0x40c8b5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c8f7
mov edx, dword [ebp - 0x28]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40c914
add eax, eax
cmp eax, 0x1000
jb 0x40c8ee
test cl, 0x1f
jne 0x40c914
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40c914
sub ecx, edx
cmp ecx, 4
jb 0x40c914
cmp ecx, 0x23
ja 0x40c914
push edx
call fcn.0041211c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
call fcn.0047f6df
int3
Function at 0x40c920
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0040d990
add esp, 4
test al, al
je 0x40c9cf
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0040c700
test al, al
jne 0x40c9cf
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dl, 1
cmovae ecx, dword [ebp - 0x28]
call fcn.0040c800
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
mov eax, dword [ebp - 0x14]
sete bl
cmp eax, 8
jb 0x40ca2a
mov edx, dword [ebp - 0x28]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40ca9b
add eax, eax
cmp eax, 0x1000
jb 0x40ca21
test cl, 0x1f
jne 0x40ca9b
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40ca9b
sub ecx, edx
cmp ecx, 4
jb 0x40ca9b
cmp ecx, 0x23
ja 0x40ca9b
push edx
call fcn.0041211c
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40ca7d
mov edx, dword [ebp - 0x40]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40ca9b
add eax, eax
cmp eax, 0x1000
jb 0x40ca74
test cl, 0x1f
jne 0x40ca9b
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40ca9b
sub ecx, edx
cmp ecx, 4
jb 0x40ca9b
cmp ecx, 0x23
ja 0x40ca9b
push edx
call fcn.0041211c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
call fcn.0047f6df
int3

Function at 0x40cab0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call fcn.004a0750
add esp, 8
test eax, eax
jne 0x40caf3
mov ecx, esi
call fcn.0040c700
test al, al
jne 0x40caf3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 5
or eax, 0x80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
ret
mov al, 1
pop esi
ret
Function at 0x40cb00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, 1
call fcn.0040c700
test al, al
je 0x40cbcd
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x216], 0
mov dword [ebp - 0x228], eax
xorps xmm0, xmm0
mov dword [ebp - 0x224], eax
mov eax, 0x614
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
test eax, eax
je 0x40cbcd
test esi, esi
je 0x40cbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DeleteDirectory_Failed_Dir_is__s__Error_code_is__d
push 1
call fcn.0040bbb0
push eax
call fcn.0040bac0
add esp, 0x14
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
Function at 0x40d720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], edx
mov edi, ecx
mov dword [ebp - 0x60], edi
mov byte [ebp - 0x55], 0
push 0x4d7574
push edi
mov dword [ebp - 4], 0
call fcn.004889c7
mov esi, eax
add esp, 8
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x40d84b
push esi
call fcn.004898df
push 0
push 0
push esi
mov dword [ebp - 0x5c], eax
call fcn.00489184
push esi
call fcn.004898df
push 2
push 0
push esi
mov edi, eax
call fcn.00489184
push esi
call fcn.004898df
push 0
push dword [ebp - 0x5c]
sub eax, edi
push esi
mov dword [ebp - 0x64], eax
call fcn.00489184
mov edi, dword [ebp - 0x64]
add esp, 0x30
test edi, edi
je 0x40d836
push edi
call fcn.0047fec0
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x40d848
push esi
push edi
push 1
push eax
call fcn.00488d1e
add esp, 0x10
mov dword [ebp - 0x64], eax
cmp eax, edi
je 0x40d807
push esi
call fcn.004a0826
add esp, 4
test eax, eax
jne 0x40d800
push esi
call fcn.00488b1a
xor esi, esi
add esp, 4
mov dword [ebp - 0x6c], esi
xor eax, eax
jmp 0x40d803
mov eax, dword [ebp - 0x64]
cmp eax, edi
jne 0x40d828
lea eax, [ebp - 0x24]
mov edx, edi
mov edi, dword [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.004106f0
add esp, 4
mov byte [ebp - 0x55], al
push edi
call fcn.0047feb0
add esp, 4
jmp 0x40d848
mov edi, dword [ebp - 0x5c]
push edi
call fcn.0047feb0
add esp, 4
jmp 0x40d848
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x55], 1
mov edi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40d85f
push esi
call fcn.00488b1a
add esp, 4
cmp byte [ebp - 0x55], 0
jne 0x40d8a2
test edi, edi
je 0x40d920
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d872
sub ecx, edx
sar ecx, 1
je 0x40d920
push edi
push 0x4d74b0
push 2
call fcn.0040bbb0
push eax
call fcn.0040bac0
add esp, 0x10
jmp 0x40d920
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x24]
mov esi, 0x10
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40d8c5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40d8b0
mov al, 1
jmp 0x40d922
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x54]
call fcn.0040dff0
mov esi, eax
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.0040dff0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x40d8f0
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40d8f8
mov eax, dword [eax]
push esi
push eax
push edi
push str._s_Verify_Failed_Expected_SHA1_is__s_Real_SHA1_is__s
push 2
call fcn.0040bbb0
push eax
call fcn.0040bac0
add esp, 0x18
lea ecx, [ebp - 0x3c]
call fcn.00409ef0
lea ecx, [ebp - 0x54]
call fcn.00409ef0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
Function at 0x40d940
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
lea eax, [esp]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x14]
movlpd qword [esp + 0xc], xmm0
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40d976
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40ddf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af296
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jbe 0x40dfe4
cmp dword [esi + 0x14], 8
jb 0x40de32
mov eax, dword [esi]
jmp 0x40de34
mov eax, esi
cmp word [eax], 0x2e
jne 0x40dfc5
lea eax, [ebp - 0x420]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40dfc5
xor eax, eax
mov dword [ebp - 0x43c], 7
push 0x4d74ac
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.0040a170
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x428], 0
call fcn.0040a170
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x480]
call fcn.0040e2a0
push esi
push eax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 2
push eax
call fcn.0040e210
add esp, 0x10
mov ecx, esi
push eax
call fcn.00409f50
lea ecx, [ebp - 0x468]
call fcn.00409ef0
lea ecx, [ebp - 0x480]
call fcn.00409ef0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40df63
mov edx, dword [ebp - 0x438]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40dfdf
add eax, eax
cmp eax, 0x1000
jb 0x40df5a
test cl, 0x1f
jne 0x40dfdf
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40dfdf
sub ecx, edx
cmp ecx, 4
jb 0x40dfdf
cmp ecx, 0x23
ja 0x40dfdf
push edx
call fcn.0041211c
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x40dfc5
mov edx, dword [ebp - 0x450]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x40dfdf
add eax, eax
cmp eax, 0x1000
jb 0x40dfbc
test cl, 0x1f
jne 0x40dfdf
mov edx, dword [ecx - 4]
cmp edx, ecx
jae 0x40dfdf
sub ecx, edx
cmp ecx, 4
jb 0x40dfdf
cmp ecx, 0x23
ja 0x40dfdf
push edx
call fcn.0041211c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret
call fcn.0047f6df
call fcn.0040a7f0
int3
Function at 0x40e510
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x14], 8
jb 0x40e521
mov edi, dword [esi]
jmp 0x40e523
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 5
or eax, 0x80
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x40e542
mov esi, dword [esi]
push 0x4d762c
push esi
call fcn.004889c7
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e55b
lea edi, [eax + 0x1d]
jmp 0x40e593
mov edi, dword [ebx + 8]
sub edi, dword [ebx + 0xc]
je 0x40e5ac
push esi
push 1
push edi
push dword [ebx]
call fcn.00489bc1
add esp, 0x10
test eax, eax
jne 0x40e582
push esi
call fcn.00488b1a
add esp, 4
xor esi, esi
xor edi, edi
mov eax, dword [ebx + 8]
mov ecx, esi
sub eax, dword [ebx + 0xc]
cmp edi, eax
je 0x40e5a6
mov edi, 5
test esi, esi
je 0x40e5a0
push esi
call fcn.00488b1a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov esi, ecx
test ecx, ecx
je 0x40e5bb
push esi
call fcn.0048cb75
push esi
call fcn.00488b1a
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40ec30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af393
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x500ef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0040a720
mov dword [edi], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x24], 7
mov dword [edi + 0x20], 0
mov word [edi + 0x10], ax
mov dword [edi + 0x28], eax
mov byte [edi + 0x2c], al
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0040fde0
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4106f0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x4107fb
test esi, esi
je 0x4107fb
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x410742
push str.sha1Hash:acqure_context_failed
push 0
call fcn.0040bbb0
push eax
call fcn.0040bac0
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410763
push str.create_crypt_hash_failed
jmp 0x41072a
push 0
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41077b
push str.sha1Hash:crypth_hash_failed
jmp 0x41072a
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call esi
test eax, eax
jne 0x4107ae
push str.sha1Hash:get_hash_size_failed
jmp 0x41072a
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4107cc
push str.sha1Hash:calculate_the_sha1_failed
jmp 0x41072a
cmp dword [ebp - 8], 0x14
je 0x4107dc
push str.sha1Hash:the_length_of_sha1_is_mismatched_by_expected
jmp 0x41072a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xf0000000
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
pop edi
pop esi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4114e9
Capabilities:
Create directory

Disassembly:
push 0x60
mov eax, 0x4af587
call fcn.0047a6c1
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], edi
push ecx
push 0x5c
push eax
call fcn.00411050
mov eax, dword [ebp - 0x68]
add esp, 0xc
mov esi, dword [ebp - 0x6c]
sub eax, esi
cdq
push 0x18
pop ecx
idiv ecx
mov ecx, eax
mov dword [ebp - 0x5c], ecx
test ecx, ecx
jne 0x411533
mov ebx, edi
jmp 0x411634
push 7
pop eax
xor edx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], dx
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test ecx, ecx
jle 0x4115e9
imul eax, edi, 0x18
mov dword [ebp - 0x60], eax
test edi, edi
jne 0x411577
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x411569
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411fe6
jmp 0x4115c8
push 0x4b8d3c
lea ecx, [ebp - 0x58]
call fcn.00410cc6
mov ecx, dword [ebp - 0x60]
add ecx, esi
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e210
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 3
jb 0x4115a9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411fe6
lea ecx, [ebp - 0x40]
call fcn.00411fa2
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00411fa2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc edi
cmp edi, dword [ebp - 0x5c]
jl 0x411553
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x411623
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x41161a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00411cec
mov eax, dword [ebp - 0x5c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00479ff8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x41168c
mov edi, esi
cmp edi, dword [ebp - 0x68]
je 0x411653
push 0x18
pop esi
mov ecx, edi
call fcn.00411fa2
add edi, esi
cmp edi, dword [ebp - 0x68]
jne 0x411642
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x64]
sub eax, esi
mov dword [ebp - 0x60], esi
push 0x18
cdq
pop ecx
idiv ecx
imul eax, eax, 0x18
mov dword [ebp - 0x5c], eax
cmp eax, 0x1000
jb 0x411683
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00411cec
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
pop ecx
pop ecx
push eax
push esi
call fcn.00479ff8
pop ecx
pop ecx
mov eax, ebx
call fcn.0047a67f
ret