joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf100
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x737170]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4cf127
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4cf16f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4cf173
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4cf1d5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4cf194
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4cf207
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x6ab9d6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6ab9d7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4cf1e0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4cf5f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4cf61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cf61f
xor al, al
jmp 0x4cf621
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d5640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x4d5665
xor eax, eax
jmp 0x4d56ed
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x4d5680
mov dword [ebp - 0x10], 0x400000
jmp 0x4d5686
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x4d56dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d56ed
cmp dword [ebp - 8], 0
jne 0x4d56e5
jmp 0x4d56eb
cmp dword [ebp - 0xc], 0
ja 0x4d566e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret

Function at 0x4d57d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x4d57f5
xor eax, eax
jmp 0x4d587d
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x4d5810
mov dword [ebp - 0x10], 0x400000
jmp 0x4d5816
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x4d586d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d587d
cmp dword [ebp - 8], 0
jne 0x4d5875
jmp 0x4d587b
cmp dword [ebp - 0xc], 0
ja 0x4d57fe
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret
Function at 0x4d5900
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4d5918
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4d596a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x4d5939
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x4d595b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x4d5930
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x7426c0], ecx
jmp 0x4d590f
mov dword [ebp - 4], 0x100
jmp 0x4d597c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x4d59b4
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x7422c0]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x7426c0]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x7426c0], eax
jmp 0x4d5973
mov dword [0x7446c8], 0x4d73e0
mov dword [0x7446c0], 0x4d73e0
mov dword [0x7446c4], 0x4d74f0
call fcn.004d7080
test eax, eax
jne 0x4d59e5
mov dword [0x7446c0], 0x4d74f0
mov esp, ebp
pop ebp
ret
Function at 0x4d8550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffc
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 4
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jb 0x4d858a
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
jmp 0x4d8670
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 1
imul ecx, eax, 0xfffffffc
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x40
jne 0x4d85be
mov ecx, 1
imul edx, ecx, 0xfffffffd
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
and ecx, 0xc0
je 0x4d85e8
mov edx, 1
imul eax, edx, 0xfffffffc
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
cmp edx, 0x7f
jne 0x4d85ea
mov eax, 1
imul ecx, eax, 0xfffffffd
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xc0
jl 0x4d85ea
jmp 0x4d85ec
jmp 0x4d8577
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 4]
bswap edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x4d8617
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
jmp 0x4d8628
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0x1ffffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 0x1000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor eax, 0xff000000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x40000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
bswap eax
mov ecx, dword [ebp - 8]
mov dword [ecx - 4], eax
jmp 0x4d8577
mov esp, ebp
pop ebp
ret

Function at 0x521101
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x521140
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x521140
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x521140
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x521140
cmp dword [ecx + 0x74], 0xe
jbe 0x521140
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x524908
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00482d80
mov eax, dword [0x737100]
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.0052acbb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x52494a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x524aa6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00542cd0
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 + 0x73ec90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0052795b
mov ecx, dword [esi*4 + 0x73ec90]
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 0x524a9f
cmp eax, dword [ecx + edi + 0x24]
jne 0x524a9f
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 0x524a9f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052795b
add esp, 0x14
test edx, edx
jl 0x524a9f
jg 0x524a15
test eax, eax
jb 0x524a9f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x524a9f
jl 0x524a2f
cmp dword [ebp - 0x1008], eax
ja 0x524a9f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x524a4d
test ebx, ebx
je 0x524a86
cmp ecx, edi
jae 0x524a86
mov al, byte [ecx]
cmp al, 0xd
jne 0x524a67
lea eax, [edi - 1]
cmp ecx, eax
jae 0x524a73
cmp byte [ecx + 1], 0xa
jne 0x524a73
inc ecx
jmp 0x524a73
movzx eax, al
movsx eax, byte [eax + 0x737418]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x524a4d
cmp edx, ebx
jne 0x524a4d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x524aa4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004815ec
leave
ret
Function at 0x526c32
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6ae910
push esi
call fcn.00524f67
pop ecx
pop ecx
test eax, eax
jne 0x526c60
xor al, al
jmp 0x526cdd
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0052688f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x526c9a
push dword [ebp - 0x210]
call fcn.00507ce1
xor al, al
jmp 0x526cdb
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x526ca0
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x526cc0
push edx
call fcn.00526b69
pop ecx
test al, al
je 0x526c8b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x526cce
mov bl, 1
push dword [ebp - 0x210]
call fcn.00507ce1
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004815ec
leave
ret

Function at 0x5291ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6afae4
push 0x6afadc
push str.FlsAlloc
push 0x1f
call fcn.00528eb8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52921e
push dword [ebp + 8]
mov ecx, esi
call dword [0x6978c4]
call esi
jmp 0x529224
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x529268
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6afaf4
push 0x6afaec
push str.FlsGetValue
push 0x21
call fcn.00528eb8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52929f
push dword [ebp + 8]
mov ecx, esi
call dword [0x6978c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5292a7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6afafc
push 0x6afaf4
push str.FlsSetValue
push 0x22
call fcn.00528eb8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5292e1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6978c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x52d99d
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 + 0x73ec90]
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 0x52d9dd
cmp byte [ebx], 0xa
jne 0x52d9dd
or byte [edi + eax + 0x28], 4
jmp 0x52d9e2
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 0x52dae1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x52dac4
inc eax
cmp dl, 0xd
je 0x52da0e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x52da34
cmp eax, ecx
jae 0x52da42
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 0x52d9f6
jmp 0x52dae1
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 0x52dabf
cmp dword [ebp - 0x10], 0
je 0x52dabf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x73ec90]
test byte [eax + edi + 0x28], 0x48
je 0x52da99
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52da84
mov byte [esi], dl
jmp 0x52da95
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x73ec90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x52dae1
cmp byte [ebp - 1], 0xa
jne 0x52daa8
cmp esi, ebx
jne 0x52daa8
mov byte [esi], 0xa
jmp 0x52dae0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00527979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52dae1
mov byte [esi], 0xd
jmp 0x52dae0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x73ec90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x52dade
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52dae1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52daea
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 + 0x73ec90]
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 0x52db30
cmp word [ebx], dx
jne 0x52db30
or byte [eax + edi + 0x28], 4
jmp 0x52db35
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 0x52dc98
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 0x52dc78
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x52db76
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x52dbac
cmp eax, edx
jae 0x52dbba
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 0x52db51
jmp 0x52dc98
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 0x52dc73
cmp dword [ebp - 0x18], 0
je 0x52dc73
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x73ec90]
test byte [eax + edi + 0x28], 0x48
je 0x52dc49
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 0x52dc0d
mov word [esi], cx
jmp 0x52dc44
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x73ec90]
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 + 0x73ec90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x73ec90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x52dc98
pop eax
cmp word [ebp - 4], ax
jne 0x52dc59
cmp esi, ebx
jne 0x52dc59
mov word [esi], ax
jmp 0x52dc95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00527979
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x52dc98
push 0xd
pop eax
jmp 0x52dc54
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x73ec90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x52dc92
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x52dc98
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 0x53208a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00531f5e
Function at 0x5328c7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x737100]
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 0x532912
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00532c99
test al, al
jne 0x53290c
sub edx, 2
cmp edx, edi
jne 0x5328f2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x532934
lea eax, [edi + 2]
cmp edx, eax
je 0x532934
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0053258e
add esp, 0x10
jmp 0x532a2e
push esi
lea ecx, [ebp - 0x255]
call fcn.00532c99
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 0x532977
push dword [ebp - 0x25c]
jmp 0x532924
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 0x5329b4
cmp word [ebp - 0x226], 0
je 0x5329d5
cmp word [ebp - 0x226], ax
jne 0x5329b4
cmp word [ebp - 0x224], 0
je 0x5329d5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0053258e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x532a21
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x53298e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x532a09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x532a2e
push 0x5320ad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00523d60
add esp, 0x10
jmp 0x5329fe
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.004815ec
leave
ret
Function at 0x533e09
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x533ea6
push ebx
push esi
call fcn.00533dc5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005310cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x533e53
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x533ea5
push edi
push eax
call fcn.00529cb2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x533e73
call fcn.005299e5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x533ea4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005310cc
add esp, 0x20
test eax, eax
jne 0x533e92
push edi
call fcn.005299e5
jmp 0x533e9a
push ebx
call fcn.005299e5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x533ea9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x533eba
pop esi
ret
push ebx
push edi
push esi
call fcn.00533dc5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00529cb2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x533ee2
push ebx
push esi
push edi
call fcn.004de1b0
add esp, 0xc
push 0
call fcn.005299e5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5347d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00534157

Function at 0x536f9e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00528307
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 0x53700d
cmp esi, dword [ebp - 4]
je 0x537008
cmp dword [ebp + 0xc], 0
je 0x537008
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x536fe5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00536af0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x53700f
xor eax, eax
inc eax
jmp 0x53700f
xor eax, eax
pop edi
pop esi
leave
ret