joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c9b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00578a80
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x48ca30
mov cl, byte [edi]
test cl, cl
je 0x48ca30
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x48c9e0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x48cab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00578a80
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x48cb33
mov al, byte [ebx]
test al, al
je 0x48cb33
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.0048a990
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x48cad7
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4aeae0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4aeb22
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4aeb02
pop ebx
pop edi
pop esi
ret
Function at 0x4c9040
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.00578a80
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4c9088
call fcn.00460fc0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
push 0
push 0x87
push 0x20
call fcn.00461170
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.00481b30
add esp, 8
test eax, eax
je 0x4c9117
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4c911e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4c911e
call fcn.00460fc0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461170
call fcn.00460fc0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
push 0
push 0x89
push 0x20
call fcn.00461170
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4c918f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4c918f
call fcn.00460fc0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461170
call fcn.00460fc0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
push 0
push 0x8a
push 0x20
call fcn.00461170
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00481de0
add esp, 4
push eax
push esi
call fcn.00481dd0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c921b
push eax
call fcn.004c8f50
add esp, 4
test eax, eax
jne 0x4c9117
call fcn.00460fc0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461170
call fcn.00460fc0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.004610c0
push 0
push 0x67
push 0x20
call fcn.00461170
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x4ca290
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x4ca2a8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x4ca2ad
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x4ca385
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x4ca319
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x4ca365
shl eax, 0x10
cmp esi, 2
jne 0x4ca329
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x4ca34c
mov al, 0x3d
jmp 0x4ca355
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x4ca2c3
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4fb690
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00578a80
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x4fb6d9
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x4fb6d9
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x4fb6c0
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
bswap edx
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x4fb774
mov edi, eax
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
bswap eax
mov dword [edi + 0xc], eax
test edx, edx
jne 0x4fb756
mov edx, 0xc
mov eax, 1
nop word [eax + eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x4fb740
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x4fb6f1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x4fb7d2
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x2c]
add edx, 1
bswap edx
mov dword [eax + 0xc], edx
jne 0x4fb7ad
push eax
call fcn.004fb810
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x4fb7c0
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x57925b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x57929a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57929a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57929a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57929a
cmp dword [ecx + 0x74], 0xe
jbe 0x57929a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x590b18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005907c9

Function at 0x590b23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00590953

Function at 0x59922e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00598d81

Function at 0x5a0820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a084d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a084d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40193c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, 0x118
lea edi, [ebp - 0x120]
call fcn.00405eda
mov eax, edi
push 0x2c
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
je 0x401983
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_atoi
pop ecx
mov dword [ebp - 4], eax
mov byte [esi], bl
lea eax, [ebp - 0x120]
lea esi, [ebp - 0x23c]
call fcn.00405f55
cmp byte [ebp - 0x23c], 0x22
lea eax, [ebp - 0x23b]
je 0x4019a5
mov eax, esi
push eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax - 0x121]
cmp byte [eax], 0x22
pop ecx
jne 0x4019cf
mov byte [eax], bl
lea eax, [ebp - 0x120]
push 0x5c
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
jne 0x401a93
mov edi, 0x104
push edi
lea eax, [ebp - 0x343]
push ebx
push eax
mov byte [ebp - 0x344], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [edi - 2]
push esi
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x344]
push eax
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strlen
add ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jae 0x401a93
lea eax, [ebp - 0x344]
push eax
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
cmp eax, edi
pop ecx
pop ecx
jae 0x401a77
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x23c]
call fcn.0040616f
pop ecx
pop ecx
jmp 0x401a7e
mov byte [ebp - 0x23c], 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b71
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
mov edi, str.MicrosoftWindowsCurrentVersionShell_ExtensionsBlocked
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x401bad
cmp dword [ebp + 0x10], esi
je 0x401ba9
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, esi
jne 0x401be3
cmp dword [ebp + 0x14], esi
je 0x401bc7
push 0x40e4a0
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0040cd37
add esp, 0xc
jmp 0x401bd3
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401c53
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
mov dword [ebp - 4], esi
je 0x401c8f
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00401be9
test eax, eax
pop ecx
pop ecx
je 0x401c8f
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401b71
add esp, 0x10
jmp 0x401e01
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00401afc
add esp, 0x10
test eax, eax
jne 0x401dce
push ebx
push edi
mov edi, 0x118
push edi
mov byte [ebp - 0x124], al
lea eax, [ebp - 0x123]
push esi
push eax
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x23f]
push esi
push eax
mov byte [ebp - 0x240], 0
call sub.msvcrt.dll_memset
push 0x40e4a0
push dword [ebp - 8]
mov eax, edi
lea esi, [ebp - 0x124]
call fcn.0040cc90
mov ebx, str.Disabled
push ebx
push dword [ebp - 8]
mov eax, edi
lea esi, [ebp - 0x240]
call fcn.0040cc90
xor esi, esi
add esp, 0x28
cmp dword [ebp + 0x18], esi
je 0x401d57
cmp byte [ebp - 0x124], 0
je 0x401dba
xor eax, eax
cmp byte [ebp - 0x124], 0x3a
jne 0x401d2a
inc eax
lea eax, [ebp + eax - 0x124]
push eax
push ebx
push dword [ebp - 8]
call fcn.0040cd37
add esp, 0xc
test eax, eax
jne 0x401dc1
push 0x40e4a0
push dword [ebp - 8]
call fcn.0040ce4d
test eax, eax
pop ecx
pop ecx
jne 0x401dc1
jmp 0x401dba
cmp byte [ebp - 0x240], 0
jne 0x401d7c
cmp byte [ebp - 0x124], 0x3a
jne 0x401d9f
lea eax, [ebp - 0x123]
push eax
push dword [ebp - 8]
call fcn.0040ce4d
pop ecx
pop ecx
jmp 0x401d9b
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call fcn.0040ce4d
test eax, eax
pop ecx
pop ecx
jne 0x401da6
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x401da6
mov dword [ebp - 4], 1
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401b71
add esp, 0x10
test eax, eax
je 0x401dc1
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor esi, esi
pop ebx
cmp dword [ebp + 0x18], esi
jne 0x401dfe
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00401be9
test eax, eax
pop ecx
pop ecx
je 0x401dfe
push esi
xor esi, esi
inc esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401b71
add esp, 0x10
test eax, eax
je 0x401dfe
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x401f9b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi + 0x150], 0xd
push esi
mov esi, eax
jne 0x401fed
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
mov eax, esi
xor ebx, ebx
call fcn.00401e04
test eax, eax
pop ecx
pop ecx
jne 0x401fe8
lea eax, [edi + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401fd3
inc ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x401fe8
not esi
and dword [edi + 0x158], esi
mov eax, ebx
pop ebx
jmp 0x401fef
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x405436
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0xf0000000
mov esi, eax
xor ebx, ebx
push 1
lea eax, [esi + 0x11c64]
push ebx
mov dword [ebp - 0x10], eax
mov byte [eax], bl
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp dword [ebp - 8], ebx
je 0x405519
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebp - 4], ebx
je 0x40550f
push edi
add esi, 0x11d64
push ebx
push esi
call sub.msvcrt.dll_strlen
pop ecx
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, byte [ebp + esi - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str._2.2x
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_strcat
add esp, 0x14
inc esi
cmp esi, 0x10
jl 0x4054d1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop ebx
leave
ret

Function at 0x405df9
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00405c52
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x405e88
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405e71
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405e71
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x405e7a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x405e91
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x405fb5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406193
Capabilities:
Get file size

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call fcn.00405c52
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x4061be
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x406217
Capabilities:
Get common file path

Disassembly:
cmp byte [0x412d10], 0
push esi
mov esi, 0x412d10
jne 0x406237
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x412e18], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x412e18]
pop ecx
pop ecx
pop esi
ret

Function at 0x4065a6
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40e4a0
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x406d1c
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x406d48
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x406d63
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x406d6a
call fcn.00406db4
cmp dword [esp + 4], 0
je 0x406dad
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x406da7
push ebx
push esi
mov eax, edi
call fcn.0040616f
pop ecx
pop ecx
jmp 0x406daa
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x407422
Capabilities:
Read .ini file

Disassembly:
push 0x4129d8
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x40e4a0
push dword [esp + 0x14]
push 0x412ae0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x407446
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040dd70
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4129d8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40e4a0
push dword [ebp + 8]
push 0x412ae0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x4074b2
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4074b6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040dd70
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x4129d8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40e4a0
push dword [ebp + 8]
mov esi, 0x412ae0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x40751e
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x407520
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x407816
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00405fb5
test eax, eax
pop ecx
je 0x40789d
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4129d8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x412ae0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x40f594
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x412b30
mov dword [0x412b28], eax
call fcn.00407422
push 0x3f
push str.TranslatorName
mov esi, 0x412b70
call fcn.00407422
push 0xff
push str.TranslatorURL
mov esi, 0x412bb0
call fcn.00407422
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40a497
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
jne 0x40a4c9
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40f824
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push 1
push 2
lea eax, [ebp - 0x104]
push eax
call fcn.0040a195
test eax, eax
je 0x40a541
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a51e
lea eax, [ebp - 0x104]
push eax
call fcn.00405df9
pop ecx
jmp 0x40a524
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40a534
push dword [esi + 0x108]
call fcn.00405cc8
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret