joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409aa5
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x418890]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401988
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409b92
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x409b86
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x409b34
xor edi, edi
jmp 0x409b7d
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x409b30
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x409b30
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004140dd
leave
ret 8
Function at 0x40a0d1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x4189f8], 1
push ebx
push esi
push edi
jne 0x40a0f4
or dword [0x4189f8], 1
call fcn.0040a07d
mov dword [0x4189f4], eax
push 4
pop eax
call fcn.00414460
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a189
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x40a189
cmp eax, 1
je 0x40a1aa
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a189
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a156
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a185
xor eax, eax
inc eax
jmp 0x40a1c9
cmp edi, eax
jae 0x40a18d
xor eax, eax
jmp 0x40a1c9
cmp eax, esi
jae 0x40a194
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x40a1ad
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a37e
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40a6cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40a75d
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40a758
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40a747
mov ax, word [edi]
test ax, ax
je 0x40a761
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40a747
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x40a747
jmp 0x40a73d
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40a741
cmp esi, eax
jb 0x40a72f
cmp word [esi], 0
jne 0x40a6fb
cmp word [edi], 0
je 0x40a761
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40a6ef
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40a75a
Function at 0x40a911
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414460
mov eax, dword [0x418890]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40a985
cmp dword [ebp - 0x7c], 1
jne 0x40a989
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40a985
cmp word [ebp - 0x78], si
je 0x40a985
inc eax
jmp 0x40a992
xor eax, eax
jmp 0x40a992
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140dd
add ebp, 0x1f8c
leave
ret 4

Function at 0x40af5b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4146ea
call fcn.004143f0
sub esp, 0x214
mov eax, dword [0x418890]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040a32f
cmp eax, esi
jne 0x40affa
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40afb4
lea eax, [ebp - 0x210]
push eax
call fcn.0040af5b
cmp eax, esi
jne 0x40aff9
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x40afa4
call fcn.0040a2ca
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040a2ca
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140dd
leave
ret 4
Function at 0x40d24c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x414816
call fcn.004143f0
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.0040bbce
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40d2a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40d293
call esi
mov esi, eax
jmp 0x40d3c1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40d3c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40d2c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40d2f1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40d2dc
call esi
jmp 0x40d3b6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40d3b8
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x40d35f
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40d32c
push edi
call fcn.0040a1d1
test al, al
je 0x40d32c
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414460
mov dword [ebp + 8], esp
jmp 0x40d338
push edi
lea ecx, [ebp - 0x10]
call fcn.0040bbab
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40d346
mov esi, 0x8007000e
jmp 0x40d3b8
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x40d367
xor eax, eax
jmp 0x40d3aa
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40d397
push ebx
call fcn.0040a1d1
test al, al
je 0x40d397
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414460
mov eax, esp
jmp 0x40d3a0
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040bbab
push 0
push esi
push edi
push eax
call fcn.0040a22c
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040c82a
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040adc0
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x411880
Capabilities:
Delete file

Disassembly:
mov eax, 0x414a17
call fcn.004143f0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x411560
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x41156e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x411581
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x41159a
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4115a8
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x4115b8
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4115c2
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4115cf
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4115dc
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x4115f3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.0040725a
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00410b60
lea ecx, [esi + 0x54]
call fcn.0040ddf3
lea ecx, [esi + 0x24]
call fcn.0040a263
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418984
mov dword [esi], 0x4025e4
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x411538
Function at 0x41318b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x41326d
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413208
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413258
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413277
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413258
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413173
test eax, eax
je 0x413277
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413277
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4131b8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x413270
Function at 0x4140dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418890]
jne 0x4140e6
ret
jmp 0x4140eb
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x418890]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a2c]
test eax, eax
je 0x41410f
call eax
cmp dword [0x418a30], 0
je 0x414156
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a30]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.004140dd
add ebp, 0x2a8
leave
ret
Function at 0x4012cc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401301
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4012fe
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40130a
add edx, 0x28
cmp edx, esi
jne 0x4012ec
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401307

Function at 0x40174f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40178e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40178e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40178e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40178e
cmp dword [ecx + 0x74], 0xe
jbe 0x40178e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407433
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4074d0
push ebx
push esi
call fcn.004073fc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407390
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40747d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4074cf
push edi
push eax
call fcn.00408050
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40749d
call fcn.00405ef1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4074ce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407390
add esp, 0x20
test eax, eax
jne 0x4074bc
push edi
call fcn.00405ef1
jmp 0x4074c4
push ebx
call fcn.00405ef1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4087cd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411088
push 0x411080
push str.FlsAlloc
push 0x1f
call fcn.0040868c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408801
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f10c]
call esi
jmp 0x408807
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40884b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411098
push 0x411090
push str.FlsGetValue
push 0x21
call fcn.0040868c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408882
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40888a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4110a0
push 0x411098
push str.FlsSetValue
push 0x22
call fcn.0040868c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088c4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dd20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dd4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dd4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x428430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42844a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428440
mov eax, 1
add ebx, ebx
jne 0x428463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428458
jne 0x428474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428458
xor ecx, ecx
sub eax, 3
jb 0x428488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4284fa
mov ebp, eax
add ebx, ebx
jne 0x428493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4284a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4284c4
inc ecx
add ebx, ebx
jne 0x4284b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4284a5
jne 0x4284c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4284a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4284e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4284d5
jmp 0x428446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4284e4
add edi, ecx
jmp 0x428446
pop esi
mov edi, esi
mov ecx, 0x3c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428502
cmp byte [edi], 4
jne 0x428502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428507
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x42857f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34f88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34fc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x428534
mov ecx, edi
jns 0x428563
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34fcc]
or eax, eax
je 0x428579
mov dword [ebx], eax
add ebx, 4
jmp 0x428551
call dword [esi + 0x34fc8]
mov ebp, dword [esi + 0x34fd0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4285b3
sub esp, 0xffffff80
jmp 0x40151c
Function at 0x10001010
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.10015a10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x1000107e
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
jne 0x1000107e
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x10001116
sub eax, 1
jne 0x100010fb
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x100010b4
mov eax, 4
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
cmp eax, 5
jne 0x100010db
xor eax, eax
cmp dword [esp + 0xc], eax
pop esi
setne al
add eax, 5
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
cmp eax, 6
jb 0x100010fb
mov eax, 7
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x10001143
jne 0x10001128
cmp dword [esp + 0xc], 0
ja 0x10001143
mov eax, 2
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100159fa
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
mov eax, 3
call fcn.100159fa
add esp, 0xa0
ret

Function at 0x10001220
Capabilities:
Identify system language via api

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
push esi
call fcn.100011f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
call fcn.100011f0
add esp, 4
mov ax, si
pop esi
ret

Function at 0x10001360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001379
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100013b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100013b0
lea ebx, [ebx]
cmp esi, eax
jae 0x100013b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100013a0
cmp esi, eax
jb 0x100013ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret