joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e080
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x18
push esi
push edi
push str.RtlGetNtVersionNumbers
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x41e246
push 0x488b50
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
call eax
mov eax, dword [0x488b50]
and eax, 0xfffffff
cmp dword [esp + 0xc], 0xa
mov dword [0x488b50], eax
jne 0x41e246
cmp dword [esp + 0x10], 0
jne 0x41e246
cmp eax, 0x4563
jb 0x41e246
push 0x800
push 0
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41e246
push 0x31
push edi
call esi
push 0x68
push edi
mov dword [0x488b5c], eax
call esi
push 0x6a
push edi
mov dword [0x488b64], eax
call esi
push 0x84
push edi
call esi
push 0x85
push edi
mov dword [0x488b70], eax
call esi
push 0x87
push edi
mov dword [0x488b6c], eax
call esi
cmp dword [0x488b50], 0x47ba
jae 0x41e151
mov dword [0x488b68], eax
jmp 0x41e156
mov dword [0x488b58], eax
push 0x89
push edi
call esi
push str.SetWindowCompositionAttribute
push str.user32.dll
mov dword [0x488b60], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
cmp dword [0x488b5c], 0
mov dword [0x488b74], eax
je 0x41e246
cmp dword [0x488b64], 0
je 0x41e246
cmp dword [0x488b70], 0
je 0x41e246
cmp dword [0x488b6c], 0
je 0x41e246
mov ecx, dword [0x488b68]
mov eax, dword [0x488b58]
test ecx, ecx
jne 0x41e1c6
test eax, eax
je 0x41e246
cmp dword [0x488b60], 0
je 0x41e246
mov byte [0x488b55], 1
test ecx, ecx
je 0x41e1e0
push 1
call ecx
jmp 0x41e1e8
test eax, eax
je 0x41e1e8
push 1
call eax
call dword [0x488b64]
call dword [0x488b70]
test al, al
je 0x41e236
xor eax, eax
mov dword [esp + 0x14], 0xc
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0xc
push 0x42
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x41e226
mov al, byte [esp + 0x18]
and al, 1
jne 0x41e236
mov al, 1
pop edi
mov byte [0x488b54], al
movzx eax, al
pop esi
add esp, 0x18
ret
xor al, al
pop edi
mov byte [0x488b54], al
movzx eax, al
pop esi
add esp, 0x18
ret
mov al, byte [0x488b54]
pop edi
movzx eax, al
pop esi
add esp, 0x18
ret
Function at 0x41f700
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465d97
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x484540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 2
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x41f8aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 1
je 0x41f7b0
push dword [esi + 0x194]
push 0x100
push eax
push 0x472bd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f7a0
jmp 0x41f83b
push dword [esi + 0x190]
push 0x100
push eax
push 0x472bd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f7d6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402c10
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x41f84e
push dword [esi + 0x194]
lea eax, [ebp - 0x210]
push 0x100
push eax
push 0x472bd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x41f830
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f830
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402c10
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f86f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41f88b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044998e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00403110
int3
Function at 0x41f8c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465de5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x484540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or edi, 0xffffffff
cmp eax, 0x20
jg 0x41f971
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x41f9a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.url.dll_FileProtocolHandler__s
push eax
call fcn.00408490
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 1
push 0
push esi
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41f971
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f990
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403110
int3
Function at 0x424a20
Capabilities:
Read .ini file

Disassembly:
movzx ecx, byte [esp + 8]
push esi
mov eax, ecx
shl eax, 8
push edi
push dword [esp + 0x14]
or eax, ecx
shl eax, 8
or eax, ecx
push eax
push dword [esp + 0x14]
push str.Color
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esp + 0xc]
or edi, 0xffffffff
movzx esi, al
add edx, 0xfffffff0
movzx ecx, ax
shl esi, 8
shr ecx, 8
or esi, ecx
shr eax, 0x10
movzx eax, al
shl esi, 8
or esi, eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424a7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x424a97
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x424aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46638f
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x484540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 1
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x424ba1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], 1
push str.ParentTheme_d
push esi
call fcn.00408490
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push 0x100
push eax
push 0x472bd0
push dword [esi]
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424b45
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00402c10
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edi, dword [ebp + 0x10]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x424b82
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044998e
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403110
int3

Function at 0x425530
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x484540]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x484f8c]
cmp eax, 0xffffffff
jne 0x4255b4
push 0x118
lea eax, [esp + 8]
mov dword [0x484f8c], 0
push 0
push eax
call fcn.0044bb10
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x4255af
cmp dword [esp + 8], 0
jne 0x4255af
mov dword [0x484f8c], 1
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044998e
add esp, 0x120
ret
mov eax, dword [0x484f8c]
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044998e
add esp, 0x120
ret
Function at 0x428210
Capabilities:
Get file version info

Disassembly:
sub esp, 0x210
mov eax, dword [0x484540]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
xor eax, eax
mov dword [esp + 0x10], 0
push edi
mov word [esp + 0x18], ax
mov esi, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
push esi
mov ebx, edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ef0f
add esp, 4
mov edi, eax
push edi
push dword [esp + 0x14]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x428313
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x472bd4
push edi
call esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x478210
push edi
call esi
mov eax, dword [esp + 0xc]
push str.FileVersion
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
lea eax, [esp + 0x24]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call esi
push dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 0x100
push eax
call fcn.0045073f
add esp, 0xc
test ebx, ebx
je 0x428313
push dword [esp + 0xc]
push 0x100
push ebx
call fcn.0045073f
add esp, 0xc
push edi
call fcn.0042ef0a
add esp, 4
lea eax, [esp + 0x18]
mov ecx, 0x472bd0
pop edi
pop esi
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42834e
test dx, dx
je 0x42834a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42834e
add eax, 4
add ecx, 4
test dx, dx
jne 0x428328
xor eax, eax
jmp 0x428353
sbb eax, eax
or eax, 1
test eax, eax
je 0x428384
lea eax, [esp + 0xc]
push eax
call fcn.004546af
fmul qword [0x47a998]
add esp, 4
call fcn.0044a3a0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044998e
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor eax, eax
xor ecx, esp
call fcn.0044998e
add esp, 0x210
ret
Function at 0x42fa00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x42fa2b
cmp dword [edi + 0x80], 0
jne 0x42fa2b
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0043a8f2
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0042fc58
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43280d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x43284c
call fcn.0043a8f2
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43284c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x432854
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0042e981
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x432eff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x432f8b
cmp dword [esi + 0x20], 0
je 0x432f8b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x432f8b
cmp dword [ebp + 8], 0
je 0x432f8b
xor edi, edi
mov ebx, edi
call fcn.0043a8f2
push 0x46a880
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x432f6f
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x432f8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004420e5
mov edi, eax
add esp, 0xc
test edi, edi
je 0x432f87
mov ecx, esi
call fcn.00432cd9
mov eax, edi
jmp 0x432f8d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x439951
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4399a4
push esi
push dword [ebp + 8]
call fcn.00439b3a
mov edi, eax
test edi, edi
je 0x43999f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43999f
mov eax, dword [ebp - 8]
jmp 0x4399b6
mov eax, dword [ebp + 0x10]
jmp 0x4399b6
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x43aa39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0043aa92
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43aa81
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042f76a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042f78d
jmp 0x43aa8c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00440a79
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x458877
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4703d4
push 0x4703cc
push str.FlsAlloc
push 0x1e
call fcn.004586f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4588ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x469694]
call esi
jmp 0x4588b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4588f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4703e4
push 0x4703dc
push str.FlsGetValue
push 0x20
call fcn.004586f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45892c
push dword [ebp + 8]
mov ecx, esi
call dword [0x469694]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45b112
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x484540]
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 0x45b15d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045b2b1
test al, al
jne 0x45b157
sub edx, 2
cmp edx, edi
jne 0x45b13d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45b17f
lea eax, [edi + 2]
cmp edx, eax
je 0x45b17f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045b05e
add esp, 0x10
jmp 0x45b279
push esi
lea ecx, [ebp - 0x255]
call fcn.0045b2b1
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 0x45b1c2
push dword [ebp - 0x25c]
jmp 0x45b16f
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 0x45b1ff
cmp word [ebp - 0x226], 0
je 0x45b220
cmp word [ebp - 0x226], ax
jne 0x45b1ff
cmp word [ebp - 0x224], 0
je 0x45b220
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045b05e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45b26c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45b1d9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45b254
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45b279
push 0x45ae8e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00460af0
add esp, 0x10
jmp 0x45b249
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.0044998e
leave
ret

Function at 0x45bcb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45bcc8
pop esi
ret
push ebx
push edi
push esi
call fcn.0045bc80
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004573a5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45bcf0
push ebx
push esi
push edi
call fcn.0044b590
add esp, 0xc
push 0
call fcn.0045736b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45c0b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045bd05
Function at 0x4600d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4885a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460115
cmp byte [ebx], 0xa
jne 0x460115
or byte [eax + edi + 0x28], 4
jmp 0x46011a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x460218
mov al, byte [edx]
cmp al, 0x1a
je 0x4601fa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x460149
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46016e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x460178
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46012b
jmp 0x460218
push 0
lea eax, [ebp - 0xc]
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 0x4601f5
cmp dword [ebp - 0xc], 0
je 0x4601f5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4885a0]
test byte [eax + edi + 0x28], 0x48
je 0x4601cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4601ba
mov byte [esi], dl
jmp 0x4601cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4885a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x460218
cmp byte [ebp - 1], 0xa
jne 0x4601de
cmp esi, ebx
jne 0x4601de
mov byte [esi], 0xa
jmp 0x460217
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00460045
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x460218
mov byte [esi], 0xd
jmp 0x460217
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4885a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460214
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460218
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x460221
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4885a0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460264
cmp word [esi], dx
jne 0x460264
or byte [edi + eax + 0x28], 4
jmp 0x460269
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4603bc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46039c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4602ab
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4602e1
cmp eax, edx
jae 0x4602ed
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460283
jmp 0x4603bc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460398
cmp dword [ebp - 0x14], 0
je 0x460398
mov eax, dword [ebx*4 + 0x4885a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460370
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x460339
mov word [esi], cx
jmp 0x46036c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4885a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4885a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4885a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4603bc
pop ebx
cmp word [ebp - 4], bx
jne 0x460381
cmp esi, dword [ebp + 0xc]
jne 0x460381
mov word [esi], bx
jmp 0x4603b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00460045
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4603bc
push 0xd
jmp 0x4603b5
mov ecx, dword [ebx*4 + 0x4885a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4603b3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4603bc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret