joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487d52
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004fc92d
call fcn.0041d028
cmp dword [eax + 0x14], 0
jne 0x487d6d
mov ecx, esi
pop esi
jmp fcn.00487158
pop esi
ret

Function at 0x487e73
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041c700
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x487eaf
call fcn.00488092
mov dword [esi + 0xc], 1
jmp 0x487eb4
call fcn.00488092
cmp dword [esi], 0
je 0x487efd
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x487ed7
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00418164
jmp 0x487ee8
push 0xff
mov ecx, esi
call fcn.0040a2d5
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b0c0
jmp 0x487f21
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x487f21
push dword [esi]
push dword [ebp - 4]
call fcn.0041d1d7
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x487fe7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00488092
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x48802f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418164
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b0c0
jmp 0x48803a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d1d7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4fa64c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004a575f
call fcn.0041d028
cmp dword [eax + 0x14], 0
jne 0x4fa667
mov ecx, esi
pop esi
jmp fcn.004f9f35
pop esi
ret
Function at 0x53796c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052c7f2
mov dword [ebp - 0x14], eax
cmp dword [0x5a96cc], esi
jne 0x537a5f
push 0x800
push esi
push 0x57b5f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5379ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x537b3f
push esi
push esi
push 0x57b5f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x537b3f
push 0x57b608
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537b3f
push eax
call ebx
push 0x57b614
push edi
mov dword [0x5a96cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57b624
push edi
mov dword [0x5a96d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a96d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a96dc], eax
test eax, eax
je 0x537a5c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a96d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x537a84
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x537a77
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x537a99
push 4
pop eax
jmp 0x537b41
cmp dword [ebp - 0x14], esi
je 0x537a99
push dword [0x5a96cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x537a7e
mov eax, dword [0x5a96d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x537af7
cmp dword [0x5a96dc], edi
je 0x537af7
push eax
call ebx
push dword [0x5a96dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x537af7
test eax, eax
je 0x537af7
call ecx
test eax, eax
je 0x537aec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x537aec
test byte [ebp - 8], 1
jne 0x537af7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x537b27
mov eax, dword [0x5a96d0]
cmp eax, edi
je 0x537b24
push eax
call ebx
test eax, eax
je 0x537b24
call eax
mov esi, eax
test esi, esi
je 0x537b24
mov eax, dword [0x5a96d4]
cmp eax, edi
je 0x537b24
push eax
call ebx
test eax, eax
je 0x537b24
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a96cc]
call ebx
test eax, eax
je 0x537b3f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x537b41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527afb
mov esp, ebp
pop ebp
ret
Function at 0x44fd61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49cf34]
jne 0x44fd6b
repz ret
jmp fcn.004537df

Function at 0x458f41
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49cf34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00452dd7
and dword [ebp - 0x14], 0
cmp dword [0x49ecb4], 0
mov dword [ebp - 0x18], eax
jne 0x458ff4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45909c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45909c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49ecb4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49ecb8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49ecbc], eax
call edi
push eax
call esi
mov dword [0x49ecc4], eax
test eax, eax
je 0x458ff4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49ecc0], eax
mov eax, dword [0x49ecc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45904d
cmp dword [0x49ecc4], ecx
je 0x45904d
push eax
call esi
push dword [0x49ecc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45904d
test ebx, ebx
je 0x45904d
call edi
test eax, eax
je 0x459044
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x459044
test byte [ebp - 8], 1
jne 0x45904d
or dword [ebp + 0x10], 0x200000
jmp 0x459080
mov eax, dword [0x49ecb8]
cmp eax, dword [ebp - 0x18]
je 0x459080
push eax
call esi
test eax, eax
je 0x459080
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x459080
mov eax, dword [0x49ecbc]
cmp eax, dword [ebp - 0x18]
je 0x459080
push eax
call esi
test eax, eax
je 0x459080
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49ecb4]
call esi
test eax, eax
je 0x45909c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45909e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fd61
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40fbf0
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0ef5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040f7b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40fcae
push eax
lea ecx, [ebp - 0x14]
call fcn.00408cb0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x40fc61
mov edi, 8
jmp 0x40fcb6
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40fcae
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4c4108
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fcb6
cmp dword [ebp - 0x24], 0
je 0x40fcb6
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x40fca0
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40fcb6
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x40fcb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x40fcc7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0047e2af
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0047e2af
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4117b0
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [esp + 8]
push eax
call fcn.00411f20
mov eax, dword [esp + 4]
test eax, eax
je 0x411806
add eax, 0xc
add esp, 8
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.0047d025
int3
Function at 0x4210e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eda0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x4c5764
test eax, eax
je 0x421158
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], 0xffffffff
je 0x42114f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42114f
cmp dword [ebp - 0x10], 0x103
jne 0x42114f
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x421280
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4a4148
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x421389
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x10], edi
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x421389
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x42135e
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42135e
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42135e
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421343
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004037d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047dde6
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x499010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x334]
push eax
call dword [ebp - 0x3c8]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
je 0x499eeb
push 0
push dword [ebp - 0x66c]
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
call fcn.00497d58
mov ch, 0x7f
push ds
pop ds
and byte [ebp - 0x6dc], 0
and byte [ebp - 0x6db], 0
mov byte [ebp - 0x6da], 0x2c
and byte [ebp - 0x6d9], 0
mov byte [ebp - 0x6d8], 0x81
mov byte [ebp - 0x6d7], 0xb6
mov byte [ebp - 0x6d6], 0xb2
mov byte [ebp - 0x6d5], 0xb7
mov byte [ebp - 0x6d4], 0x95
mov byte [ebp - 0x6d3], 0xba
mov byte [ebp - 0x6d2], 0xbf
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.00497d58
invalid
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49a811
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 + 0x4e5e60]
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 0x49a851
cmp byte [ebx], 0xa
jne 0x49a851
or byte [eax + edi + 0x28], 4
jmp 0x49a856
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49a954
mov al, byte [edx]
cmp al, 0x1a
je 0x49a936
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49a885
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49a8aa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49a8b4
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 0x49a867
jmp 0x49a954
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 0x49a931
cmp dword [ebp - 0xc], 0
je 0x49a931
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e5e60]
test byte [eax + edi + 0x28], 0x48
je 0x49a90b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49a8f6
mov byte [esi], dl
jmp 0x49a907
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e5e60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49a954
cmp byte [ebp - 1], 0xa
jne 0x49a91a
cmp esi, ebx
jne 0x49a91a
mov byte [esi], 0xa
jmp 0x49a953
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004909c2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49a954
mov byte [esi], 0xd
jmp 0x49a953
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e5e60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a950
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a954
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401d90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401deb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401db0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x401dcc
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402270
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401e0d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401e7f
mov esi, dword [ebx]
cmp esi, ebx
je 0x401e7f
test esi, esi
je 0x401e7f
cmp word [esi + 0x24], 2
jbe 0x401e79
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401e79
cmp dword [esi + 0x18], 0
je 0x401e79
test ebp, ebp
je 0x401e35
cmp ebp, eax
jne 0x401e79
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402270
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x401e5a
cmp edx, dword [esi + 0x18]
jne 0x401e79
cmp dword [esp + 0x14], eax
je 0x401e8c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00404250
add esp, 8
test eax, eax
je 0x401e8c
mov esi, dword [esi]
cmp esi, ebx
jne 0x401e13
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x401f60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x401fab
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x401f9b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401f81
jmp 0x401fa0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x401ffb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401fc0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401fc0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x401fdc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402270
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40201d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x402090
mov esi, dword [ebx]
cmp esi, ebx
je 0x402090
test esi, esi
je 0x402090
cmp word [esi + 0x24], 2
jbe 0x40208a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40208a
cmp dword [esi + 0x18], 0
je 0x40208a
test ebp, ebp
je 0x402045
cmp ebp, eax
jne 0x40208a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402270
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40206a
cmp eax, dword [esi + 0x18]
jne 0x40208a
cmp dword [esp + 0x10], 0
je 0x40209d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00404250
add esp, 8
test eax, eax
je 0x40209d
mov esi, dword [esi]
cmp esi, ebx
jne 0x402023
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x4020b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f1c08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40225d
cmp dword [0x7f1c0c], 0
jne 0x402249
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402ac0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402100
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402110
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41e0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402145
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402ac0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4021a4
sub edx, esi
sar edx, 1
je 0x40225d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4021c0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40225d
xor eax, eax
push ebx
test edx, edx
je 0x4021f8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4021f8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4021e1
xor eax, eax
test edx, edx
je 0x402212
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402212
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402200
xor eax, eax
test edx, edx
je 0x40222f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40222f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402220
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f1c08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret