joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443299
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 0x44346d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x467c80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44346d
test cl, 0x48
je 0x443304
cmp byte [eax + 5], 0xa
je 0x443304
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 0x443356
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44333e
call fcn.00441ae5
mov dword [eax], 9
call fcn.00441aee
mov dword [eax], esi
jmp 0x44334e
cmp eax, 0x6d
je 0x44346d
push eax
call fcn.00441af7
pop ecx
or eax, 0xffffffff
jmp 0x44346f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x443468
test eax, eax
je 0x44337d
cmp byte [ebx], 0xa
jne 0x44337d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x443386
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 0x443462
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x443452
cmp al, 0xd
je 0x4433b8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x443444
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4433d2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4433cd
add dword [ebp + 0x10], 2
jmp 0x443426
mov dword [ebp + 0x10], eax
jmp 0x443440
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 0x4433fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x443440
cmp dword [ebp - 0xc], 0
je 0x443440
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44341b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x443426
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x443443
cmp ebx, dword [ebp + 0xc]
jne 0x44342b
cmp byte [ebp - 1], 0xa
jne 0x44342b
mov byte [ebx], 0xa
jmp 0x443443
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00443951
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x443444
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44339c
jmp 0x443462
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x443462
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 0x44346f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44351f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45f56c]
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 0x443550
xor eax, eax
jmp 0x4436d9
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 + 0x467c80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44358c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004466c1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x443667
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4436a5
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 0x4435f0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4435e1
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 0x4435c1
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 0x443630
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x443639
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4435b2
jmp 0x44363b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4436d4
cmp dword [ebp - 0x6c], edi
je 0x4436a5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x44369a
call fcn.00441ae5
mov dword [eax], 9
call fcn.00441aee
mov dword [eax], esi
jmp 0x4436cf
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 0x44368f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x44363b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x44363b
push dword [ebp - 0x6c]
call fcn.00441af7
pop ecx
jmp 0x4436cf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4436bd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4436bd
xor eax, eax
jmp 0x4436d7
call fcn.00441ae5
mov dword [eax], 0x1c
call fcn.00441aee
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4436d7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00438bfc
add ebp, 0x3a0
leave
ret
Function at 0x443bb9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4668c8], ebx
push esi
push edi
jne 0x443c39
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x443c74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x457854
push edi
call esi
test eax, eax
mov dword [0x4668c8], eax
je 0x443c74
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4668cc], eax
call esi
cmp dword [0x4664ac], 2
mov dword [0x4668d0], eax
jne 0x443c39
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4668d8], eax
je 0x443c39
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4668d4], eax
mov eax, dword [0x4668d4]
test eax, eax
je 0x443c7e
call eax
test eax, eax
je 0x443c65
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4668d8]
test eax, eax
je 0x443c65
test byte [ebp - 8], 1
jne 0x443c7e
cmp dword [0x4664b8], 4
jb 0x443c78
or byte [ebp + 0x12], 0x20
jmp 0x443c9d
xor eax, eax
jmp 0x443cad
or byte [ebp + 0x12], 4
jmp 0x443c9d
mov eax, dword [0x4668cc]
test eax, eax
je 0x443c9d
call eax
mov ebx, eax
test ebx, ebx
je 0x443c9d
mov eax, dword [0x4668d0]
test eax, eax
je 0x443c9d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4668c8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4474e4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043a2d0
mov eax, dword [0x45f56c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00443951
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x447617
push 2
push esi
push dword [ebp + 8]
call fcn.00443951
add esp, 0xc
cmp eax, ebx
je 0x447617
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4475b7
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043a310
push 0x8000
push dword [ebp + 8]
call fcn.00448170
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x44756d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044351f
add esp, 0xc
cmp eax, 0xffffffff
je 0x44758d
sub edi, eax
test edi, edi
jg 0x447565
jmp 0x4475a5
call fcn.00441aee
cmp dword [eax], 5
jne 0x4475a2
call fcn.00441ae5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00448170
pop ecx
pop ecx
jmp 0x4475ff
jge 0x4475ff
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443951
push dword [ebp + 8]
call fcn.00446442
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 0x4475ff
call fcn.00441ae5
mov dword [eax], 0xd
call fcn.00441aee
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.00443951
add esp, 0xc
mov eax, esi
pop edi
jmp 0x447619
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00438bfc
leave
ret
Function at 0x447625
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x458778
call fcn.0043a178
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x466974], edi
jne 0x447669
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447654
mov dword [0x466974], ebx
jmp 0x447669
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x447669
mov dword [0x466974], 2
mov eax, dword [0x466974]
cmp eax, ebx
jne 0x447689
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x44774c
cmp eax, 2
je 0x447692
cmp eax, edi
jne 0x4476ba
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4476a5
mov eax, dword [0x466920]
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 0x4476c1
xor eax, eax
jmp 0x44774c
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0043a2d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4476f4
cmp esi, edi
jne 0x44770a
push dword [ebp - 0x20]
call fcn.0043a012
pop ecx
mov esi, eax
cmp esi, edi
je 0x4476ba
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 0x44773d
cmp dword [ebp + 0x14], edi
jne 0x447727
push edi
push edi
jmp 0x44772d
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 0x447749
push esi
call fcn.0043a024
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0043a1b3
ret
Function at 0x447755
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x458788
call fcn.0043a178
xor esi, esi
cmp dword [0x466978], esi
jne 0x447799
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447784
mov dword [0x466978], edi
jmp 0x447799
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x447799
mov dword [0x466978], 2
mov eax, dword [0x466978]
cmp eax, 2
je 0x44787a
cmp eax, esi
je 0x44787a
cmp eax, 1
jne 0x4477de
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4477c7
mov eax, dword [0x466920]
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 0x4477e5
xor eax, eax
jmp 0x44788c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0043a2d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x44781b
cmp edi, esi
jne 0x447836
lea eax, [ebx + ebx]
push eax
call fcn.0043a012
pop ecx
mov edi, eax
cmp edi, esi
je 0x4477de
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 0x447869
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x447853
push esi
push esi
jmp 0x447859
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 0x447875
push edi
call fcn.0043a024
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x44788c
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.0043a1b3
ret
Function at 0x447f9b
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 0x447fb4
or eax, 0xffffffff
jmp 0x448015
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x448011
push 0x3d
push esi
call fcn.004481dc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x448011
cmp esi, eax
je 0x448011
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4664cc]
sete cl
cmp eax, dword [0x4664d0]
mov dword [ebp - 8], ecx
jne 0x447ff7
mov edi, eax
call fcn.00447f3a
mov dword [0x4664cc], eax
cmp eax, ebx
jne 0x448050
cmp dword [ebp + 0xc], ebx
je 0x448019
cmp dword [0x4664d4], ebx
je 0x448019
call fcn.00447454
test eax, eax
je 0x448050
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x448022
xor eax, eax
jmp 0x448014
push 4
call fcn.0043a012
cmp eax, ebx
pop ecx
mov dword [0x4664cc], eax
je 0x448011
mov dword [eax], ebx
cmp dword [0x4664d4], ebx
jne 0x448050
push 4
call fcn.0043a012
cmp eax, ebx
pop ecx
mov dword [0x4664d4], eax
je 0x448011
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4664cc]
call fcn.00447eed
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4480b1
cmp dword [esi], ebx
je 0x4480b1
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043a024
cmp dword [ebp - 8], ebx
pop ecx
jne 0x448094
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4480f2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x44808b
mov eax, edi
shl eax, 2
push eax
push dword [0x4664cc]
call fcn.0043a90b
cmp eax, ebx
pop ecx
pop ecx
je 0x4480f2
jmp 0x4480ed
cmp dword [ebp - 8], ebx
jne 0x44815d
cmp edi, ebx
jge 0x4480c0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4664cc]
call fcn.0043a90b
cmp eax, ebx
pop ecx
pop ecx
je 0x448011
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 [0x4664cc], eax
cmp dword [ebp + 0xc], ebx
je 0x448147
push dword [ebp - 4]
call fcn.00438c10
inc eax
inc eax
push eax
call fcn.0043a012
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x448147
push dword [ebp - 4]
push esi
call fcn.00438cb0
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 0x448140
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043a024
pop ecx
cmp dword [ebp - 8], ebx
je 0x448155
push dword [ebp - 4]
call fcn.0043a024
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x448014
push dword [ebp - 4]
call fcn.0043a024
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x44801e
Function at 0x409b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46634b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045af06
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409bd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458e1d
mov eax, dword [eax]
push 0x5511c0
push eax
call fcn.0044bc84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b191
test bl, bl
je 0x409bd2
push 0x5511c0
lea ecx, [esp + 0xc]
call fcn.0045b521
push 0x554d3c
lea ecx, [esp + 0xc]
call fcn.0045b521
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409c0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b191
jmp 0x409cd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409c92
lea edx, [esp + 0x7c]
push 0x554d38
push edx
call fcn.0044bc84
add esp, 8
test eax, eax
je 0x409c92
lea eax, [esp + 0x7c]
push 0x554d34
push eax
call fcn.0044bc84
add esp, 8
test eax, eax
je 0x409c92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409c22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045b191
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a4d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a532
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40a540
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4663cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55b200]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a678
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a5a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b191
xor eax, eax
jmp 0x40a6ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b2ce
push esi
lea ecx, [esp + 0xc]
call fcn.0045b55d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a6cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040a4d0
test eax, eax
jne 0x40a6cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.0040a4d0
test eax, eax
jne 0x40a6cd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044ccc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a6ac
lea ecx, [esp + 0x14]
push 0x554d4c
push ecx
call fcn.0044cc40
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a6ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a6af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b27e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a5be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b191
xor eax, eax
jmp 0x40a6ef
mov byte [esi], 0
push 0x554d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045b191
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41bc60
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41bcce
cmp si, 0x69
ja 0x41bcce
add esi, 0xffd0
cmp si, 0x11
je 0x41bc9e
push 0x11
call edi
test ax, ax
jge 0x41bc9e
or esi, 0x2000
cmp si, 0x10
je 0x41bcb3
push 0x10
call edi
test ax, ax
jge 0x41bcb3
or esi, 0x4000
cmp si, 0x12
je 0x41bcc8
push 0x12
call edi
test ax, ax
jge 0x41bcc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bcdb
mov esi, 0xbd
jmp 0x41bc8f
cmp si, 0x6e
jne 0x41bce8
mov esi, 0xbe
jmp 0x41bc8f
cmp si, 0x6f
jne 0x41bc89
mov esi, 0xbf
jmp 0x41bc8f

Function at 0x41d410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56b868]
xor edx, edx
cmp eax, edx
jne 0x41d436
xor eax, eax
mov byte [eax + 0x56b768], al
inc eax
cmp eax, 0x100
jl 0x41d41e
mov dword [0x56b868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56b768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d4c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41d49a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41d468
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41d593
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41d57a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret