joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45f008], 0x8088405
inc edx
mov dword [ebx + 0x45f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cb95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb7d
add dl, dl
jne 0x41cba0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbf1
xor eax, eax
add dl, dl
jne 0x41cbad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc8e
add dl, dl
jne 0x41cbbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbdd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cbe7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cb8c
mov eax, 1
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cbf6
sub eax, ebx
mov ebx, 1
jne 0x41cc3d
mov ecx, 1
add dl, dl
jne 0x41cc23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ccaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cb8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d828
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d83b
add esp, 0xfffffff0
call fcn.00403da8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d861
cmp dword [esi + 0x58], 0x40
jb 0x41da47
jmp 0x41d867
jl 0x41da47
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e80
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d3e4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41da47
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41da47
cmp ecx, 0x10000
jge 0x41da47
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d8c2
cmp eax, dword [esi + 0x58]
ja 0x41da47
jmp 0x41d8c8
jg 0x41da47
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e80
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d3e4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41da47
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d3e4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d97f
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d943
cmp eax, dword [esi + 0x58]
ja 0x41d9d0
jmp 0x41d949
jg 0x41d9d0
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d3e4
mov byte [ebx + 4], 1
jmp 0x41d9d0
cmp ax, 0x14c
jne 0x41d9d0
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d9a0
cmp eax, dword [esi + 0x58]
ja 0x41d9d0
jmp 0x41d9a2
jg 0x41d9d0
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d3e4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41da47
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da01
cmp eax, dword [esi + 0x58]
ja 0x41da47
jmp 0x41da03
jg 0x41da47
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x4492fc]
call fcn.00405b74
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d3e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41da5e
call fcn.00403e00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e758
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44ac17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e809
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e7f2
test esi, esi
jbe 0x41e809
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e7e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e809
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e7c1
jmp 0x41e809
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e809
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ac1e
ret
Function at 0x41f04c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x44b5fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f087
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f0a0
lea eax, [ebp - 0x10]
mov edx, dword [0x46123c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f0b3
lea eax, [ebp - 0x10]
mov edx, dword [0x46123c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f0bf
adc edx, 0
mov edx, dword [edx*4 + 0x4600d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1cd
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f1c0
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f1c0
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f1c0
cmp dx, 0x150
ja 0x41f1c0
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f1c0
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f1e5
inc ebx
cmp ebx, 0x19
jne 0x41f079
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b602
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1002c5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1002c5af
pop dword [ebp - 0x50]
mov eax, 0x1002c5af
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x62798
push 0
mov eax, 0x597ea19f
add eax, 0xb68c3f55
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x49ca
xor esi, esi
add esi, eax
mov edi, 0x32c88b41
add edi, 0xdd4a20bf
add edi, dword [ebp - 0x50]
mov ebx, 0x289af772
xor dword [ebp - 4], edi
mov edx, dword [edi]
add dword [ebp - 0x48], 0x23ab66d5
sub edx, ebx
xor dword [ebp - 0x18], eax
mov dword [esi], edx
xor dword [ebp - 0x40], ebx
add esi, 4
add edi, 4
loop 0x1002c5ff
add eax, 0x5b36c5e0
add eax, 0xa4ca541b
mov ebx, eax
add eax, 5
mov ecx, sym.msoidcliL.dll_Ordinal_9
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10047e50
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a56a9
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1010df64]
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 dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov eax, dword [0x1010df30]
mov ecx, 0x1010df30
mov byte [ebp - 4], 1
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x124], 0
call fcn.10013bd0
mov ecx, eax
call fcn.10013cd0
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x10047efa
push 0x80070057
call fcn.1002c5a0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x10047f17
push edi
lea ecx, [ebp + 8]
call fcn.1002c5a0
mov eax, dword [ebp + 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.1002c5a0
mov eax, dword [ebp + 8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x10047ef0
mov dword [eax - 0xc], edi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax + edi*2], cx
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push str.wstrUserName_s
push str.IDCRL::DeleteUserAllExtendedProperties
push eax
push str.d:_bt20572clientwlidsspwlidsvccorecredentialbag.cpp_40
lea eax, [ebp - 0x11c]
push 2
push eax
call fcn.1002c5a0
add esp, 0x1c
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
je 0x10048004
lea eax, [ebp - 0x124]
push eax
push 0x20006
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov edi, eax
test edi, edi
je 0x10047fa6
jg 0x10047f95
mov dword [ebp - 0x120], edi
jmp 0x1004800a
movzx edi, di
or edi, 0x80070000
mov dword [ebp - 0x120], edi
jmp 0x1004800a
push 0x39
push str.SoftwareMicrosoftMSOIdentityCRLUserExtendedProperties_
lea ecx, [ebp - 0x128]
call fcn.1002c5a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x128]
push dword [eax - 0xc]
push eax
call fcn.1002c5a0
mov esi, dword [ebp - 0x128]
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10047ff8
cmp eax, 2
je 0x10047ff8
test eax, eax
jle 0x10047ff2
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x120], eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.1002c5a0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10048039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1004805a
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10001e17
mov esp, ebp
pop ebp
ret 4
Function at 0x1004bac0
Capabilities:
Write file on windows

Disassembly:
call fcn.1002c5a0
call fcn.1000ddf0
mov ecx, eax
call fcn.1000d310
mov ecx, dword [0x1011169c]
test ecx, ecx
je 0x1004bb06
push esi
call fcn.1002c5a0
mov esi, dword [0x1011169c]
test esi, esi
je 0x1004bafb
mov ecx, esi
call fcn.1002c5a0
push esi
call fcn.1000863f
add esp, 4
mov dword [0x1011169c], 0
pop esi
jmp fcn.1004de70
Function at 0x408676
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40867e
mov dword [ecx*4 + 0x417920], eax
inc ecx
cmp ecx, 0x100
jb 0x408679
mov edx, 0x800
jmp 0x4086cb
mov eax, dword [ecx*4 + 0x417520]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417920]
inc ecx
mov dword [ecx*4 + 0x41791c], eax
cmp ecx, edx
jb 0x4086aa
mov dword [0x417800], 0x412070
call fcn.0040d806
test eax, eax
pop esi
jne 0x4086ed
mov dword [0x417800], 0x411f90
ret

Function at 0x4113ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4113e7
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x41140a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x41140f
inc esi
cmp esi, dword [ebp - 4]
jb 0x411401
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x411504
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411463
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x41143a
cmp cl, 0xff
jne 0x41148e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41149c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4114a3
dec ecx
shl edx, cl
and edx, 7
je 0x41142b
movzx ecx, byte [edx + 0x414b90]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x414b88], 0
mov cl, byte [ebx + 4]
je 0x41148b
test cl, cl
je 0x41148b
cmp cl, 0xff
jne 0x41142b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4113fc
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4114d7
movzx edi, byte [edx + 0x414b90]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4114c2
cmp al, 0xff
jne 0x4114d4
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x411455
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4113fc
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x100042d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x2c]
push ebx
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea edi, [esi + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x10033008
push ebp
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov edi, eax
and eax, 0xffff
mov ecx, ebx
mov dword [esp + 0x20], eax
shr ecx, 0x10
mov eax, 0x51eb851f
and ebx, 0xffff
mul ecx
mov esi, edx
shr esi, 5
shr edi, 0x10
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 2
sub ecx, eax
mov dword [esp + 0x28], ecx
call fcn.100091c0
mov edx, dword [esp + 0x20]
lea eax, [edi + edi*4]
add esp, 4
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
lea eax, [edx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
pop ebx
add esp, 0x120
ret

Function at 0x1000958d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x1000e8a9
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov byte [ecx], al
ret

Function at 0x1001206a
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push 0x2b
mov dword [ebp - 8], esi
mov dword [esi], 0xb7e15163
lea eax, [esi + 4]
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x10012084
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jb 0x1001209c
mov dword [ebp + 8], edi
xor ecx, ecx
jmp 0x100120b8
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x2c
xor edx, edx
pop ebx
div ebx
mov eax, dword [ebp + 8]
push 0x20
and eax, 7
lea edx, [esi + edx*4]
mov esi, dword [edx]
add esi, ecx
add edi, esi
mov esi, edi
shr esi, 0x1d
shl edi, 3
or edi, esi
lea esi, [ebp + eax*4 - 0x28]
add ecx, edi
mov dword [edx], edi
mov eax, dword [esi]
mov dword [ebp - 4], ecx
and dword [ebp - 4], 0x1f
add eax, ecx
pop ecx
mov ebx, eax
sub ecx, dword [ebp - 4]
shr ebx, cl
mov ecx, dword [ebp - 4]
shl eax, cl
or ebx, eax
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x84
mov ecx, ebx
mov dword [esi], ecx
jb 0x100120b5
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407854
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4e939b
push 0x4e939b
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x50ca68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40789a
push 6
call fcn.004c46d2
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40abb0
push 6
call fcn.004c46d2
add esp, 4
jmp 0x40abb5
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40abbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40abfb
push 6
call fcn.004c46d2
add esp, 4
jmp 0x40ac00
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4af3a7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4af3e2
push 6
call fcn.004c46d2
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c6090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af445
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c5740
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4af469
push 6
call fcn.004c46d2
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c6090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af4cc
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c5740
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4af4f0
push 6
call fcn.004c46d2
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c6090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af553
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c5740
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4af55b
mov esp, ebp
pop ebp
ret