joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441c71
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45e56c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45ed20]
je 0x441ca6
inc eax
cmp eax, 0x13
jb 0x441c97
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ed20]
jne 0x441dcc
mov eax, dword [0x4654f4]
cmp eax, 1
je 0x441da4
cmp eax, edx
jne 0x441cd6
cmp dword [0x45e6b4], 1
je 0x441da4
cmp ecx, 0xfc
je 0x441dcc
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441d0c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004384c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00438420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441d40
mov eax, edi
push eax
call fcn.00438420
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x455854
push edi
call fcn.00441920
add esp, 0x10
push edi
call fcn.00438420
push dword [esi + 0x45ed24]
mov ebx, eax
call fcn.00438420
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00439ae0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004384c0
push edi
push ebx
call fcn.004384d0
push 0x455850
push ebx
call fcn.004384d0
push dword [esi + 0x45ed24]
push ebx
call fcn.004384d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004433c9
add esp, 0x2c
jmp 0x441dcc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45ed24]
push dword [esi]
call fcn.00438420
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0043840c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x442aa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x442c7d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x466c80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x442c7d
test cl, 0x48
je 0x442b14
cmp byte [eax + 5], 0xa
je 0x442b14
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442b66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x442b4e
call fcn.004412f5
mov dword [eax], 9
call fcn.004412fe
mov dword [eax], esi
jmp 0x442b5e
cmp eax, 0x6d
je 0x442c7d
push eax
call fcn.00441307
pop ecx
or eax, 0xffffffff
jmp 0x442c7f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x442c78
test eax, eax
je 0x442b8d
cmp byte [ebx], 0xa
jne 0x442b8d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x442b96
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x442c72
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x442c62
cmp al, 0xd
je 0x442bc8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x442c54
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x442be2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x442bdd
add dword [ebp + 0x10], 2
jmp 0x442c36
mov dword [ebp + 0x10], eax
jmp 0x442c50
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442c50
cmp dword [ebp - 0xc], 0
je 0x442c50
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x442c2b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x442c36
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x442c53
cmp ebx, dword [ebp + 0xc]
jne 0x442c3b
cmp byte [ebp - 1], 0xa
jne 0x442c3b
mov byte [ebx], 0xa
jmp 0x442c53
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00443161
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x442c54
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x442bac
jmp 0x442c72
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x442c72
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x442c7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442d2f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45e56c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x442d60
xor eax, eax
jmp 0x442ee9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x466c80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x442d9c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00445ece
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x442e77
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x442eb5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x442e00
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x442df1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x442dd1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442e40
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x442e49
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x442dc2
jmp 0x442e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x442ee4
cmp dword [ebp - 0x6c], edi
je 0x442eb5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x442eaa
call fcn.004412f5
mov dword [eax], 9
call fcn.004412fe
mov dword [eax], esi
jmp 0x442edf
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442e9f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x442e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x442e4b
push dword [ebp - 0x6c]
call fcn.00441307
pop ecx
jmp 0x442edf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x442ecd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x442ecd
xor eax, eax
jmp 0x442ee7
call fcn.004412f5
mov dword [eax], 0x1c
call fcn.004412fe
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x442ee7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043840c
add ebp, 0x3a0
leave
ret
Function at 0x4433c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4658c0], ebx
push esi
push edi
jne 0x443449
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x443484
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456844
push edi
call esi
test eax, eax
mov dword [0x4658c0], eax
je 0x443484
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4658c4], eax
call esi
cmp dword [0x4654a4], 2
mov dword [0x4658c8], eax
jne 0x443449
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4658d0], eax
je 0x443449
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4658cc], eax
mov eax, dword [0x4658cc]
test eax, eax
je 0x44348e
call eax
test eax, eax
je 0x443475
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4658d0]
test eax, eax
je 0x443475
test byte [ebp - 8], 1
jne 0x44348e
cmp dword [0x4654b0], 4
jb 0x443488
or byte [ebp + 0x12], 0x20
jmp 0x4434ad
xor eax, eax
jmp 0x4434bd
or byte [ebp + 0x12], 4
jmp 0x4434ad
mov eax, dword [0x4658c4]
test eax, eax
je 0x4434ad
call eax
mov ebx, eax
test ebx, ebx
je 0x4434ad
mov eax, dword [0x4658c8]
test eax, eax
je 0x4434ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4658c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446cf1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00439ae0
mov eax, dword [0x45e56c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00443161
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x446e24
push 2
push esi
push dword [ebp + 8]
call fcn.00443161
add esp, 0xc
cmp eax, ebx
je 0x446e24
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x446dc4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00439b20
push 0x8000
push dword [ebp + 8]
call fcn.0044797d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x446d7a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00442d2f
add esp, 0xc
cmp eax, 0xffffffff
je 0x446d9a
sub edi, eax
test edi, edi
jg 0x446d72
jmp 0x446db2
call fcn.004412fe
cmp dword [eax], 5
jne 0x446daf
call fcn.004412f5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044797d
pop ecx
pop ecx
jmp 0x446e0c
jge 0x446e0c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443161
push dword [ebp + 8]
call fcn.00445c4f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x446e0c
call fcn.004412f5
mov dword [eax], 0xd
call fcn.004412fe
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00443161
add esp, 0xc
mov eax, esi
pop edi
jmp 0x446e26
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043840c
leave
ret
Function at 0x446e32
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x457768
call fcn.00439988
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x46596c], edi
jne 0x446e76
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446e61
mov dword [0x46596c], ebx
jmp 0x446e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446e76
mov dword [0x46596c], 2
mov eax, dword [0x46596c]
cmp eax, ebx
jne 0x446e96
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x446f59
cmp eax, 2
je 0x446e9f
cmp eax, edi
jne 0x446ec7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x446eb2
mov eax, dword [0x465918]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x446ece
xor eax, eax
jmp 0x446f59
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00439ae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x446f01
cmp esi, edi
jne 0x446f17
push dword [ebp - 0x20]
call fcn.00439822
pop ecx
mov esi, eax
cmp esi, edi
je 0x446ec7
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x446f4a
cmp dword [ebp + 0x14], edi
jne 0x446f34
push edi
push edi
jmp 0x446f3a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x446f56
push esi
call fcn.00439834
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004399c3
ret
Function at 0x446f62
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x457778
call fcn.00439988
xor esi, esi
cmp dword [0x465970], esi
jne 0x446fa6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446f91
mov dword [0x465970], edi
jmp 0x446fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446fa6
mov dword [0x465970], 2
mov eax, dword [0x465970]
cmp eax, 2
je 0x447087
cmp eax, esi
je 0x447087
cmp eax, 1
jne 0x446feb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x446fd4
mov eax, dword [0x465918]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x446ff2
xor eax, eax
jmp 0x447099
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00439ae0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x447028
cmp edi, esi
jne 0x447043
lea eax, [ebx + ebx]
push eax
call fcn.00439822
pop ecx
mov edi, eax
cmp edi, esi
je 0x446feb
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447076
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x447060
push esi
push esi
jmp 0x447066
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x447082
push edi
call fcn.00439834
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x447099
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004399c3
ret
Function at 0x4477a8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4477c1
or eax, 0xffffffff
jmp 0x447822
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x44781e
push 0x3d
push esi
call fcn.004479e9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x44781e
cmp esi, eax
je 0x44781e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4654c4]
sete cl
cmp eax, dword [0x4654c8]
mov dword [ebp - 8], ecx
jne 0x447804
mov edi, eax
call fcn.00447747
mov dword [0x4654c4], eax
cmp eax, ebx
jne 0x44785d
cmp dword [ebp + 0xc], ebx
je 0x447826
cmp dword [0x4654cc], ebx
je 0x447826
call fcn.00446c61
test eax, eax
je 0x44785d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x44782f
xor eax, eax
jmp 0x447821
push 4
call fcn.00439822
cmp eax, ebx
pop ecx
mov dword [0x4654c4], eax
je 0x44781e
mov dword [eax], ebx
cmp dword [0x4654cc], ebx
jne 0x44785d
push 4
call fcn.00439822
cmp eax, ebx
pop ecx
mov dword [0x4654cc], eax
je 0x44781e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4654c4]
call fcn.004476fa
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4478be
cmp dword [esi], ebx
je 0x4478be
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00439834
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4478a1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4478ff
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x447898
mov eax, edi
shl eax, 2
push eax
push dword [0x4654c4]
call fcn.0043a11b
cmp eax, ebx
pop ecx
pop ecx
je 0x4478ff
jmp 0x4478fa
cmp dword [ebp - 8], ebx
jne 0x44796a
cmp edi, ebx
jge 0x4478cd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4654c4]
call fcn.0043a11b
cmp eax, ebx
pop ecx
pop ecx
je 0x44781e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4654c4], eax
cmp dword [ebp + 0xc], ebx
je 0x447954
push dword [ebp - 4]
call fcn.00438420
inc eax
inc eax
push eax
call fcn.00439822
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x447954
push dword [ebp - 4]
push esi
call fcn.004384c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x44794d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00439834
pop ecx
cmp dword [ebp - 8], ebx
je 0x447962
push dword [ebp - 4]
call fcn.00439834
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x447821
push dword [ebp - 4]
call fcn.00439834
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x44782b
Function at 0x401ebc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x401ecd
cmp esi, 9
jle 0x401ed8
push 0x42f0c8
call fcn.00405eb4
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44eeb0
mov dword [0x4324e8], esi
call fcn.00428ee0
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42f07a]
mov dword [0x4324d4], ecx
movzx ecx, word [eax + 0x42f078]
mov dword [0x4324ec], ecx
movzx ecx, word [eax + str.lstrcmpA]
movzx eax, word [eax + 0x42f07e]
mov dword [0x4324e0], ecx
mov dword [str._SystemDir_], eax
jne 0x401f3a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401f46
cmp esi, 9
jne 0x401f46
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45eeb0
mov dword [str._ShortSystemDir_], ebx
mov dword [0x4324f4], ebx
call dword [0x4324c8]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x4324f8], eax
je 0x401fba
cmp eax, 0xffffffff
je 0x401fba
mov esi, 0x106
mov dword [0x4324dc], ebx
cmp eax, esi
jae 0x401f92
cmp dword [0x4324dc], ebx
jne 0x401f92
call fcn.0040210b
cmp dword [0x4324f8], esi
jb 0x401f7d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45eeb0]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401f96
mov dword [0x4324d8], eax
jmp 0x401fca
mov dword [0x4324dc], 1
mov dword [0x4324f8], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40246b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4324f8], edi
mov dword [0x4324cc], 2
je 0x402632
mov ecx, dword [str._ShortSystemDir_]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45eeb2]
mov edx, dword [0x4324d8]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44eeb0]
mov dword [0x4324d8], eax
lea eax, [eax*2 + 0x44eeb0]
mov word [ebp*2 + 0x43eeb0], dx
test edx, edx
mov word [eax], cx
je 0x4024fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4024fa
push edx
call fcn.00401fce
mov edi, eax
mov eax, dword [0x4324f8]
cmp edi, eax
pop ecx
jbe 0x4024f4
mov edi, eax
mov ecx, dword [str._ShortSystemDir_]
cmp edi, 3
jb 0x40259b
sub ecx, dword [str._ShortWindowsDir_]
lea eax, [edi - 3]
push eax
push ecx
call fcn.004046f8
sub dword [0x4324f8], edi
cmp edi, dword [0x4324d4]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40256d
mov ecx, dword [str._ShortSystemDir_]
dec edi
movzx eax, byte [ecx + 0x45eeb3]
mov edx, dword [0x4324d8]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x4324d8], eax
mov bp, word [eax*2 + 0x44eeb0]
lea edx, [eax*2 + 0x44eeb0]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43eeb0], bp
mov word [edx], cx
jne 0x40252e
jmp 0x4025bc
mov ecx, dword [str._ShortSystemDir_]
add ecx, edi
xor edi, edi
mov dword [str._ShortSystemDir_], ecx
movzx eax, byte [ecx + 0x45eeb0]
movzx edx, byte [ecx + 0x45eeb1]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x4324d8], eax
jmp 0x4025c3
movzx eax, byte [ecx + 0x45eeb0]
push eax
push 0
call fcn.004046f8
dec dword [0x4324f8]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [str._ShortSystemDir_]
inc ecx
mov dword [str._ShortSystemDir_], ecx
cmp dword [esp + 0x10], 0
je 0x4025f7
mov eax, dword [0x4324f4]
test eax, eax
jl 0x4025db
lea edx, [eax + 0x45eeb0]
jmp 0x4025dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.00403eff
mov ecx, dword [str._ShortSystemDir_]
add esp, 0xc
mov dword [0x4324f4], ecx
mov ebp, 0x106
cmp dword [0x4324f8], ebp
jae 0x402620
cmp dword [0x4324dc], 0
jne 0x402620
call fcn.0040210b
cmp dword [0x4324f8], ebp
mov ecx, dword [str._ShortSystemDir_]
jb 0x402604
cmp dword [0x4324f8], 0
jne 0x402498
pop esi
pop ebp
pop ebx
jmp 0x402638
mov ecx, dword [str._ShortSystemDir_]
mov edx, dword [0x4324f4]
pop edi
test edx, edx
jl 0x40264b
lea eax, [edx + 0x45eeb0]
jmp 0x40264d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.00403eff
add esp, 0x10
ret

Function at 0x405cf3
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405d00
or eax, 0xffffffff
jmp 0x405d2e
cmp dword [esp + 8], 0
mov eax, dword [0x42f4a4]
je 0x405d2e
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42f4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x405d0d
pop esi
mov dword [0x42f4a4], eax
not eax
ret
Function at 0x40799d
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c620
push 0x428cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [0x42c258]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push ebx
call dword [0x42c264]
mov dword [ebp - 0x24], eax
push 0xf
push ebx
mov edi, dword [0x42c268]
call edi
mov esi, dword [0x42c250]
call esi
mov dword [ebp - 0x20], eax
call esi
sub eax, dword [ebp - 0x20]
je 0x4079ee
call esi
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
rdtsc
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
push ebx
call edi
push 0x3c
call dword [0x42c254]
push 0xf
push ebx
call edi
call esi
mov dword [ebp - 0x2c], eax
call esi
sub eax, dword [ebp - 0x2c]
je 0x407a1f
call esi
mov esi, eax
rdtsc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
push ebx
call edi
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
xor edx, edx
div esi
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
mov eax, esi
xor edx, edx
push 0x64
pop esi
div esi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 5
jb 0x407a65
inc ecx
mov eax, ecx
jmp 0x407a82
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret