joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036de
Capabilities:
Terminate process

Disassembly:
jmp 0x456b49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x456b5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405aba
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40380f
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0752
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0763
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0639
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a078b
push ebx
push esi
push edi
call fcn.00405894
add esp, 0xc
push 0
call fcn.0040643d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405966
Capabilities:
Parse pe header

Disassembly:
jmp 0x4458ff
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44593e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44593e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44593e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44593e
cmp dword [ecx + 0x74], 0xe
jbe 0x44593e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x499237
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401de8
mov eax, dword [0x4d4034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406032
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499279
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4993d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406190
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d7f58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403332
mov ecx, dword [esi*4 + 0x4d7f58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4993ce
cmp eax, dword [edi + ecx + 0x24]
jne 0x4993ce
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4993ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403332
add esp, 0x14
test edx, edx
jl 0x4993ce
jg 0x499344
test eax, eax
jb 0x4993ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4993ce
jl 0x49935e
cmp dword [ebp - 0x1008], eax
ja 0x4993ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49937c
test ebx, ebx
je 0x4993b5
cmp ecx, edi
jae 0x4993b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x499396
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4993a2
cmp byte [ecx + 1], 0xa
jne 0x4993a2
inc ecx
jmp 0x4993a2
movzx eax, al
movsx eax, byte [eax + 0x4d4358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49937c
cmp edx, ebx
jne 0x49937c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4993d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403111
leave
ret
Function at 0x499b14
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 + 0x4d7f58]
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 0x499b54
cmp byte [ebx], 0xa
jne 0x499b54
or byte [eax + edi + 0x28], 4
jmp 0x499b59
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x499c57
mov al, byte [edx]
cmp al, 0x1a
je 0x499c39
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x499b88
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x499bad
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x499bb7
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 0x499b6a
jmp 0x499c57
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 0x499c34
cmp dword [ebp - 0xc], 0
je 0x499c34
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d7f58]
test byte [eax + edi + 0x28], 0x48
je 0x499c0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x499bf9
mov byte [esi], dl
jmp 0x499c0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7f58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x499c57
cmp byte [ebp - 1], 0xa
jne 0x499c1d
cmp esi, ebx
jne 0x499c1d
mov byte [esi], 0xa
jmp 0x499c56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401974
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x499c57
mov byte [esi], 0xd
jmp 0x499c56
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d7f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499c53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499c57
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499cb3
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 + 0x4d7f58]
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 0x499cf6
cmp word [esi], dx
jne 0x499cf6
or byte [edi + eax + 0x28], 4
jmp 0x499cfb
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 0x499e4e
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 0x499e2e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x499d3d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x499d73
cmp eax, edx
jae 0x499d7f
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 0x499d15
jmp 0x499e4e
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 0x499e2a
cmp dword [ebp - 0x14], 0
je 0x499e2a
mov eax, dword [ebx*4 + 0x4d7f58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x499e02
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x499dcb
mov word [esi], cx
jmp 0x499dfe
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d7f58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d7f58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d7f58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x499e4e
pop ebx
cmp word [ebp - 4], bx
jne 0x499e13
cmp esi, dword [ebp + 0xc]
jne 0x499e13
mov word [esi], bx
jmp 0x499e4b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401974
add esp, 0x10
cmp word [ebp - 4], bx
je 0x499e4e
push 0xd
jmp 0x499e47
mov ecx, dword [ebx*4 + 0x4d7f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499e45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499e4e
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
Function at 0x49ecf1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4034]
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 0x49ed3c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f1b3
test al, al
jne 0x49ed36
sub edx, 2
cmp edx, edi
jne 0x49ed1c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ed5e
lea eax, [edi + 2]
cmp edx, eax
je 0x49ed5e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e8ea
add esp, 0x10
jmp 0x49ee58
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f1b3
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 0x49eda1
push dword [ebp - 0x25c]
jmp 0x49ed4e
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 0x49edde
cmp word [ebp - 0x226], 0
je 0x49edff
cmp word [ebp - 0x226], ax
jne 0x49edde
cmp word [ebp - 0x224], 0
je 0x49edff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e8ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ee4b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49edb8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ee33
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ee58
push 0x49e2d2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056cd
add esp, 0x10
jmp 0x49ee28
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.00403111
leave
ret
Function at 0x4307a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x4307cf
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4307d6
mov byte [esp + 0xa0], bl
mov esi, dword [0x4af850]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x43087b
cmp byte [esi + 0x12], bl
je 0x430829
mov edx, dword [esi]
push edx
call fcn.00470250
add esp, 4
sub eax, ebx
je 0x43080d
dec eax
je 0x430806
mov eax, 0x49f688
jmp 0x430812
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x430812
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49fe6c
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474f80
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x4307e8
cmp byte [esp + 0x20], bl
je 0x43087b
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430840
sub eax, edx
cmp eax, 0x7b
jbe 0x43086d
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49de50
push ebp
call fcn.0048adb0
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x43087b
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x43087b
mov byte [eax - 1], bl
mov edx, dword [0x4acea0]
cmp byte [edx + 0xd8], bl
je 0x430899
mov dword [esp + 0x14], 1
cmp byte [0x4af895], bl
je 0x43089d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ae44c]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x4309ac
mov dword [esp + 0x10], 0x49b8cd
mov dword [esp + 0x18], ebx
mov ebp, 0x49cb38
cmp dword [0x4ae40c], ebx
je 0x4308d1
mov ebp, 0x49cb34
mov esi, 0x49cb38
cmp dword [0x4ae408], ebx
je 0x4308e3
mov esi, 0x49cb34
push 1
call fcn.00413440
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00413860
mov ecx, dword [0x4ae44c]
mov edx, dword [0x4ae450]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ae448]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4af858]
push ecx
mov ecx, dword [0x4af85c]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
push edx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.00474f40
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00409940
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x430970
sub eax, ecx
add edi, eax
cmp dword [0x4aeaf0], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x43098e
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.00474f40
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x4308bf
Function at 0x401e8b
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4a3ac8
call fcn.0044c320
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
call fcn.00401f0a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x401ef1
mov dword [ebp - 0x18], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x401eea
cmp eax, 0xf4240
jbe 0x401eea
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f66
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x4a3af4
call fcn.0044c320
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
mov dword [esp], 0x4b8e84
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
call fcn.0044bd0a
push esi
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x401fc6
or esi, 0xffffffff
jmp 0x4020f5
push 0x4b8e80
lea ecx, [ebp - 0x18]
call fcn.0044bcfe
mov dword [ebp - 0x14], esi
mov edi, 0x4b8e64
push 0x20006
push edi
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402133
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402050
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x402036
xor eax, eax
cmp dword [ebp - 0x14], esi
je 0x40202c
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x402050
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x401fbe
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
jmp 0x401fbe
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
push esi
push 0x4b8dfc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp dword [ebp - 0x14], esi
je 0x40208f
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
push 0x20006
push 0x4b8e5c
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.00402133
test eax, eax
jne 0x402036
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov al, byte [0x4b8dfc]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xd]
push eax
push 1
push esi
push 0x4b8e4c
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], esi
je 0x4020e4
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4020f5
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4024bb
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4a3be8
call fcn.0044c320
push ecx
push ecx
push ebx
push esi
push 1
lea eax, [ebp - 0x14]
pop esi
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40252d
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ebx
push 0x4b8ef0
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4045a5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
mov edi, ecx
mov ecx, dword [eax - 8]
cmp ecx, 1
jle 0x4045c8
lea edx, [eax + ecx]
mov al, byte [eax + ecx - 2]
add al, byte [edx - 1]
jmp 0x4045d0
jne 0x4045ce
mov al, byte [eax]
jmp 0x4045d0
xor al, al
xor al, cl
xor ebx, ebx
movzx esi, al
mov al, byte [esi + edi + 0x9c]
movzx eax, al
test eax, eax
mov dword [ebp - 8], eax
jle 0x404619
mov eax, dword [edi + 0x8c]
mov edx, dword [edi + 0x28]
mov eax, dword [eax + ebx*4]
mov cl, byte [eax + esi]
mov eax, dword [ebp + 8]
mov byte [ebp - 1], cl
mov eax, dword [eax]
movzx ecx, cl
push eax
mov ecx, dword [edx + ecx*4]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x404623
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x4045e8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
movzx eax, byte [ebp - 1]
jmp 0x40461c

Function at 0x404e6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + ecx + 7]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov eax, dword [edi]
inc esi
mov ebx, dword [eax - 8]
movzx eax, bx
mov word [esi], bx
push eax
push dword [edi]
inc esi
inc esi
mov dword [ebp + 0x10], eax
push esi
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0xc
xor bl, bh
xor eax, eax
cmp dword [ebp + 0x10], edi
jbe 0x404ecd
mov cl, byte [eax + esi]
not cl
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x404ebd
add esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
mov dword [esi], ebx
add esi, 4
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xc], 7
je 0x404ef1
cmp byte [ebp + 0xc], 6
jne 0x404f08
mov al, bl
xor al, bh
cmp ebx, edi
jbe 0x404f08
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x404ef9
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40891b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4a4b2c
call fcn.0044c320
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
pop edi
push edi
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4089cf
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [ebp - 0x20], eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x4b985c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004095a7
add esp, 0x18
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x28], esi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret