joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5345c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x534604
push 6
call fcn.0053559b
add esp, 4
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp + 0x18], 0
jne 0x534637
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x534637
push 6
call fcn.0053559b
add esp, 4
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0
je 0x534652
mov eax, 1
jmp 0x53465c
mov eax, 0
jmp 0x53465c
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x5391d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x539239
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.005362e0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x539440
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x5394d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x5394c4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x5394bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x539485
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x539640
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x5396bf
push edi
call fcn.0053f220
add esp, 4
test eax, eax
jbe 0x5396bf
test esi, esi
je 0x53967d
cmp esi, 0xffffffff
je 0x53967d
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x539701
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x5396ab
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x5396bf
jmp 0x5396ba
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x5396bf
mov ebp, 1
test esi, esi
je 0x539701
cmp esi, 0xffffffff
je 0x539701
test ebp, ebp
jne 0x539738
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x53970e
call edi
test eax, eax
je 0x539701
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x539738
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x5396e9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x539701
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x539738
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x53971b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.0053f220
inc eax
push eax
call fcn.005362e0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x539a70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x539a8e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x539a83
pop esi
ret
Function at 0x539e30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x539e71.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x539e71.2
jmp dword [eax*4 + 0x539efc]
mov word [esp + 0x48], di
jmp 0x539eaa
mov word [esp + 0x48], 2
jmp 0x539eaa
mov word [esp + 0x48], 3
jmp 0x539eaa
mov word [esp + 0x48], 4
jmp 0x539eaa
mov word [esp + 0x48], 7
jmp 0x539eaa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x539ef4
cmp dword [esp + 0x70], edi
je 0x539ee0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x53b7e0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x53b835
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.ws2_32.dll_gethostname
test eax, eax
jne 0x53b830
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0053ecd0
add esp, 8
mov esi, eax
pop edi
call sub.ws2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret
Function at 0x53b910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0053ff80
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x53ba60
test ecx, ecx
je 0x53ba60
inc ecx
push ecx
call fcn.0054d7c4
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005420e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x53b989
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x53ba4d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0054d7c4
add esp, 4
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x53ba11
cmp eax, 0xea
jne 0x53ba39
push esi
call fcn.0054d7ed
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0054d7c4
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x53b9dc
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x53ba1f
cmp eax, 2
jne 0x53ba39
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0053ecd0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.0054d7ed
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebp
call fcn.0054d7ed
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x53ba8e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x53ba9a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x53ba9a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0053ecd0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x53bc00
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret

Function at 0x53bce0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x53c340
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.0053ff80
mov esi, dword [esp + 0x28]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebp, ebp
je 0x53c411
test ecx, ecx
je 0x53c411
inc ecx
push ebx
push ecx
call fcn.0054d7c4
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005420e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53c3b3
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53c3ed
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
jne 0x53c400
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.0054d7ed
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, edx
pop ebp
pop ecx
ret
Function at 0x53c420
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x53c4a0
je 0x53c491
cmp eax, 0x80000101
ja 0x53c48a
je 0x53c491
cmp eax, 0x80000004
je 0x53c46d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x53c4b5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x53c4fb
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x53c4fb
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x53c4fb
cmp eax, 0x80000201
jne 0x53c4b5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x53c4fb
cmp eax, 0x80000401
je 0x53c4e6
cmp eax, 0x80000501
je 0x53c4d2
cmp eax, 0x80000601
je 0x53c4be
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00541fe0
jmp 0x53c4f3
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00541fe0
jmp 0x53c4f3
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0053ff80
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x53c5d6
test ecx, ecx
je 0x53c5d6
inc ecx
push esi
push ecx
call fcn.0054d7c4
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005420e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53c578
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x53c5cc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x53c5c1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
call fcn.0054d7ed
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x53d8e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x53d8f9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.0053fbe0
add esp, 4
test eax, eax
jne 0x53d90e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x53d928
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x53d928
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x53da10
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x53d960
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x53d977
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x53d97b
mov esi, dword [esp + 0x2c]
push esi
call fcn.0054d7c4
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x53d9b4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.0054d7ed
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jle 0x53d9d0
mov al, byte [ecx]
test al, al
je 0x53d9d0
cmp al, 0x1a
je 0x53d9d0
inc edi
inc ecx
cmp edi, edx
jl 0x53d9c0
lea ecx, [edi + 1]
push ecx
call fcn.005362e0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.00541b70
push ebx
mov byte [edi + esi], 0
call fcn.0054d7ed
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x53da8b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x53da2a
or eax, 0xffffffff
jmp 0x53da2e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x53da5d
mov cl, byte [edx]
test cl, cl
je 0x53da5d
cmp cl, 0x1a
je 0x53da5d
inc edi
inc edx
cmp edi, eax
jl 0x53da4c
lea edx, [edi + 1]
push edx
call fcn.005362e0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.00541b70
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x53dc50
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.00536290
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x53dca7
push ebx
push edi
call fcn.005363a0
push esi
mov ebx, esi
call fcn.00536290
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x53dc7e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x53dec0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0054d7c4
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x53df2a
push esi
lea edi, [eax + 0x400]
call fcn.0054d7ed
push edi
call fcn.0054d7c4
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x53defa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x53df46
push ecx
push esi
call fcn.0053ecd0
add esp, 8
mov ebx, eax
push esi
call fcn.0054d7ed
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x53e060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.0053ff80
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x53e14e
test ecx, ecx
je 0x53e14e
inc ecx
push ebx
push ecx
call fcn.0054d7c4
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005420e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53e0e2
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x53e136
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x53e123
cmp eax, 0xea
jne 0x53e12b
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call fcn.0054d7ed
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0x53e190
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x53e1aa
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x53e1b8
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x53e1b1
cmp al, 0x20
je 0x53e1c2
cmp byte [edi], 0x20
jne 0x53e1c2
inc edi
lea ecx, [esp + 0xc]
call fcn.0053ed60
mov dword [esp + 0xc], 0x5e2924
mov al, byte [edi]
test al, al
je 0x53e286
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x53e22e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x53e209
mov al, byte [esi]
cmp al, 0x22
je 0x53e209
test al, al
jge 0x53e201
mov al, byte [esi + 1]
test al, al
je 0x53e209
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x53e1ef
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.0053ecd0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0053eff0
mov al, byte [esi]
mov edi, esi
test al, al
je 0x53e27c
lea edi, [esi + 1]
jmp 0x53e27c
cmp al, 0x20
jg 0x53e23a
cmp byte [esi], 0
jl 0x53e23a
inc edi
jmp 0x53e27c
test al, al
mov esi, edi
je 0x53e262
mov al, byte [esi]
cmp al, 0x22
je 0x53e262
cmp al, 0x20
jg 0x53e24e
test al, al
jge 0x53e262
test al, al
jge 0x53e25a
mov al, byte [esi + 1]
test al, al
je 0x53e262
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x53e240
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.0053ecd0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0053eff0
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x53e1e1
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x53e299
push eax
call fcn.005409e0
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.005362e0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x5e2920
call fcn.0053ef60
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x53e300
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x53e313
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.0053fbe0
add esp, 4
test eax, eax
jne 0x53e325
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x53e39c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x53e3ce
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x53e388
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x53e358
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x53e3ce
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x53e3ce
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x53e3b7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x53e3e0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53e408
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x53e42a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x53e600
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x53e64a
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x53e63f
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
push edi
call fcn.0053f220
push eax
push edi
call fcn.0053ecd0
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret