joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000aa20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000b2e9
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10013050]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x10013050]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov dword [esp + 0x80], ebx
call fcn.10009210
cmp al, bl
jne 0x1000aaa8
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x24]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], bl
call fcn.10001380
jmp 0x1000ab56
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
call fcn.100092a0
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0xb8], 1
mov dword [esp + 0x50], esp
call fcn.10009330
lea esi, [esp + 0x70]
mov byte [esp + 0xb8], bl
call fcn.1000a740
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.1000a800
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
mov esi, 0xf
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.10001380
cmp dword [esp + 0x6c], 0x10
jb 0x1000ab2a
mov edx, dword [esp + 0x58]
push edx
call fcn.100019b5
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x1000ab4a
mov eax, dword [esp + 0x3c]
push eax
call fcn.100019b5
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x34], 0x10
jb 0x1000ab6a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100019b5
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10001985
mov esp, ebp
pop ebp
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10001880
Capabilities:
Encode data using xor

Disassembly:
xor ch, byte [edx]
aam 0xbf
cmp al, 0xb1
mov bh, 0xc9
adc edx, ebp
mov ch, 0x30
adc eax, 0x5b494f52
xor eax, edi
out dx, al
push edi
mov edi, 0xb761757b
jbe 0x1000186c
ljmp 0xdeff:0x9a4ac498
Function at 0x401080
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.crypt32.dll_CryptStringToBinaryW]
push esi
push edi
xor esi, esi
push esi
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x401154
mov ecx, dword [ebp - 4]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40114a
push 0
push 0
lea edx, [ebp - 4]
push edx
push esi
push 1
push 0
push edi
call ebx
test eax, eax
je 0x401143
mov ecx, dword [ebp - 4]
mov ebx, dword [sym.imp.crypt32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push ecx
push esi
push 8
push 1
mov dword [ebp - 8], 0
call ebx
test eax, eax
je 0x401143
mov edx, dword [ebp - 8]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x401143
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ecx
push esi
push 8
push 1
call ebx
test eax, eax
je 0x40113c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push edi
push 1
push eax
call dword [sym.imp.crypt32.dll_CryptImportPublicKeyInfo]
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401160
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, eax
cmp dword [ebp + 0x10], esi
je 0x401217
test edi, edi
je 0x401217
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.advapi32.dll_CryptEncrypt]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 1
push esi
push ecx
mov dword [ebp - 4], pe_nt_image_headers32
call ebx
test eax, eax
je 0x401205
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
test esi, esi
je 0x40120e
mov ecx, dword [ebp + 0xc]
push pe_nt_image_headers32
push ecx
push esi
call fcn.0040cb70
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add esp, 0xc
push edx
push edi
push esi
push 0
push 1
push 0
push eax
mov dword [edi], pe_nt_image_headers32
call ebx
mov esi, eax
test esi, esi
jne 0x401207
mov ebx, dword [ebp + 0x10]
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, ecx
test edi, edi
je 0x4011f8
mov byte [eax], 0
inc eax
dec edi
jne 0x4011f1
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebx], 0
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 1
push esi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.crypt32.dll_CryptBinaryToStringW]
test eax, eax
je 0x40128c
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x401284
lea eax, [ebp - 4]
push eax
push edi
push 1
push esi
push ebx
call dword [sym.imp.crypt32.dll_CryptBinaryToStringW]
mov esi, eax
test esi, esi
je 0x401275
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf0000000
push 0x18
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4012ce
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x401312
mov ecx, dword [ebp - 4]
push esi
push 0x21
push ecx
call dword [sym.imp.advapi32.dll_CryptGenRandom]
mov edx, dword [ebp - 4]
push 0
push edx
mov edi, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
test edi, edi
je 0x401312
xor ecx, ecx
push ebx
movzx eax, byte [ecx + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
inc ecx
mov al, byte [edx + 0x4190c0]
mov byte [ecx + esi - 1], al
cmp ecx, 0x20
jb 0x4012f0
mov byte [esi + 0x20], 0
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x4015e3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40163e
push 8
push 0x18
push esi
push esi
lea ecx, [ebp - 4]
push ecx
call edi
test eax, eax
je 0x40163e
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
mov eax, 0x414ed8
mov dword [ebp - 8], esi
call fcn.00401080
add esp, 8
test eax, eax
je 0x401632
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401604
mov ecx, dword [ebp + 0xc]
sub eax, edx
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, ebx
call fcn.00401320
mov edx, dword [ebp - 8]
add esp, 0xc
push edx
mov esi, eax
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401810
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x44]
push edi
add esi, 0x16
lea edi, [ebp - 4]
mov ebx, ecx
call fcn.00401710
test eax, eax
je 0x4019e3
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 4]
mov esi, 0x12
mov ecx, 0x415600
lea edx, [edx + eax + 4]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40186b
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x401853
test esi, esi
je 0x4018ae
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x4018a6
cmp esi, 1
jbe 0x4018ae
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x4018a6
cmp esi, 2
jbe 0x4018ae
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x4018a6
cmp esi, 3
jbe 0x4018ae
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x4018b0
xor eax, eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
mov dword [ecx], eax
test eax, eax
je 0x4019d2
mov eax, dword [ebx + 0x40]
lea edx, [ebp + 8]
push edx
push 0
push 0
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.advapi32.dll_CryptDuplicateHash]
test eax, eax
je 0x4019d9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push 0
push 4
push ecx
push edx
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x4019b4
mov eax, dword [ebx + 0x44]
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4019b4
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push ecx
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
mov dword [ebp - 8], eax
test eax, eax
je 0x4019ad
mov esi, dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
add esi, 4
mov edx, edi
cmp ecx, 4
jb 0x401958
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x40195c
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x401944
test ecx, ecx
je 0x40199f
movzx ebx, byte [edx]
movzx eax, byte [esi]
sub eax, ebx
jne 0x401997
cmp ecx, 1
jbe 0x40199f
movzx eax, byte [esi + 1]
movzx ebx, byte [edx + 1]
sub eax, ebx
jne 0x401997
cmp ecx, 2
jbe 0x40199f
movzx eax, byte [esi + 2]
movzx ebx, byte [edx + 2]
sub eax, ebx
jne 0x401997
cmp ecx, 3
jbe 0x40199f
movzx eax, byte [esi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x4019a1
xor eax, eax
xor edx, edx
test eax, eax
mov eax, dword [ebp + 0x10]
sete dl
mov dword [eax], edx
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x3c]
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.advapi32.dll_CryptDuplicateKey]
test eax, eax
je 0x401b76
mov edx, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b4c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push edi
mov ecx, esi
call fcn.00401810
add esp, 0xc
test eax, eax
je 0x401b45
cmp dword [ebp - 0xc], ebx
je 0x401b45
cmp dword [ebp - 0x10], ebx
je 0x401b45
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
mov ecx, dword [edi + 0x44]
mov eax, dword [ebp - 0x20]
add ecx, 0x12
sub eax, ecx
sbb dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
js 0x401a9d
jg 0x401a96
cmp eax, 0x1000000
jbe 0x401a9d
mov eax, 0x1000000
jmp 0x401aa4
mov dword [ebp - 0x14], 1
push ebx
push eax
push ebx
push 4
push ebx
mov edi, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x401b1e
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x401b14
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
push 0
push ecx
push 0
push edx
call dword [sym.imp.advapi32.dll_CryptDecrypt]
test eax, eax
je 0x401b0d
mov eax, dword [ebp - 4]
push eax
push edi
call dword [sym.imp.kernel32.dll_FlushViewOfFile]
mov ecx, dword [ebp + 8]
push ecx
push 0x415614
call fcn.00405cae
add esp, 8
push edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
cmp eax, edi
jae 0x401b29
sub edi, eax
jmp 0x401b2b
xor edi, edi
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x44]
lea ecx, [eax + edi + 0x12]
push 0
push ecx
call fcn.004017a0
mov edi, dword [ebp + 0xc]
add esp, 8
xor ebx, ebx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
cmp dword [ebp - 0xc], ebx
je 0x401b76
cmp dword [ebp - 0x10], ebx
jne 0x401b76
mov eax, dword [edi + 0x48]
mov esi, dword [sym.imp.kernel32.dll_SetEvent]
push eax
call esi
mov edi, dword [edi + 0x4c]
cmp edi, ebx
je 0x401b76
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x418008]
xor eax, esp
mov dword [esp + 0x670], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
je 0x401d54
push 0x415624
push edi
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.shlwapi.dll_PathCombineW]
test eax, eax
je 0x401d54
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x474]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x401d54
jmp 0x401bf5
mov edi, dword [esp + 0x14]
push 0
push 0
lea eax, [ebx + 0x48]
push eax
xor eax, eax
cmp dword [ebx + 0x4c], eax
setne al
inc eax
push eax
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
je 0x401d4d
cmp eax, 1
je 0x401d4d
cmp eax, 0xffffffff
je 0x401d4d
mov ecx, 0x4155fc
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401c56
test dx, dx
je 0x401c52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401c56
add eax, 4
add ecx, 4
test dx, dx
jne 0x401c30
xor eax, eax
jmp 0x401c5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401d35
mov ecx, 0x415628
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401c96
test dx, dx
je 0x401c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401c96
add eax, 4
add ecx, 4
test dx, dx
jne 0x401c70
xor eax, eax
jmp 0x401c9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401d35
lea ecx, [esp + 0x44]
push ecx
push edi
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.shlwapi.dll_PathCombineW]
test eax, eax
je 0x401d35
mov eax, dword [esp + 0x18]
test al, 0x10
je 0x401ced
test eax, 0x400
jne 0x401ced
lea edi, [esp + 0x268]
call fcn.00401650
test eax, eax
jne 0x401d35
mov eax, dword [ebp + 0xc]
push ebx
dec eax
push eax
mov ecx, edi
push ecx
call fcn.00401b80
add esp, 0xc
jmp 0x401d35
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.shlwapi.dll_PathFindExtensionW]
lea ecx, [esp + 0x44]
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401d00
sub ecx, esi
sar ecx, 1
lea ecx, [esp + ecx*2 + 0x44]
cmp eax, ecx
je 0x401d35
push eax
call fcn.00401690
add esp, 4
test eax, eax
je 0x401d35
lea edx, [esp + 0x268]
push ebx
push edx
call fcn.004019f0
add esp, 8
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x401bf1
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
mov ebx, dword [esi + 0x30]
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x8003
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x401de2
mov edx, dword [ebp - 4]
push edi
push 0x21
lea ecx, [esi + 0xc]
push ecx
push edx
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x401de2
mov eax, dword [ebp - 4]
lea edi, [esi + 0x3c]
push edi
push 1
push eax
push 0x660e
push ebx
call dword [sym.imp.advapi32.dll_CryptDeriveKey]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
test esi, esi
je 0x401dd9
mov edi, dword [edi]
call entry0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401df0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov eax, dword [esi + 0x30]
push ebx
push edi
lea edi, [esi + 0x40]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x401e37
mov ecx, dword [edi]
push ebx
push 0x21
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x401e37
mov edx, dword [edi]
push ebx
lea eax, [esi + 0x44]
push eax
push ebx
push 2
push edx
mov dword [eax], ebx
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
pop edi
pop ebx
ret
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x401f30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, 0x1f
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
lea ebx, [ebx]
mov eax, 1
shl eax, cl
test dword [ebp - 0x14], eax
je 0x401ff4
lea eax, [ebp - 0xc]
add ecx, 0x41
xor edx, edx
push eax
mov word [ebp - 0xc], cx
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 6], dx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x401ff4
push 0x50
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x401ff4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov dword [eax], 0
mov dword [eax + 0x34], 0x414ed8
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
lea edi, [eax + 0xc]
mov ecx, 8
push 0
rep movsd dword es:[edi], dword [esi]
push 0
push eax
push 0x401e40
push 0
push 0
movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x401ff4
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
dec ecx
mov dword [ebp - 0x10], ecx
jns 0x401f60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x402020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44c9cc]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x402068
push eax
push eax
push 3
push eax
push eax
push eax
push 0x415658
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40205a
mov eax, 0x591
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x44c9cc]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x402098
call dword [sym.imp.kernel32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret