joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53a260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592d53
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x5db470]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.0053a1b0
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x53a441
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00553b10
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x5b1d94
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x53a441
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x53a335
cmp eax, 2
jne 0x53a441
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x53a356
test cl, 1
jne 0x53a441
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x53a35c
jmp 0x53a441
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x53a441
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x53a46c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.00538640
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x5b1d9c
push eax
call fcn.0053a800
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.00538aa0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x53a425
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x53a3c6
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.00412910
push dword [0x5db478]
lea eax, [ebp - 0x74]
push dword [0x5db474]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x53a402
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x53a41e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x53a443
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x53a441
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x53a44e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0046748e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b900
int3
Function at 0x53a500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592d88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x5db470]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.0053a1b0
test eax, eax
je 0x53a628
mov esi, dword [ebp - 0x18]
mov edi, dword [0x5db470]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x53a5d3
cmp dword [esi], 0
je 0x53a5c6
push 0x5b1c48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x53a593
mov eax, 1
jmp 0x53a5f4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53a5cc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call eax
jmp 0x53a5f4
cmp dword [esi + 4], 0
jne 0x53a5d3
mov eax, 1
jmp 0x53a5f4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x53a61e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x53a606
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x53a62b
xor ebx, ebx
jmp 0x53a6cf
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x53a6cf
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x53a688
mov ecx, dword [ebx]
test ecx, ecx
je 0x53a6ee
push ecx
push eax
call fcn.0056ef59
add esp, 8
test eax, eax
je 0x53a688
mov edx, dword [edi]
test edx, edx
je 0x53a688
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53a660
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x53a693
lea eax, [edx + 0xd]
jmp 0x53a6c8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53a6a0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x5b1d94
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x53a6da
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x80004005
call fcn.0040b900
int3
Function at 0x53bcf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x53bd61
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x53bd2f
cmp eax, 2
jne 0x53bd4b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x53bd5b
test ecx, ecx
je 0x53bd56
test cl, 1
jne 0x53bd4b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x53bd5b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x53eb95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x56a0af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00467ee0
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00572bf2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x56a0f1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x56a24d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004675c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5e2c48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0056861c
mov ecx, dword [esi*4 + 0x5e2c48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x56a246
cmp eax, dword [ecx + edi + 0x24]
jne 0x56a246
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56a246
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056861c
add esp, 0x14
test edx, edx
jl 0x56a246
jg 0x56a1bc
test eax, eax
jb 0x56a246
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x56a246
jl 0x56a1d6
cmp dword [ebp - 0x1008], eax
ja 0x56a246
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x56a1f4
test ebx, ebx
je 0x56a22d
cmp ecx, edi
jae 0x56a22d
mov al, byte [ecx]
cmp al, 0xd
jne 0x56a20e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56a21a
cmp byte [ecx + 1], 0xa
jne 0x56a21a
inc ecx
jmp 0x56a21a
movzx eax, al
movsx eax, byte [eax + 0x5db958]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x56a1f4
cmp edx, ebx
jne 0x56a1f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x56a24b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046748e
leave
ret

Function at 0x56f5db
Capabilities:
Parse pe header

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

Function at 0x574f8b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b61c8
push 0x5b61c0
push str.FlsAlloc
push 0x1f
call fcn.00574db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x574fbf
push dword [ebp + 8]
mov ecx, esi
call dword [0x5954c0]
call esi
jmp 0x574fc5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x575009
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b61d8
push 0x5b61d0
push str.FlsGetValue
push 0x21
call fcn.00574db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x575040
push dword [ebp + 8]
mov ecx, esi
call dword [0x5954c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x575048
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b61e0
push 0x5b61d8
push str.FlsSetValue
push 0x22
call fcn.00574db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x575082
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5954c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x57a129
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0057a0a5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57a298
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57a298
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57a24d
jg 0x57a185
test eax, eax
je 0x57a243
push 1
push 0x1000
call fcn.005747e4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57a1a8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x57a23a
push 0x8000
push ebx
call fcn.00570360
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x57a1d1
jg 0x57a1cc
cmp ecx, 0x1000
jb 0x57a1d1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00568f82
add esp, 0x10
cmp eax, 0xffffffff
je 0x57a216
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x57a1cc
jl 0x57a1fd
test ecx, ecx
jne 0x57a1be
push dword [ebp - 0xc]
push ebx
call fcn.00570360
push esi
call fcn.00574841
add esp, 0xc
xor ebx, ebx
jmp 0x57a2a6
cmp byte [edi + 0x24], 0
je 0x57a22d
cmp dword [edi + 0x20], 5
jne 0x57a22d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x57a238
mov ebx, dword [edi + 0x18]
jmp 0x57a23a
xor ebx, ebx
push esi
call fcn.00574841
pop ecx
jmp 0x57a2a6
test ecx, ecx
jg 0x57a20f
jl 0x57a24d
test eax, eax
jae 0x57a20f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056863a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x57a26d
cmp byte [edi + 0x1c], 0
je 0x57a20f
jmp 0x57a29e
push ebx
call fcn.0057a03b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57a20f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x57a2a6
cmp byte [edi + 0x1c], 0
je 0x57a2a3
mov ebx, dword [edi + 0x18]
jmp 0x57a2a6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0056863a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57a2c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5e2c48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57a300
cmp byte [ebx], 0xa
jne 0x57a300
or byte [edi + eax + 0x28], 4
jmp 0x57a305
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x57a404
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57a3e7
inc eax
cmp dl, 0xd
je 0x57a331
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57a357
cmp eax, ecx
jae 0x57a365
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x57a319
jmp 0x57a404
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57a3e2
cmp dword [ebp - 0x10], 0
je 0x57a3e2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5e2c48]
test byte [eax + edi + 0x28], 0x48
je 0x57a3bc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57a3a7
mov byte [esi], dl
jmp 0x57a3b8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5e2c48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57a404
cmp byte [ebp - 1], 0xa
jne 0x57a3cb
cmp esi, ebx
jne 0x57a3cb
mov byte [esi], 0xa
jmp 0x57a403
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0056863a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57a404
mov byte [esi], 0xd
jmp 0x57a403
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5e2c48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57a401
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57a404
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57a40d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5e2c48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57a453
cmp word [ebx], dx
jne 0x57a453
or byte [eax + edi + 0x28], 4
jmp 0x57a458
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x57a5bb
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x57a59b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57a499
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57a4cf
cmp eax, edx
jae 0x57a4dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x57a474
jmp 0x57a5bb
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57a596
cmp dword [ebp - 0x18], 0
je 0x57a596
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5e2c48]
test byte [eax + edi + 0x28], 0x48
je 0x57a56c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x57a530
mov word [esi], cx
jmp 0x57a567
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5e2c48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5e2c48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5e2c48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57a5bb
pop eax
cmp word [ebp - 4], ax
jne 0x57a57c
cmp esi, ebx
jne 0x57a57c
mov word [esi], ax
jmp 0x57a5b8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056863a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57a5bb
push 0xd
pop eax
jmp 0x57a577
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5e2c48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57a5b5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57a5bb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57be7f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x57beca
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0057c01a
test al, al
jne 0x57bec4
sub edx, 2
cmp edx, edi
jne 0x57beaa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x57beec
lea eax, [edi + 2]
cmp edx, eax
je 0x57beec
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0057bdcb
add esp, 0x10
jmp 0x57bfe6
push esi
lea ecx, [ebp - 0x255]
call fcn.0057c01a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57bf2f
push dword [ebp - 0x25c]
jmp 0x57bedc
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x57bf6c
cmp word [ebp - 0x226], 0
je 0x57bf8d
cmp word [ebp - 0x226], ax
jne 0x57bf6c
cmp word [ebp - 0x224], 0
je 0x57bf8d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0057bdcb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x57bfd9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x57bf46
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x57bfc1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x57bfe6
push 0x57bbfb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00573980
add esp, 0x10
jmp 0x57bfb6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046748e
leave
ret

Function at 0x57c8fc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57c90d
pop esi
ret
push ebx
push edi
push esi
call fcn.0057c8c5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00575666
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x57c935
push ebx
push esi
push edi
call fcn.00553010
add esp, 0xc
push 0
call fcn.00574841
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x57cd05
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057c94a
Function at 0x57edf8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005744f9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x57ee67
cmp esi, dword [ebp - 4]
je 0x57ee62
cmp dword [ebp + 0xc], 0
je 0x57ee62
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x57ee3f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0057e94a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x57ee69
xor eax, eax
inc eax
jmp 0x57ee69
xor eax, eax
pop edi
pop esi
leave
ret