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

Disassembly:
push ecx
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x100031e0
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x100031e0
movzx edx, byte [esi + 4]
push edx
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10003220
jmp dword [eax*4 + 0x100032e4]
push 0x1388
mov ecx, 0xe
call fcn.10005c90
push eax
push 2
mov eax, 0x1011e4e0
call fcn.1000c3b0
add esp, 0xc
call fcn.1000bfd0
push 0x1388
mov ecx, 0xf
jmp 0x10003231
push 0x1388
mov ecx, 0x10
jmp 0x10003231
push 0x1388
mov ecx, 0x11
jmp 0x10003231
push 0x1388
mov ecx, 0x12
jmp 0x10003231
push 0x1388
mov ecx, 0x13
jmp 0x10003231
push 0x1388
mov ecx, 0x14
jmp 0x10003231
push 0x1388
mov ecx, 0x16
call fcn.10005c90
push eax
push 2
mov eax, 0x1011e4e0
call fcn.1000c3b0
add esp, 0xc
pop ecx
ret
push 0x1388
mov ecx, 0x18
jmp 0x10003231
push 0x1388
mov ecx, 0x19
jmp 0x10003231
push 0x1388
mov ecx, 0x15
jmp 0x10003231

Function at 0x10003310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x1011f208], 1
push edi
je 0x100033b8
mov ecx, dword [0x101191b4]
mov dword [0x1011f1cc], ebx
mov dword [0x1011f1d0], ebx
mov dword [0x1011f1d4], ebx
mov dword [0x1011f1d8], ebx
mov dword [0x1011f1dc], ebx
mov dword [0x1011f1e0], ebx
mov dword [0x1011f1e4], ebx
mov dword [0x1011f1e8], ebx
mov dword [0x1011f1ec], ebx
cmp ecx, dword [0x101191b8]
je 0x1000337c
mov dword [0x101191b8], ecx
mov ecx, dword [0x101191c4]
cmp ecx, dword [0x101191c8]
je 0x10003390
mov dword [0x101191c8], ecx
mov ecx, dword [0x101191d4]
cmp ecx, dword [0x101191d8]
je 0x100033a4
mov dword [0x101191d8], ecx
mov ecx, dword [0x101191e4]
cmp ecx, dword [0x101191e8]
je 0x100033b8
mov dword [0x101191e8], ecx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x100033d2
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1011e26c]
mov edx, dword [0x100157e0]
mov byte [ebp - 0x3a], al
mov eax, dword [0x1011f208]
mov dword [ebp - 0x38], eax
mov eax, dword [0x100157e4]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000c550
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x10124638
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10014480]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x10003420
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 0x10124638
push ebx
mov ecx, 0x10119200
call fcn.10005510
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.100018f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10003710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100037bf
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003790
test dl, dl
je 0x1000378c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003790
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003770
xor eax, eax
jmp 0x10003795
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100037ad
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 0x1f0fff
call edi
push 0
push eax
call ebx
lea edx, [ebp - 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10003760
cmp esi, 0xffffffff
je 0x100037cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret

Function at 0x10004030
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x1011f13c]
test eax, eax
je 0x100040a3
mov ecx, dword [eax]
cmp ecx, dword [0x1011f150]
jne 0x1000404f
mov dl, byte [0x1011f154]
cmp dl, byte [eax + 4]
je 0x100040a3
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10004070
mov cl, byte [eax + 0x10013480]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x10004070
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov eax, dword [0x1011f138]
test eax, eax
je 0x10004113
mov edx, dword [eax]
cmp edx, dword [0x1011f148]
jne 0x100040c1
mov cl, byte [0x1011f14c]
cmp cl, byte [eax + 4]
je 0x10004113
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x100040e0
mov dl, byte [eax + 0x10013580]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10124638], dl
inc eax
cmp eax, 0x100
jb 0x100040e0
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov eax, dword [0x1011f134]
test eax, eax
je 0x10004150
mov ecx, dword [eax]
cmp ecx, dword [0x1011f140]
jne 0x10004131
mov dl, byte [0x1011f144]
cmp dl, byte [eax + 4]
je 0x10004150
mov eax, 0x11
call fcn.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
pop ecx
ret
Function at 0x10004ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x101191b4]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x101191b8]
je 0x1000510e
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x100050df
test al, al
jne 0x10005065
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10005170
test al, al
je 0x1000510e
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x100050dc
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100050dc
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100050dc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10005123
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x100050dc
sub ecx, 4
add eax, 4
jmp 0x100050c8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x101191b8]
jne 0x10005033
test al, al
je 0x1000510e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
Function at 0x10005170
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10019018]
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 0x100051c3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100051d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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 0x1000520d
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.1000f292
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 0x1000524b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005244
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005244
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x1000526b
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.1000f292
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.1000f292
mov esp, ebp
pop ebp
ret 8
Function at 0x10005400
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10119418]
push esi
push edi
test eax, eax
js 0x100054f8
cmp eax, 1
jge 0x100054f8
mov esi, eax
imul esi, esi, 0x214
add esi, 0x10119204
push 0x100157b0
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x10119418], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x100054f8
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 ecx, word [ebp - 0xe]
movzx edx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push 0
push 0x80
push 4
push 0
push 1
mov dword [esi + 0x104], ecx
push 0x40000000
lea ecx, [esi + 0x110]
push ecx
mov dword [esi + 0x108], edx
mov dword [esi + 0x10c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x100054d3
mov dword [esi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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 0x100054f8
mov edx, dword [esi + 0x210]
push edx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10005510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x1000572d
cmp eax, dword [ecx + 0x218]
jge 0x1000572d
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x1000572d
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
cmp ecx, dword [esi + 0x104]
jne 0x1000558f
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x1000558f
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10005636
mov ecx, dword [esi + 0x210]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
movzx edx, word [ebp - 0x812]
movzx eax, word [ebp - 0x816]
movzx ecx, word [ebp - 0x818]
push 0
push 0x80
push 4
push 0
push 1
mov dword [esi + 0x104], edx
push 0x40000000
lea edx, [esi + 0x110]
push edx
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10005605
mov dword [esi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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 0x10005636
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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 dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x408]
add esp, 0x40
xor ecx, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100056c3
sub eax, edi
test eax, eax
jle 0x100056fd
mov dl, byte [ebp + ecx - 0x408]
xor dl, 0xe1
add dl, 0x12
lea eax, [ebp - 0x408]
mov byte [ebp + ecx - 0x408], dl
inc ecx
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100056f0
sub eax, edi
cmp ecx, eax
jl 0x100056d0
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005706
push 0
sub eax, edx
lea ecx, [ebp - 0x81c]
push ecx
push eax
mov eax, dword [esi + 0x210]
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10005770
Capabilities:
Create thread

Disassembly:
cmp dword [0x1011f1f8], 0
je 0x100057b6
mov eax, dword [0x1011f178]
push 0x101242fc
mov dword [0x10119420], eax
xor eax, eax
push eax
push 0x1011941c
push 0x100058a0
push eax
push eax
mov dword [0x10119428], eax
mov dword [0x1011942c], eax
mov dword [0x10119430], eax
mov dword [0x10119434], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10119424], eax
ret

Function at 0x100057c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x1011f21c], 0
je 0x100057dd
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x1011f21c]
cmp eax, dword [ecx]
jne case.0x10005813.0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi*4 + 0x10119428]
cmp eax, 0x1388
jb 0x10005808
call edi
mov dword [esi*4 + 0x10119428], eax
mov dword [esi*4 + 0x10119430], 0
mov eax, dword [0x1011f1fc]
pop edi
cmp eax, 5
ja case.default.0x10005813
jmp dword [eax*4 + 0x10005880]
inc dword [esi*4 + 0x10119430]
cmp dword [esi*4 + 0x10119430], 0x19
jmp 0x1000586d
inc dword [esi*4 + 0x10119430]
cmp dword [esi*4 + 0x10119430], 0x14
jmp 0x1000586d
inc dword [esi*4 + 0x10119430]
cmp dword [esi*4 + 0x10119430], 0xf
jmp 0x1000586d
inc dword [esi*4 + 0x10119430]
cmp dword [esi*4 + 0x10119430], 0xa
jmp 0x1000586d
inc dword [esi*4 + 0x10119430]
cmp dword [esi*4 + 0x10119430], 5
jbe case.0x10005813.0
push 0
push 0
push 9
call fcn.10003480
add esp, 0xc
ret

Function at 0x10005a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005ac3
lea ecx, [ebp - 8]
push ecx
push 0x1011f36c
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.LangSelection
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10005ab9
push 0x10015938
push 0x10
push 0x1011f36c
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10005de0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10019018]
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 0x10005f04
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10005efd
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x418]
call fcn.1000c070
add esp, 4
test al, al
je 0x10005efd
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x458]
call fcn.10004ff0
test al, al
jne 0x10005e84
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x458]
push eax
push 1
call fcn.10003480
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x458]
call fcn.100052c0
test al, al
jne 0x10005ec4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x458]
push edx
push 2
call fcn.10003480
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
call fcn.10003e80
test al, al
jne 0x10005efd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x458]
push eax
push 5
call fcn.10003480
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10006cd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000fc40
mov eax, dword [0x10019018]
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 0x10006d22
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x100c]
shr eax, 2
mov dword [ebp - 0x1010], eax
cmp eax, ebx
jle 0x10006d93
mov esi, dword [ebp + ebx*4 - 0x1008]
test esi, esi
je 0x10006d8e
lea edi, [ebp - 0x1018]
call fcn.100070a0
test al, al
jne 0x10006d88
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
mov dword [ebp - 0x1014], eax
call fcn.10007120
mov ecx, dword [ebp + ebx*4 - 0x1008]
call fcn.10006db0
test al, al
je 0x10006d0f
mov edi, dword [ebp + ebx*4 - 0x1008]
call fcn.10005de0
test al, al
je 0x10006d0f
mov eax, dword [ebp - 0x1010]
inc ebx
cmp ebx, eax
jl 0x10006d35
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret

Function at 0x10006e80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.1000fc40
mov eax, dword [0x10019018]
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 0x10006ed1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x10006f36
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 0x10006f31
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006f28
test dl, dl
je 0x10006f24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006f28
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006f08
xor eax, eax
jmp 0x10006f2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006f4a
inc esi
cmp esi, edi
jl 0x10006ee0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
Function at 0x10006f60
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
push 0x1000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10006f9c
mov eax, dword [ebp + 8]
push 0
push ebx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10006fa3
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop esi
pop ebp
ret 4
push 0x10015a68
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006f8e
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10006f8e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10006f96
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x10008670
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
lea eax, [ebp - 0x408]
push eax
lea esi, [ebx + 0x4e2c]
mov eax, str.g_s.doc
call fcn.10001140
test al, al
je 0x100086e3
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push str.g_s.doc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100086e3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4e28
je 0x100086f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x4e28
lea esi, [ebx + 4]
push esi
push edi
mov dword [ebp - 0x40c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100086dc
mov eax, esi
mov ecx, 0x4e28
mov dl, byte [eax]
add dl, 0x78
xor dl, 0xb3
mov byte [eax], dl
inc eax
dec ecx
jne 0x10008723
call fcn.10005a50
lea eax, [ebx + 0xd4]
call fcn.10005ad0
lea eax, [ebx + 0x1a9c]
call fcn.10005b30
lea eax, [ebx + 0x3464]
call fcn.10005b90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret