joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041a0
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x413048
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41905c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor al, al
xor ebx, ebx
cmp dword [0x41a310], 0xffffffff
mov byte [esp + 0x13], al
jne 0x4042c7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x416838
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
jle 0x40423e
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00405060
mov ecx, dword [eax]
cmp ecx, ebx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
je 0x40423e
lea edx, [esi + 1]
push edx
push 0x416838
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esp + 0x18], esi
push str.ControlCenter4_MainProc_Pipe_Boot
mov dword [esp + 0x38], ebx
call edi
push str.ControlCenter4_MainProc_Pipe_Boot
lea edi, [esp + 0x18]
call fcn.00405240
mov esi, dword [esp + 0x14]
cmp esi, ebx
mov ecx, esi
jne 0x404266
mov ecx, 0x415bbc
mov eax, dword [0x41a314]
push ebx
push ebx
push eax
push eax
push 0xff
push 6
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x404290
mov dword [0x41a310], eax
mov byte [esp + 0x13], 1
jmp 0x40429b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41a30c], eax
cmp esi, ebx
mov dword [esp + 0x34], 0xffffffff
je 0x4042b0
push esi
call fcn.00407637
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov dword [0x41a30c], 0xb7
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x4056a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x412fd2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x41905c]
xor eax, esp
mov dword [esp + 0x418], eax
push edi
mov eax, dword [0x41905c]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [esp + 0x10]
push eax
push edi
push edi
push ecx
mov dword [esp + 0x43c], edi
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jl 0x405719
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.00405530
jmp 0x405742
cmp eax, 0x80070057
jne 0x405728
mov dword [ebx], 0x57
jmp 0x405742
cmp eax, 1
je 0x40573c
cmp eax, 0x80004005
je 0x40573c
mov dword [ebx], 0x54f
jmp 0x405742
mov dword [ebx], 3
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004074f2
add esp, 0x428
ret
Function at 0x406700
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x4067c2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x4067bf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x4067bf
cmp dword [esi + 0xc], 0
je 0x4067bf
cmp dword [esi + 0x10], 0
je 0x4067bf
cmp dword [esi + 0x14], 0
je 0x4067bf
cmp dword [esi + 0x18], 0
je 0x4067bf
cmp dword [esi + 0x1c], 0
je 0x4067bf
cmp dword [esi + 0x20], 0
je 0x4067bf
test eax, eax
jne 0x4067c2
xor eax, eax
ret
mov eax, 1
ret

Function at 0x4074f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41905c]
jne 0x4074fc
repz ret
jmp fcn.00408152
Function at 0x40b54b
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 + 0x419828]
je 0x40b566
inc edi
cmp edi, 0x17
jb 0x40b557
cmp edi, 0x17
jae 0x40b6e6
push ebp
push 3
call fcn.004103ad
cmp eax, 1
pop ecx
je 0x40b6b2
push 3
call fcn.004103ad
test eax, eax
pop ecx
jne 0x40b59a
cmp dword [0x419058], 1
je 0x40b6b2
cmp ebx, 0xfc
je 0x40b6e5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41a770
push ebp
call fcn.0040e247
add esp, 0xc
test eax, eax
je 0x40b5d0
push esi
push esi
push esi
push esi
push esi
call fcn.00409032
add esp, 0x14
push 0x104
mov esi, 0x41a789
push esi
push 0
mov byte [0x41a88d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b614
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040e247
add esp, 0xc
test eax, eax
je 0x40b614
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00409032
add esp, 0x14
push esi
call fcn.0040e2b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b659
push esi
call fcn.0040e2b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41aa84
push 0x414964
sub ecx, eax
push ecx
push eax
call fcn.0040ef86
add esp, 0x14
test eax, eax
je 0x40b659
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00409032
add esp, 0x14
jmp 0x40b65b
xor esi, esi
push 0x414960
push ebx
push ebp
call fcn.0040eec5
add esp, 0xc
test eax, eax
je 0x40b67b
push esi
push esi
push esi
push esi
push esi
call fcn.00409032
add esp, 0x14
push dword [edi*8 + 0x41982c]
push ebx
push ebp
call fcn.0040eec5
add esp, 0xc
test eax, eax
je 0x40b69d
push esi
push esi
push esi
push esi
push esi
call fcn.00409032
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004101f0
add esp, 0xc
jmp 0x40b6e5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40b6e5
cmp ebp, 0xffffffff
je 0x40b6e5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41982c]
push dword [esi]
call fcn.0040e2b0
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 0x4101f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408330
xor ebx, ebx
cmp dword [0x41ae74], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4102c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4103a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4103a6
push eax
call fcn.004082c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ae74], eax
call esi
push eax
call fcn.004082c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ae78], eax
call esi
push eax
call fcn.004082c2
mov dword [0x41ae7c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408a31
test eax, eax
pop ecx
pop ecx
je 0x410294
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409032
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4102c6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004082c2
cmp eax, ebx
pop ecx
mov dword [0x41ae84], eax
je 0x4102c6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004082c2
pop ecx
mov dword [0x41ae80], eax
mov eax, dword [0x41ae80]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41034b
cmp dword [0x41ae84], ecx
je 0x41034b
push eax
call fcn.00408339
push dword [0x41ae84]
mov esi, eax
call fcn.00408339
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41034b
cmp edi, ebx
je 0x41034b
call esi
cmp eax, ebx
je 0x410318
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410318
test byte [ebp - 0x18], 1
jne 0x41034b
lea eax, [ebp - 0x10]
push eax
call fcn.00408a68
test eax, eax
pop ecx
je 0x410333
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409032
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x410342
or dword [ebp + 0x10], 0x200000
jmp 0x410386
or dword [ebp + 0x10], 0x40000
jmp 0x410386
mov eax, dword [0x41ae78]
cmp eax, dword [ebp - 8]
je 0x410386
push eax
call fcn.00408339
cmp eax, ebx
pop ecx
je 0x410386
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410386
mov eax, dword [0x41ae7c]
cmp eax, dword [ebp - 8]
je 0x410386
push eax
call fcn.00408339
cmp eax, ebx
pop ecx
je 0x410386
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ae74]
call fcn.00408339
cmp eax, ebx
pop ecx
je 0x4103a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4103a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x156351a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1920170b
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
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 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10009e2b
Capabilities:
Get common file path

Disassembly:
push 0x274
mov eax, 0x100a3771
call fcn.1007a1f5
mov esi, ecx
mov eax, dword [esi + 0x120]
xor ebx, ebx
mov eax, dword [eax]
cmp dword [eax + 0x178], ebx
je 0x10009fa7
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], bx
je 0x10009e7b
add eax, 2
cmp word [eax], bx
jne 0x10009e73
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100cdc50
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100124b7
mov eax, dword [esi + 0x120]
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [eax]
add eax, 0x168
mov dword [ebp - 0x220], ebx
push eax
call fcn.1000c826
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100020f2
mov byte [ebp - 0x268], bl
lea eax, [ebp - 0x24c]
push dword [ebp - 0x268]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.100024b9
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 3
push eax
call fcn.1000fdb8
add esp, 0x1c
lea ecx, [ebp - 0x280]
mov bl, al
call fcn.1000e787
test bl, bl
je 0x10009f42
cmp dword [ebp - 0x238], 0x10
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.1008017c
pop ecx
lea ecx, [ebp - 0x24c]
call fcn.1000e761
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10009f9c
mov ecx, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x10009f93
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.10079c70
pop ecx
pop ecx
lea ecx, [ebp - 0x264]
call fcn.1000e761
call fcn.1007a1a4
ret
Function at 0x10009fad
Capabilities:
Get common file path

Disassembly:
push 0x278
mov eax, 0x100a37cc
call fcn.1007a1f5
mov edi, ecx
mov eax, dword [edi + 0x120]
xor ebx, ebx
mov esi, dword [eax]
add esi, 0x138
cmp dword [esi + 0x10], ebx
je 0x1000a16a
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], bx
je 0x1000a000
add eax, 2
cmp word [eax], bx
jne 0x10009ff8
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100cdc50
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100124b7
mov eax, dword [edi + 0x120]
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov eax, dword [eax]
add eax, 0x168
mov dword [ebp - 0x224], ebx
push eax
call fcn.1000c826
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.100020f2
mov byte [ebp - 0x26c], bl
lea eax, [ebp - 0x250]
push dword [ebp - 0x26c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.100024b9
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 3
push eax
call fcn.1000fdb8
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
mov bl, al
call fcn.1000e787
test bl, bl
jne 0x1000a105
lea eax, [ebp - 0x250]
mov dword [ebp - 0x26c], edi
push eax
push esi
lea eax, [ebp - 0x26c]
push eax
push 0x1000b960
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.100040e5
add esp, 0x18
lea ecx, [edi + 8]
push eax
mov byte [ebp - 4], 4
call fcn.1000dc4c
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x1000a105
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1000a105
call fcn.1000cb32
lea ecx, [ebp - 0x250]
call fcn.1000e761
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x1000a15f
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x26c], ecx
cmp eax, 0x1000
jb 0x1000a156
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
push eax
push ecx
call fcn.10079c70
pop ecx
pop ecx
lea ecx, [ebp - 0x268]
call fcn.1000e761
call fcn.1007a1a4
ret
Function at 0x1000a170
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x100a3811
call fcn.1007a1f5
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], 0xf
push ebx
mov edi, 0x100a7690
mov dword [ebp - 0x234], ebx
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.1000ec5f
mov eax, dword [esi + 0x120]
mov dword [ebp - 4], ebx
mov eax, dword [eax]
add eax, 0x40
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1000a1ca
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.1000eb05
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.1000eb05
cmp dword [ebp - 0x224], 0
je 0x1000a261
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
lea eax, [ebp - 0x218]
je 0x1000a217
add eax, 2
cmp word [eax], bx
jne 0x1000a20f
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100cdc50
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100124b7
push edi
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.1000213b
add esp, 0xc
lea ecx, [ebp - 0x264]
call fcn.1000e761
lea ecx, [ebp - 0x24c]
call fcn.1000e761
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x1000a2b0
mov ecx, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x1000a2a7
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.10079c70
pop ecx
pop ecx
call fcn.1007a1a4
ret
Function at 0x1001033f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
and dword [ebp - 4], 0
push esi
mov dword [ecx + 4], eax
lea esi, [ecx + 0x1c]
lea eax, [ebp - 4]
push eax
lea eax, [ecx + 0xc]
push esi
push eax
call fcn.100047ca
push 0x20
push 0x100a74c8
push esi
call fcn.1007c640
add esp, 0x18
pop esi
leave
ret

Function at 0x100113e3
Capabilities:
Authenticate hmac

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x10011401
call fcn.10012155
test al, al
jne 0x10011401
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
mov ecx, esi
call fcn.10010150
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x10011401
cmp eax, 9
je 0x10011401
cmp eax, 0xa
je 0x10011401
cmp eax, 0xd
je 0x10011401
cmp eax, 0x36
jg 0x1001147a
je 0x10011449
cmp eax, 0x30
jg 0x10011461
je 0x10011449
cmp eax, 0xffffffff
je 0x1001145d
test eax, eax
je 0x1001145d
cmp eax, 0x22
je 0x10011455
cmp eax, 0x2c
je 0x10011451
cmp eax, 0x2d
jne 0x100114c9
mov ecx, esi
pop esi
jmp fcn.10011549
push 0xd
jmp 0x100113fe
mov ecx, esi
pop esi
jmp fcn.1001188f
push 0xf
jmp 0x100113fe
sub eax, 0x31
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
jmp 0x10011443
cmp eax, 0x5d
jg 0x100114af
je 0x100114a8
sub eax, 0x37
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x100114a1
sub eax, 0x21
jne 0x100114c9
push 8
jmp 0x100113fe
push 0xc
jmp 0x100113fe
push 0xa
jmp 0x100113fe
sub eax, 0x66
je 0x100114f9
sub eax, 8
je 0x100114ee
sub eax, 6
je 0x100114e3
sub eax, 7
je 0x100114dc
dec eax
sub eax, 1
je 0x100114d5
mov dword [esi + 0x40], str.invalid_literal
jmp 0x100113fc
push 0xb
jmp 0x100113fe
push 9
jmp 0x100113fe
push 1
push 4
push str.true
jmp 0x10011502
push 3
push 4
push str.null
jmp 0x10011502
push 2
push 5
push str.false
mov ecx, esi
call fcn.1001150b
pop esi
ret
Function at 0x10012b3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10012b65
jl 0x10012b5c
test edi, edi
jne 0x10012b65
xor eax, eax
xor edx, edx
jmp 0x10012c15
cmp dword [esi + 0x38], 0
je 0x10012b78
push eax
push edi
push edx
call fcn.10012c1f
jmp 0x10012c15
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10012bb2
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x10012bb2
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push edx
call fcn.1007c640
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x10012c0a
mov ecx, esi
call fcn.1000e01b
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x10012bea
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.1007f7a2
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10012c1b
mov eax, 0xfff
cmp ebx, eax
ja 0x10012bc8
test ecx, ecx
je 0x10012c0a
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.1007f7a2
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x10012c0c