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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4368
cmp edx, dword [eax]
je 0x4bb95f
add eax, 8
inc ecx
cmp eax, 0x4c43f8
jl 0x4bb950
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4368]
jne 0x4bba8d
mov eax, dword [0x4c8cec]
cmp eax, 1
je 0x4bba67
test eax, eax
jne 0x4bb990
cmp dword [0x4c4294], 1
je 0x4bba67
cmp edx, 0xfc
je 0x4bba8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb9c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bba0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0b8c
push edi
call fcn.004be680
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc330
lea eax, [ebp - 0xa0]
push 0x4c0b6c
push eax
call fcn.004bc330
push dword [esi + 0x4c436c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be5f4
add esp, 0x2c
pop edi
jmp 0x4bba8d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c436c]
push 0
push eax
push dword [esi]
call fcn.004bc7b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x404340
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x40449a
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004025d0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x40446d
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x4043f3
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x404463
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x40442d
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x404425
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x404460
cmp edi, edx
je 0x40443d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x404476
cmp edi, edx
jne 0x404431
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x4043a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x404460
push str.invalid_hash_bucket_count
call fcn.00405dae
int3

Function at 0x405f8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x405fb3
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x405fb6
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00405f68
pop esi
leave
ret 8
Function at 0x4071de
Capabilities:
Parse pe header

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

Function at 0x40c44b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417334
push 0x41732c
push str.FlsAlloc
push 0x1f
call fcn.0040c386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c47f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41418c]
call esi
jmp 0x40c485
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c4c9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417344
push 0x41733c
push str.FlsGetValue
push 0x21
call fcn.0040c386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c500
push dword [ebp + 8]
mov ecx, esi
call dword [0x41418c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c508
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41734c
push 0x417344
push str.FlsSetValue
push 0x22
call fcn.0040c386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c542
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41418c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e559
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40e5a4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040e6f4
test al, al
jne 0x40e59e
sub edx, 2
cmp edx, edi
jne 0x40e584
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40e5c6
lea eax, [edi + 2]
cmp edx, eax
je 0x40e5c6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040e4a5
add esp, 0x10
jmp 0x40e6c0
push esi
lea ecx, [ebp - 0x255]
call fcn.0040e6f4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e609
push dword [ebp - 0x25c]
jmp 0x40e5b6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40e646
cmp word [ebp - 0x226], 0
je 0x40e667
cmp word [ebp - 0x226], ax
jne 0x40e646
cmp word [ebp - 0x224], 0
je 0x40e667
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040e4a5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40e6b3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40e620
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40e69b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40e6c0
push 0x40e2d5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411360
add esp, 0x10
jmp 0x40e690
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065bd
leave
ret
Function at 0x412e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000aaa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000aab2
pop dword [ebp - 8]
mov eax, 0xe249cccf
sub eax, 0xd249221d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xd0cb41f1
add dword [ebp - 0x18], 0x7d87035a
mov dword [ebp - 0x14], 0x146def23
add dword [ebp - 0x14], 0x1dc55d22
mov dword [ebp - 0x10], 0x476d3a11
sub dword [ebp - 0x10], 0xfb20f5e3
mov dword [ebp - 0xc], 0xc9ea03f6
add dword [ebp - 0xc], 0x3615fc0a
lea eax, [ebp - 0x18]
push eax
mov eax, 0x9dd28ccb
add eax, 0x722e3359
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc79288c7
sub dword [ebp - 0x18], 0x53201f71
mov dword [ebp - 0x14], 0xfaf77d8a
add dword [ebp - 0x14], 0x4674e3eb
mov dword [ebp - 0x10], 0x8bc847e3
add dword [ebp - 0x10], 0xd7a72489
mov dword [ebp - 0xc], 0x1d286eb6
add dword [ebp - 0xc], 0xe2d7914a
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x381ab
push 0
call eax
mov ecx, 0x4868
xor edi, edi
add edi, eax
mov edx, 0x9d59c7be
sub edx, 0x8d5553be
add edx, dword [ebp - 8]
mov esi, 0x774c6a8
add dword [ebp - 4], edi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x5ab1cae4
add ebx, esi
mov dword [edi], ebx
add edi, 0x913fd34d
add edi, 0x6ec02cb7
add edx, 0xe27d0466
sub edx, 0xe27d0462
loop 0x1000abc5
add eax, 0xc1193858
sub eax, 0xc11823e5
mov ebx, eax
add eax, 0x73a9a9d0
sub eax, 0x73a9a9cb
mov ecx, 0x783790d8
add ecx, 0x97c86f28
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002b0a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x1002b0a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1002b0b2
pop dword [ebp - 0x24]
mov eax, 0xf07015ec
add eax, 0x1f929ac6
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x41d86
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xc1dfeca9
sub ecx, 0xc1df9e52
mov edi, eax
mov esi, 0x72093b5e
add esi, 0x9dfb80a2
add esi, dword [ebp - 0x24]
mov ebx, 0xa4be45c
add ebx, 0xc897505a
mov edx, dword [esi]
add dword [ebp - 0x20], edx
sub edx, ebx
mov dword [edi], edx
xor dword [ebp - 0x14], edi
add edi, 4
add esi, 0x7eae15b8
sub esi, 0x7eae15b4
loop 0x1002b10c
add eax, 0x12c2f
xor ebx, ebx
add ebx, eax
add eax, 0xa17c93f1
sub eax, 0xa17c93ec
mov ecx, 0xfb5cd426
add ecx, 0x14a32bda
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100015a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, 0x10181f8c
push esi
push edi
mov dword [ebx + 0x2c], eax
mov dword [ebx], vtable.VthreadContext.0
mov word [ebx + 4], dx
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov word [ebx + 0x1c], 0x101
mov byte [ebx + 0x1e], dl
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
lock inc dword [0x10181f80]
xor eax, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
lock inc dword [0x10181f80]
or dword [ebx + 0x70], 0xffffffff
lea edi, [ebx + 0x9c]
mov eax, dword [ebp + 8]
mov esi, 0x100ee538
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x80], 0x10182a34
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x74], edx
mov word [ebx + 0x7c], dx
mov dword [ebx + 0x84], 1
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], edx
mov byte [ebx + 0x90], dl
mov dword [ebx + 0x94], edx
mov byte [ebx + 0x98], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 1
je 0x10001686
or eax, 2
mov dword [ebx + 0x2c], eax
mov al, byte [ebx + 0x2c]
and al, 1
mov byte [ebp + 0xf], al
cmp byte [0x10181cd9], dl
jne 0x100016c1
mov esi, 0x10181ce0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x10181cd9], 0
jne 0x100016ba
mov al, byte [ebp + 0xf]
mov byte [0x10181cda], al
mov byte [0x10181cd9], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
mov ecx, 0x1017e06c
shr eax, 1
and al, 1
movzx eax, al
push eax
call fcn.10047e8b
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10004632
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], esi
push dword [esi + 0x58]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x100046a5
cmp dword [0x10181be0], 0
push ebx
push 0xc
je 0x10004660
pop ecx
call fcn.10047e8b
jmp 0x10004667
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
test ebx, ebx
je 0x1000469f
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov edi, eax
add esi, 0x40
mov dword [ebx + 8], ecx
push esi
and edi, 0xf
mov dword [ebx + 4], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
push esi
mov eax, dword [ecx + edi*4]
mov dword [ebx], eax
mov dword [ecx + edi*4], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
inc eax
pop ebx
jmp 0x100046a7
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000634a
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100dfa13
call fcn.10001371
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10174460]
xor ebx, ebx
mov word [esi], bx
call dword [sym.imp.kernel32.dll_TlsGetValue]
or dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov byte [esi + 8], bl
mov dword [esi + 0x10], ebx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
add eax, 0xfffffff4
lock inc dword [eax]
mov al, byte [ebp + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 0x18], al
call fcn.100ad21c
push esi
mov ecx, eax
call fcn.100068ef
mov eax, esi
call fcn.1000140a
ret 8
Function at 0x100075c1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dfc50
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.100077c0
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], ecx
test eax, eax
je 0x1000761e
push ecx
push eax
lea ecx, [ebp - 0x1010]
call fcn.10047e8b
pop ecx
pop ecx
test eax, eax
jns 0x10007622
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [0x101827bc]
jg 0x100077a4
push dword [0x10174460]
xor esi, esi
xor edi, edi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100077a4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x1000778c
mov ecx, dword [eax]
cmp dword [ecx - 4], esi
je 0x1000778c
mov edx, dword [0x10177120]
inc edx
mov dword [0x10177120], edx
cmp edx, 0x64
jb 0x10007685
mov ecx, ebx
call fcn.100a5dfa
push 0x38
cmp dword [0x10181be0], esi
je 0x10007697
pop ecx
call fcn.10047e8b
jmp 0x1000769e
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x1020], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x100076d2
mov ecx, dword [ebp - 0x1014]
push ebx
push 0xea60
push ebx
push ebx
push 0x180
push 0x100f0454
push dword [ecx]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_800
mov esi, eax
jmp 0x100076d4
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x1000778c
cmp dword [esi + 0x1c], 3
je 0x100076f6
mov dword [esi + 0x1c], 2
push dword [ebp + 0x10]
mov ecx, esi
call fcn.10047e8b
lea ecx, [ebp - 0x1030]
call sym.fpsrvutl.dll_Ordinal_4931
push str.__m__d__H:_M:_S
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_5768
push ebx
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_3754
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.10047e8b
push 0x100ef2b8
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1561
push dword [ebp - 0x1018]
mov ecx, esi
push dword [ebp - 0x101c]
call fcn.10047e8b
mov edi, eax
test edi, edi
jne 0x1000778c
push 0x100ef294
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1561
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
test esi, esi
je 0x10007798
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test edi, edi
je 0x100077a4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100013fd
leave
ret 0x14
Function at 0x1001350e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, esi
mov dword [ebp + 0xc], eax
cmp dword [edi + 0x34], esi
jne 0x100135f2
test ebx, ebx
je 0x100135f2
cmp dword [edi + 0x28], 0xffffffff
je 0x100135f2
cmp byte [edi + 0x30], al
je 0x10013564
xorps xmm0, xmm0
push 2
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10047e8b
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x34], esi
jne 0x100135f2
cmp dword [edi + 0x1c], 3
mov edx, esi
jne 0x1001358f
push esi
lea eax, [ebp + 0xc]
push eax
mov eax, ebx
shr eax, 1
push eax
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov edx, eax
mov eax, dword [ebp + 0xc]
test edx, edx
je 0x1001358f
add eax, eax
jmp 0x100135e7
mov ecx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
jmp 0x100135d4
mov esi, 0x100000
lea eax, [ebp - 8]
push 0
cmp ecx, esi
push eax
cmovb esi, ecx
push esi
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 8], ecx
add eax, ecx
sub dword [ebp - 4], ecx
mov dword [ebp + 0xc], eax
cmp ecx, esi
jb 0x100135d8
test edx, edx
je 0x100135dc
mov ecx, dword [ebp - 4]
cmp eax, ebx
jb 0x10013599
test edx, edx
jne 0x100135e7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi + 0x34], eax
xor eax, eax
cmp eax, ebx
jae 0x100135f2
mov dword [edi + 0x34], 0x70
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1002d556
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x20c]
mov eax, edx
cmp dword [ebp + 8], edx
mov edi, dword [esi]
cmova eax, dword [ebp + 8]
add eax, edx
mov dword [esi + 0x20c], eax
jns 0x1002d595
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x20c]
call sym.fpsrvutl.dll_Ordinal_2749
push eax
call fcn.10047e8b
mov ecx, dword [esi + 0x20c]
inc ecx
call fcn.1003b713
mov edx, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
inc edx
cmp edx, ecx
mov dword [esi], eax
cmovae edx, ecx
push edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 4]
add esp, 0xc
cmp edi, eax
je 0x1002d5ce
push edi
call fcn.10047e8b
pop ecx
pop edi
pop esi
pop ebp
ret 4