joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e18c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov ebx, eax
mov eax, dword [ebx + 0x60]
mov esi, eax
lea edi, [esp + 4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [esp + 0x14]
test edx, edx
jns 0x50e1b3
call fcn.00404334
xor ecx, ecx
mov eax, dword [ebx + 0x78]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x50e1fc
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x50e1f4
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [0x50d7d0]
call fcn.00406548
inc edi
dec esi
jne 0x50e1db
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x44]
movzx esi, word [esp + 0xc]
test esi, esi
jle 0x50e279
mov edx, dword [0x50d7d0]
mov eax, 0x3c
call fcn.00406534
mov dword [esp], eax
mov edx, dword [esp]
mov ecx, 0x2e
mov eax, dword [ebx + 0x78]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esp]
movzx ecx, word [eax + 0x1c]
mov eax, dword [esp]
lea edx, [eax + 0x30]
mov eax, dword [ebx + 0x78]
call fcn.00509d2c
mov eax, dword [esp]
movzx edx, word [eax + 0x1e]
mov cx, 1
mov eax, dword [ebx + 0x78]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esp]
movzx ecx, word [eax + 0x20]
mov eax, dword [esp]
lea edx, [eax + 0x34]
mov eax, dword [ebx + 0x78]
call fcn.00509d2c
mov eax, dword [esp]
mov edx, dword [eax + 0x30]
mov ecx, dword [esp]
mov eax, dword [ebx + 0x30]
mov edi, dword [eax]
call dword [edi + 0x3c]
dec esi
jne 0x50e205
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
movzx edx, word [esp + 0xc]
cmp eax, edx
sete al
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4503f9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x469580
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x469678
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
mov bl, byte [esi + ebx]
push str.ugAyuisyx
push 0x51a500
call fcn.0044f292
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
add esp, 8
div ebp
mov bh, byte [esi + ecx]
push 0x452fd7
push str.fdiogiuAsdoiHYUAUAY87234
push 0x51a500
mov al, byte [edx + section..Yours]
xor al, bl
add al, bh
mov byte [esi + ecx], al
call fcn.0044f292
add esp, 8
mov ecx, eax
call fcn.0045239d
mov eax, dword [esp + 0x14]
push str.suih89Ah3
push 0x51a500
dec byte [esi + eax]
call fcn.0044f292
mov eax, dword [esp + 0x1c]
push str.XScdyhjkujktyyt
push 0x51a500
add byte [esi + eax], 0xfe
call fcn.0044f292
mov eax, dword [esp + 0x24]
push str.sJBCsKJ2BJN
push 0x51a500
sub byte [esi + eax], bh
call fcn.0044f292
mov ebx, dword [esp + 0x2c]
push str.sDGTFsE
push 0x51a500
inc byte [esi + ebx]
call fcn.0044f292
inc byte [esi + ebx]
push str.ZASwe23
push 0x51a500
call fcn.0044f292
inc byte [esi + ebx]
push str.uhgiyGAuyisua
push 0x51a500
call fcn.0044f292
inc esi
add esp, 0x30
cmp esi, edi
jb 0x4695a0
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x452492
Capabilities:
Parse pe header

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

Function at 0x4527b7
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x468840
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x541990], eax
pop edi
pop esi
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x149923c2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
mov ecx, 0x278356cb
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x7c7a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x694015
lea edi, [esi - 0x293015]
push edi
jmp 0x7c7aaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c7ab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7aa0
mov eax, 1
add ebx, ebx
jne 0x7c7ac3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c7ad4
jne 0x7c7af3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7af3
dec eax
add ebx, ebx
jne 0x7c7ae0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c7ab8
add ebx, ebx
jne 0x7c7aef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c7b45
xor ecx, ecx
sub eax, 3
jb 0x7c7b0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c7b7a
sar eax, 1
mov ebp, eax
jmp 0x7c7b16
add ebx, ebx
jne 0x7c7b16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7ae4
inc ecx
add ebx, ebx
jne 0x7c7b24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7ae4
add ebx, ebx
jne 0x7c7b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c7b26
jne 0x7c7b42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c7b26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c7b64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c7b56
jmp 0x7c7aa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c7b64
add edi, ecx
jmp 0x7c7aa6
pop esi
mov edi, esi
mov ecx, 0x831a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c7b82
cmp byte [edi], 0x14
jne 0x7c7b82
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 0x7c7b87
lea edi, [esi + 0x3c3000]
mov eax, dword [edi]
or eax, eax
je 0x7c7bf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c712c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c7bb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c7134]
or eax, eax
je 0x7c7bf0
mov dword [ebx], eax
add ebx, 4
jmp 0x7c7bd1
call dword [esi + 0x3c7130]
mov ebp, dword [esi + 0x3c7138]
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 0x7c7c2a
sub esp, 0xffffff80
jmp 0x50ec50
Function at 0x1000e070
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006772d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100d9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, 0x100e11d2
call fcn.10063695
mov dword [ebx], vtable.RC::DmAvCore::IVBusModule.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.RC::RCSafeModuleBase.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 1
lea edi, [ebx + 0xc]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebx], vtable.RC::RCLeakModule.0
mov dword [edi], vtable.RC::RCSafeTaskQueue.0
mov dword [ebp - 0x1c], esi
push 8
mov dword [ebp - 0x18], edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1006162f
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 3
lea esi, [edi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
push 0x18
call fcn.1006162f
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 8
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 5
push ecx
push 0
push 0
lea ecx, [edi + 0x1c]
call fcn.100483b0
mov byte [ebp - 4], 6
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 7
add edi, 0x40
push ecx
push 1
mov dword [ebp - 0x1c], edi
push 0
lea ecx, [edi + 4]
mov dword [edi], vtable.RC::RCSafeThreadMgr.0
call fcn.100483b0
mov byte [ebp - 4], 8
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 9
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x40]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
push 0x18
call fcn.1006162f
add esp, 4
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 0xc
mov dword [edi + 0x44], 1
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x94], 0
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015cd0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100e11d2
call fcn.10063695
lea edx, [esi + 8]
pop esi
jmp fcn.100261b0
Function at 0x1001ea90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fffc
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d9008]
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 + 8]
mov ecx, 0x100e11d2
call fcn.10063695
mov eax, dword [esi + 4]
test eax, eax
je 0x1001ebf1
cmp byte [eax + 0x54], 0
je 0x1001ebf1
add eax, 0x1c
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.1001cf90
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x1001eb04
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ebbe
push ecx
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.10047960
add esp, 4
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x34]
push 0
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x1001eba4
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001eb9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001eb9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006165f
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1001ebe3
cmp byte [ebp - 0x14], 0
je 0x1001ebe3
mov eax, dword [esi]
test eax, eax
je 0x1001ebdf
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
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.1006161e
mov esp, ebp
pop ebp
ret 4
Function at 0x100261b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071a82
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100d9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov ecx, 0x100e11d2
call fcn.10063695
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push 1
push str.29A83C8C_8395_47F1_9F05_9F112227DBE8
xor esi, esi
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call fcn.100483b0
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
jne 0x10026261
push str.90A3941A_7445_4D9A_8FA5_A55EB9290053
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x10026233
push eax
call edi
jmp 0x10026238
call fcn.10026050
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10026253
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10026374
add esi, 0x7d0
cmp esi, 0xea60
jb 0x10026210
cmp dword [0x100dcba8], 0
je 0x1002631a
push 0
mov ecx, 0x100dcba4
call fcn.1001d620
mov eax, dword [0x100dcba8]
cmp byte [eax + 0x54], 0
je 0x1002631a
cmp dword [eax + 0x58], 1
jb 0x1002631a
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x49], al
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push 0x1b
push str.LeakFix.exe_Start_up_Failed
call fcn.1000f150
push 0x45
push str.RC::RCLeakProcessStarter::MakeSureLeakProcessRunning
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhino_safe_srcleakfixleakfixlib_src_rcleakprocessstarter.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x100dcba4
push eax
push 1
call fcn.1001e720
cmp byte [ebp - 0x49], 0
je 0x10026306
lea eax, [ebp - 0x28]
mov ecx, 0x100dcba4
push eax
call fcn.1001ea90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000f080
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov byte [ebp - 0x49], 0
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10026336
push eax
call edi
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.1000f080
mov byte [ebp - 4], 0xa
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x49]
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.1006161e
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x49], 1
jmp 0x1002631e
Function at 0x1002c1b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007325a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x100e11d2
call fcn.10063695
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 4
lea edi, [esi + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.1002eb00
mov dword [edi], eax
mov byte [ebp - 4], 7
lea ebx, [esi + 0x44]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.1002ea70
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.10019c80
mov eax, dword [esi]
mov dword [esi + 4], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
call fcn.10019bd0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
call fcn.10019b20
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
call fcn.10019a70
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
call fcn.100199c0
mov eax, dword [esi + 0x30]
add esp, 4
mov dword [esi + 0x34], eax
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.1002d6a0
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov ecx, ebx
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov esi, dword [ebx]
push dword [esi + 4]
call fcn.1002cf40
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [ebx]
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [eax + 8], esi
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10040c00
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100e11d2
call fcn.10063695
mov ecx, esi
pop esi
jmp fcn.1003fb60

Function at 0x10041010
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f338
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d9008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100e11d2
call fcn.10063695
mov eax, dword [esi]
test eax, eax
je 0x1004105d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1005a540
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10041086
add eax, 8
jmp 0x10041088
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x10041098
cmp dword [edi + 0x14], 8
jb 0x1004109a
mov edi, dword [edi]
jmp 0x1004109a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100410bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100410bb
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005a700
mov al, bl
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.1006161e
mov esp, ebp
pop ebp
ret 4
Function at 0x10041100
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f368
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d9008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100e11d2
call fcn.10063695
mov eax, dword [esi]
test eax, eax
je 0x1004114d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1005a620
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10041177
lea ebx, [eax + 8]
jmp 0x10041179
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x1004118b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1004118d
mov eax, dword [edi]
jmp 0x1004118d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x100411d6
call ecx
cmp eax, 5
jne 0x100411d0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x100411c2
cmp dword [edi + 0x14], 8
jb 0x100411c4
mov edi, dword [edi]
jmp 0x100411c4
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x100411f4
call ecx
cmp eax, 0xb7
jne 0x100411e9
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.10057cd0
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005a700
mov al, bl
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.1006161e
mov esp, ebp
pop ebp
ret 4
Function at 0x10049050
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080952
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d9008]
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 esi, ecx
mov ecx, 0x100e11d2
call fcn.10063695
cmp dword [esi + 8], 0
jne 0x10049094
xor al, al
jmp 0x10049176
push 4
lea ecx, [ebp - 0x14]
call fcn.1001dec0
mov eax, dword [esi + 8]
add eax, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
je 0x100490bd
mov eax, dword [eax]
test eax, eax
je 0x100490bd
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10049149
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10048850
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x10049130
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1004911e
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10049130
mov bl, 1
jmp 0x1004914b
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x10049141
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10048a20
xor bl, bl
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004916d
mov eax, dword [eax]
test eax, eax
je 0x10049166
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov al, bl
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.1006161e
mov esp, ebp
pop ebp
ret
Function at 0x10049430
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x100d0240
push 0x10062102
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100d9008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov ecx, 0x100e11d2
call fcn.10063695
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1004949b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10049570
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100494cd
test bl, bl
jne 0x1004953d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100494e2
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049513
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.1000f150
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006161e
lea esp, [ebp + 0x414]
pop ebp
ret