joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e103
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46a338]
je 0x43e11e
inc edi
cmp edi, 0x17
jb 0x43e10f
cmp edi, 0x17
jae 0x43e29e
push ebp
push 3
call fcn.0044626e
cmp eax, 1
pop ecx
je 0x43e26a
push 3
call fcn.0044626e
test eax, eax
pop ecx
jne 0x43e152
cmp dword [0x46a060], 1
je 0x43e26a
cmp ebx, 0xfc
je 0x43e29d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x599c18
push ebp
call fcn.00439ff6
add esp, 0xc
test eax, eax
je 0x43e188
push esi
push esi
push esi
push esi
push esi
call fcn.0043a2c0
add esp, 0x14
push 0x104
mov esi, 0x599c31
push esi
push 0
mov byte [0x599d35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43e1cc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00439ff6
add esp, 0xc
test eax, eax
je 0x43e1cc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043a2c0
add esp, 0x14
push esi
call fcn.0043c650
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43e211
push esi
call fcn.0043c650
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x599f2c
push 0x451bcc
sub ecx, eax
push ecx
push eax
call fcn.004461bb
add esp, 0x14
test eax, eax
je 0x43e211
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043a2c0
add esp, 0x14
jmp 0x43e213
xor esi, esi
push 0x451bc8
push ebx
push ebp
call fcn.0043c2eb
add esp, 0xc
test eax, eax
je 0x43e233
push esi
push esi
push esi
push esi
push esi
call fcn.0043a2c0
add esp, 0x14
push dword [edi*8 + 0x46a33c]
push ebx
push ebp
call fcn.0043c2eb
add esp, 0xc
test eax, eax
je 0x43e255
push esi
push esi
push esi
push esi
push esi
call fcn.0043a2c0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00445ffe
add esp, 0xc
jmp 0x43e29d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43e29d
cmp ebp, 0xffffffff
je 0x43e29d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46a33c]
push dword [esi]
call fcn.0043c650
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x445ffe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043e3e2
xor ebx, ebx
cmp dword [0x59a5f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4460d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4461b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4526c4
push edi
call esi
cmp eax, ebx
je 0x4461b4
push eax
call fcn.0043e374
mov dword [esp], 0x4526b4
push edi
mov dword [0x59a5f8], eax
call esi
push eax
call fcn.0043e374
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x59a5fc], eax
call esi
push eax
call fcn.0043e374
mov dword [0x59a600], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043b156
test eax, eax
pop ecx
pop ecx
je 0x4460a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a2c0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4460d4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043e374
cmp eax, ebx
pop ecx
mov dword [0x59a608], eax
je 0x4460d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e374
pop ecx
mov dword [0x59a604], eax
mov eax, dword [0x59a604]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446159
cmp dword [0x59a608], ecx
je 0x446159
push eax
call fcn.0043e3eb
push dword [0x59a608]
mov esi, eax
call fcn.0043e3eb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446159
cmp edi, ebx
je 0x446159
call esi
cmp eax, ebx
je 0x446126
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446126
test byte [ebp - 0x18], 1
jne 0x446159
lea eax, [ebp - 0x10]
push eax
call fcn.0043b18d
test eax, eax
pop ecx
je 0x446141
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a2c0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446150
or dword [ebp + 0x10], 0x200000
jmp 0x446194
or dword [ebp + 0x10], 0x40000
jmp 0x446194
mov eax, dword [0x59a5fc]
cmp eax, dword [ebp - 8]
je 0x446194
push eax
call fcn.0043e3eb
cmp eax, ebx
pop ecx
je 0x446194
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446194
mov eax, dword [0x59a600]
cmp eax, dword [ebp - 8]
je 0x446194
push eax
call fcn.0043e3eb
cmp eax, ebx
pop ecx
je 0x446194
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59a5f8]
call fcn.0043e3eb
cmp eax, ebx
pop ecx
je 0x4461b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4461b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x668b67
Capabilities:
Load windows common language runtime

Disassembly:
call fcn.0040e960
add esp, 4
xor eax, eax
xchg ebx, ebx
pop ebx
jmp 0x6ec201
mov ebx, eax
jmp 0x706f3c
push 0x45631c
jmp 0x5f48fc
jge 0x65101f
push str.Unable_to_load_the_CLR_v2_n
movzx ebx, si
jmp 0x5cc309
push 3
push 0x4561d8
jmp 0x60d45b
push 0x45632c
jmp 0x5eb38c
call eax
test eax, eax
jmp 0x5eb7e0
push 0x4561e0
jmp 0x606b5c
mov eax, 1
movsx bx, bh
bswap bx
pop ebx
jmp loc.00429c24
push ebx
jmp 0x6d751d
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jmp 0x6c48a3
jne 0x6cb984
push str.Cant_load_mscoree.dll_for_.net_framework_v2.0.50727_n
xor ebx, ebx
jmp 0x5b9dfc
mov ecx, dword [esp + 8]
jmp 0x6e98d0
push 0x45618c
push eax
jmp 0x6ab76a
push ecx
jmp 0x601276
ret
call fcn.0040e960
lea esp, [esp + 4]
sub eax, eax
bswap ebx
pop ebx
jmp 0x726e9d
ret
Function at 0x697c5d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, 0x8000
jb 0x714b7d
mov ecx, dword [esi + 0xd46c]
cmp ch, al
test ax, 0x6305
cmc
cmp ecx, 0x18000
jmp 0x7106c4
mov eax, dword [esi + 0x12848]
add cl, 0xb2
test ch, 0x82
and cx, sp
mov ecx, dword [esi + 0x12840]
movsx edx, dx
movzx edx, byte [ecx + eax]
rcl cx, cl
lea eax, [eax + 1]
shl cl, cl
mov dword [esi + 0x12854], edx
clc
xchg cx, dx
btc dx, di
mov dword [esi + 0x12848], eax
mov dword [esi + 0x12858], 0x80
mov dx, 0x7f0
sbb ax, 0x152
mov eax, dword [esi + 0x12854]
jmp 0x630bb5
jb 0x42307f
add dword [esi + 0xd470], edi
stc
add eax, 0xffff0000
cmc
cmp esi, edi
add dword [esi + 0xd46c], edi
mov dword [esi + 0xd468], eax
jmp 0x5df268
mov dword [esi + 0xd46c], ecx
jmp 0x637129
jmp 0x71aa46
call fcn.0043b90d
add esp, 4
jmp 0x6b5a0b
mov dword [esi + 0xd468], eax
jmp 0x5d1a6b
mov ebx, esi
movzx edi, di
mov edi, edx
mov edi, eax
jmp 0x634167
and eax, dword [esi + 0x12858]
sbb ecx, 0x56fd48b3
cmc
mov ecx, dword [esi + 0xd470]
movsx dx, bh
neg eax
xchg dl, dh
cwd
mov dl, ch
sbb eax, eax
neg eax
jmp 0x7234d0
call fcn.00410f00
mov edi, dword [esi + 0xe338]
xor ebx, 0xf8f5911
shl bh, 0xeb
sal cl, cl
mov ebx, eax
dec ch
cmc
mov eax, dword [esi + ebx*4 + 0xe334]
mov cl, ch
cmovo cx, ax
imul eax, ebp
sub edx, edx
rol cx, 0x58
or cl, 0xb4
div edi
or cx, bp
movzx cx, cl
mov ecx, dword [esi + 0xd468]
xor edx, edx
cmp edi, ebp
test ebp, 0x37cb4b67
cmp ecx, 0x54e05a29
lea eax, [eax + ecx]
test edx, eax
cmp bl, 0x30
mov dword [esi + 0xd46c], eax
sub ax, di
mov eax, dword [esi + ebx*4 + 0xe338]
cmp esi, 0x2ad736ee
cmc
test ecx, 0x5122289f
imul eax, ebp
div edi
rcr ebp, 0x1f
dec bp
mov edi, 0xffff0000
stc
and ebp, 0xd1d09c4
mov ebp, 0xffff8000
cmp cx, 0x74e5
jmp 0x6f6948
jne 0x5a035e
cmp byte [esi + 0x12828], 0
jmp 0x691db1
mov edi, dword [esi + ebx*4 + 0xd960]
xchg dh, dh
mov dx, bx
mov edx, esi
jmp 0x6f1559
jmp 0x6f6965
jne 0x5a0314
mov edx, dword [esi + 4]
jmp 0x726951
mov ecx, dword [esi + 0xd468]
add dl, 0x6d
or ax, ax
mov eax, dword [esi + 0xd470]
shl edx, 0x6a
bsf edx, ebp
cmp bp, 0x7f2d
mov edx, dword [esi + 0xe338]
cmp ebp, 0x59025545
sub eax, ecx
stc
add eax, 1
test ebp, edx
test edi, 0x1eb278b7
imul eax, edx
clc
jmp 0x6cf479
mov dword [esi + 0x12854], eax
jmp 0x710f31
push ebx
cmp ax, 0x7577
clc
btr bx, 0xf
push ebp
movzx ebp, bx
mov ebp, dword [esi + 0xd46c]
sal ebx, 0x88
sub ebp, ecx
stc
sub eax, 1
sub edx, edx
neg ebx
div ebp
bswap bx
movzx bx, bl
push edi
jmp 0x62ac83
call fcn.005d9076
mov eax, edi
movzx bx, cl
pop edi
pop ebp
movsx ebx, sp
movsx bx, ah
mov ebx, ebx
pop ebx
jmp 0x4378a9
lea eax, [eax + ecx]
stc
cmc
mov dword [esi + 0xd468], eax
shld ax, dx, 0x42
mov ah, 1
lea esp, [esp]
bsr eax, esp
mov eax, dword [esi + 0xd468]
cmc
test esp, 0x127633a9
cmp eax, 0x10000
jmp 0x5a1323
add ecx, ecx
test sp, dx
shr dword [esi + 0x12858], 1
jmp 0x6033bc
mov dword [esi + 0xd470], edx
jmp 0x653ff6
jmp 0x5a034c
cmp dword [esi + 0xd46c], 0x10000
jmp 0x71aa40
ja 0x642537
mov eax, dword [esi + 0xd468]
bts ecx, ecx
btc cx, cx
sal cx, cl
mov ecx, dword [esi + 0xd46c]
clc
test eax, 0x62b42402
add eax, eax
jmp 0x6f750c
lea edx, [eax + ecx*2]
jmp 0x70d0fa
push edx
jmp 0x5e654c
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.100d0434
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call fcn.100d0434
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call fcn.100d0434
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.100d0434
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.100d0434
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.100d0434
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.100d0434
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.100d0434
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.100d0434
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.100d0434
pop ecx
jmp 0x1001f8f9
push esi
call fcn.100d0434
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.100d0434
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.100d0434
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.100d0434
pop ecx
test edi, edi
je 0x100507a9
push edi
call fcn.100d0434
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.100d0434
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.100d0434
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.100d0434
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, dword [ebx + 0x14]
call fcn.100d0434
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.100d0434
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10068448
push ebx
add ecx, 0xc4
call fcn.100d0434
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.100d0434
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.100d0434
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.100d0434
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.100d0434
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
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call fcn.100d0434
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret

Function at 0x100d0434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100d0443
pop dword [ebp - 0x48]
mov eax, 0x1088271a
add eax, 0xff84dd29
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x5bd0d
push 0
mov eax, 0x3264ff19
add eax, 0xdda94287
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x40bd
mov ebx, eax
mov edi, 0xc59ae1c7
sub edi, 0xb58c13c7
add edi, dword [ebp - 0x48]
mov edx, 0xf891069c
sub edx, 0xeea63bce
sub dword [ebp - 0x24], ecx
mov esi, dword [edi]
sub dword [ebp - 0x28], 0x6aacb8e3
sub esi, edx
add dword [ebp - 0x3c], ebx
mov dword [ebx], esi
xor dword [ebp - 0x38], 0xd2e13671
add ebx, 0x36365c0c
add ebx, 0xc9c9a3f8
add edi, 0xa90a323c
add edi, 0x56f5cdc8
loop 0x100d049c
add eax, 0x9169599c
sub eax, 0x916863d5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7bf2a17d
add ecx, 0x940d5e83
add ecx, dword [ebp - 0x48]
call ebx
leave
ret