joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x474332
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x474392
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x474369
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x474440
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x4744dc
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x47446b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x48e4f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48e535
call fcn.00491841
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48e535
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48e52c
xor eax, eax
jmp 0x48e53d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048e543
pop edi
pop esi
pop ebx
ret 4
Function at 0x48f4d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x493180
call fcn.00481e54
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00491841
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x48f510
call fcn.00491841
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48f51e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48f52c
or eax, 0xffffffff
jmp 0x48f614
mov ecx, esi
call fcn.0048f447
mov dword [ebp - 0x14], eax
call fcn.0048cb3e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x48f563
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48f563
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0048caf2
push dword [ebp - 0x14]
call fcn.0048c624
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0048f1df
cmp eax, edi
je 0x48f5d6
test byte [esi + 0x24], 0x10
je 0x48f5a4
push 4
mov ecx, esi
pop ebx
call fcn.0048c024
test ah, 1
je 0x48f59c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0048e645
cmp dword [esi + 0x1c], edi
je 0x48f5d6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0048c058
jmp 0x48f5d6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x48f5ea
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x48f603
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x48f603
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0048f481
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4913b8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4913e6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491404
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049131e
jmp 0x491404
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491404
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049131e
test edi, edi
mov eax, edi
jne 0x4913ee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c2a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x182
jne 0x41c2cd
lea eax, [ebp - 0x820]
push eax
push str.wosevir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
xor esi, esi
test edi, edi
jle 0x41c314
cmp edi, 0x2d
jne 0x41c2e1
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041c1e0
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41c30f
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, edi
jl 0x41c2d4
pop esi
cmp edi, 0x2d
jne 0x41c32e
mov dword [0x1ef5170], 0xa62e7790
mov dword [0x1ef5174], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41c340
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c250
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c39d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c2a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000190e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x10001952
or eax, 0xffffffff
test esi, esi
je 0x1000194e
push edi
mov cl, byte [edx]
movzx ecx, cl
mov edi, ecx
xor edi, eax
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x1000b270]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x1000b270]
dec esi
inc edx
test esi, esi
jne 0x1000191d
pop edi
not eax
jmp 0x10001954
xor eax, eax
not eax
pop esi
ret

Function at 0x10001958
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10002dad
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov eax, 0x1000
xor edx, edx
shr ecx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
cmp ecx, eax
ja 0x10002dcc
mov dword [ebp - 0xc], ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edx
push 0x80
push 4
push edx
push 1
mov ebx, 0xc0000000
push ebx
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10002e4b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x10]
push edx
add eax, ecx
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
call esi
test eax, eax
je 0x10002e2e
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10002e37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x10002ea1
push eax
push 0x80
push 3
push eax
push 1
push ebx
push dword [ebp + 8]
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10002e98
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x10002e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x10002ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10003048
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
push 0x38
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp - 0x3c], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
push edi
xor esi, esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x750
call fcn.10003c1f
mov ebx, eax
cmp ebx, edi
je 0x10003134
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp dword [ebp + 0xc], edi
je 0x100030de
cmp eax, edi
je 0x100030a0
push 0x1000e4b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
push dword [ebp + 8]
mov esi, eax
add esi, esi
call edi
push dword [ebp + 0xc]
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
lea eax, [eax + eax + 0x56]
push eax
call fcn.10001000
mov esi, eax
test esi, esi
je 0x1000312e
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push 0x1000e668
jmp 0x10003124
cmp eax, edi
je 0x100030ee
push 0x1000e49c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call esi
mov ecx, dword [ebp + 0xc]
add ecx, eax
lea eax, [ecx*4 + 0x48]
push eax
call fcn.10001000
mov esi, eax
cmp esi, edi
je 0x1000312e
push dword [ebp + 8]
push ebx
push ebx
push dword [ebp + 8]
push 0x1000e6c0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
call fcn.10001015
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x1000e640
test esi, esi
je 0x1000314f
mov dword [ebp - 0x2c], 0x1000e64c
jmp 0x10003155
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10003158
test esi, esi
je 0x10003170
push esi
call fcn.10001015
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000386e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push 0x80000003
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x10003977
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.10001000
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1000396d
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x1000391f
cmp dword [ebp - 8], ebx
jbe 0x100038f7
inc dword [ebp - 4]
xor esi, esi
jmp 0x10003941
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x10003965
push dword [ebp - 0x14]
call fcn.10001015
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.10001000
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x100038f3
push 8
pop esi
jmp 0x10003965
cmp esi, edi
jne 0x1000395b
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1000317d
mov esi, eax
cmp esi, edi
jne 0x1000395b
push edi
push dword [0x1000d5e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100038c1
jmp 0x10003965
cmp esi, 0x103
jne 0x10003965
xor esi, esi
push dword [ebp - 0x18]
call fcn.10001015
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10003a19
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10003a98
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x10003a5a
mov esi, 0xe8
jmp 0x10003aa0
lea eax, [esi + 1]
push eax
call fcn.10001000
mov edi, eax
cmp edi, ebx
je 0x10003a98
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003a98
cmp esi, dword [ebp - 4]
je 0x10003a87
push 0x1e
pop esi
jmp 0x10003aa0
mov eax, dword [ebp + 0xc]
mov byte [esi + edi], bl
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
jmp 0x10003aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0xffffffff
je 0x10003aaf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x10003abd
cmp esi, ebx
je 0x10003abd
push edi
call fcn.10001015
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10003ac6
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10003b24
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003b15
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10003b1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x10003b2c
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push edi
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x10003b8e
lea eax, [edi + 0x1d]
push eax
call fcn.10001000
mov esi, eax
test esi, esi
je 0x10003b8e
push esi
push edi
call ebx
test eax, eax
je 0x10003b86
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [esp + 0x14]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10003b86
push 0x1000e21e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10003b8e
push esi
call fcn.10001015
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x10003b96
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
push dword [esp + 8]
call fcn.10003b2c
mov esi, eax
test esi, esi
je 0x10003c19
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x10003bcf
lea ecx, [esi + 4]
cmp eax, ecx
jbe 0x10003bcf
cmp dword [eax - 5], 0x776f4c5c
jne 0x10003bcf
push eax
add eax, 0xfffffffc
push eax
call ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push esi
call edi
push 0
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10003c0f
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, dword [esp + 0x14]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10003c0f
push 0x1000e21e
push esi
call edi
push eax
call ebx
jmp 0x10003c17
push esi
call fcn.10001015
xor esi, esi
pop edi
pop ebx
mov eax, esi
pop esi
ret 4

Function at 0x10003c71
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0x1000e0f4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x10003c91
xor eax, eax
ret 8
Function at 0x10004953
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1000d5e8]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.10002b6f
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100049c7
add eax, eax
push eax
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100049c7
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x100049b7
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
call fcn.1000190e
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10004a1e
add eax, eax
push eax
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10004a1e
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10004a10
mov eax, dword [ebp - 4]
add eax, eax
mov edx, edi
call fcn.1000190e
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret