joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4421cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4421f3
cmp dword [edi + 0x54], 0
jne 0x4421f3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004416c5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00442190
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4472d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1d50]
jne 0x4472df
repz ret
jmp fcn.0044ed6f

Function at 0x457298
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044e6d3
and dword [ebp - 4], 0
cmp dword [0x4a6328], 0
mov ebx, eax
jne 0x457349
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4573fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4573fa
push eax
call fcn.0044e661
mov dword [esp], 0x469bb0
push edi
mov dword [0x4a6328], eax
call esi
push eax
call fcn.0044e661
mov dword [esp], 0x469b9c
push edi
mov dword [0x4a632c], eax
call esi
push eax
call fcn.0044e661
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a6330], eax
call esi
push eax
call fcn.0044e661
pop ecx
mov dword [0x4a6338], eax
test eax, eax
je 0x457349
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044e661
pop ecx
mov dword [0x4a6334], eax
mov eax, dword [0x4a6334]
cmp eax, ebx
je 0x4573a1
cmp dword [0x4a6338], ebx
je 0x4573a1
push eax
call fcn.0044e6dc
push dword [0x4a6338]
mov esi, eax
call fcn.0044e6dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4573a1
test edi, edi
je 0x4573a1
call esi
test eax, eax
je 0x457398
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x457398
test byte [ebp - 0xc], 1
jne 0x4573a1
or dword [ebp + 0x10], 0x200000
jmp 0x4573da
mov eax, dword [0x4a632c]
cmp eax, ebx
je 0x4573da
push eax
call fcn.0044e6dc
pop ecx
test eax, eax
je 0x4573da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4573da
mov eax, dword [0x4a6330]
cmp eax, ebx
je 0x4573da
push eax
call fcn.0044e6dc
pop ecx
test eax, eax
je 0x4573da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a6328]
call fcn.0044e6dc
pop ecx
test eax, eax
je 0x4573fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4573fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push esi
push eax
call fcn.00409490
add esp, 4
test eax, eax
jne 0x40101c
pop esi
add esp, 8
ret 0x10
push 0x40f364
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40104d
push 0x10
push 0x40f364
push str.Unable_to_create_mutex_object.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 8
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4010a5
push 0x40f320
push 0x8002
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
jne 0x40108c
push 0x10
push 0x40f364
push str.Another_copy_of_MDMA_is_already_running.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 8
ret 0x10
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
add esp, 8
ret 0x10
lea ecx, [esp + 4]
mov dword [esp + 4], 8
push ecx
mov dword [esp + 0xc], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x67
mov eax, dword [esp + 0x14]
push eax
mov dword [0x4152a0], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [0x4152a0]
push 0
push 0x401110
push 0
push 0x69
push edx
mov dword [0x4153d8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop esi
add esp, 8
ret 0x10
Function at 0x402800
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [str.._]
mov cl, byte [0x40f85c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4150cc], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
push 0x40000000
mov ecx, edx
push 3
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x34]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4150e0], eax
je 0x40297c
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x40296f
mov edx, dword [esp + 0x3c]
mov ecx, dword [0x4150e0]
and edx, 0xffffdfdf
lea eax, [esp + 0x34]
or edx, 0x1010
push eax
push ecx
mov dword [esp + 0x40], 0x1c200
mov byte [esp + 0x4e], 8
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x40296f
mov eax, dword [0x4150e0]
lea edx, [esp + 0xc]
mov edi, 1
push edx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x3e8
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x40296f
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.rx_thread_end_event
push ebx
push edi
push ebx
call esi
push str.rx_response_event
push ebx
push edi
push ebx
mov dword [0x414fa8], eax
call esi
push str.rx_thread_ready_event
push ebx
push edi
push ebx
mov dword [0x41559c], eax
call esi
mov ecx, dword [esp + 0x54]
push ebx
push ebx
push ecx
push 0x404e90
push ebx
push ebx
mov dword [0x4150d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x4150d8]
push 0xffffffffffffffff
push edx
mov dword [0x4153ac], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4150d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov ecx, dword [0x4150e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0x4150e0], 0xffffffff
mov dword [0x4153ac], 0xffffffff
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x404750
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 3
push 0x40000000
push 0x415400
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4047a2
lea eax, [esp + 8]
push edi
push eax
push 0x78
push 0x415520
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404797
cmp dword [esp + 8], 0x78
jne 0x404797
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4047b9
mov ecx, dword [esp + 0x10]
push 0x30
push 0x40f364
push str.An_error_occured_while_saving_the_data_counters.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x405510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
push str.tx_at_command
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x14], eax
mov eax, dword [0x41559c]
push eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x4150b0], 3
jne 0x405568
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4150e0]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call fcn.004097e0
add esp, 0xc
jmp 0x40558f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push edi
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [0x4150e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push eax
call esi
cmp eax, 0x102
jne 0x4055ba
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41559c]
push 0x7d0
push eax
call esi
xor ecx, ecx
cmp eax, 0x102
setne cl
mov eax, ecx
pop esi
add esp, 0x14
ret

Function at 0x4055f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
push str.tx_data
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x4150e0]
push esi
push ecx
push edx
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
pop esi
jne 0x40565e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x14
ret
Function at 0x405680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
push str.tx_data_and_get_response
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x14], eax
mov eax, dword [0x41559c]
push eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [0x4150e0]
push esi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push edx
call esi
cmp eax, 0x102
jne 0x4056fd
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x41559c]
push 0x7d0
push edx
call esi
xor ecx, ecx
cmp eax, 0x102
setne cl
mov eax, ecx
pop esi
add esp, 0x14
ret

Function at 0x408870
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x4155a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4088a5
xor eax, eax
pop esi
add esp, 0x414
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x4156b0]
mov edx, dword [0x4153d4]
mov ecx, eax
and ecx, 0xffff
push ecx
mov ecx, dword [0x415090]
push eax
mov eax, dword [0x4153a8]
push edx
mov edx, dword [esp + 0x430]
push eax
mov eax, dword [esp + 0x430]
push 0x415100
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x2a]
push eax
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2e]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x2e]
push eax
mov eax, dword [esp + 0x30]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x50]
push str.__d__02d__02d____02d:_02d:_02d___d___s___d___s___d__04X__08X__d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x40
lea edx, [esp + 0x14]
push 0
push edx
push eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x414
ret
Function at 0x4092e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.KeepRasConnections
push eax
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409381
push ebx
push esi
mov esi, 0x411160
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40935f
test cl, cl
je 0x40935b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40935f
add eax, 2
add esi, 2
test cl, cl
jne 0x409337
xor eax, eax
jmp 0x409364
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x409381
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x108
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x108
ret

Function at 0x4097a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov eax, 0xffff
test esi, esi
jbe 0x4097db
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x40f030]
xor ax, bx
inc ecx
cmp ecx, esi
jb 0x4097b6
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x4097e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28c
push ebx
push ebp
push esi
push edi
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0x10]
mov edx, dword [esp + 0x2a4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0x3fa4b
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x288
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0x298], cx
lea ecx, [esp + 0x14]
push ecx
call fcn.004097a0
mov esi, dword [esp + 0x2b0]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
mov word [esp + 0x298], ax
mov eax, dword [esp + 0x2a0]
lea edx, [esp + 0x10]
push esi
push 0
push 0x28b
push edx
push eax
mov byte [esp + 0x2ae], 0x7e
call edi
mov ecx, dword [0x41559c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push ecx
call ebx
cmp eax, 0x102
je 0x40992e
mov al, byte [0x414e80]
test al, al
jne 0x4098be
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28c
ret
lea edx, [esp + 0x10]
push 0x288
push edx
mov dword [esp + 0x18], 0x4fa4b
call fcn.004097a0
mov word [esp + 0x2a0], ax
mov al, byte [0x414e80]
add esp, 8
cmp al, 0x63
jne 0x40992e
mov ebp, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x41559c]
push eax
call ebp
mov edx, dword [0x4150e0]
push esi
push 0
lea ecx, [esp + 0x18]
push 0x28b
push ecx
push edx
call edi
mov eax, dword [0x41559c]
push 0x7d0
push eax
call ebx
cmp eax, 0x102
je 0x40992e
mov al, byte [0x414e80]
test al, al
je 0x4098ae
cmp al, 0x63
je 0x4098ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28c
ret
Function at 0x409c10
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409c60
mov ax, word [0x411704]
mov ecx, dword [str.usage.bin]
mov edx, dword [0x411700]
mov word [0x415408], ax
mov dword [0x415400], ecx
mov dword [0x415404], edx
xor eax, eax
add esp, 0x110
ret
mov eax, dword [esp]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.Common_AppData
push eax
mov dword [esp + 0x1c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409cc2
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411700]
mov edx, dword [str.usage.bin]
mov cx, word [0x411704]
mov dword [0x415404], eax
mov dword [0x415400], edx
mov word [0x415408], cx
xor eax, eax
add esp, 0x110
ret
mov edx, dword [esp]
push ebx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4116e4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or ecx, 0xffffffff
lea edi, [esp + 0x14]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x415400
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4116d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x415400
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]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x414ea0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._sessionlog.csv
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x414ea0
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
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x3d
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4762b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x4ee00
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x475e00
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x475e00
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41541c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4154b9
push ebx
push esi
call fcn.004153e5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00414067
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415466
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4154b8
push edi
push eax
call fcn.0040fb5f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415486
call fcn.0040eb82
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4154b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414067
add esp, 0x20
test eax, eax
jne 0x4154a5
push edi
call fcn.0040eb82
jmp 0x4154ad
push ebx
call fcn.0040eb82
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx