joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x19], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], cl
mov cl, 0x74
mov byte [esp + 0x15], al
mov byte [esp + 0x18], al
mov byte [esp + 6], al
mov byte [esp + 9], al
mov byte [esp + 0xc], al
mov byte [esp + 8], cl
mov byte [esp + 0xe], cl
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x18]
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x10016234
mov byte [esp + 0x20], 0x6b
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], dl
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2c], 0
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x16], 0x45
mov byte [esp + 0x17], 0x76
mov byte [esp + 0x19], dl
mov byte [esp + 0x1b], 0x41
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x2c]
push esi
mov edi, eax
mov dword [esi + 4], ecx
call fcn.10002a80
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x10008160
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10014e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x14], ebx
call fcn.10007fa0
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
mov ecx, 0x41
xor eax, eax
mov edi, 0x1001bce0
mov dword [ebx], 0x1001623c
push 0x30
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0
call ebp
add esp, 4
push 0
push 5
push 0x1001bce0
push 0
call dword [0x1001b4e0]
mov edi, str.Plugin
or ecx, 0xffffffff
xor eax, eax
push 0x30
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x1001bce0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 4
push 0
push 0x1001bce0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x1001bce0
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
lea eax, [esp + 0x24]
mov ecx, ebx
mov byte [esp + 0x24], 0x81
push 1
push eax
call fcn.100080c0
mov ecx, ebx
call fcn.10008130
push 0x30
call ebp
push 0
push 0
push 0
push ebx
push 0x10008850
push 0
push 0
call fcn.1000b3a0
mov ecx, dword [esp + 0x34]
add esp, 0x20
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x10008290
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x2c]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x34], 0x6b
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6e
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0x6c
mov byte [esp + 0x3a], 0x33
mov byte [esp + 0x3b], 0x32
mov byte [esp + 0x3c], 0x2e
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x6c
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], 0
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x6c
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x44], 0x6b
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x72
mov byte [esp + 0x47], 0x6e
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 0x6c
mov byte [esp + 0x4a], 0x33
mov byte [esp + 0x4b], 0x32
mov byte [esp + 0x4c], 0x2e
mov byte [esp + 0x4d], 0x64
mov byte [esp + 0x4e], 0x6c
mov byte [esp + 0x4f], 0x6c
mov byte [esp + 0x50], 0
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x74
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x46
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x30], 0x6c
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x41
mov byte [esp + 0x33], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x58]
xor esi, esi
push esi
push 0x80
push 4
push esi
push 3
push 0x40000000
push ecx
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x100083d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x10]
mov eax, ebx
push 0
push edx
sub eax, esi
lea edx, [esi + ecx]
push eax
push edx
push edi
call ebp
add esi, dword [esp + 0x10]
cmp esi, ebx
jb 0x100083e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x1000ae40
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
test ebx, ebx
mov dword [esp + 0xc], edi
jbe 0x1000ae88
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x1000ae59
mov edi, dword [esp + 0x10]
pop ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.1000ade0
mov ecx, edi
call fcn.1000ae10
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x1000b3a0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x30
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x15], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], cl
mov cl, 0x74
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 2], al
mov byte [esp + 5], al
mov byte [esp + 8], al
mov byte [esp + 4], cl
mov byte [esp + 0xa], cl
lea eax, [esp]
push esi
lea ecx, [esp + 0x14]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1c], 0x6b
mov byte [esp + 0x1e], 0x72
mov byte [esp + 0x1f], dl
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x28], 0
mov byte [esp + 0xc], 0x43
mov byte [esp + 0xd], 0x72
mov byte [esp + 0xf], 0x61
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x76
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], 0x41
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
mov dword [esp + 0x28], edx
mov dl, byte [esp + 0x54]
push 0
push 0
push 0
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], dl
call eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push 0x1000b320
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x48]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x30
ret
Function at 0x1000b990
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x20]
mov bl, 0x72
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x10016264
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], 0
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], bl
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.user32.dll
mov ebx, eax
call edi
push 0
push 0
push 0
push 0
mov dword [0x1001be08], eax
call ebx
xor ebx, ebx
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.1000bbf0
test al, al
je 0x1000bae8
mov al, byte [0x1001be04]
test al, al
jne 0x1000bae8
mov edx, dword [0x1001be08]
push str.CreateWindowExA
push edx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x80000000
push 0x1001b5f0
push str.32770
push ebx
call eax
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov dword [esi + 0x10], eax
call ebx
add esp, 4
push str.AVICAP32.dll
call edi
mov edi, eax
push str.capCreateCaptureWindowA
push edi
call ebp
mov ecx, dword [esi + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x50000000
push str.CVideoCap
call eax
push 0x30
mov dword [esi + 0x14], eax
call ebx
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1000c790
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x2b4
push ebx
push esi
lea eax, [esp + 0x74]
push edi
xor ebx, ebx
push eax
mov byte [esp + 0x78], 0x66
mov byte [esp + 0x15a], bl
mov dword [esp + 0x7c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c0], bl
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], 0x100
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x1c1]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov esi, 1
push ecx
push edx
push ebx
push esi
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push str.NetSubKey
push 0x80000001
mov dword [esp + 0x3c], esi
stosb byte es:[edi], al
call dword [0x1001b4bc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push 0x1001b5f0
push eax
mov dword [esp + 0x34], esi
call dword [0x1001b4d0]
test eax, eax
jne 0x1000c867
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x1001b454]
jmp 0x1000c87a
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebx, dword [esp + 0x2c8]
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0xa8]
push eax
push ecx
mov dword [esp + 0x20], 0x10
call dword [0x1001b5e0]
mov edx, dword [esp + 0x24]
mov ecx, 0xc
lea esi, [esp + 0x1c0]
lea edi, [esp + 0x124]
mov dword [esp + 0x120], edx
lea eax, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov cx, word [esp + 0x64]
mov word [esp + 0x114], cx
call fcn.1000c6d0
lea edx, [esp + 0x30]
mov dword [esp + 0x118], eax
push edx
mov dword [esp + 0x34], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x38]
shr eax, 0x14
inc eax
mov dword [esp + 0x11c], eax
call fcn.1000c730
mov ecx, dword [esp + 0x2cc]
lea edx, [esp + 0x74]
mov dword [esp + 0x158], ecx
push 0x14c
push edx
mov ecx, ebx
mov byte [esp + 0x15e], al
call fcn.10002770
pop edi
pop esi
pop ebx
add esp, 0x2b4
ret
Function at 0x1000ce10
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
call esi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 8]
push 0x7f04
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x1001bcd4]
mov dword [esp + 0xc], 2
push eax
mov dword [esp + 0x14], 0x1000ce00
mov dword [esp + 0x20], eax
call dword [0x1001b504]
mov dword [esp + 0x1c], eax
mov eax, dword [0x1001bcd4]
push 0x7f8b
push eax
call dword [0x1001b57c]
push 2
mov dword [esp + 0x24], eax
call dword [0x1001b4d8]
lea ecx, [esp + 8]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], str.TOXHJ_MYLOVE
call dword [0x1001b500]
mov eax, dword [0x1001bcd4]
push 0
push eax
push 0x66
push eax
call dword [0x1001b4fc]
push eax
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.TOXHJ_MYLOVE
push str.TOXHJ_MYLOVE
push 0
call dword [0x1001b598]
mov edi, dword [esp + 0x38]
push 0x104
mov edx, dword [edi]
push edx
push 0x1001bf64
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [edi]
push 0x104
push eax
push 0x1001bf64
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000cdb0
push 0x1001bf64
call dword [0x1001b484]
push 0
mov dword [0x1001be20], eax
call esi
push 1
push 0
push 2
call fcn.1000cd50
push 0
push 0
push 4
call fcn.1000cd50
add esp, 0x18
push 0
push 0
push 0
push 0x1000e440
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x1000dd00
push 0
push 0
call edi
mov dword [0x10019ac0], eax
push 0
push 0
call fcn.1000cae0
add esp, 8
push 0x3e8
call esi
jmp 0x1000cf6b

Function at 0x1000cf80
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov ebx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000cfff
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
cmp byte [esi + ebx], 0x5c
jne 0x1000cfed
push esi
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1000cfed
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x1000cfbc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x1000dad0
Capabilities:
Delete file

Disassembly:
call fcn.1000d810
test eax, eax
jne 0x1000dade
call fcn.1000d300
call fcn.1000d990
test eax, eax
jne 0x1000daec
jmp fcn.1000d530
ret
Function at 0x1000daf0
Capabilities:
Contain obfuscated stackstrings
Set file attributes

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0x6c
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3a], 0x6c
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x3c], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x69
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x40], 0x6b
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x6c
mov byte [esp + 0x46], 0x33
mov byte [esp + 0x47], 0x32
mov byte [esp + 0x48], 0x2e
mov byte [esp + 0x49], 0x64
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x46
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x6c
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x454]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x64], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000dcf2
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x4c], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebp, edx
test ebp, ebp
jle 0x1000dcc8
mov edx, edi
and edx, 0x800003ff
jns 0x1000dc8c
dec edx
or edx, 0xfffffc00
inc edx
jne 0x1000dcad
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x4f], dl
jl 0x1000dc90
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x58]
push 0x400
push eax
push ebx
call dword [esp + 0x5c]
inc edi
cmp edi, ebp
jl 0x1000dc7a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x10019e40]
mov edx, dword [esp + 0x454]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
Function at 0x404610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x436575
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
movzx esi, word [esp + 0xa4]
push edi
push 0xa
xor ebx, ebx
push esi
mov dword [esp + 0x1c], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebx
mov dword [esp + 0x1c], ecx
call ebp
cmp eax, ebx
jne 0x404655
xor edi, edi
jmp 0x40465f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push esi
push ebx
call ebp
cmp eax, ebx
jne 0x40466d
xor esi, esi
jmp 0x404677
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea ecx, [esp + 0x54]
call fcn.00402a80
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], 0x438e30
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x78]
mov dword [edx], esi
mov ecx, dword [esp + 0x88]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x64]
mov dword [edx], esi
mov ecx, dword [esp + 0x74]
mov dword [ecx], esi
mov edx, dword [esp + 0x84]
mov dword [edx], eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x18], 0x438e68
mov eax, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x438c3c
mov dword [esp + 0x1c], ebx
call fcn.004256ca
lea eax, [esp + 0x54]
push 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.00403590
mov byte [esp + 0x50], al
cmp dword [esp + 0x48], ebx
jne 0x40472c
mov eax, dword [esp + 0x28]
or eax, 4
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004255a9
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x70]
lea edi, [esi + 0x70]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0xa4], 2
call dword [edx + 0x40]
mov edx, dword [edi]
mov ebp, dword [esi + 0xac]
add esi, 0xac
push 0x20
mov ecx, edi
call dword [edx + 0xc]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
mov ecx, esi
call dword [ebp + 0x3c]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esi]
push 0x1e
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0042c61c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x18], 0x438c3c
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], bl
mov dword [esp + 0x20], 0x438c38
call fcn.004254bf
lea ecx, [esp + 0x54]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x54], 0x438e30
call fcn.00402b30
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 4
Function at 0x408380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4083f0
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4083f0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x408e30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x3c
mov eax, dword [0x447d10]
mov edx, dword [esp + 0x40]
push ebx
push ebp
push esi
mov dword [esp + 0x44], eax
push edi
xor ebx, ebx
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408e60
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00403ef0
push ebx
push 0x438e64
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403ef0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov ecx, 0x10
cmp eax, ecx
jae 0x408ea4
lea esi, [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
jae 0x408ebe
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
add eax, edx
cmp esi, eax
je 0x408f6e
mov al, byte [esi]
cmp al, 0x5c
je 0x408ed6
cmp al, 0x2f
jne 0x408f03
cmp dword [esp + 0x28], ecx
mov eax, dword [esp + 0x14]
jae 0x408ee4
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
jne 0x408f03
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x408efb
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
test eax, eax
je 0x408f1b
xor eax, eax
mov al, byte [esi]
lea ecx, [esp + 0x10]
push eax
push 1
call fcn.004087a0
inc esi
mov ecx, 0x10
jmp 0x408eb0
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp eax, esi
jb 0x408f35
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042cfc9
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x408f58
mov edx, dword [esp + 0x30]
push edx
call fcn.0042cfc9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x38]
call fcn.004164ae
add esp, 0x3c
ret
cmp dword [esp + 0x28], ecx
jb 0x408f86
mov eax, dword [esp + 0x14]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, 0x10
cmp dword [esp + 0x44], ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x408fa9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004164ae
add esp, 0x3c
ret