joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524076
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5b4020]
push ebx
push esi
push edi
mov edi, dword [0x5b3b24]
call fcn.0042fefa
test eax, eax
je 0x5240ae
push edi
push 0x451
push 0
call fcn.0047dc0b
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
lea eax, [ebp - 0x23c]
xor ebx, ebx
push 0x424ac8
push ebx
push eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x240]
push 0x424abc
push ebx
push eax
call esi
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
add esp, 0xc
cmp dword [ebp - 0x23c], 0
mov ebx, 0x401c80
je 0x524104
push ebx
push 0x424ac8
call esi
pop ecx
pop ecx
cmp dword [ebp - 0x240], 0
je 0x524117
push ebx
push 0x424abc
call esi
pop ecx
pop ecx
push 0x42749c
mov ebx, 0x106
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
call fcn.004fd7de
and dword [ebp - 0x21c], 0
mov ebx, eax
cmp byte [0x5a2ee4], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], 0x40922c
mov dword [ebp - 0x234], 0x4274a0
mov dword [ebp - 0x230], 0x4274ac
mov dword [ebp - 0x22c], 0x4274c4
mov dword [ebp - 0x228], 0x4274e0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
je 0x5241ce
call fcn.004316e4
call fcn.004316e4
mov eax, dword [0x5a3100]
push dword [eax]
push 0x2347
call fcn.004315ea
pop ecx
pop ecx
lea ecx, [ebp - 0x238]
call fcn.00536d3b
mov ecx, edi
call fcn.00523803
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x248]
mov edx, dword [eax]
call fcn.00470a61
mov ecx, edi
call fcn.004d3e07
test ebx, ebx
je 0x5241fb
push ebx
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
cmp dword [ebp - 0x23c], 0
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
je 0x524222
push dword [ebp - 0x23c]
push 0x424ac8
call esi
push dword [ebp - 0x23c]
call edi
add esp, 0xc
cmp dword [ebp - 0x240], 0
je 0x524243
push dword [ebp - 0x240]
push 0x424abc
call esi
push dword [ebp - 0x240]
call edi
add esp, 0xc
cmp byte [ebp - 0x248], 0
jne 0x52425d
mov eax, dword [0x5a3100]
push dword [eax]
push 0x486
jmp 0x5240a7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
Function at 0x52816f
Capabilities:
Query environment variable

Disassembly:
push 0x74
mov eax, 0x490018
call fcn.0047ec24
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x64], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
mov dword [ebp - 0x64], eax
push 0x40
pop ecx
test eax, eax
jne 0x5281b4
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0043d6d0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
jmp 0x5282f7
mov edi, eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0043d6d0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5281da
sub ecx, edx
sar ecx, 1
push 0x424470
push edi
lea eax, [edi + ecx*2]
mov dword [ebp - 0x68], eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x5282b7
cmp ecx, edi
je 0x5282b7
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
cmp eax, dword [ebp - 0x68]
je 0x5282b7
mov eax, ecx
sub eax, edi
sar eax, 1
cmp eax, 0x61a8
ja 0x5282b7
push ecx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00431297
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
mov eax, 0x7530
sub eax, dword [ebp - 0x18]
push eax
call fcn.00528368
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x78]
jmp 0x52829f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00430f6a
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00430f6a
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x60]
call fcn.005276a5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00450d98
lea ecx, [ebp - 0x58]
call fcn.00450d98
add edi, 0x18
cmp edi, dword [ebp - 0x74]
jne 0x52825b
lea ecx, [ebp - 0x78]
call fcn.004506e4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00450d98
mov edi, dword [ebp - 0x68]
add edi, 2
cmp word [edi], bx
jne 0x5281d5
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call fcn.00527a5e
mov eax, dword [ebp - 0x60]
push dword [eax + 4]
lea eax, [ebp - 0x60]
push eax
mov ecx, eax
call fcn.0052780a
push 0x40
push dword [ebp - 0x60]
call fcn.0047a41d
pop ecx
pop ecx
mov eax, esi
call fcn.0047ebd3
ret
Function at 0x528774
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ebp - 6]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov eax, ecx
xor edx, edx
push 0xa
pop ecx
div ecx
sub esi, 2
mov ecx, eax
lea eax, [edx + 0x30]
mov word [esi], ax
test ecx, ecx
jne 0x528790
push ecx
lea eax, [ebp - 6]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00431297
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
pop esi
jb 0x5287c3
mov eax, dword [ebp - 0x48]
push eax
push 0x428758
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x48]
call fcn.00450d98
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a40f
leave
ret

Function at 0x529a2a
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5a3054]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x89c]
mov dword [esp + 0x14], edi
mov ebx, dword [edi + 0x30]
mov dword [0x5b3718], eax
lea eax, [edi + 0xc]
mov ecx, eax
mov dword [0x5b3714], esi
mov dword [esp + 0x10], eax
call fcn.00477fd4
test ebx, ebx
je 0x529a91
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004654b8
test eax, eax
je 0x529a7b
lea edx, [eax + 0x10]
jmp 0x529a7d
xor edx, edx
push 0
push 0
mov ecx, esi
call fcn.00446fe0
sub ebx, 1
jne 0x529a6b
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
push ecx
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x48], eax
call dword [sym.imp.tbbmalloc.dll_scalable_free]
mov edi, dword [esi + 0x89c]
xor ebx, ebx
pop ecx
cmp dword [edi + 0x58], ebx
jne 0x529abe
mov edx, 0x53bb89
mov ecx, edi
call fcn.0046534a
mov dword [edi + 0x58], eax
test dword [esi + 0x14c], 0x4000
je 0x529ae6
cmp dword [0x5a2fe0], ebx
je 0x529ae6
mov edx, 0x5b3724
mov ecx, 0x5b371c
call fcn.005293fc
mov dword [0x5b3720], eax
push ebx
push 4
push ebx
push 0x52a161
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5a4fa8], eax
test eax, eax
jne 0x529b0a
call fcn.004fd4dc
mov eax, dword [0x5a4fa8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52c140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 0x38
mov eax, 0x48c1db
call fcn.0047ebf1
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [edi + 0x20]
xor edx, edx
push 3
pop esi
mov byte [eax], bl
lea eax, [ecx + ecx]
div esi
inc eax
cmp dword [edi], eax
jb 0x52c2bf
cmp ecx, 0x401e825f
jae 0x52c2bf
mov eax, ebx
cmp ecx, dword [eax*4 + 0x418120]
jb 0x52c18b
inc eax
cmp eax, 0x16
jb 0x52c17c
mov eax, dword [eax*4 + 0x418120]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004715b1
mov esi, dword [ebp - 0x34]
test eax, eax
je 0x52c2a6
mov eax, dword [ebp - 0x10]
shl eax, 2
push eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
or dword [ebp - 0x3c], 0xffffffff
add esp, 0xc
or dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x44], 0x41aff4
mov dword [ebp - 0x40], edi
lea ecx, [ebp - 0x44]
call fcn.004da3cf
test eax, eax
je 0x52c28a
mov eax, dword [ebp - 0x40]
lea ebx, [ebp - 0x10]
push 4
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x38]
mov edx, dword [ecx + eax*8]
mov ecx, dword [ecx + eax*8 + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], edx
or edx, 0xffffffff
mov dword [ebp - 0x1c], ecx
pop edi
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebx]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4120f0]
inc ebx
sub edi, 1
jne 0x52c218
mov eax, edx
mov edi, dword [ebp - 0x14]
xor edx, edx
xor ebx, ebx
div dword [ebp - 0x30]
mov eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + eax*4]
test ecx, ecx
jne 0x52c267
push 0xc
pop ecx
call fcn.0044ef2b
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x52c2a6
mov eax, dword [ebp - 0x10]
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 4], ebx
mov dword [esi + eax*4], ecx
mov edx, dword [ebp - 0x1c]
xor eax, eax
or eax, dword [ebp - 0x18]
or edx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edx
call fcn.0044ed6e
test eax, eax
jne 0x52c1d8
jmp 0x52c2a6
mov eax, dword [edi + 0x1c]
xor ebx, ebx
mov dword [edi + 0x1c], esi
inc ebx
mov esi, eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 8]
mov byte [eax], bl
cmp byte [0x5a2ee5], 0
jne 0x52c2bb
test esi, esi
je 0x52c2bb
push esi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov eax, ebx
jmp 0x52c2c2
xor eax, eax
inc eax
call fcn.0047ebbf
ret 4

Function at 0x52d8bd
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5a3e80]
test eax, eax
jne 0x52d8d6
push edx
push ecx
push 0x428e0c
call fcn.0052d8e7
add esp, 0xc
ret
push eax
push edx
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor eax, eax
ret
Function at 0x53355e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, ecx
mov ebx, edx
mov cl, byte [0x5a3020]
push 0x429c00
push eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], cl
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x53358d
inc eax
jmp 0x533692
push esi
push edi
push 0x401470
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x401450
push edi
call esi
push 0x401430
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
test eax, eax
je 0x5335d3
test edi, edi
je 0x5335d3
lea ecx, [ebp - 0xc]
push ecx
call eax
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x533682
cmp dword [ebp - 8], 0
je 0x533604
push dword [ebp - 0xc]
call edi
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x533682
push edi
push eax
push edi
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x533682
xor eax, eax
push eax
push eax
push eax
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x533655
test ebx, ebx
je 0x53364c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x53368e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
je 0x533682
mov edx, dword [ebp - 0x10]
xor eax, eax
cmp byte [ebp - 1], al
mov ecx, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
je 0x533697
call fcn.004357b8
test eax, eax
je 0x5336a0
test ebx, ebx
je 0x53368e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.0053351e
test eax, eax
je 0x533682
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ecx]
or eax, 0xc0000000
cmp word [esi], dx
jne 0x5336c9
mov edx, 0xffff
cmp word [esi + 2], dx
jne 0x5336c9
xor edx, edx
cmp word [esi + 4], dx
je 0x5336cc
mov dword [esi + 8], eax
jmp 0x5336cc
mov dword [esi + 4], eax
push 1
push ecx
call fcn.0047a41d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x533682
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x533682
xor eax, eax
inc eax
jmp 0x533690
Function at 0x534ec0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp byte [0x5a4e20], 0
je 0x534ee3
push 0x429da0
push 0x10cc
push edi
call fcn.004fd88b
add esp, 0xc
cmp byte [0x5a4ecc], 0
jne 0x534ef5
test byte [esi + 0x1b4], 0x40
je 0x534f02
push 0x17b9
push edi
call fcn.004fd507
pop ecx
pop ecx
xor dl, dl
mov cl, 1
call fcn.00457243
push edi
push edi
push edi
push edi
xor edx, edx
xor cl, cl
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5393f6
Capabilities:
Query environment variable

Disassembly:
push 0x220
mov eax, 0x4909d4
call fcn.0047ec24
mov dword [ebp - 0x224], edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 0x409388
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x539436
or dword [edi + 4], 0xffffffff
mov byte [edi], al
jmp 0x53950e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0043d6d0
mov esi, eax
mov dword [ebp - 0x22c], esi
and dword [ebp - 4], 0
push ebx
push esi
push 0x409388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x53947d
or dword [edi + 4], 0xffffffff
mov byte [edi], 0
test esi, esi
je 0x53950e
jmp 0x539506
movzx ecx, word [esi]
mov edx, esi
mov ebx, edx
movzx eax, cx
test cx, cx
jmp 0x53949b
cmp ax, 0x3b
je 0x5394a3
add ebx, 2
movzx eax, word [ebx]
test ax, ax
mov dword [ebp - 0x220], eax
jne 0x53948c
xor eax, eax
push eax
mov word [ebx], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push 0
push dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x5394cf
cmp eax, 0x104
jb 0x5394ea
add ebx, 2
cmp word [ebp - 0x220], 0
mov edx, ebx
je 0x5394ff
movzx eax, word [ebx]
test ax, ax
je 0x5394ff
mov ecx, eax
jmp 0x539484
push dword [ebp - 0x228]
lea edx, [ebp - 0x21c]
mov ecx, edi
call fcn.00470a61
jmp 0x539506
or dword [edi + 4], 0xffffffff
mov byte [edi], 0
push esi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov eax, edi
call fcn.0047ebd3
ret 4
Function at 0x539518
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x10]
mov dword [esp + 8], eax
push esi
mov esi, edx
mov dword [esp + 8], esi
push edi
mov edi, ecx
test bl, bl
jne 0x5395e2
push edi
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x20]
push 0x41d4bc
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
test eax, eax
je 0x539592
xor ecx, ecx
call fcn.0047dc27
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [esp + 0x23c]
push eax
push 3
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [esp + 0x228]
push 0x41d4bc
push edi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x438]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
add esp, 0x18
cmp byte [0x5a2ee4], 0
je 0x53960e
call fcn.004316e4
mov eax, edi
test bl, bl
jne 0x5395fa
lea eax, [esp + 0x20]
push eax
push 0x2347
call fcn.004315ea
pop ecx
pop ecx
mov ecx, esi
call fcn.00536d3b
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov esi, edi
pop ecx
test bl, bl
jne 0x539624
lea esi, [esp + 0x428]
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x539644
push dword [esp + 0xc]
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00470a61
jmp 0x53966a
test bl, bl
je 0x539655
push esi
push 0x486
push 0
call fcn.0047dc0b
push dword [esp + 0xc]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.005393f6
lea esi, [esp + 0x20]
cmp byte [eax], 0
mov ecx, dword [eax + 4]
je 0x539648
test ecx, ecx
je 0x53969c
cmp dword [ebp + 0xc], 0
jne 0x539690
test bl, bl
jne 0x539684
lea edi, [esp + 0x20]
push edi
push 0x52f
push dword [esp + 0x18]
jmp 0x539650
push dword [ebp + 0xc]
push dword [esp + 0x14]
call fcn.0047dc0b
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x539de4
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [0x5b48ac]
push edi
mov edi, ecx
test edi, edi
je 0x539e37
test eax, eax
jne 0x539e03
mov ecx, 0x458
call fcn.0043d6d0
mov dword [0x5b48ac], eax
mov ecx, dword [0x5b48b0]
test ecx, ecx
je 0x539e20
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x5b48b0], 0
mov eax, dword [0x5b48ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
mov dword [0x5b48b0], ecx
cmp ecx, 0xffffffff
jne 0x539e4f
jmp 0x539e6a
mov ecx, dword [0x5b48b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x539e5e
mov ecx, dword [0x5b48b0]
mov eax, dword [0x5b48ac]
test byte [eax], 0x10
jne 0x539e3d
add eax, 0x2c
pop edi
ret
push dword [0x5b48b0]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x5b48b0], 0
xor eax, eax
pop edi
ret

Function at 0x54b2f6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x42c310
mov esi, ecx
push 1
push 0
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x54b339
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x42c300
lea ecx, [ebp - 0xc]
call fcn.0054bfde
push 0x5954fc
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54b382
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x54b382
cmp eax, 0x80
je 0x54b382
cmp eax, 0x102
je 0x54b373
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x42c2ec
jmp 0x54b323
push 0x42c354
lea ecx, [ebp - 0xc]
call fcn.004ead12
jmp 0x54b32b
mov eax, esi
pop esi
leave
ret

Function at 0x54baa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x201
push edi
push 0x42c478
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54bad0
xor eax, eax
xor edx, edx
jmp 0x54bb1d
push ebx
push esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push 8
pop ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
push 0x40
push 0x42c4ec
push edi
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x54bb0a
cmp dword [ebp - 8], ebx
jne 0x54bb0a
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
jmp 0x54bb0c
mov ebx, edi
test esi, esi
je 0x54bb17
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov edx, ebx
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x54bb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xd0]
xor ebx, ebx
push eax
push 0x201
push ebx
push 0x42c3f0
push 0x80000002
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54bb61
xor al, al
jmp 0x54bbc6
push esi
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0xd4]
push edi
push eax
lea eax, [ebp - 0xcc]
mov edi, 0xc8
push eax
push ebx
push 2
push 0x42c45c
push ebx
push esi
mov dword [ebp - 0xd4], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x54bbb7
cmp dword [ebp - 0xd4], edi
ja 0x54bbb7
lea eax, [ebp - 0xcc]
push 0x42c46c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
setns bl
test esi, esi
je 0x54bbc2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret

Function at 0x54bc09
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4946b2
call fcn.0047ebf1
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push 0x20206
push 1
push edi
push edi
push 0x42c478
push 0x80000001
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x54bc59
push eax
mov edx, 0x42c500
lea ecx, [ebp - 0x2c]
call fcn.0054bfde
push 0x5954fc
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0xb
push edi
push 0x42c4ec
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x54bca1
push eax
mov edx, 0x42c510
lea ecx, [ebp - 0x38]
call fcn.0054bfde
push 0x5954fc
lea eax, [ebp - 0x38]
jmp 0x54bc53
test esi, esi
je 0x54bcac
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0047ebbf
ret
Function at 0x552a3d
Capabilities:
Hash data using djb2

Disassembly:
push 0xc
mov eax, 0x494d69
call fcn.0047ebf1
mov edi, ecx
call fcn.00552c8b
mov esi, eax
test esi, esi
js 0x552ad1
mov eax, dword [0x5a523c]
xor ecx, ecx
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.00555837
mov esi, eax
test esi, esi
js 0x552ac9
mov ecx, dword [0x5a4f64]
call fcn.0055643f
test eax, eax
jne 0x552a8b
mov esi, 0x8007000e
jmp 0x552ac9
mov dword [eax], edi
test byte [edi + 0x68], 0x10
je 0x552ac9
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x10c4]
test eax, eax
jne 0x552aa5
mov eax, 0x401c80
mov ecx, 0x1505
jmp 0x552ab4
imul ecx, ecx, 0x21
lea eax, [eax + 2]
xor ecx, edx
movzx edx, word [eax]
test edx, edx
jne 0x552aac
mov eax, ecx
push 0x2f
pop ecx
div ecx
mov dword [edx*4 + 0x5a5180], edi
lea ecx, [ebp - 0x14]
call fcn.00554e99
mov eax, esi
call fcn.0047ebbf
ret