joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002b20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x11282e58
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11282e58], cl
inc eax
cmp eax, 0x100
jb 0x10002b40
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x11282e58
push 0
mov ecx, 0x10125560
call fcn.1000aaf0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x112827f8], ecx
mov dword [ebp - 4], 0
jbe 0x10002c3d
mov edi, dword [0x10125548]
lea ebx, [esi + 0xa]
nop
cmp ebx, edi
jae 0x10002bef
mov eax, dword [0x10125544]
cmp eax, ebx
ja 0x10002bef
mov ecx, ebx
sub ecx, eax
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [0x1012554c]
jne 0x10002bda
mov ecx, 0x10125544
call fcn.100033f0
mov edi, dword [0x10125548]
mov eax, esi
shl eax, 6
add eax, dword [0x10125544]
add eax, esi
test edi, edi
je 0x10002c1b
mov esi, eax
jmp 0x10002c0d
cmp edi, dword [0x1012554c]
jne 0x10002c07
mov ecx, 0x10125544
call fcn.100033f0
mov edi, dword [0x10125548]
test edi, edi
je 0x10002c1e
mov esi, ebx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10125548]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 0x41
mov dword [0x10125548], edi
movzx edx, byte [esi + 8]
inc eax
add ebx, 0x41
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x10002ba0
pop edi
pop esi
mov dword [0x112827e8], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002c50
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x11282e58
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11282e58], cl
inc eax
cmp eax, 0x100
jb 0x10002c70
movzx edx, byte [esi + 4]
push edx
push 0x11282e58
push 0
mov ecx, 0x10125560
call fcn.1000aaf0
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xd
ja case.0x10002cb0.11
jmp dword [eax*4 + 0x10002d50]
add esi, 5
push esi
push 2
mov eax, 0x1012f660
call fcn.10013990
add esp, 8
pop esi
ret
push 0x3c
push 0
push 0x1128272c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf1
push 0xc1
mov eax, 0x404b90
mov ecx, 0x1128272c
call eax
push 2
mov edx, 0x4050d0
mov ecx, 0x1128272c
call edx
push 2
mov eax, 0x4050d0
mov ecx, 0x1128272c
call eax
push 0
push 1
mov ecx, 0x1128272c
call dword [0x11282770]
push 0x3c
push 0
push 0x1128272c
call sub.MSVCR100.dll_memset
add esp, 0xc
pop esi
ret
mov ecx, 0x15
call fcn.1000ae40
push eax
push 2
mov eax, 0x1012f660
call fcn.10013990
add esp, 8
pop esi
ret
Function at 0x10002d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x11282810], 1
push edi
je 0x10002e38
mov ecx, dword [0x10125514]
mov dword [0x112827d8], ebx
mov dword [0x112827dc], ebx
mov dword [0x112827e0], ebx
mov dword [0x112827e4], ebx
mov dword [0x112827e8], ebx
mov dword [0x112827ec], ebx
mov dword [0x112827f0], ebx
mov dword [0x112827f4], ebx
mov dword [0x112827f8], ebx
cmp ecx, dword [0x10125518]
je 0x10002dfc
mov dword [0x10125518], ecx
mov ecx, dword [0x10125524]
cmp ecx, dword [0x10125528]
je 0x10002e10
mov dword [0x10125528], ecx
mov ecx, dword [0x10125534]
cmp ecx, dword [0x10125538]
je 0x10002e24
mov dword [0x10125538], ecx
mov ecx, dword [0x10125544]
cmp ecx, dword [0x10125548]
je 0x10002e38
mov dword [0x10125548], ecx
mov dword [0x1012f3c4], ebx
mov dword [0x1012f3cc], ebx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002e5e
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1012f3b4]
mov edx, dword [str.1.7.0]
mov byte [ebp - 0x3a], al
mov eax, dword [0x11282810]
mov dword [ebp - 0x38], eax
mov eax, dword [0x1001f8bc]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.10013b40
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x11282e58
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001e568]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11282e58], cl
inc eax
cmp eax, 0x100
jb 0x10002eb0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x11282e58
push ebx
mov ecx, 0x10125560
call fcn.1000aaf0
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
mov edx, 0x100253b0
call fcn.10001900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x10003ca0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ecx
mov eax, dword [0x1012fe44]
test eax, eax
je 0x10003d4e
mov ecx, dword [eax]
cmp ecx, dword [0x1012fe58]
jne 0x10003cc7
mov dl, byte [0x1012fe5c]
cmp dl, byte [eax + 4]
je 0x10003d4e
push 0x100
push 0
push 0x11282e58
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x1001d568]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11282e58], cl
inc eax
cmp eax, 0x100
jb 0x10003ce0
push 0x11282e58
push 0
mov ecx, 0x10125560
call fcn.1000aaf0
xor eax, eax
add esp, 8
push eax
mov dword [0x11282b00], eax
mov dword [0x11282b04], eax
mov dword [0x11282b08], eax
mov dword [0x11282b0c], eax
mov dword [0x11282b10], eax
mov dword [0x11282b14], eax
mov dword [0x11282b18], eax
mov dword [0x11282b1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
mov eax, dword [0x1012fe40]
test eax, eax
je 0x10003d73
mov edx, dword [eax]
cmp edx, dword [0x1012fe50]
jne 0x10003d6c
mov cl, byte [0x1012fe54]
cmp cl, byte [eax + 4]
je 0x10003d73
mov eax, 0x10
jmp 0x10003d96
mov eax, dword [0x1012fe3c]
test eax, eax
je 0x10003db0
mov edx, dword [eax]
cmp edx, dword [0x1012fe48]
jne 0x10003d91
mov cl, byte [0x1012fe4c]
cmp cl, byte [eax + 4]
je 0x10003db0
mov eax, 0x11
call fcn.10015340
push eax
push 0
mov ecx, 0x10125560
call fcn.1000aaf0
add esp, 8
call fcn.10015640
pop ecx
ret
Function at 0x10004230
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov byte [0x11282f68], 0
test esi, esi
jne 0x100042ae
mov ecx, 0x5f
xor eax, eax
mov dl, byte [eax + 0x1001f96c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x20], dl
inc eax
and ecx, 0xff
cmp eax, 0x17
jb 0x10004257
xor eax, eax
push eax
mov dword [0x11282b00], eax
mov dword [0x11282b04], eax
mov dword [0x11282b08], eax
mov dword [0x11282b0c], eax
mov dword [0x11282b10], eax
mov dword [0x11282b14], eax
mov dword [0x11282b18], eax
mov dword [0x11282b1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x1d
mov eax, esi
mov dword [ebp - 0x24], 0xccccccc3
mov dword [ebp - 0x20], 0xcccccccc
mov dword [ebp - 0x1c], 0x8904ff8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0x8ff8bff
mov dword [ebp - 0x10], 0xffffff89
mov dword [ebp - 0xc], 0xff8bffff
mov byte [ebp - 8], 0xc
call fcn.10015540
add esp, 4
test eax, eax
je 0x10004378
lea esi, [eax + 8]
mov dword [0x11282728], 0x70
mov dword [0x112826dc], esi
call fcn.10017a90
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10017f70
push 0x100041f0
push 0x112826dc
call fcn.10017540
call fcn.10017b00
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x2c]
push ecx
push 0x40
push 5
push esi
call edi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
push ecx
mov edx, 0x10004200
sub edx, esi
push 5
sub edx, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], edx
call edi
mov byte [0x11282f68], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
mov ecx, 0x13
xor eax, eax
nop
inc ecx
inc eax
and ecx, 0xff
cmp eax, 0x21
jb 0x10004380
call fcn.10015640
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x100093d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf0
xor ecx, ecx
jmp 0x100093e0
mov al, byte [edi + ecx + 0x79ddc0fb]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1e
jb 0x100093e0
mov byte [esi + 0x1e], 0
mov eax, esi
ret

Function at 0x10009610
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7f
xor ecx, ecx
jmp 0x10009620
mov al, byte [edi + ecx + 0x7b9bf7eb]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xb
jb 0x10009620
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x10009640
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf3
xor ecx, ecx
jmp 0x10009650
mov al, byte [edi + ecx - 0x2b8b1aec]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xc
jb 0x10009650
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10009670
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xae
xor ecx, ecx
jmp 0x10009680
mov al, byte [edi + ecx - 0x37b821da]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xe
jb 0x10009680
mov byte [esi + 0xe], 0
mov eax, esi
ret
Function at 0x1000a740
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push connect
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a793
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1000a7a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x1000a7dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000a81b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000a814
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000a814
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x1000a83b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.100189a8
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a9d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10125778]
push ebx
push esi
push edi
test eax, eax
js 0x1000aad9
cmp eax, 1
jge 0x1000aad9
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x10125564
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x10125778], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x1000aad9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.log
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1000aab4
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000aad9
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x1000aaf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x1000ace7
cmp eax, dword [ecx + 0x218]
jge 0x1000ace7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x1000ace7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x1000ab76
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x1000ab76
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x1000ac33
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1000abfd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000ac33
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000acc0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x1000af90
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000b0b1
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000b0aa
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x418]
call fcn.10013600
add esp, 4
test al, al
je 0x1000b0aa
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x210]
call fcn.1000a520
test al, al
jne 0x1000b033
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x458]
call fcn.10002f10
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x458]
call fcn.1000a890
test al, al
jne 0x1000b072
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 2
lea ecx, [ebp - 0x458]
call fcn.10002f10
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
call fcn.10003af0
test al, al
jne 0x1000b0aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 5
lea ecx, [ebp - 0x458]
call fcn.10002f10
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x1000b260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100196eb
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], ebx
mov dword [ebp - 0xc40], ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc48]
mov dword [ebp - 4], ebx
call fcn.10015420
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x1000b2db
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0xc48]
mov byte [ebp - 0xc31], al
mov eax, dword [ebp - 0xc44]
sub eax, esi
sar eax, 2
mov byte [ebp - 0xc30], 0x17
mov dword [ebp - 0xc4c], eax
mov dword [ebp - 0xc2c], eax
cmp eax, ebx
jbe 0x1000b397
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
lea esp, [esp]
cmp ebx, 0x14
jge 0x1000b397
mov eax, dword [esi + ebx*4]
push 0x104
lea edx, [ebp - 0x11c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + ebx*4]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc38]
add edi, 0xfffffb00
mov ecx, 0x10
lea esi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, 0x10
lea esi, [ebp - 0x224]
inc ebx
add eax, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc48]
mov dword [ebp - 0xc38], eax
cmp ebx, dword [ebp - 0xc4c]
jb 0x1000b320
lea eax, [ebp - 0xc34]
push eax
mov ecx, 0xa0c
mov edx, 0x100253b0
call fcn.10001900
test esi, esi
je 0x1000b3bb
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b610
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1594
call fcn.100193b0
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1584]
push eax
push 0x1000
lea ecx, [ebp - 0x1458]
xor edi, edi
push ecx
mov dword [ebp - 0x1584], edi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1000b662
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1584]
shr esi, 2
mov dword [ebp - 0x158c], edi
mov dword [ebp - 0x1588], esi
cmp esi, edi
jle 0x1000b761
lea eax, [ebp + edi*4 - 0x1458]
mov dword [ebp - 0x1590], eax
mov eax, dword [eax]
test eax, eax
je 0x1000b752
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1000b74b
push 0x104
lea edx, [ebp - 0x250]
push edx
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000b74b
lea esi, [ebp - 0x250]
call fcn.100138a0
push eax
lea eax, [ebp - 0x48]
push 0x1001f8c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x458]
push ecx
mov ecx, esi
call fcn.10013600
add esp, 0x10
test al, al
je 0x1000b745
mov edx, dword [ebp - 0x1590]
mov eax, dword [edx]
mov dword [ebp - 0x1580], eax
mov ecx, 8
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x157c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x155c]
push 0x1001fef0
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x1580]
push eax
call fcn.1000ccf0
mov edi, dword [ebp - 0x158c]
mov esi, dword [ebp - 0x1588]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0x158c], edi
cmp edi, esi
jl 0x1000b67f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret
Function at 0x1000cb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1000cc58
cmp byte [edi + 0x49], 0
je 0x1000cc58
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1000cc4c
lea esi, [ebp - 0x2c]
call fcn.1000d130
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x1000cbc3
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000cbeb
dec eax
je 0x1000cbef
sub eax, 2
lea esi, [ebp - 0x2c]
jne 0x1000cc47
jmp 0x1000cc53
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x1000cbff
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1000cc29
cmp edx, 0x10
jae 0x1000cc0e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000cc44
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1000cc50
test esi, esi
jne 0x1000cbb7
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.1000d060
jmp 0x1000cbb1
lea esi, [ebp - 0x2c]
call fcn.10009fd0
xor al, al
jmp 0x1000cc5a
lea esi, [ebp - 0x2c]
call fcn.10009fd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100189a8
mov esp, ebp
pop ebp
ret