joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003eb0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10123eb4]
test eax, eax
je 0x10003f23
mov ecx, dword [eax]
cmp ecx, dword [0x10123ec8]
jne 0x10003ecf
mov dl, byte [0x10123ecc]
cmp dl, byte [eax + 4]
je 0x10003f23
push 0x100
push 0
push 0x10d7b8e0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003ef0
mov cl, byte [eax + 0x10017518]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10d7b8e0], cl
inc eax
cmp eax, 0x100
jb 0x10003ef0
push 0x10d7b8e0
push 0
mov ecx, 0x1011e2d8
call fcn.10007050
add esp, 8
call fcn.1000f650
mov eax, dword [0x10123eb0]
test eax, eax
je 0x10003f93
mov edx, dword [eax]
cmp edx, dword [0x10123ec0]
jne 0x10003f41
mov cl, byte [0x10123ec4]
cmp cl, byte [eax + 4]
je 0x10003f93
push 0x100
push 0
push 0x10d7b8e0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003f60
mov dl, byte [eax + 0x10017618]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10d7b8e0], dl
inc eax
cmp eax, 0x100
jb 0x10003f60
push 0x10d7b8e0
push 0
mov ecx, 0x1011e2d8
call fcn.10007050
add esp, 8
call fcn.1000f650
mov eax, dword [0x10123eac]
test eax, eax
je 0x10003fd0
mov ecx, dword [eax]
cmp ecx, dword [0x10123eb8]
jne 0x10003fb1
mov dl, byte [0x10123ebc]
cmp dl, byte [eax + 4]
je 0x10003fd0
mov eax, 0x11
call fcn.1000fd60
push eax
push 0
mov ecx, 0x1011e2d8
call fcn.10007050
add esp, 8
call fcn.1000f650
pop ecx
ret
Function at 0x10006730
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x57
xor ecx, ecx
jmp 0x10006740
mov al, byte [edi + ecx - 0x3661ab76]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x2d
jb 0x10006740
mov byte [esi + 0x2d], 0
mov eax, esi
ret

Function at 0x10006760
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf0
xor ecx, ecx
jmp 0x10006770
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 0x10006770
mov byte [esi + 0x1e], 0
mov eax, esi
ret

Function at 0x10006790
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7f
xor ecx, ecx
jmp 0x100067a0
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 0x100067a0
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x10006850
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf3
xor ecx, ecx
jmp 0x10006860
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 0x10006860
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10006880
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xae
xor ecx, ecx
jmp 0x10006890
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 0x10006890
mov byte [esi + 0xe], 0
mov eax, esi
ret
Function at 0x10006ca0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e018]
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 closesocket
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 0x10006cf3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10006d06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
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 0x10006d3d
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.10012f04
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 0x10006d7b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006d74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006d74
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10006d9b
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.10012f04
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.10012f04
mov esp, ebp
pop ebp
ret 8
Function at 0x10006f30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1011e4f0]
push ebx
push esi
push edi
test eax, eax
js 0x10007039
cmp eax, 1
jge 0x10007039
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x1011e2dc
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x1011e4f0], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x10007039
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 0x10007014
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
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 0x10007039
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.10012f04
mov esp, ebp
pop ebp
ret
Function at 0x10007050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10007247
cmp eax, dword [ecx + 0x218]
jge 0x10007247
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10007247
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 0x100070d6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x100070d6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10007193
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 0x1000715d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
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 0x10007193
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.10012f04
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 0x10007220
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.10012f04
mov esp, ebp
pop ebp
ret

Function at 0x10007290
Capabilities:
Create thread

Disassembly:
cmp dword [0x10d764a4], 0
je 0x100072d6
mov eax, dword [0x10d763b8]
push 0x10d7b5a8
mov dword [0x1011e4f8], eax
xor eax, eax
push eax
push 0x1011e4f4
push 0x100073c0
push eax
push eax
mov dword [0x1011e500], eax
mov dword [0x1011e504], eax
mov dword [0x1011e508], eax
mov dword [0x1011e50c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1011e4fc], eax
ret
Function at 0x100072e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x10d764c4], 0
je 0x100072fd
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x10d764c4]
cmp eax, dword [ecx]
jne case.0x10007333.0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi*4 + 0x1011e500]
cmp eax, 0x1388
jb 0x10007328
call edi
mov dword [esi*4 + 0x1011e500], eax
mov dword [esi*4 + 0x1011e508], 0
mov eax, dword [0x10d764a8]
pop edi
cmp eax, 5
ja case.default.0x10007333
jmp dword [eax*4 + 0x100073a0]
inc dword [esi*4 + 0x1011e508]
cmp dword [esi*4 + 0x1011e508], 0x19
jmp 0x1000738d
inc dword [esi*4 + 0x1011e508]
cmp dword [esi*4 + 0x1011e508], 0x14
jmp 0x1000738d
inc dword [esi*4 + 0x1011e508]
cmp dword [esi*4 + 0x1011e508], 0xf
jmp 0x1000738d
inc dword [esi*4 + 0x1011e508]
cmp dword [esi*4 + 0x1011e508], 0xa
jmp 0x1000738d
inc dword [esi*4 + 0x1011e508]
cmp dword [esi*4 + 0x1011e508], 5
jbe case.0x10007333.0
push 0
push 0
push 9
call fcn.100032d0
add esp, 0xc
ret

Function at 0x10007760
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1001e018]
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 0x10007884
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000787d
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x418]
call fcn.1000f770
add esp, 4
test al, al
je 0x1000787d
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x210]
call fcn.10006a80
test al, al
jne 0x10007804
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x458]
push eax
push 1
call fcn.100032d0
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x458]
call fcn.10006df0
test al, al
jne 0x10007844
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x458]
push edx
push 2
call fcn.100032d0
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
call fcn.10003d00
test al, al
jne 0x1000787d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x458]
push eax
push 5
call fcn.100032d0
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
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.10012f04
mov esp, ebp
pop ebp
ret
Function at 0x10007a30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013bdb
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x1001e018]
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.1000fe40
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10007aab
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 0x10007b67
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
lea esp, [esp]
cmp ebx, 0x14
jge 0x10007b67
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 0x10007af0
mov ecx, 0xa0c
lea edx, [ebp - 0xc34]
call fcn.10001900
test esi, esi
je 0x10007b85
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.10012f04
mov esp, ebp
pop ebp
ret 4
Function at 0x10007dd0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1594
call fcn.10013900
mov eax, dword [0x1001e018]
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 0x10007e22
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
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 0x10007f21
lea eax, [ebp + edi*4 - 0x1458]
mov dword [ebp - 0x1590], eax
mov eax, dword [eax]
test eax, eax
je 0x10007f12
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10007f0b
push 0x104
lea edx, [ebp - 0x250]
push edx
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10007f0b
lea esi, [ebp - 0x250]
call fcn.1000fa10
push eax
lea eax, [ebp - 0x48]
push 0x1001987c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x458]
push ecx
mov ecx, esi
call fcn.1000f770
add esp, 0x10
test al, al
je 0x10007f05
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 0x10019ba0
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x1580]
push eax
call fcn.100095d0
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 0x10007e3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10012f04
mov esp, ebp
pop ebp
ret
Function at 0x100093a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013e78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10009532
cmp byte [ebx + 0x49], 0
je 0x10009532
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10009526
lea esi, [ebp - 0x2c]
call fcn.10009b30
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10009413
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 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 0x1000944b
dec eax
je 0x1000944f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1000952d
call fcn.10009940
xor al, al
jmp 0x10009534
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000945f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000948d
cmp edi, 0x10
jae 0x1000946e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000951e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x1000952a
test esi, esi
jne 0x10009407
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000954f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000954f
cmp edi, esi
jae 0x10009507
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.100099c0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10009407
mov ecx, eax
cmp edi, 0x10
jae 0x100094e3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100094fe
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10009401
test esi, esi
jne 0x100094d9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10009516
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10009401
lea esi, [ebp - 0x2c]
call fcn.10009940
xor al, al
jmp 0x10009534
lea esi, [ebp - 0x2c]
call fcn.10009940
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10009e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x20], 0x424d5023
mov dword [ebp - 0x1c], 0x2364254c
mov byte [ebp - 0x18], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, 0x10019d08
sub ecx, 0x35b5523b
lea eax, [ebp - 0x34]
call fcn.1000b1b0
push eax
mov ecx, 0x10019a38
sub ecx, 0x477f543b
lea eax, [ebp - 0x24]
call fcn.100068b0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x10d7b518], eax
mov ecx, 0xc6
xor eax, eax
nop
mov dl, byte [eax + 0x10019d14]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x34], dl
inc eax
and ecx, 0xff
cmp eax, 0xc
jb 0x10009ed0
mov byte [ebp - 0x28], bl
mov ecx, 0xf3
xor eax, eax
mov dl, byte [eax + 0x10019a18]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x24], dl
inc eax
and ecx, 0xff
cmp eax, 0xc
jb 0x10009ef3
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 0x18], bl
call esi
push eax
call edi
mov dword [0x10d7b51c], eax
mov ecx, 0x81
xor eax, eax
jmp 0x10009f30
mov dl, byte [eax + 0x10019d24]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x34], dl
inc eax
and ecx, 0xff
cmp eax, 0xc
jb 0x10009f30
mov byte [ebp - 0x28], bl
mov ecx, 0xf3
xor eax, eax
mov dl, byte [eax + 0x10019a18]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x24], dl
inc eax
and ecx, 0xff
cmp eax, 0xc
jb 0x10009f53
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 0x18], bl
call esi
push eax
call edi
mov edx, dword [0x10d7b518]
mov dword [0x10d7b520], eax
mov dword [0x10d7b524], edx
call fcn.10012010
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.100124f0
push 0x1000a590
push 0x10d7b524
call fcn.10011ac0
call fcn.10012080
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10012f04
mov esp, ebp
pop ebp
ret
Function at 0x10009fd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10013900
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea ecx, [ebp - 0x1008]
xor ebx, ebx
push ecx
mov dword [ebp - 0x100c], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1000a022
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x100c]
shr eax, 2
mov dword [ebp - 0x1010], eax
cmp eax, ebx
jle 0x1000a093
mov esi, dword [ebp + ebx*4 - 0x1008]
test esi, esi
je 0x1000a08e
lea edi, [ebp - 0x1018]
call fcn.1000a460
test al, al
jne 0x1000a088
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
mov dword [ebp - 0x1014], eax
call fcn.1000a4e0
mov esi, dword [ebp + ebx*4 - 0x1008]
call fcn.1000a0b0
test al, al
je 0x1000a00f
mov edi, dword [ebp + ebx*4 - 0x1008]
call fcn.10007760
test al, al
je 0x1000a00f
mov eax, dword [ebp - 0x1010]
inc ebx
cmp ebx, eax
jl 0x1000a035
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10012f04
mov esp, ebp
pop ebp
ret

Function at 0x1000a180
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.10013900
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1000a1d1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x1000a236
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x1000a231
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000a228
test dl, dl
je 0x1000a224
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000a228
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000a208
xor eax, eax
jmp 0x1000a22d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000a24a
inc esi
cmp esi, edi
jl 0x1000a1e0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012f04
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10012f04
mov esp, ebp
pop ebp
ret 4