joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9b0
Capabilities:
Parse pe header

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

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
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 + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401cb3
pop dword [ebp - 0x4c]
mov eax, 0x212b2705
sub eax, 0x20eb0a52
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3bc61
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x5233
xor edi, edi
add edi, eax
mov ebx, 0x6a847935
sub ebx, 0x6a433d71
add ebx, dword [ebp - 0x4c]
mov edx, 0x52144b35
sub dword [ebp - 0x20], 0x4836ee65
mov esi, dword [ebx]
add dword [ebp - 0x20], 0x2315efd4
add esi, edx
xor dword [ebp - 8], ecx
mov dword [edi], esi
mov dword [ebp - 0x18], 0x97a521eb
add edi, 0xaf4d2db8
sub edi, 0xaf4d2db4
add ebx, 0xebc1dce7
sub ebx, 0xebc1dce3
loop 0x401d03
add eax, 0x13b9f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xce15c570
sub ecx, 0xcdd5c570
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00401ca4
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00401ca4
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00401ca4
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00401ca4
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00401ca4
mov dword [0x41203c], eax
call fcn.00401ca4
test eax, eax
jge 0x402550
push 8
call fcn.00401ca4
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00401ca4
pop ecx
push 1
call fcn.00401ca4
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00401ca4
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00401ca4
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00401ca4
jmp 0x402495
Function at 0x4142fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x414309
pop dword [ebp - 0x34]
mov eax, 0xbd65414a
add eax, 0x42dc01bf
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x2705e8b6
add dword [ebp - 0x44], 0x274c5c95
mov dword [ebp - 0x40], 0x7dd3169
sub dword [ebp - 0x40], 0xd5a9e524
mov dword [ebp - 0x3c], 0xbc8b355c
add dword [ebp - 0x3c], 0x8fc10ed2
mov dword [ebp - 0x38], 0x9948ef3f
add dword [ebp - 0x38], 0x66b710c1
lea eax, [ebp - 0x44]
push eax
mov eax, 0xf0f6505c
sub eax, 0xf0b4900c
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xe96f07d2
sub dword [ebp - 0x44], 0x74fc9e7c
mov dword [ebp - 0x40], 0xb693746f
sub dword [ebp - 0x40], 0x752712fa
mov dword [ebp - 0x3c], 0xbdbb4827
sub dword [ebp - 0x3c], 0x5a4bdbbb
mov dword [ebp - 0x38], 0x1271acaf
sub dword [ebp - 0x38], 0x1271acaf
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x6f55c283
sub eax, 0x6f140237
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3987e
push 0
call eax
mov ecx, 0xf8a97621
add ecx, 0x756c9b3
xor ebx, ebx
add ebx, eax
mov edi, 0x432a00
add edi, dword [ebp - 0x34]
mov edx, 0xbdc58ffe
add edx, 0xaef95cea
sub dword [ebp - 0x10], 0xfa730f53
mov esi, dword [edi]
xor dword [ebp - 4], edx
add esi, edx
xor dword [ebp - 0x30], esi
mov dword [ebx], esi
xor dword [ebp - 0x18], 0x6388afa7
add ebx, 0x6bda614e
add ebx, 0x94259eb6
add edi, 0x758b13fa
sub edi, 0x758b13f6
loop 0x414427
add eax, 0xa002ad5
add eax, 0xf600c74e
xor ebx, ebx
add ebx, eax
add eax, 0x272745e3
add eax, 0xd8d8ba22
mov ecx, 0x6a92244d
add ecx, 0x95addbb3
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100013e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001438
cmp byte [esi + ebx - 1], 0xa
je 0x1000140c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100019e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10006094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10001ba0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10006094]
movzx eax, al
bt eax, esi
jae 0x10001c00
mov ecx, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10001aa5
test byte [0x10002030], 8
jne 0x10001b40
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001af0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001a74
cmp esi, 3
jbe 0x10001ab0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10004100]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001a74
mov ecx, dword [0x10006094]
test ecx, ecx
je 0x10001be0
mov dword [esp], 0x10002040
call dword [0x10006094]
test al, 8
je 0x10001a4b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001a4b
mov ebx, dword [0x10006094]
test ebx, ebx
je 0x10001bc0
mov dword [esp], 0x10002030
call dword [0x10006094]
test al, 8
je 0x10001a36
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001a3e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x100019fd
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x10001b4a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x10001afe
mov eax, 0xffffffff
jmp 0x10001aa5
Function at 0x10028fbc
Capabilities:
Get file size
Get system information on windows

Disassembly:
push 0x38
mov eax, 0x1006db8e
call fcn.1006ca02
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov ebx, dword [ebp + 0xc]
or dword [esi + 0x14], 0xffffffff
mov ecx, 0x1000
mov dword [ebp - 4], eax
mov dword [esi], fcn.10027600
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x10029017
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ebx
div ecx
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x14]
mov ecx, ebx
mov eax, edx
sub ecx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x100290d2
cmp edi, 0xffffffff
jne 0x10029077
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp dword [ebp - 0x14], 0
mov edi, eax
jne 0x100290d2
cmp edi, ebx
jbe 0x100290d2
cmp edi, 0xffffffff
je 0x100290d2
sub edi, ebx
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebx, dword [ebp - 0x40]
lea ecx, [edi + ebx]
mov dword [esi + 0x18], eax
cmp ecx, edi
jb 0x100290d2
test eax, eax
je 0x100290ad
push 0
push ecx
push dword [ebp - 0x3c]
push 0
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFileEx]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100290d2
push 0
push 0
lea ecx, [eax + ebx]
push edi
push ecx
mov ecx, esi
call fcn.1003d76c
mov byte [esi + 5], 1
mov eax, esi
call fcn.1006ca85
ret 0xc
mov ecx, esi
call fcn.1002913d
push 0x1006ed24
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 1
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x1003d76c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1003d77b
pop dword [ebp - 0x44]
mov eax, 0x261517ec
add eax, 0xe9eebf8f
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x4f9ee
push 0
mov eax, 0x31715b7e
sub eax, 0x21714a56
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x81dab035
sub ecx, 0x81da5eff
mov edi, eax
mov ebx, 0x3c15ca28
sub ebx, 0x2c0e3428
add ebx, dword [ebp - 0x44]
mov esi, 0xd9ca970a
mov edx, dword [ebx]
xor dword [ebp - 0x38], esi
add edx, esi
xor dword [ebp - 0x30], esi
mov dword [edi], edx
sub dword [ebp - 4], edi
add edi, 0xebdcf29f
sub edi, 0xebdcf29b
add ebx, 4
loop 0x1003d7d4
add eax, 0xc92fc69e
add eax, 0x36d1710d
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1005318f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
xor eax, eax
test edi, edi
je 0x100531b3
mov edx, dword [edi + 0x20]
mov dword [edi + 0x20], eax
mov ax, word [0x10006de8]
xor word [edi + 0x24], ax
mov eax, edi
mov edi, edx
test edx, edx
jne 0x1005319b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
mov dword [esi + 4], eax
mov dword [esi], ecx
pop esi
ret

Function at 0x1006c574
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000a378]
jne 0x1006cc00
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10074a78], eax
mov dword [0x10074a74], ecx
mov dword [0x10074a70], edx
mov dword [0x10074a6c], ebx
mov dword [0x10074a68], esi
mov dword [0x10074a64], edi
mov word [0x10074a90], ss
mov word [0x10074a84], cs
mov word [0x10074a60], ds
mov word [0x10074a5c], es
mov word [0x10074a58], fs
mov word [0x10074a54], gs
pushfd
pop dword [0x10074a88]
mov eax, dword [ebp]
mov dword [0x10074a7c], eax
mov eax, dword [ebp + 4]
mov dword [0x10074a80], eax
lea eax, [ebp + 8]
mov dword [0x10074a8c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100749c8], 0x10001
mov eax, dword [0x10074a80]
mov dword [0x1007497c], eax
mov dword [0x10074970], 0xc0000409
mov dword [0x10074974], 1
mov eax, dword [0x1000a378]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10073cc8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100749c0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000a388
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100749c0], 0
jne 0x1006ccec
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x83f490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e5000]
push edi
or ebp, 0xffffffff
jmp 0x83f4b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x83f4b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83f4a8
mov eax, 1
add ebx, ebx
jne 0x83f4cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x83f4dc
jne 0x83f4fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83f4fb
dec eax
add ebx, ebx
jne 0x83f4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x83f4c0
add ebx, ebx
jne 0x83f4f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x83f54d
xor ecx, ecx
sub eax, 3
jb 0x83f513
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x83f582
sar eax, 1
mov ebp, eax
jmp 0x83f51e
add ebx, ebx
jne 0x83f51e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83f4ec
inc ecx
add ebx, ebx
jne 0x83f52c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83f4ec
add ebx, ebx
jne 0x83f539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x83f52e
jne 0x83f54a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x83f52e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x83f56c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x83f55e
jmp 0x83f4ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x83f56c
add edi, ecx
jmp 0x83f4ae
pop esi
mov edi, esi
mov ecx, 0xfa5c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x83f58a
cmp byte [edi], 0x22
jne 0x83f58a
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 0x83f58f
lea edi, [esi + 0x427000]
mov eax, dword [edi]
or eax, eax
je 0x83f607
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x443a04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x443aec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x83f5bc
mov ecx, edi
jns 0x83f5eb
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 + 0x443af4]
or eax, eax
je 0x83f601
mov dword [ebx], eax
add ebx, 4
jmp 0x83f5d9
call dword [esi + 0x443af0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x83f638
cmp al, 0xef
ja 0x83f62b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x83f60d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x83f61a
mov ebp, dword [esi + 0x443af8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x83f66c
sub esp, 0xffffff80
jmp 0x5d091b
Function at 0x10068c30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x101f3dec
mov dword [ebx], 0
call esi
cmp eax, 0xfffffffe
jne 0x10068cbd
push edi
push 0
push 1
push 0x101f7e54
call esi
cmp eax, 1
jne 0x10068c7a
mov edi, dword [sym.imp.kernel32.dll_Sleep]
push 1
call edi
push 0
push 1
push 0x101f7e54
call esi
cmp eax, 1
je 0x10068c66
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x101f3dec
call esi
mov edi, dword [sym.imp.kernel32.dll_InterlockedExchange]
mov esi, eax
cmp esi, 0xfffffffe
jne 0x10068ca7
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
je 0x10068ca7
push esi
push 0x101f3dec
call edi
push 0
push 0x101f7e54
call edi
pop edi
cmp esi, 0xffffffff
jne 0x10068cbd
mov eax, 0x8007000e
pop esi
ret
mov eax, dword [0x101f3dec]
test eax, eax
js 0x10068ce1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10068ce1
inc dword [eax + 0x12c]
mov dword [ebx], 1
xor eax, eax
pop esi
ret
push 0x130
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10068cb6
push 0x130
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0x12c], 1
push esi
mov dword [ebx], 1
push dword [0x101f3dec]
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
pop esi
ret

Function at 0x1006e5a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x101f3dec]
push edi
test eax, eax
jns 0x1006e5ae
xor edi, edi
jmp 0x1006e5b7
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
xor ecx, ecx
lea edx, [edi + 0x24]
lea esp, [esp]
cmp dword [ecx*4 + 0x10027c6c], esi
jne 0x1006e5ce
cmp dword [edx], 0
jne 0x1006e5e4
inc ecx
add edx, 8
cmp ecx, 0xf
jb 0x1006e5c0
mov ecx, dword [edi + 0x20]
push 0x10
push esi
call fcn.100a4020
pop edi
ret
mov edx, dword [edi + ecx*8 + 0x24]
test edx, edx
je 0x1006e600
mov eax, dword [edx]
mov dword [edi + ecx*8 + 0x24], eax
test eax, eax
jne 0x1006e5fa
mov dword [edi + ecx*8 + 0x28], eax
mov dword [edx], 0xfefefefe
cmp ecx, 0xf
jae 0x1006e5d7
mov eax, edx
pop edi
ret

Function at 0x1006f290
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x1006f2e5
mov eax, dword [0x101f3dec]
push ebx
push edi
test eax, eax
jns 0x1006f2a3
xor edi, edi
jmp 0x1006f2ac
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
mov ebx, dword [esi + 4]
push dword [ebx*4 + 0x10027c6c]
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + ebx*8 + 0x28]
add esp, 0xc
test eax, eax
je 0x1006f2db
mov dword [eax], esi
mov dword [edi + ebx*8 + 0x28], esi
pop edi
pop ebx
ret
mov dword [edi + ebx*8 + 0x24], esi
mov dword [edi + ebx*8 + 0x28], esi
pop edi
pop ebx
ret
Function at 0x10090ff0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
mov edi, dword [esi + 0x1342c]
mov dword [esi], 0x1003c238
test edi, edi
je 0x1009102d
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x10091019
xor eax, eax
jmp 0x1009101c
push eax
call ecx
push edi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [esi + 0x13444]
test edi, edi
je 0x10091052
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x10091044
xor eax, eax
jmp 0x10091047
push eax
call ecx
push edi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esi + 0x134b8]
test ecx, ecx
je 0x1009106c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x134b8], 0
lea eax, [esi + 0x134bc]
call fcn.10090f30
pop edi
mov ecx, esi
pop esi
jmp fcn.101485a0

Function at 0x100ac020
Capabilities:
Get thread local storage value

Disassembly:
cmp esi, 0xaaaaaaa
jbe 0x100ac02b
xor eax, eax
ret
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100ac038
xor eax, eax
jmp 0x100ac03f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapAlloc]
ret

Function at 0x100ac480
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x100ac4ed
mov eax, dword [esi + 0xc]
cmp eax, dword [edi + 0xc]
jb 0x100ac4bd
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100ac4a9
xor eax, eax
push edi
push eax
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
pop esi
ret
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
pop esi
ret
test esi, esi
je 0x100ac4ed
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100ac4db
xor eax, eax
push esi
push eax
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 4], edi
pop esi
ret
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push esi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 4], edi
pop esi
ret