joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a711a
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x18]
and esi, 0xf
mov dword [edi + esi*4 + 0x20], SysStringLen
jmp 0x5a7146
and esi, 0xf
jne 0x5a7141
push edi
lea edx, [edi + 0x20]
mov ecx, edi
call fcn.005a7297
and dword [edi + esi*4 + 0x20], 0
inc esi
cmp esi, 0xe
jne 0x5a7131
mov ecx, dword [edi + 0x18]
lea edx, [edi + 0x20]
mov eax, dword [edi + 0x1c]
shld eax, ecx, 5
push ebx
shl ecx, 5
mov dword [edi + 0x5c], ecx
mov ecx, edi
mov dword [edi + 0x58], eax
call fcn.005a7297
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.005a7b33
Function at 0x5a7b33
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret

Function at 0x5a7d1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x44]
push esi
push edi
mov esi, ecx
push 5
mov dword [ebp - 0x88], esi
call fcn.005a7174
lea eax, [esi + 0x60]
push 5
lea edx, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov ecx, eax
call fcn.005a7174
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5a7db6
lea esi, [ebp - 0x44]
sub esi, ebx
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x44]
call fcn.005a7297
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x84]
call fcn.005a7297
push 5
mov ecx, ebx
pop edx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x5a7da4
sub edi, 1
jne 0x5a7d75
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e6d4
leave
ret 8

Function at 0x5a7dc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x10
xor eax, eax
mov dword [ebp - 0xbc], ebx
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0xc0], esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jbe 0x5a7e3f
lea ecx, [ebp - 0xb8]
call fcn.005a7b33
push edi
mov edx, esi
lea ecx, [ebp - 0xb8]
call fcn.005a7b5e
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xb8]
call fcn.005a720a
xor esi, esi
mov ecx, esi
mov eax, dword [ebp + ecx - 0x18]
bswap eax
mov dword [ebp + ecx - 0x58], eax
add ecx, 4
cmp ecx, 0x14
jb 0x5a7e2b
jmp 0x5a7e76
xor esi, esi
mov ebx, esi
test edi, edi
je 0x5a7e70
mov esi, dword [ebp - 0xc0]
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
push 3
pop ecx
sub ecx, eax
movzx eax, byte [esi + ebx]
shl ecx, 3
shl eax, cl
or dword [ebp + edx*4 - 0x58], eax
inc ebx
cmp ebx, edi
jb 0x5a7e4d
xor esi, esi
mov ebx, dword [ebp - 0xbc]
mov eax, esi
movups xmm0, xmmword [ebp + eax*4 - 0x58]
pxor xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
movups xmmword [ebp + eax*4 - 0x58], xmm0
add eax, 4
cmp eax, 0x10
jb 0x5a7e78
mov ecx, ebx
call fcn.005a7b33
push 0x10
lea edx, [ebp - 0x58]
mov ecx, ebx
call fcn.005a71c2
movups xmm0, xmmword [ebp + esi*4 - 0x58]
pxor xmm0, xmmword [0x62c5a0]
movups xmmword [ebp + esi*4 - 0x58], xmm0
add esi, 4
cmp esi, 0x10
jb 0x5a7ea5
lea ecx, [ebx + 0x60]
call fcn.005a7b33
push 0x10
lea edx, [ebp - 0x58]
lea ecx, [ebx + 0x60]
call fcn.005a71c2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e6d4
leave
ret 8
Function at 0x5a7ee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov eax, ebx
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0x40
jae 0x5a7fa0
mov byte [ebp + eax - 0x44], bl
inc eax
cmp eax, 0x40
jb 0x5a7f10
cmp edi, 0x40
jbe 0x5a7f3d
mov ecx, esi
call fcn.005a7b33
mov edx, dword [ebp - 0x48]
mov ecx, esi
push edi
call fcn.005a7b5e
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.005a720a
jmp 0x5a7f4f
test edi, edi
je 0x5a7f4f
push edi
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.005c93b0
add esp, 0xc
mov eax, ebx
xor byte [ebp + eax - 0x44], 0x36
inc eax
cmp eax, 0x40
jb 0x5a7f51
mov ecx, esi
call fcn.005a7b33
push 0x40
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.005a7b5e
xor byte [ebp + ebx - 0x44], 0x6a
inc ebx
cmp ebx, 0x40
jb 0x5a7f6f
lea ecx, [esi + 0x60]
call fcn.005a7b33
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [esi + 0x60]
call fcn.005a7b5e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e6d4
leave
ret 8
call fcn.0055f22b
int3
Function at 0x5a915e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [esi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0xc], eax
mov al, byte [esi + 2]
mov word [edi], cx
mov byte [ebp + 0xf], al
cmp byte [esi + 1], cl
je 0x5a91fb
lea eax, [esi + 0x20]
push eax
lea ecx, [edi + 0x24]
call fcn.00573080
lea eax, [esi + 0x2c]
lea ecx, [edi + 0x60]
cmp eax, ecx
je 0x5a91a8
push dword [eax + 4]
push dword [eax]
call fcn.0056eaef
movzx eax, byte [esi + 4]
mov ecx, edi
push eax
push 0x800
call fcn.005a92b5
mov eax, dword [esi + 0x10]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x84], eax
mov al, byte [esi + 3]
mov byte [edi + 0x88], al
mov al, byte [ebp + 0xf]
xor edx, edx
mov dword [edi + 0x40], 0x3f
mov byte [edi + 5], dl
test al, al
jne 0x5a9214
mov byte [ebp - 4], 1
cmp byte [ebx + 0x6c], dl
jne 0x5a9217
mov byte [ebp - 4], dl
push dword [ebp - 4]
mov ecx, edi
push 1
call fcn.005a92b5
push dword [ebp + 8]
mov ecx, edi
push 8
call fcn.005a92b5
cmp byte [ebp + 0xf], 0
je 0x5a924e
xor eax, eax
mov byte [edi + 4], 0x14
mov word [edi + 2], ax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x30]
call fcn.0056e95e
lea ecx, [edi + 0x50]
mov byte [edi + 0x3e], 0
call fcn.0056e95e
xor ecx, ecx
mov byte [edi + 0x5e], cl
cmp byte [ebp + 0xf], cl
je 0x5a9287
xor eax, eax
mov byte [edi + 4], 0x14
mov word [edi + 2], ax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x1c], ecx
jmp 0x5a92ae
cmp byte [ebx + 0x6c], cl
je 0x5a92ae
cmp byte [ebx + 0x58], cl
je 0x5a92ae
cmp dword [ebx + 0x64], ecx
jne 0x5a929b
push 8
pop eax
jmp 0x5a92a0
mov eax, dword [ebx + 0x60]
mov al, byte [eax]
mov dl, byte [ebx + 0x59]
mov ecx, edi
movzx eax, al
push eax
call fcn.005a8ac3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5ab13c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x5fb41c
call fcn.0055ef04
mov dword [ebp - 0x10], edx
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x5ab16c
mov eax, dword [ecx]
push 3
push dword [esi + 8]
push 1
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x5ab2d9
cmp byte [esi + 1], 0
je 0x5ab222
mov ebx, dword [ebp + 0x10]
mov al, byte [ebx]
shr al, 3
test al, 1
je 0x5ab18c
mov eax, 0x80004001
jmp 0x5ab2d9
lea eax, [esi + 0x2c]
lea ecx, [ebx + 0x60]
cmp eax, ecx
je 0x5ab1a0
push dword [eax + 4]
push dword [eax]
call fcn.0056eaef
lea eax, [esi + 0x20]
push eax
lea ecx, [ebx + 0x24]
call fcn.00573080
mov al, byte [esi + 4]
mov ecx, ebx
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 0x800
call fcn.005a92b5
mov eax, dword [esi + 0x14]
lea ecx, [ebx + 0x50]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x74], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x84], eax
mov al, byte [esi + 3]
mov byte [ebx + 0x88], al
call fcn.005a90ce
lea ecx, [ebx + 0x30]
call fcn.005a90ce
push 0
push ebx
mov ecx, edi
call fcn.005b1d50
mov ecx, ebx
call fcn.005a8c7a
mov ebx, eax
mov dword [ebp + 0x10], edx
jmp 0x5ab249
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4c], edx
call fcn.005a8c7a
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, edx
add ebx, dword [ecx + 0x70]
adc eax, 0
mov dword [ebp + 0x10], eax
and dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x18]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 1]
push eax
push dword [ebp + 8]
call fcn.0056f46c
mov esi, eax
mov eax, dword [ebp + 0x18]
test esi, esi
jne 0x5ab2c6
test eax, eax
jne 0x5ab279
mov esi, 0x80004001
jmp 0x5ab2c6
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
add dword [eax], ebx
adc dword [eax + 4], esi
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.005b16b4
push dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push ebx
call fcn.00572902
add dword [edi + 0x38], ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
adc dword [edi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
test eax, eax
je 0x5ab2c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 5
test eax, eax
je 0x5ab2d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0055eecd
ret 0x18
Function at 0x5b2754
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.005b2e46
cmp eax, 0xffffffff
je 0x5b2778
test al, 0x10
jne 0x5b2778
test al, 1
je 0x5b2778
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5b2787
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5b2787
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x5b278b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0057318e
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0055e6d4
leave
ret

Function at 0x5b2e46
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
ret

Function at 0x5b4ab9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5e562a
Capabilities:
Read file on windows

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

Function at 0x5eda51
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ed6f3
Function at 0x5f46e0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x18
call fcn.0055f310
mov eax, dword [0x6817dc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov dword [esp + 0x10], 1
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
xor esi, esi
nop
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x5f47a7
mov eax, dword [esp + ecx*4 + 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [esp + ecx*4 + 0x14], eax
cmp eax, 0xff
jbe 0x5f4720
xor esi, esi
call fcn.005f4bb0
cmp eax, 1
jne 0x5f489c
test esi, esi
jne 0x5f48b1
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004a9b10
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5f4818
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004a0500
add esp, 0x14
jmp 0x5f486f
cmp edx, 0x2e
jne 0x5f47d8
test esi, esi
je 0x5f47bb
cmp ecx, 3
je 0x5f474b
inc ecx
jmp 0x5f471d
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004a0500
add esp, 0x14
jmp 0x5f488c
test edx, edx
jne 0x5f474b
cmp ecx, 3
jne 0x5f474b
test esi, esi
je 0x5f474b
movzx eax, byte [esp + 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [esp + 0x18]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x1c]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x20]
mov byte [ebx + 3], al
jmp 0x5f474d
cmp word [ecx + 8], 2
je 0x5f4839
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004a0500
add esp, 0x14
jmp 0x5f486f
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004a9b10
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x5f48b1
push ebp
push str.host
push 2
call fcn.0049fa00
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0055e6d4
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055e6d4
add esp, 0x18
ret

Function at 0x5f4c30
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5f4c70
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004a0500
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x9301ec
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9301f2
pop ebp
sub ebp, 6
sub ebp, 0x5301ec
jmp 0x930250
jmp 0x930259
mov eax, 0x5301ec
add eax, ebp
add eax, 0x93
mov ecx, 0x624
push es
add byte [eax], al
mov edx, 0xd352a093
xor byte [eax], dl
inc eax
dec ecx
jne 0x930270
jmp 0x930283
stc
sar ebx, cl
xchg ebx, eax
adc dword [ebx + 0x5f93fb93], 0xffffffbf
xchg ebx, eax
mov al, byte [0x66cc353]
jmp 0x930268
Function at 0x404fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0043ad10
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x102c], 0
movdqu xmmword [ebp - 0x1028], xmm0
cmp dword [edi + 0x14], 8
movdqu xmmword [ebp - 0x1018], xmm0
jb 0x405006
mov eax, dword [edi]
jmp 0x405008
mov eax, edi
lea ecx, [ebp - 0x102c]
push ecx
push eax
call fcn.004227ff
add esp, 8
test eax, eax
je 0x40502e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1018], 0xfffffffe
jae 0x40501c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1008], 0
jb 0x405049
mov edi, dword [edi]
push ebx
push 0x448ee0
lea eax, [ebp - 0x1008]
push edi
push eax
call fcn.00422c4e
add esp, 0xc
cmp dword [ebp - 0x1008], 0
jne 0x40507d
xor bl, bl
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x10]
mov eax, dword [ebp - 0x1018]
cmp edi, eax
ja 0x4050b0
cmp dword [esi + 0x14], eax
je 0x4050b0
push 1
push eax
mov ecx, esi
call fcn.00401950
test al, al
je 0x4050b0
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x4050aa
mov eax, dword [esi]
jmp 0x4050ac
mov eax, esi
mov byte [eax + edi], 0
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push 0x1000
push 1
push eax
call fcn.00422f22
add esp, 0x10
test eax, eax
je 0x4050ff
push eax
lea eax, [ebp - 0x1004]
mov ecx, esi
push eax
call fcn.004054c0
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push 0x1000
push 1
push eax
call fcn.00422f22
add esp, 0x10
test eax, eax
jne 0x4050d0
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1008]
sete bl
test ecx, ecx
je 0x40511e
push ecx
call fcn.00422562
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00421184
mov esp, ebp
pop ebp
ret

Function at 0x405410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40546c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x210], 0
jne 0x40547a
xor ecx, ecx
jmp 0x405492
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405483
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00401ad0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x40c170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x451270]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 7
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
xor eax, eax
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
call fcn.0040b5e0
cmp dword [esp + 0x1c], 0
je 0x40c1e9
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.0040bc20
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x40c1fc
push dword [esp + 0xc]
call fcn.00420949
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4

Function at 0x40e200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e219
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e254
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e250
lea ebx, [ebx]
cmp esi, edx
jae 0x40e254
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40e240
cmp esi, edx
jb 0x40e25b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40e516
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e516
xor eax, eax
mov dword [ebp - 0x14], 0xaac56b
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 0x11d0cd44
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00405410
add esp, 4
test al, al
jne 0x40e3e6
xor ebx, ebx
jmp 0x40e4f2
push 0x44c9f8
lea ecx, [ebp - 0x84]
call fcn.004055b0
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x2c]
call fcn.00404eb0
cmp dword [ebp - 0x70], 8
jb 0x40e418
push dword [ebp - 0x84]
call fcn.00420949
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x40e43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40e4eb
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40e45a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e4e2
push 0x30
xorps xmm0, xmm0
lea eax, [ebp - 0x6c]
movdqu xmmword [ebp - 0x3c], xmm0
push 0
push eax
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00421940
add esp, 0xc
mov dword [ebp - 0x6c], 0x30
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x60], 2
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x5c], 0
push eax
push 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x100
mov dword [ebp - 0x40], 0
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
sete bl
cmp dword [ebp - 0x18], 8
jb 0x40e503
push dword [ebp - 0x2c]
call fcn.00420949
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret