joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4230a0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x150
push ebx
push esi
xor esi, esi
add edx, 0x1f
push edi
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x150], ecx
inc esi
cmp esi, 0x10
jl 0x4230b4
lea eax, [ebp - 0x148]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x4230f0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x5a827999
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
mov edi, dword [ebp - 0xc]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x423126
mov dword [ebp - 4], 0x14
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 4], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x423172
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0xc]
add ecx, dword [ebp + eax*4 - 0x150]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x4231b5
mov dword [ebp - 4], 0x3c
nop dword [eax]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 8], ebx
add eax, dword [ebp + ecx*4 - 0x150]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x50
jl 0x423200
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, edx
add dword [ecx + 4], edi
add dword [ecx + 8], esi
add dword [ecx + 0xc], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x10], eax
xor eax, eax
pop edi
pop esi
mov word [ecx + 0x1c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423260
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x423271
mov eax, 1
pop ebp
ret
mov dword [eax + 0x14], 0
xor ecx, ecx
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret
Function at 0x427d60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d02a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a0144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00409570
mov ecx, eax
test ecx, ecx
je 0x427f24
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00409570
mov ecx, eax
test ecx, ecx
je 0x427f2e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00409570
mov ecx, eax
test ecx, ecx
je 0x427f38
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x427e42
xor ecx, ecx
jmp 0x427e60
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427e50
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040d7f0
push edi
mov ecx, ebx
call fcn.00408cc0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x427e7c
xor ecx, ecx
jmp 0x427e94
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427e84
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040d7f0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004286a0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00408cc0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427ed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x427f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x427f0e
cmp dword [esi + 0x10], 0
je 0x427f05
push dword [edi]
call fcn.004672e5
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403510
push 0x80004005
call fcn.00403510
push 0x80004005
call fcn.00403510
int3
Function at 0x4284a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d118
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a0144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x428674
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4284f5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x428674
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x428513
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x428674
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x428531
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x428674
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42854f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x428674
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x428674
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x428574
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x4285a7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x4285bf
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4285fd
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00405d50
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00452080
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x485a28
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00428e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42862b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x428664
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x428664
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.00411850
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.004051c0
lea ecx, [ebp - 0x28]
call fcn.004051c0
lea ecx, [ebp - 0x34]
call fcn.00408a70
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.00429abf
mov esp, ebp
pop ebp
ret 4
Function at 0x428a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1d7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a0144]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x428a5a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428a66
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.0041c200
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x428ad3
push 0x48
call fcn.00429b25
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x428ac7
push 0x48
push 0
push ebx
call fcn.00452600
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00427d60
jmp 0x428ac9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428b00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0041c200
push 3
push 0x485a28
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00411520
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428b4f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x428b9e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x428b9e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0041c200
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.004051c0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x428bd4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428bca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428c11
push edx
push ecx
call fcn.00429809
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x428bf3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00429abf
mov esp, ebp
pop ebp
ret 0x14
call fcn.00456139
int3
Function at 0x42d000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a0144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00429b25
mov edi, eax
add esp, 4
test edi, edi
je 0x42d0a4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00423f6a
add esp, 4
mov dword [edi + 4], eax
jmp 0x42d0a6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00424a44
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42d107
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x42d107
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x42d12a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x42d14d
cmp byte [ebp + 0xc], 0
je 0x42d139
push esi
call fcn.0042444c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x42d159
mov esi, str.ios_base::badbit_set
jmp 0x42d169
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00406900
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404dc0
push 0x498628
lea eax, [ebp - 0x30]
push eax
call fcn.0045200f
int3
Function at 0x432a20
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e000
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a0144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x432b69
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x432b69
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432b69
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x432b69
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x432b55
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x432b4e
cmp dword [ebp - 0x1c], ebx
jne 0x432b4e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x432aed
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x432ae7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x432af9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040eb30
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.004242c4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x432b4e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x43a3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4a0144]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x41c], str.6.0.0.0
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x418], 7
push eax
mov dword [ebp - 0x43c], 0x487e34
mov dword [ebp - 0x440], str.Microsoft.Windows.Common_Controls
mov dword [ebp - 0x438], str.6595b64144ccf1df
call fcn.0043a500
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00452600
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0043a5a0
push str.comctl32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004635a8
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43a479
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43a479
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 8
push ecx
mov dword [ebp - 0x418], 4
call eax
test eax, eax
jne 0x43a4f1
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00452600
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x487dbc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43a4f1
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43a4f1
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 8
push ecx
mov dword [ebp - 0x418], 4
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429abf
mov esp, ebp
pop ebp
ret
Function at 0x43a8f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x4a0144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00452600
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00452600
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00452600
push 0x250
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00452600
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x4c8fd8
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x43a9ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x43a9ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x43a990
lea eax, [ecx - 2]
test edx, edx
push 0x104
cmovne eax, ecx
xor ecx, ecx
push 0x4c8fd8
mov word [eax], cx
call fcn.00456485
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 8
push str..dll
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43aab4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test dword [ebp - 0x86c], 0xffffffef
je 0x43aa94
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00452600
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0041e5f0
add esp, 4
test eax, eax
jne 0x43aa83
mov esi, 0x4a11b0
lea eax, [ebp - 0x840]
push eax
push dword [esi]
call fcn.004615eb
add esp, 8
test eax, eax
je 0x43aa83
add esi, 4
cmp esi, 0x4a11b8
jl 0x43aa61
jmp 0x43aa94
lea eax, [ebp - 0x840]
mov ecx, 0x4c91e4
push eax
call fcn.0043bd50
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x43aa10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 0x104
push 0x4c8dd0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
pop esi
test eax, eax
je 0x43ab0a
push str.NtOpenFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c91e0], eax
test eax, eax
je 0x43ab0a
push 0x43ab20
push 0x4c91e0
call fcn.0043b160
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429abf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00429abf
mov esp, ebp
pop ebp
ret
Function at 0x43b590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a0144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [0x4c9208], edi
jne 0x43b5c5
push 0x4c920c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4c9208], 1
push 0x4c920c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4c9224]
test esi, esi
je 0x43b6ae
mov eax, dword [ebx]
cmp dword [esi + 8], eax
je 0x43b5f1
mov esi, dword [esi + 0x70]
test esi, esi
jne 0x43b5e0
jmp 0x43b6ae
test esi, esi
je 0x43b6ae
push dword [esi + 4]
push dword [esi]
call fcn.0043b7d0
add esp, 8
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x43b6a9
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi]
test eax, eax
je 0x43b641
nop dword [eax]
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jb 0x43b630
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov edi, 1
mov dword [ebx], eax
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x43b678
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x43b685
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x6c], eax
cmp dword [0x4c9224], esi
jne 0x43b695
mov eax, dword [esi + 0x70]
mov dword [0x4c9224], eax
dec dword [0x4c922c]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
call fcn.0043b6d0
push 0x4c920c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429abf
mov esp, ebp
pop ebp
ret

Function at 0x43b6d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x4c9234], esi
jbe 0x43b726
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4c9230]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x4c9230]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x4c9234]
jb 0x43b704
pop ebx
push dword [0x4c9230]
call fcn.00461760
add esp, 4
mov dword [0x4c9230], 0
mov dword [0x4c9234], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret