joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
test ebp, ebp
push edi
mov esi, ecx
jl 0x44926b
cmp ebp, 0x20
jge 0x44926b
mov eax, dword [esi + ebp*4 + 0x488]
test eax, eax
je 0x44926b
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x44926b
lea eax, [esi + 4]
push 0x47009c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x449264
mov ebx, dword [esp + 0x424]
test ebx, ebx
je 0x4491cd
xor eax, eax
jmp 0x4491d3
mov eax, dword [esi + 0x508]
mov ecx, dword [esi + 0x508]
mov edx, dword [esi + ebp*4 + 0x488]
add ecx, 0x400
dec edx
imul ecx, edx
push 0
lea eax, [ecx + eax + 0x100]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x449205
push edi
jmp 0x44925b
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
test ebx, ebx
je 0x449227
mov ecx, dword [esi + 0x508]
push edi
push 1
push ecx
push ebx
call ebp
add esp, 0x10
cmp eax, 1
je 0x449227
push edi
jmp 0x44925b
mov al, byte [esp + 0x420]
test al, al
je 0x44923f
mov ebx, dword [esp + 0x41c]
lea eax, [esp + 0x10]
jmp 0x449248
mov ebx, dword [esp + 0x41c]
mov eax, ebx
push edi
push 1
push 0x400
push eax
call ebp
add esp, 0x10
test eax, eax
push edi
jne 0x44927a
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
call fcn.00448bc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret 0x10
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x424]
add esp, 4
test al, al
je 0x4492d8
lea edx, [esp + 0x10]
mov byte [esp + 0x410], 0
push edx
push ebx
call fcn.0044b3e0
add esp, 8
test al, al
jne 0x4492df
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 0x10
mov byte [ebx + 0x400], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret 0x10
Function at 0x4492f0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov edi, ecx
test esi, esi
je 0x449402
mov eax, dword [esp + 0x420]
test eax, eax
je 0x449402
mov al, byte [esi]
xor ebp, ebp
test al, al
je 0x449342
mov ebx, dword [sym.imp.MSVCRT.dll_tolower]
movsx eax, al
push eax
call ebx
mov ecx, ebp
add esp, 4
shl ecx, 4
add eax, ecx
xor ebp, eax
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x449328
lea edx, [edi + 0x408]
xor ebx, ebx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
cmp ebp, dword [eax]
jne 0x4493cd
lea ecx, [edi + 4]
push 0x47009c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4493fb
mov eax, dword [edi + 0x508]
push 0
lea edx, [eax + 0x400]
imul edx, ebx
lea eax, [edx + eax + 0x100]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
push esi
jne 0x4493f2
push 1
lea ecx, [esp + 0x1c]
push 0x400
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x4493f1
mov eax, dword [esp + 0x41c]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x449411
mov ecx, dword [esp + 0x10]
inc ebx
add ecx, 4
cmp ebx, 0x20
mov dword [esp + 0x10], ecx
jl 0x44934e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret 8
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, edi
call fcn.00448bc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret 8
cmp ebx, 0x20
jge 0x449402
lea ecx, [edi + 4]
push 0x47009c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4493fb
mov edx, dword [edi + 0x508]
push 0
add edx, 0x400
imul edx, ebx
add edx, 0x100
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
push esi
jne 0x4493f2
mov eax, dword [edi + 0x508]
mov ebx, dword [esp + 0x424]
push 1
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push esi
jne 0x4493f2
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8

Function at 0x44aa30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 0xabadbabe
mov al, byte [edx]
test al, al
je 0x44aa4f
movsx eax, al
shl ecx, 4
xor ecx, eax
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x44aa3f
mov eax, ecx
sar eax, 0x10
xor eax, ecx
ret
Function at 0x44d230
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [0x483e5c]
sub esp, 0xc04
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x44d354
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
test esi, esi
jle 0x44d2b5
cmp esi, 0x400
jge 0x44d2b5
lea ecx, [esp + 0x10]
lea edx, [esp + 0x410]
push ecx
push str._scimcotst._42
push edx
call edi
lea eax, [esp + 0x41c]
push 0x4704b0
push eax
call ebp
add esp, 0x14
test eax, eax
je 0x44d2c5
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x44d2c5
cmp esi, 0x400
jl 0x44d36d
mov esi, 0x43
push esi
lea edx, [esp + 0x14]
push str._c:cimcotst._42
push edx
call edi
lea eax, [esp + 0x1c]
push 0x4704b0
push eax
call ebp
add esp, 0x14
test eax, eax
jne 0x44d2f2
inc esi
cmp esi, 0x5a
jle 0x44d2ca
jmp 0x44d308
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 0x5a
jle 0x44d347
mov edx, dword [esp + 0xc18]
mov byte [edx], 0
mov dword [0x483e5c], 0
mov eax, dword [0x483a50]
push 0x2010
mov ecx, dword [eax + 0x4e0]
push ecx
push str.No_TMP_dir_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc04
ret
mov dword [0x483e5c], esi
mov byte [esp + 0x13], 0
jmp 0x44d36d
cmp eax, 0x43
jl 0x44d31c
push eax
lea edx, [esp + 0x14]
push str._c:_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, dword [esp + 0xc18]
lea eax, [esp + 0x10]
push esi
push 0
push 0x471d84
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x44d39f
mov ecx, dword [0x483a50]
push 0x2010
mov edx, dword [ecx + 0x4e0]
push edx
jmp 0x44d32d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc04
ret
Function at 0x44d9c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44d9d3
xor al, al
ret
not eax
shr eax, 4
and eax, 1
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.0044afd0
add esp, 4
test al, al
je 0x44da1b
mov al, byte [ebx + 2]
lea edi, [ebx + 2]
test al, al
je 0x44da09
cmp al, 0x5c
jne 0x44da74
mov al, byte [ebx + 3]
test al, al
jne 0x44da74
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44da66
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
call fcn.0044afb0
add esp, 4
test al, al
je 0x44db38
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x44db38
inc eax
push 0x5c
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x44da74
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44da66
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
call fcn.0044c500
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44db29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jb 0x44daa5
cmp eax, 0x578
ja 0x44daa5
push eax
call fcn.0044c500
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x5c
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x44dac0
pop edi
pop esi
mov eax, 0x35
pop ebx
ret
cmp eax, edi
je 0x44db0a
sub eax, ebx
push ebp
mov ebp, eax
mov esi, ebx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
call fcn.0044d9e0
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test esi, esi
pop ebp
jne 0x44db23
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44db23
push 0xffffffffffffffff
call fcn.0044c500
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
and al, 0x10
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xd2
pop ebx
add eax, 0x2e
ret
pop edi
pop esi
mov eax, 0x2e
pop ebx
ret
Function at 0x44e350
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
jne 0x44e35e
xor al, al
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
jle 0x44e38c
lea eax, [ecx + esi - 4]
push str..lnk
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x44e38c
mov al, 1
jmp 0x44e38e
xor al, al
mov cl, byte [esp + 0xc]
test cl, cl
jne 0x44e3e9
push 0x47009c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], 0
je 0x44e3dd
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x44e3d3
mov dword [esp + 8], 0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, 0x4c
sete al
pop esi
ret

Function at 0x44e4b0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e4e6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44e520
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44e525
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44e525
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44e520
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44e53a
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
ret
Function at 0x44f9b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44f9df
mov cl, byte [esp + 0xc]
test cl, cl
je 0x44f9cd
or al, 1
jmp 0x44f9cf
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x44f9df
xor eax, eax
pop esi
ret
push 0xffffffffffffffff
call fcn.0044c500
add esp, 4
pop esi
ret
Function at 0x45e099
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45e0f1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x472b1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45e0e4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x45e0f3
xor eax, eax
pop esi
leave
ret 4
Function at 0x10013502
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022df0]
jne 0x1001350c
repz ret
jmp fcn.10013cd3

Function at 0x10015081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10015090
pop dword [ebp - 0x18]
mov eax, 0xd47e32e6
sub eax, 0xc47ce256
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xce9c8ca1
add dword [ebp - 0x28], 0x7fb5b8aa
mov dword [ebp - 0x24], 0x24e7d282
sub dword [ebp - 0x24], 0xf2b4863d
mov dword [ebp - 0x20], 0x90bf5a9c
sub dword [ebp - 0x20], 0x4473166e
mov dword [ebp - 0x1c], 0x3caa6ad3
sub dword [ebp - 0x1c], 0x3caa6ad3
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xec9d563d
add dword [ebp - 0x28], 0x87d51319
mov dword [ebp - 0x24], 0x43ca3720
add dword [ebp - 0x24], 0xfda22a55
mov dword [ebp - 0x20], 0xe3aae893
sub dword [ebp - 0x20], 0x803b7c27
mov dword [ebp - 0x1c], 0x14461ddb
sub dword [ebp - 0x1c], 0x14461ddb
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x26fa8e1c
sub eax, 0x16f91cf4
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a13c
push 0
call eax
mov ecx, 0x4ea5
xor esi, esi
add esi, eax
mov edx, 0x1002d600
add edx, dword [ebp - 0x18]
mov edi, 0xc63120fd
sub edi, 0xe3ee6b56
xor dword [ebp - 0x10], 0x2d70da9e
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0x4f55888
xor ebx, edi
sub dword [ebp - 0xc], 0xd894699c
mov dword [esi], ebx
add dword [ebp - 4], 0xa1f1f78d
add esi, 0x2c7fa87a
sub esi, 0x2c7fa876
add edx, 0x2e31b444
sub edx, 0x2e31b440
loop 0x100151a3
add eax, 0x12d67
mov ebx, eax
add eax, 0x3a00caac
add eax, 0xc5ff3559
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4153dc
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041558c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4154da
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41547d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4154c0
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x415494
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4154af
test al, 0x40
je 0x4154a6
mov ecx, dword [edi + 0x20]
jmp 0x4154ad
test al, 0x80
je 0x4154c0
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4154c0
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x41544c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x461170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x507bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004fb8a9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4611f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004f9092
mov eax, dword [eax]
push 0x590f40
push eax
call fcn.004e7bf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004fbb34
test bl, bl
je 0x4611f2
push 0x590f40
lea ecx, [esp + 0xc]
call fcn.004fbec4
push 0x590f4c
lea ecx, [esp + 0xc]
call fcn.004fbec4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46122e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004fbb34
jmp 0x4612f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4612b2
lea edx, [esp + 0x7c]
push 0x590f48
push edx
call fcn.004e7bf4
add esp, 8
test eax, eax
je 0x4612b2
lea eax, [esp + 0x7c]
push 0x590f44
push eax
call fcn.004e7bf4
add esp, 8
test eax, eax
je 0x4612b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x461242
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004fbb34
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x461af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x461b52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x461b60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x507c5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5aa148]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x461c98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x461bc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004fbb34
xor eax, eax
jmp 0x461d0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004fbc71
push esi
lea ecx, [esp + 0xc]
call fcn.004fbf00
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x590f80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x461ced
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00461af0
test eax, eax
jne 0x461ced
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00461af0
test eax, eax
jne 0x461ced
lea eax, [esp + 0x14]
push 0x590f5c
push eax
call fcn.004e8e50
mov esi, eax
add esp, 8
test esi, esi
jne 0x461ccc
lea ecx, [esp + 0x14]
push 0x590f58
push ecx
call fcn.004e8dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x461ccc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x461ccf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004fbc21
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x461bde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004fbb34
xor eax, eax
jmp 0x461d0f
mov byte [esi], 0
push 0x590f54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004fbb34
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x472c80
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x472cee
cmp si, 0x69
ja 0x472cee
add esi, 0xffd0
cmp si, 0x11
je 0x472cbe
push 0x11
call edi
test ax, ax
jge 0x472cbe
or esi, 0x2000
cmp si, 0x10
je 0x472cd3
push 0x10
call edi
test ax, ax
jge 0x472cd3
or esi, 0x4000
cmp si, 0x12
je 0x472ce8
push 0x12
call edi
test ax, ax
jge 0x472ce8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x472cfb
mov esi, 0xbd
jmp 0x472caf
cmp si, 0x6e
jne 0x472d08
mov esi, 0xbe
jmp 0x472caf
cmp si, 0x6f
jne 0x472ca9
mov esi, 0xbf
jmp 0x472caf

Function at 0x474640
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5bae40]
xor edx, edx
cmp eax, edx
jne 0x474666
xor eax, eax
mov byte [eax + 0x5bad40], al
inc eax
cmp eax, 0x100
jl 0x47464e
mov dword [0x5bae40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5bad40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4746f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4746ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x474698
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x474770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4747c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4747aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret