joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403664
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403698
mov edx, dword [eax + 8]
test edx, edx
jne 0x403687
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403694
add edx, esi
cmp ebx, edx
jb 0x4036a5
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x40367d
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4036e0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x4036fa
xor eax, eax
jmp 0x40387a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40370e
xor eax, eax
jmp 0x40387a
cmp word [ebx + 0x14], 0xe0
jne 0x40371e
cmp word [ebx + 0x18], 0x10b
je 0x403725
xor eax, eax
jmp 0x40387a
mov dword [0x4a89fc], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403664
add esp, 8
test eax, eax
jne 0x403750
xor eax, eax
jmp 0x40387a
mov edx, dword [0x4a89fc]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004036ac
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403782
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40387a
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x40384c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40383e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403839
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403830
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403825
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403825
test cl, cl
je 0x40381a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403825
add eax, 2
add edx, 2
test cl, cl
jne 0x4037fe
jne 0x403825
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x40387a
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x4037e4
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4037bc
jmp 0x403878
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403870
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40386c
cmp dword [eax], 0
je 0x40386c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x40387a
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403853
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a38
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401dc0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aeb
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aeb
mov eax, fcn.00403c68
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aeb
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403aeb
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403ab3
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403b08
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401dc0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403bbe
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403bbe
mov eax, fcn.00403b08
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403bbe
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403bbe
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403b86
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403cb8
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401dc0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d6e
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d6e
mov eax, fcn.00403c68
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d6e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403d6e
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d36
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404dac
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x406874
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406890
call fcn.00407c40
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4068ab
test bl, 1
je 0x4068ab
mov dword [0x493128], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x406a58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x406a77
mov eax, dword [0x492250]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x406a84
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x406ab1
je 0x406ac3
sub ecx, 0x100
je 0x406ad1
sub ecx, 0x100
je 0x406ad8
sub ecx, 0x100
je 0x406aca
jmp 0x406adf
sub ecx, 0x600
je 0x406ad8
sub ecx, 0x100
je 0x406ac3
jmp 0x406adf
mov edi, 1
jmp 0x406ae4
mov edi, 2
jmp 0x406ae4
mov edi, 4
jmp 0x406ae4
mov edi, 5
jmp 0x406ae4
mov edi, 3
test byte [ebp + 0xd], 1
je 0x406b0b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x491cc8]
test al, 0x80
je 0x406b04
mov ebx, 0x80
jmp 0x406b1d
mov ebx, 1
jmp 0x406b1d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406b1d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x406b2f
je 0x406b38
dec eax
je 0x406b41
jmp 0x406b4a
mov dword [ebp - 4], 0x80000000
jmp 0x406b59
mov dword [ebp - 4], 0x40000000
jmp 0x406b59
mov dword [ebp - 4], 0xc0000000
jmp 0x406b59
push 1
call fcn.00407bdc
pop ecx
mov ebx, eax
jmp 0x406c49
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x406b75
sub eax, 0x10
je 0x406b7c
sub eax, 0x10
je 0x406b85
sub eax, 0x10
je 0x406b8e
jmp 0x406b8e
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x406b95
mov dword [ebp - 8], 1
jmp 0x406b95
mov dword [ebp - 8], 2
jmp 0x406b95
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x406c02
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x406bf7
test byte [ebp + 0xd], 1
je 0x406bf2
mov ebx, 0x50
jmp 0x406bf7
mov ebx, 2
push ebx
call fcn.00407bdc
pop ecx
mov ebx, eax
jmp 0x406c49
mov edi, esi
push edi
call fcn.004069c8
pop ecx
test eax, eax
je 0x406c16
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x406c22
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00407920
add esp, 8
mov ebx, eax
inc eax
jne 0x406c49
push 4
call fcn.00407bdc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40bb66
call fcn.0040bab4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405558
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405558
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40bbcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x493130], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40bca6
cmp dword [0x49312c], 0
jne 0x40bca6
cmp dword [0x493320], 0
je 0x40bc60
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040b9b4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40bc46
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040b9b4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40bc46
lea ebx, [ebp - 0x84]
jmp 0x40bc47
inc ebx
call fcn.0040bb88
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40bce1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x493134
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405558
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x493137
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40bce1
cmp dword [0x49312c], 0
je 0x40bcc0
cmp dword [0x49312c], 0xffffffff
je 0x40bce1
push esi
call dword [0x49312c]
pop ecx
mov eax, dword [0x493130]
test eax, eax
je 0x40bce1
cmp dword [0x493130], 0xffffffff
je 0x40bce1
cmp byte [eax], 0
je 0x40bce1
push esi
push eax
call fcn.0040bb04
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c75c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4ab634], 0
jne 0x40c7dd
cmp dword [0x4ab654], 0
jne 0x40c78c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4ab654], eax
test eax, eax
jne 0x40c78c
push str.GetEnvironmentStrings_failed
call fcn.0040bcf8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4ab654]
jmp 0x40c7a0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405558
pop ecx
mov edi, eax
test eax, eax
jne 0x40c798
lea edi, [ebp + 1]
push edi
call fcn.00404364
pop ecx
mov ebx, eax
mov dword [0x4ab638], ebx
test ebx, ebx
jne 0x40c7ca
xor eax, eax
jmp 0x40c8a0
push edi
mov edx, dword [0x4ab654]
push edx
push ebx
call fcn.00405368
add esp, 0xc
jmp 0x40c7fd
xor esi, esi
mov ebx, dword [0x4ab634]
jmp 0x40c7f7
push eax
call fcn.00405558
pop ecx
test eax, eax
jne 0x40c7f3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c7e7
lea ebx, [esi + 4]
push 4
mov dword [0x4ab63c], ebx
inc ebx
push ebx
call fcn.00403e20
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40c820
xor eax, eax
jmp 0x40c8a0
cmp dword [0x4ab634], 0
jne 0x40c851
xor esi, esi
mov ebx, dword [0x4ab638]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40c842
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405558
pop ecx
mov edi, eax
test eax, eax
jne 0x40c838
jmp 0x40c882
xor esi, esi
mov ebx, dword [0x4ab634]
mov eax, dword [esp]
mov edi, eax
jmp 0x40c87c
push eax
call fcn.00405558
pop ecx
test eax, eax
je 0x40c871
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40c875
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c860
mov eax, dword [0x4ab634]
test eax, eax
je 0x40c892
push eax
call fcn.00404374
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4ab634], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x493d90
sub eax, eax
test esi, esi
je 0x40f314
sub eax, 1
test ecx, ecx
je 0x40f312
test esi, 3
je 0x40f272
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f257
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40f2f9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f280
mov ecx, edx
test ecx, ecx
je 0x40f312
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f2ff
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40f5f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040f67b
jae 0x40f606
xor ecx, ecx
call fcn.0040f67b
jae 0x40f635
xor eax, eax
call fcn.0040f67b
jae 0x40f645
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040f67b
adc al, al
jae 0x40f627
jne 0x40f671
stosb byte es:[edi], al
jmp 0x40f609
call fcn.0040f687
sub ecx, ebx
jne 0x40f64e
call fcn.0040f685
jmp 0x40f66d
lodsb al, byte [esi]
shr eax, 1
je 0x40f697
adc ecx, ecx
jmp 0x40f66a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040f685
cmp eax, 0x7d00
jae 0x40f66a
cmp ah, 5
jae 0x40f66b
cmp eax, 0x7f
ja 0x40f66c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40f609
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40fd14
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
test eax, eax
je 0x40fd51
push ebx
call sub.KERNEL32.DLL_GetFileType
test eax, eax
je 0x40fd51
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0x491d00
call fcn.00408450
add esp, 0xc
jmp 0x40fea9
mov eax, dword [ebp + 8]
jmp 0x40fe2b
lea edx, [ebp + 0xc]
push edx
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
call fcn.0040827c
mov byte [ebp - 5], 0
add esp, 0x10
call sub.KERNEL32.DLL_GetVersion
cmp eax, 0x80000000
jae 0x40fe94
call fcn.0040fc5c
test eax, eax
je 0x40fe94
push str.OPENSSL
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
mov ebx, eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push 0
push edx
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.ADVAPI32.DLL_ReportEventA
push ebx
call sub.ADVAPI32.DLL_DeregisterEventSource
jmp 0x40fea9
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
mov edi, dword [ebp - 0x110]
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x108]
pop ebp
ret

Function at 0x411e68
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, 1
pop ebp
ret
Function at 0x4158fc
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
xor edx, edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
pop ebp
ret

Function at 0x415958
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
xor edx, edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0x20
mov eax, 1
pop ebp
ret

Function at 0x41829c
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], edx
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret

Function at 0x418348
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], edx
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret