joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], esi
call fcn.1004fe8b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1001baf6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10041753
push 0x100846ec
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10033a26
push edi
push 0x3f
push esi
call fcn.1004ea13
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 8

Function at 0x1001cb10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1001cb41
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1001cb30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1001d340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x1001d371
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1001d360
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10022830
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x1002291d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10022874
cmp dword [esi + 0x40], ebx
jae 0x10022874
push eax
call fcn.1002771b
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1002288c
lea eax, [ebx + ebx]
push eax
call fcn.100276e5
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.10039a90
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x1002291a
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x10079dd0]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
and eax, 0xff
shr edx, 8
xor cl, bl
mov ebx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x10079dd0]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x100228a2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002295d
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x10022938
mov dword [esi + 0x14], 0x30000
jmp 0x10022990
push ebx
add ecx, edx
push edi
push ecx
call fcn.10039a90
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x10022989
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100325a2
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000b34f
pop dword [ebp - 0x28]
mov eax, 0xe8490723
sub eax, 0xd84853d4
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3b078
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xcdb72316
sub ecx, 0xcdb6d9bb
xor esi, esi
add esi, eax
mov edi, 0x10046c00
add edi, dword [ebp - 0x28]
mov ebx, 0xebaa7bb8
sub ebx, 0x8bfd224f
xor dword [ebp - 0x1c], 0xb37d889e
mov edx, dword [edi]
sub dword [ebp - 4], edx
add edx, ebx
xor dword [ebp - 0x20], esi
mov dword [esi], edx
sub dword [ebp - 0xc], 0xeb5329df
add esi, 4
add edi, 0x29bf367a
add edi, 0xd640c98a
loop 0x1000b3a5
add eax, 0xfa2b43b7
add eax, 0x5d5d488
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x41a24522
sub ecx, 0x31a24522
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4045f7
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x406af3
call fcn.004054fb
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x404616
mov al, 1
jmp 0x4046e2
test esi, esi
je 0x4046e0
xor ebx, ebx
cmp word [esi], bx
je 0x4046e0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4046e0
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x4046e0
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0040359e
pop ecx
pop ecx
mov esi, dword [0x40a010]
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x4046d1
lea eax, [ebp - 0x28]
push eax
call fcn.0040359e
pop ecx
test al, al
jne 0x4046d1
cmp dword [ebp - 0x18], esi
jbe 0x4046d1
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4046d1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4046d1
push 0x4075c8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.0040359e
mov al, bl
jmp 0x4046e2
xor al, al
call fcn.004054b6
ret
Function at 0x45cab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
or ebp, 0xffffffff
jmp 0x45cad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45cad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45cac8
mov eax, 1
add ebx, ebx
jne 0x45caeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45cae0
jne 0x45cafc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cae0
xor ecx, ecx
sub eax, 3
jb 0x45cb10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45cb82
mov ebp, eax
add ebx, ebx
jne 0x45cb1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45cb28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45cb4c
inc ecx
add ebx, ebx
jne 0x45cb38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45cb2d
jne 0x45cb49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cb2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cb6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45cb5d
jmp 0x45cace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cb6c
add edi, ecx
jmp 0x45cace
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45cb8a
cmp byte [edi], 0
jne 0x45cb8a
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 0x45cb8f
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cbfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cbbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2a0]
or eax, eax
je 0x45cbf8
mov dword [ebx], eax
add ebx, 4
jmp 0x45cbd9
call dword [esi + 0x5c29c]
mov ebp, dword [esi + 0x5c2a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x45cc32
sub esp, 0xffffff80
jmp 0x401870

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x1001139d
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10011430
call fcn.1000ed82
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100265f7
test eax, eax
je 0x10031507
cmp eax, 2
jne 0x100116c7
push dword [0x100de7cc]
call fcn.100a4151
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call fcn.100a4151
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call fcn.100a4151
pop ecx
pop ecx
test eax, eax
je 0x10050453
push edi
push esi
call sym.MSVCR120.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10011398
xor eax, eax
inc eax
call fcn.1000edc7
ret
cmp eax, 3
jne 0x1001141b
push edi
call fcn.100a4151
pop ecx
jmp 0x1001141b
call fcn.100261c8
test eax, eax
je 0x10031555
call fcn.10026580
test eax, eax
je 0x100503fe
call fcn.10026f4d
test eax, eax
js 0x10050408
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR120.dll__wcmdln], eax
call fcn.100a4151
jmp 0x100268e4
mov dword [0x100dfbbc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR120.dll__acmdln], eax
call fcn.10026c85
call fcn.10026928
test eax, eax
js 0x1003155c
push edi
call fcn.100a4151
pop ecx
test eax, eax
jne 0x1003155c
test edi, edi
jne 0x1005040f
inc dword [0x100dfbb8]
jmp 0x1001141b
mov eax, dword [0x100dfbb8]
test eax, eax
jle 0x10031555
dec eax
mov dword [0x100dfbb8], eax
mov dword [ebp - 4], edi
cmp dword [0x100e0418], 0
je 0x10050416
call fcn.10031219
call fcn.10031260
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10050420
mov dword [ebp - 4], 0xfffffffe
call fcn.1003154c
jmp 0x1001141b
xor eax, eax
jmp 0x10011423
xor edi, edi
inc edi
jmp 0x10026915
call fcn.1009f373
jmp 0x10031555
call fcn.100775db
jmp 0x100503fe
call fcn.1009f9c4
jmp 0x10050408
call sym.MSVCR120.dll__cexit
jmp 0x10031526
call fcn.1009f9c4
call fcn.100775db
call fcn.1009f373
jmp 0x1003153b
push esi
call fcn.100a4151
pop ecx
jmp 0x10031555
Function at 0x1001f855
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
push ebx
or ebx, 0xffffffff
push esi
lea esi, [ebp - 0x218]
test eax, eax
je 0x10051169
push edi
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1001f921
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jg 0x10051186
test edi, edi
je 0x1001f921
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001f919
cmp eax, 0x2f
je 0x1001f919
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call fcn.100a4151
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1001f921
xor ebx, ebx
cmp dword [ebp - 0x21c], 0
pop edi
jne 0x100511cd
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
cmp ax, word [esi + 2]
je 0x1001f8f7
jmp 0x1001f8c6
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100511c1
call sym.MSVCR120.dll___doserrno
and dword [eax], 0
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1001f907
lea eax, [edi + 1]
push 2
push eax
call fcn.100a4151
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f921
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x1001f921
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
jmp 0x1001f8b5
push eax
call fcn.100a4151
pop ecx
jmp 0x1001f8f9
push esi
call fcn.100a4151
pop ecx
jmp 0x1001f907

Function at 0x1001f985
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1001f9d8
cmp eax, 0x1a
jg 0x1001f9d8
add eax, 0x40
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100510c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
call sym.MSVCR120.dll___doserrno
jmp 0x100510d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100a4151
pop ecx
jmp 0x100510e7
mov dword [eax], 0xf
call sym.MSVCR120.dll__errno
mov dword [eax], 0xd
call sym.MSVCR120.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x1001f9ca

Function at 0x1002241a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x10022426
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10022fe7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x800
push 0
mov esi, 0x10023094
mov ebx, ecx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10050052
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x100230b0
push edi
call esi
mov ecx, dword [0x100def00]
push 0x100230c4
xor ecx, eax
push edi
mov dword [ebx], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230dc
xor ecx, eax
push edi
mov dword [ebx + 4], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230e8
xor ecx, eax
push edi
mov dword [ebx + 8], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023100
xor ecx, eax
push edi
mov dword [ebx + 0xc], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023114
xor ecx, eax
push edi
mov dword [ebx + 0x10], ecx
call esi
mov ecx, dword [0x100def00]
xor ecx, eax
mov dword [ebx + 0x14], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edi, eax
test edi, edi
je 0x10023080
jmp 0x10023009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x10023080
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
jmp 0x10023086

Function at 0x1002541d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x10050778
push esi
push 0x3bc
push 1
call fcn.100a4151
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10050797
call sym.MSVCR120.dll__getptd
push dword [eax + 0x6c]
push esi
call sym.MSVCR120.dll__initptd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
pop ecx
pop ecx
test eax, eax
jne 0x1002546f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10025498
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1005078f
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
xor eax, eax
jmp 0x1002548e
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100a4151
pop ecx
test edi, edi
je 0x100507a9
push edi
call fcn.100a4151
pop ecx
xor eax, eax
jmp 0x1002548d
Function at 0x10031373
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100313af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100313af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100313af
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x100313ae
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret

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

Disassembly:
push 0x24
mov eax, 0x100da940
call fcn.10021e72
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0x30]
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x1006846c
cmp dword [ebx + 0x1c], edx
mov ecx, dword [ebx + 0x14]
setne al
mov byte [ebp - 0x29], al
cmp dword [ebx + 0x18], edx
jne 0x1006843c
test al, al
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call fcn.100a4151
cmp byte [ebp - 0x29], 0
jne 0x10068448
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ebx, eax
lea ecx, [ebp - 0x28]
push ebx
call fcn.100a4151
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x1c]
push ebx
mov cx, word [eax + 4]
mov word [edx + 0xc], cx
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov ecx, dword [edx + 0x14]
imul edx, dword [edx + 0x24], 0x34
mov eax, dword [ecx + 0x10]
movzx ecx, word [edx + eax + 0xc]
mov esi, dword [edx + eax]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call fcn.100a4151
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, dword [ebx + 0x14]
call fcn.100a4151
mov edi, dword [ebx + 0x14]
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
imul ecx, dword [ebx + 0x28], 0x34
imul edx, eax, 0x34
mov eax, dword [edi + 0x10]
push ebx
add ecx, 0xc
mov eax, dword [edx + eax + 0x30]
add ecx, eax
call fcn.100a4151
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10068448
push ebx
add ecx, 0xc4
call fcn.100a4151
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x1006846c
call fcn.100a4151
call fcn.10021eea
ret
Function at 0x10070f7c
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100da5f0
call fcn.100157c2
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1007103b
push 0
pop edi
and eax, 3
je 0x10070fc4
cmp eax, 1
jne 0x10070fcd
and esi, 0xfffffffe
mov esi, dword [esi + 0x10]
add esi, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10070fc4
mov al, byte [eax + 0x44]
test al, al
jne 0x1007103b
mov ecx, esi
call fcn.10068350
jmp 0x10071002
and esi, 0xfffffffd
lea ecx, [esi + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x10], ecx
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
add esi, 0x10
test eax, eax
je 0x10070ff3
mov al, byte [eax + 0x44]
test al, al
je 0x10070ff3
mov esi, edi
jmp 0x10070ffa
mov ecx, esi
call fcn.10068350
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
test esi, esi
je 0x1007103b
cmp dword [esi + 0x14], ebx
je 0x10071035
push 0x3c
call fcn.100a4151
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x10071028
push esi
push ebx
mov ecx, eax
call fcn.100a4151
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10068350
jmp 0x10071037
mov edi, esi
mov eax, edi
jmp 0x1007103d
xor eax, eax
call fcn.100157f5
ret

Function at 0x10073f6d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x100db7e8
call fcn.100157c2
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x80000000
mov dword [edi + 0x18], esi
mov dword [edi + 0x38], esi
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::constructor_void_
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
call fcn.100a4151
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x10073fe8
cmp eax, 2
je 0x10073fe8
xor edx, edx
add eax, 4
inc edx
lock xadd dword [eax], edx
mov ecx, edi
call fcn.10074d68
lea ecx, [edi + 0x3c]
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::set_void_
cmp byte [ebp + 0xc], 0
je 0x10074029
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x10074023
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x10074031
jmp 0x10074012
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.1001ffa7
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x10074045
mov ecx, esi
call fcn.10065b8a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.100157f5
ret 8