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

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x409ff5
call fcn.0040aac5
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x40a067
push esi
push 0x88
push 1
call fcn.0040f86b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40a04d
push esi
call fcn.0040c2ba
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x409f39
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x40a045
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40a064
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040996f
test ebx, ebx
pop ecx
je 0x40a05f
push ebx
call fcn.0040aad7
pop ecx
or eax, 0xffffffff
jmp 0x40a066
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x40a111
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040e118
xor esi, esi
inc esi
cmp dword [0x41dbd8], esi
pop ecx
jne 0x40a139
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41dbd4], esi
mov byte [0x41dbd0], al
jne 0x40a19f
mov ecx, dword [0x41f468]
test ecx, ecx
je 0x40a180
mov eax, dword [0x41f464]
sub eax, 4
cmp eax, ecx
jmp 0x40a179
mov eax, dword [eax]
test eax, eax
je 0x40a16b
call eax
mov eax, dword [0x41f464]
sub eax, 4
cmp eax, dword [0x41f468]
mov dword [0x41f464], eax
jae 0x40a163
mov eax, 0x41b028
mov esi, 0x41b030
cmp eax, esi
mov edi, eax
jae 0x40a19f
mov eax, dword [edi]
test eax, eax
je 0x40a198
call eax
add edi, 4
cmp edi, esi
jb 0x40a190
mov eax, 0x41b034
mov esi, 0x41b038
cmp eax, esi
mov edi, eax
jae 0x40a1be
mov eax, dword [edi]
test eax, eax
je 0x40a1b7
call eax
add edi, 4
cmp edi, esi
jb 0x40a1af
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x40a1cf
push 8
call fcn.0040e084
jmp 0x40a1e1
push dword [ebp + 8]
mov dword [0x41dbd8], 1
call fcn.0040a06a
pop ecx
pop ebp
ret

Function at 0x40acc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ace5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040aad7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40ad08
test byte [esp + 8], 2
je 0x40ad08
call fcn.0040aac5
mov dword [eax], 0xd
call fcn.0040aace
mov dword [eax], 5
jmp 0x40ace1
xor eax, eax
ret
Function at 0x40b647
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 0x40b80d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41f360]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40b80d
test cl, 0x48
je 0x40b6ad
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40b6ad
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 0x40b6ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40b6e7
call fcn.0040aac5
mov dword [eax], 9
call fcn.0040aace
mov dword [eax], esi
jmp 0x40b6f7
cmp eax, 0x6d
je 0x40b80d
push eax
call fcn.0040aad7
pop ecx
or eax, 0xffffffff
jmp 0x40b80f
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40b808
test edx, edx
je 0x40b722
cmp byte [ebx], 0xa
jne 0x40b722
or al, 4
jmp 0x40b724
and al, 0xfb
mov byte [ecx], al
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 0x40b802
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40b7f2
cmp al, 0xd
je 0x40b758
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40b7e4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40b772
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40b76d
add dword [ebp + 0x10], 2
jmp 0x40b7c6
mov dword [ebp + 0x10], eax
jmp 0x40b7e0
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 0x40b79a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b7e0
cmp dword [ebp - 0xc], 0
je 0x40b7e0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40b7bb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40b7c6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40b7e3
cmp ebx, dword [ebp + 0xc]
jne 0x40b7cb
cmp byte [ebp - 1], 0xa
jne 0x40b7cb
mov byte [ebx], 0xa
jmp 0x40b7e3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040fc65
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40b7e4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40b73c
jmp 0x40b802
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40b802
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40b80f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41caf0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x40b8e8
xor eax, eax
jmp 0x40ba56
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41f360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40b91b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040ae29
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b9ed
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40ba28
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40b976
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b967
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40b94a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b9b6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40b9bf
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40b93b
jmp 0x40b9c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40ba51
cmp dword [ebp - 8], edi
je 0x40ba28
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40ba1a
call fcn.0040aac5
mov dword [eax], 9
call fcn.0040aace
mov dword [eax], esi
jmp 0x40ba23
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ba0f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40b9c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40b9c1
push dword [ebp - 8]
call fcn.0040aad7
pop ecx
or eax, 0xffffffff
jmp 0x40ba54
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40ba3d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40ba3d
xor eax, eax
jmp 0x40ba54
call fcn.0040aac5
mov dword [eax], 0x1c
call fcn.0040aace
mov dword [eax], edi
jmp 0x40ba23
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040fb73
leave
ret
Function at 0x40c518
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41caf0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41c508]
je 0x40c545
inc eax
cmp eax, 0x12
jb 0x40c536
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41c508]
jne 0x40c679
mov eax, dword [0x41db90]
cmp eax, 1
je 0x40c654
cmp eax, edx
jne 0x40c575
cmp dword [0x41c1d8], 1
je 0x40c654
cmp ecx, 0xfc
je 0x40c679
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c5ae
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040f9a0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040f7e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c5f0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040f7e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x418d28
push edi
call fcn.004096a0
add esp, 0x10
push edi
call fcn.0040f7e0
push dword [esi + 0x41c50c]
mov ebx, eax
call fcn.0040f7e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409600
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040f9a0
push edi
push ebx
call fcn.0040f9b0
push 0x418d08
push ebx
call fcn.0040f9b0
push dword [esi + 0x41c50c]
push ebx
call fcn.0040f9b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00410f26
add esp, 0x2c
jmp 0x40c679
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41c50c]
push dword [esi]
call fcn.0040f7e0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040fb73
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410047
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00409600
mov eax, dword [0x41caf0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040fc65
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x410171
push 2
push esi
push dword [ebp + 8]
call fcn.0040fc65
add esp, 0xc
cmp eax, ebx
je 0x410171
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410114
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00410d20
push 0x8000
push dword [ebp + 8]
call fcn.004123a8
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4100cd
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b8bf
add esp, 0xc
cmp eax, 0xffffffff
je 0x4100ed
sub edi, eax
test edi, edi
jg 0x4100c5
jmp 0x410105
call fcn.0040aace
cmp dword [eax], 5
jne 0x410102
call fcn.0040aac5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004123a8
pop ecx
pop ecx
jmp 0x41015c
jge 0x41015c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fc65
push dword [ebp + 8]
call fcn.0040b3f6
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 0x41015c
call fcn.0040aac5
mov dword [eax], 0xd
call fcn.0040aace
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040fc65
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410173
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040fb73
leave
ret
Function at 0x410f26
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41def0], ebx
push esi
push edi
jne 0x410fa6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410fe1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419088
push edi
call esi
test eax, eax
mov dword [0x41def0], eax
je 0x410fe1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41def4], eax
call esi
cmp dword [0x41db98], 2
mov dword [0x41def8], eax
jne 0x410fa6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41df00], eax
je 0x410fa6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41defc], eax
mov eax, dword [0x41defc]
test eax, eax
je 0x410feb
call eax
test eax, eax
je 0x410fd2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41df00]
test eax, eax
je 0x410fd2
test byte [ebp - 8], 1
jne 0x410feb
cmp dword [0x41dba4], 4
jb 0x410fe5
or byte [ebp + 0x12], 0x20
jmp 0x41100a
xor eax, eax
jmp 0x41101a
or byte [ebp + 0x12], 4
jmp 0x41100a
mov eax, dword [0x41def4]
test eax, eax
je 0x41100a
call eax
mov ebx, eax
test ebx, ebx
je 0x41100a
mov eax, dword [0x41def8]
test eax, eax
je 0x41100a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41def0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4114be
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409600
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411553
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41db98]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x411553
cmp eax, 1
je 0x41156b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411553
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x411528
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41154f
xor eax, eax
inc eax
jmp 0x411587
cmp esi, ebx
jae 0x411557
xor eax, eax
jmp 0x411587
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41db98]
jmp 0x41156d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4116b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41caf0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41172b
push ebx
call fcn.00411679
test eax, eax
pop ecx
jne 0x4116fd
call fcn.0040aace
mov dword [eax], 0xf
call fcn.0040aac5
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040fb73
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41173d
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4116ed
inc eax
cmp eax, 0x104
ja 0x4116ed
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x411775
cmp eax, dword [ebp + 0x10]
jg 0x411758
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040995d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41178a
call fcn.0040aac5
mov dword [eax], 0xc
jmp 0x4116ed
cmp eax, dword [ebp + 0x10]
jle 0x41178a
call fcn.0040aac5
mov dword [eax], 0x22
jmp 0x4116ed
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0040f9a0
pop ecx
pop ecx
jmp 0x4116ef
Function at 0x411dd8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x411e43
push 0x3d
push dword [ebp + 8]
call fcn.00412b2d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x411e43
cmp dword [ebp + 8], esi
je 0x411e43
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x41dbb8]
cmp eax, dword [0x41dbbc]
jne 0x411e29
mov edi, eax
call fcn.00411d77
mov dword [0x41dbb8], eax
cmp eax, ebx
jne 0x411e82
cmp dword [ebp + 0xc], ebx
je 0x411e4b
cmp dword [0x41dbc0], ebx
je 0x411e4b
call fcn.0040fbcf
test eax, eax
je 0x411e82
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x411f86
push 4
call fcn.0040995d
cmp eax, ebx
pop ecx
mov dword [0x41dbb8], eax
je 0x411e43
mov dword [eax], ebx
cmp dword [0x41dbc0], ebx
jne 0x411e82
push 4
call fcn.0040995d
cmp eax, ebx
pop ecx
mov dword [0x41dbc0], eax
je 0x411e43
mov dword [eax], ebx
mov ebx, dword [0x41dbb8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00411d2a
mov edi, eax
test edi, edi
pop ecx
jl 0x411edb
cmp dword [ebx], 0
je 0x411edb
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040996f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x411ec3
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x411f11
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x411eba
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004099e0
test eax, eax
pop ecx
pop ecx
je 0x411f11
jmp 0x411f0c
cmp dword [ebp - 4], 0
jne 0x411f7f
test edi, edi
jge 0x411eeb
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004099e0
test eax, eax
pop ecx
pop ecx
je 0x411e43
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x41dbb8], eax
cmp dword [ebp + 0xc], 0
je 0x411f68
push dword [ebp + 8]
call fcn.0040f7e0
inc eax
inc eax
push eax
call fcn.0040995d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x411f68
push dword [ebp + 8]
push esi
call fcn.0040f9a0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x411f61
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040996f
pop ecx
cmp dword [ebp - 4], 0
je 0x411f77
push dword [ebp + 8]
call fcn.0040996f
pop ecx
mov eax, dword [ebp - 8]
jmp 0x411e46
push esi
call fcn.0040996f
pop ecx
xor eax, eax
jmp 0x411e46
Function at 0x413ae0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
sub edx, eax
cmp edx, ecx
jge 0x413b20
add ecx, eax
mov dword [esp + 0x18], ecx
push 0
push 0xce0000
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x14
sub ecx, eax
push ecx
sub edx, edi
mov edi, dword [esp + 0x40]
push edx
push 0
push 0
push 0
push edi
call ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push edi
call fcn.00414900
add esp, 8
push 0x15
push 0
push 0
push 0
push 0
push 0
push esi
call ebx
mov eax, dword [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x415980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x100]
movzx edx, byte [eax + 0x101]
mov dword [esp + 0x10], edi
je 0x4159fb
push ebx
push ebp
jmp 0x4159b0
mov ecx, dword [esp + 0x14]
nop
lea edi, [ecx + 1]
and edi, 0xff
mov bl, byte [edi + eax]
movzx ebp, bl
xor ecx, ecx
add edx, ebp
and edx, 0xff
mov cl, byte [edx + eax]
mov byte [edi + eax], cl
mov byte [edx + eax], bl
mov bl, byte [esi]
mov dword [esp + 0x14], edi
add ecx, ebp
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, bl
mov byte [esi], cl
movzx ecx, cl
add edx, ecx
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x4159ab
mov cl, byte [esp + 0x14]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
ret
Function at 0x41b07e
Capabilities:
Hash data using fnv

Disassembly:
mov byte [0x42a4a7], dl
xor ecx, ecx
call fcn.0041ad6c
jae 0x41b0c1
ret
Function at 0x41b393
Capabilities:
Hash data using fnv

Disassembly:
mov edx, dword [0x42a248]
test edi, edi
jne fcn.0041b3a1
test edx, edx
jne 0x41b401

Function at 0x41b3a1
Capabilities:
Hash data using fnv

Disassembly:
push ecx
push esi
mov esi, dword [0x42a1f8]
mov eax, edi
mov dword [esi], eax
mov edx, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x41b3c6
xor dl, al
imul edx, edx, 0x1000193
inc ecx
shr eax, 8
jmp 0x41b3b4
or byte [0x42a4a1], 1
and dword [0x42a24c], 0
mov byte [0x42a4a0], 2
mov byte [0x42a4a2], 0
or byte [0x42a4a3], 1
or byte [0x42a4a4], 1
test ebx, ebx
jne 0x41b3fa
mov ebx, dword [0x42a244]
call fcn.0041bbed
pop esi
pop ecx
mov ebx, dword [edx + 0xc]
ret

Function at 0x41be11
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov byte [0x42a4a2], dl
test ebx, ebx
jne 0x41be21
mov ebx, dword [0x42a184]
mov esi, eax
mov edx, 0x811c9dc5
mov dword [0x42a270], ecx
mov ecx, 4
xor dl, al
imul edx, edx, 0x1000193
shr eax, 8
loop 0x41be33
mov eax, dword [0x42a270]
mov ecx, 4
xor dl, al
imul edx, edx, 0x1000193
shr eax, 8
loop 0x41be4a
mov ecx, dword [0x42a270]
mov byte [0x42a4a0], 3
or byte [0x42a4a3], 1
or byte [0x42a4a4], 1
call fcn.0041bbed
mov edi, dword [0x42a268]
ret

Function at 0x424590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor ecx, ecx
call fcn.0041ad6c
jb 0x4245b0
cmp al, 0x1a
je 0x4245b2
cmp al, 0x30
je 0x424689
cmp al, 0x23
jne 0x4245b0
call fcn.0041b551
jae fcn.00424590
stc
ret
inc esi
lodsd eax, dword [esi]
mov ebx, eax
mov ecx, dword [ebx]
mov eax, dword [ebx + ecx + 4]
mov dword [0x42a250], eax
mov eax, dword [ebx + ecx + 8]
mov dword [0x42a254], eax
xor ecx, ecx
call fcn.0041ad6c
jb 0x4245ed
cmp al, 0x23
jne 0x4245ed
call fcn.0041b551
jb 0x4245ed
call fcn.0041ad6c
jb 0x4245ed
cmp al, 0x1a
je 0x424614
cmp al, 0x30
je 0x424614
mov dword [0x42a27c], ebx
cmp ebx, dword [0x42a1f0]
je 0x424604
mov byte [0x42a4a1], 0
clc
ret
sub edi, ebx
sub edi, 4
mov dword [ebx], edi
mov byte [0x42a4a1], 1
clc
ret
mov edx, 0x42a1f0
cmp ebx, dword [edx]
je 0x424634
mov edi, dword [edx]
add edi, 4
mov ecx, dword [ebx]
call fcn.0041a718
xchg esi, ebx
lodsd eax, dword [esi]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov ebx, dword [edx]
lodsb al, byte [esi]
cmp al, 0x30
je 0x4246a2
lodsd eax, dword [esi]
push ebx
push esi
mov esi, eax
mov ecx, dword [esi]
mov edx, 0x42a1f0
call fcn.0041a718
lodsd eax, dword [esi]
lea ebx, [esi + eax]
mov ecx, dword [0x42a250]
mov edx, dword [0x42a254]
xor eax, eax
lodsb al, byte [esi]
xor cl, al
xor dl, byte [eax + section..bss]
imul ecx, ecx, 0x1000193
imul edx, edx, 0x1000193
stosb byte es:[edi], al
cmp esi, ebx
jne 0x42465c
mov dword [0x42a250], ecx
mov dword [0x42a254], edx
pop esi
pop ebx
jmp 0x4245ca
inc esi
mov ebx, dword [0x42a1f0]
lea edi, [ebx + 4]
mov eax, 0x811c9dc5
mov dword [0x42a250], eax
mov dword [0x42a254], eax
mov edx, esi
mov ecx, dword [edx]
lea esi, [esi + ecx + 4]
push ebx
push esi
push edi
call fcn.0041c9bf
pop edi
mov eax, edx
jmp 0x42463c