joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
push 0
push 0x422e60
call fcn.0040cc90
xor eax, eax
mov dword [0x41dc0c], eax
mov dword [0x41dc10], eax
mov dword [0x41dc14], eax
mov dword [0x41dc18], eax
mov eax, 0xa
add esp, 0xc
mov dword [0x422e60], 0x44
mov dword [0x422e8c], 1
mov word [0x422e90], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x4236f0], 1
mov dword [0x422e88], eax
lea eax, [ebp - 0x44]
mov edx, 0x40
mov ecx, eax
jne 0x402969
mov esi, str.launcher2.exe
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7fffffbe]
test ecx, ecx
je 0x402989
mov cl, byte [esi + eax]
test cl, cl
je 0x402989
mov byte [eax], cl
inc eax
dec edx
jne 0x402950
jmp 0x40298d
mov esi, str.launcher.exe
sub esi, ecx
lea ecx, [edx + 0x7fffffbe]
test ecx, ecx
je 0x402989
mov cl, byte [esi + eax]
test cl, cl
je 0x402989
mov byte [eax], cl
inc eax
dec edx
jne 0x402970
jmp 0x40298d
test edx, edx
jne 0x40298e
dec eax
push 0x41dc0c
push 0x422e60
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x44]
push edx
push 0
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
pop esi
call fcn.00408bfe
mov esp, ebp
pop ebp
ret

Function at 0x4029d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x402a40
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402a40
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
push str.launcher.exe
lea ecx, [ebp - 0x10c]
push ecx
call esi
test eax, eax
je 0x402a58
lea edx, [ebp - 0x130]
push edx
push edi
call ebx
test eax, eax
jne 0x402a20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x128]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
Function at 0x402aa0
Capabilities:
Check if file exists
Copy file
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.0040cc90
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x20]
push edx
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402aea
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.launcher.exe
call ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402b20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3e8
jae 0x402b1b
test edi, edi
je 0x402af0
jmp 0x402b20
call fcn.004029d0
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.launcher.exe
push str.launcher2.exe
call esi
test eax, eax
jne 0x402b4b
call fcn.004029d0
push 0
push str.launcher.exe
push str.launcher2.exe
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41621c
lea eax, [ebp - 4]
push str.game.exe
push eax
call fcn.00409303
add esp, 0xc
test eax, eax
je 0x402b86
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0
push 0x301ffc
push ecx
call fcn.004093d4
mov edx, dword [ebp - 4]
push edx
push 4
lea eax, [ebp - 8]
push 1
push eax
call fcn.0040979c
mov ecx, dword [ebp - 4]
push ecx
call fcn.004094bd
mov eax, dword [ebp - 8]
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x403c40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str.Delete_Folder:_t_s
call fcn.00403db0
push 0x416224
push esi
push str._s_s
mov ecx, 0x100
lea edi, [ebp - 0x20c]
call section..text
add esp, 0x14
lea eax, [ebp - 0x34c]
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x403d90
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403cb0
push 0x100
lea edx, [ebp - 0x10c]
push 0
push edx
call fcn.0040cc90
mov eax, dword [ebp - 0x34c]
add esp, 0xc
cmp eax, 0x10
jne 0x403d0b
cmp byte [ebp - 0x320], 0x2e
je 0x403d66
lea eax, [ebp - 0x320]
push eax
push esi
push str._s_s_
mov ecx, 0x100
lea edi, [ebp - 0x10c]
call section..text
mov ecx, edi
add esp, 0xc
push ecx
call fcn.00403c40
add esp, 4
jmp 0x403d66
cmp eax, 0x20
jne 0x403d66
cmp byte [ebp - 0x320], 0x2e
je 0x403d66
lea edx, [ebp - 0x320]
push edx
push esi
push str._s_s
mov ecx, 0x100
lea edi, [ebp - 0x10c]
call section..text
add esp, 0xc
mov eax, edi
push eax
push str.Delete_File:_t_s
call fcn.00403db0
add esp, 8
mov ecx, edi
push ecx
call ebx
test eax, eax
jne 0x403d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Delete_File:_t_d
call fcn.00403db0
add esp, 8
mov edi, dword [ebp - 0x350]
lea edx, [ebp - 0x34c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403cb0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bfe
mov esp, ebp
pop ebp
ret

Function at 0x403e60
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403ee2
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x250], 0x20
jne 0x403ec9
cmp byte [ebp - 0x224], 0x2e
je 0x403ec9
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x224]
push edx
push eax
mov ecx, 0x104
lea edi, [ebp - 0x110]
call section..text
add esp, 8
mov ecx, edi
push ecx
call ebx
lea edx, [ebp - 0x250]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e94
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
Function at 0x403f00
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403f36
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403f35
push 0x64
call edi
inc esi
cmp esi, 0x64
jge 0x403f35
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403f15
pop edi
pop esi
ret
Function at 0x403f40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8050
call fcn.0040fc70
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x8010], eax
xor eax, eax
mov edi, ecx
lea esi, [ebp - 0x804c]
mov dword [ebp - 0x8014], edi
mov dword [ebp - 0x802c], eax
mov dword [ebp - 0x8028], eax
mov dword [ebp - 0x8024], eax
mov dword [ebp - 0x8048], eax
mov dword [ebp - 0x804c], eax
call fcn.004041d0
mov ebx, eax
test ebx, ebx
jne 0x40415a
push edi
push 0x4000
lea ecx, [ebp - 0x800c]
push 1
push ecx
call fcn.0040979c
mov esi, eax
push edi
mov dword [ebp - 0x8048], esi
call fcn.00408c0d
add esp, 0x14
test eax, eax
jne 0x40406c
test esi, esi
je 0x4040d8
lea edx, [ebp - 0x800c]
mov dword [ebp - 0x804c], edx
lea ecx, [ebp - 0x804c]
lea eax, [ebp - 0x400c]
mov esi, 0x4000
push ecx
mov dword [ebp - 0x803c], esi
mov dword [ebp - 0x8040], eax
call fcn.00404340
mov ebx, eax
add esp, 4
cmp ebx, 0xfffffffc
jl 0x404018
cmp ebx, 0xfffffffd
jle 0x404090
cmp ebx, 2
je 0x40408b
mov edx, dword [ebp - 0x8010]
mov edi, dword [ebp - 0x803c]
push edx
sub esi, edi
push esi
lea eax, [ebp - 0x400c]
push 1
push eax
call fcn.00409910
add esp, 0x10
cmp eax, esi
jne 0x404128
mov ecx, dword [ebp - 0x8010]
push ecx
call fcn.00408c0d
add esp, 4
test eax, eax
jne 0x404128
test edi, edi
je 0x403fe1
cmp ebx, 1
je 0x4040d8
mov edi, dword [ebp - 0x8014]
jmp 0x403fa0
lea esi, [ebp - 0x804c]
call fcn.004057b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
mov ebx, 0xfffffffd
mov esi, dword [ebp - 0x8030]
test esi, esi
je 0x4040c5
mov ecx, dword [ebp - 0x8028]
test ecx, ecx
je 0x4040c5
mov eax, dword [esi + 0x34]
mov edi, dword [ebp - 0x8024]
test eax, eax
je 0x4040be
push eax
push edi
call ecx
mov ecx, dword [ebp - 0x8028]
add esp, 8
push esi
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x8030]
test esi, esi
je 0x40410d
mov ecx, dword [ebp - 0x8028]
test ecx, ecx
je 0x40410d
mov eax, dword [esi + 0x34]
mov edi, dword [ebp - 0x8024]
test eax, eax
je 0x404106
push eax
push edi
call ecx
mov ecx, dword [ebp - 0x8028]
add esp, 8
push esi
push edi
call ecx
add esp, 8
lea eax, [ebx - 1]
neg eax
sbb eax, eax
and eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x8030]
test esi, esi
je 0x404157
mov ebx, dword [ebp - 0x8028]
test ebx, ebx
je 0x404157
mov eax, dword [esi + 0x34]
mov edi, dword [ebp - 0x8024]
test eax, eax
je 0x404150
push eax
push edi
call ebx
add esp, 8
push esi
push edi
call ebx
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bfe
mov esp, ebp
pop ebp
ret
Function at 0x405a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x405a63
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x405add
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040ce70
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x405ab1
sub eax, edi
jmp 0x405ab3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x405aa2
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x405ad0
sub eax, edi
jmp 0x405ad2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x405ac1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x405b92
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x405b03
mov ebx, ecx
test ebx, ebx
je 0x405b56
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x405b25
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004065c0
jmp 0x405b3e
cmp eax, 2
jne 0x405b44
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x405b37
xor eax, eax
jmp 0x405b41
mov edx, ebx
call fcn.00406c60
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0040ce70
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x405b7e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x405b92
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x405a60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x406c4b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00406c60
Function at 0x408bfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c004]
jne 0x408c08
repz ret
jmp fcn.0040a1c9

Function at 0x41219f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c004]
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.0040f5e8
and dword [ebp - 0x14], 0
cmp dword [0x41dbe4], 0
mov dword [ebp - 0x18], eax
jne 0x412252
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122fa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4122fa
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41dbe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41dbe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41dbec], eax
call edi
push eax
call esi
mov dword [0x41dbf4], eax
test eax, eax
je 0x412252
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41dbf0], eax
mov eax, dword [0x41dbf0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122ab
cmp dword [0x41dbf4], ecx
je 0x4122ab
push eax
call esi
push dword [0x41dbf4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122ab
test ebx, ebx
je 0x4122ab
call edi
test eax, eax
je 0x4122a2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4122a2
test byte [ebp - 8], 1
jne 0x4122ab
or dword [ebp + 0x10], 0x200000
jmp 0x4122de
mov eax, dword [0x41dbe8]
cmp eax, dword [ebp - 0x18]
je 0x4122de
push eax
call esi
test eax, eax
je 0x4122de
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122de
mov eax, dword [0x41dbec]
cmp eax, dword [ebp - 0x18]
je 0x4122de
push eax
call esi
test eax, eax
je 0x4122de
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41dbe4]
call esi
test eax, eax
je 0x4122fa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bfe
leave
ret
Function at 0x1036f770
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.1034d620
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.1036f1a0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.1036f1f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.1036f240
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.1036f3a0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.1036f430
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.1036f3f0
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x10340b54
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1036f85e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.1034d4b0
test al, al
je 0x1036f81f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push esp
and al, 4
Function at 0x415e87
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00415f06
jae 0x415e93
xor ecx, ecx
call fcn.00415f06
jae 0x415ebd
xor eax, eax
call fcn.00415f06
jae 0x415ece
mov al, 0x10
call fcn.00415f06
adc al, al
jae 0x415eaf
jne 0x415efb
stosb byte es:[edi], al
jmp 0x415e94
call fcn.00415f12
dec ecx
loop 0x415eda
mov eax, ebp
call fcn.00415f10
jmp 0x415efc
lodsb al, byte [esi]
shr eax, 1
je 0x415f22
adc ecx, 2
mov ebp, eax
jmp 0x415efc
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00415f10
cmp eax, 0x7d00
jae 0x415efa
cmp eax, 0x500
jae 0x415efb
cmp eax, 0x7f
ja 0x415efc
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x415e94
pop ebp
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4016f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x130
mov eax, dword [0x4310d8]
mov dword [esp + 0x12c], eax
mov al, 0x87
mov cl, 0xb0
mov byte [esp + 0x10], al
mov byte [esp + 0x24], al
mov byte [esp], 0x7b
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x59
mov byte [esp + 3], 0xfe
mov byte [esp + 4], 0x78
mov byte [esp + 5], cl
mov byte [esp + 6], 0xb1
mov byte [esp + 7], 0x27
mov byte [esp + 8], 0x34
mov byte [esp + 9], 0xf8
mov byte [esp + 0xa], 0x7f
mov byte [esp + 0xb], 0x7a
mov byte [esp + 0xc], 6
mov byte [esp + 0xd], 0x30
mov byte [esp + 0xe], 0xcb
mov byte [esp + 0xf], 0xef
mov byte [esp + 0x14], 0x5e
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0x10
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], 0x3c
mov byte [esp + 0x19], 0xf9
mov byte [esp + 0x1a], 0xe3
mov byte [esp + 0x1b], 2
mov byte [esp + 0x1c], 0x68
mov byte [esp + 0x1d], 0x8c
mov byte [esp + 0x1e], 0xc
mov byte [esp + 0x1f], 0x1f
mov byte [esp + 0x20], 0x74
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], 0xe5
mov byte [esp + 0x23], 0x95
sub eax, eax
lea ecx, [ecx]
mov dl, byte [esp + eax]
mov cl, byte [esp + eax + 0x14]
xor dl, cl
mov byte [esp + eax], dl
inc eax
cmp eax, 0x11
jl 0x4017b0
push 0x104
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 8]
push eax
call dword [0x42e160]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x40]
push ecx
call dword [0x42e164]
cmp eax, 0xffffffff
jne 0x40180b
xor eax, eax
mov ecx, dword [esp + 0x12c]
call fcn.00424873
add esp, 0x130
ret
push eax
call dword [0x42e12c]
mov ecx, dword [esp + 0x12c]
nop
push 1
nop
pop eax
call fcn.00424873
add esp, 0x130
ret
Function at 0x421650
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4fc31b
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.004ed837
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4216d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004eadf1
mov eax, dword [eax]
push 0x542d20
push eax
call fcn.004db7d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004edac2
test bl, bl
je 0x4216d2
push 0x542d20
lea ecx, [esp + 0xc]
call fcn.004ede52
push 0x542d2c
lea ecx, [esp + 0xc]
call fcn.004ede52
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 0x42170e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004edac2
jmp 0x4217d9
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 0x421792
lea edx, [esp + 0x7c]
push 0x542d28
push edx
call fcn.004db7d4
add esp, 8
test eax, eax
je 0x421792
lea eax, [esp + 0x7c]
push 0x542d24
push eax
call fcn.004db7d4
add esp, 8
test eax, eax
je 0x421792
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 0x421722
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.004edac2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4