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

Disassembly:
mov eax, 0x111c
call fcn.004238a0
mov eax, dword [esp + 0x1120]
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41cc2d
pop esi
mov eax, 1
pop ebx
add esp, 0x111c
ret
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0xd0]
mov edi, eax
push ecx
sub edi, 0x29
call fcn.0041d160
add esp, 4
lea edx, [esp + 0x10]
cmp edi, 0x1000
mov dword [esp + 0x10], ebx
push ebx
push edx
jbe 0x41ccf8
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x130]
push 0x1000
push eax
push esi
call ebp
test eax, eax
je 0x41cd2b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x128]
push eax
lea edx, [esp + 0xd4]
push ecx
push edx
add ebx, eax
call fcn.0041d190
lea eax, [edi - 0x1000]
add esp, 0xc
cmp ebx, eax
jb 0x41ccc4
mov ecx, edi
lea eax, [esp + 0x10]
push 0
sub ecx, ebx
push eax
lea edx, [esp + 0x130]
push ecx
push edx
push esi
call ebp
test eax, eax
jne 0x41cce1
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x130]
push 0x1000
push ecx
push esi
call ebp
test eax, eax
jne 0x41cc80
jmp 0x41cd2b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0xd4]
push eax
push ecx
jmp 0x41cd23
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x130]
push edi
push eax
push esi
call ebp
test eax, eax
je 0x41cd2b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x128]
push ecx
lea eax, [esp + 0xd4]
push edx
push eax
call fcn.0041d190
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0xd0]
push ecx
push edx
call fcn.0041dc20
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
push 0x10
push ecx
call fcn.0041ca80
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
add esp, 0x14
lea edx, [esp + 0x28]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x7c]
push str._r_n_____s___
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
add esp, 0xc
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x29
push edx
push esi
stosb byte es:[edi], al
mov dword [esp + 0x28], 0
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xa4]
lea eax, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
pop edi
pop ebp
neg eax
pop esi
pop ebx
sbb eax, eax
add esp, 0x111c
ret
Function at 0x41d160
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x41e160
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
mov ecx, edi
mov edx, dword [esp + 0x14]
push 0x42f30c
push edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41e256
push 2
push 0
push ebx
call sub.MSVCRT.dll_fseek
push ebx
call sub.MSVCRT.dll_ftell
mov esi, eax
push 0
lea eax, [esi - 0x16]
push eax
push ebx
call sub.MSVCRT.dll_fseek
push ebx
push 1
push 0x16
push edi
call sub.MSVCRT.dll_fread
mov eax, dword [edi]
add esp, 0x2c
cmp eax, 0x6054b50
jne 0x41e1e1
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp esi, 0x10015
jbe 0x41e1ee
mov esi, 0x10015
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
push 2
neg ecx
push ecx
push ebx
mov ebp, eax
call sub.MSVCRT.dll_fseek
push ebx
push 1
push esi
push ebp
call sub.MSVCRT.dll_fread
lea edx, [esi + ebp - 0x16]
add esp, 0x20
cmp ebp, edx
mov eax, ebp
ja 0x41e247
jmp 0x41e220
mov edi, dword [esp + 0x18]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp byte [eax], 0x50
jne 0x41e242
cmp byte [eax + 1], 0x4b
jne 0x41e242
cmp byte [eax + 2], 5
jne 0x41e242
cmp byte [eax + 3], 6
je 0x41e260
inc eax
cmp eax, edx
jbe 0x41e21c
push ebp
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MSVCRT.dll_fclose
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
mov edi, dword [esp + 0x18]
mov ecx, 5
mov esi, eax
push ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MSVCRT.dll_fclose
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x41e290
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x42f30c
mov esi, ecx
push eax
call sub.MSVCRT.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
je 0x41e347
mov ecx, dword [esi + 0x2c0]
push 0
push ecx
push edi
call sub.MSVCRT.dll_fseek
mov eax, dword [esi + 0x2d4]
add esp, 0xc
test eax, eax
je 0x41e2df
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x2d4], 0
mov eax, dword [esi + 0x2bc]
test eax, eax
ja 0x41e2fa
push edi
call sub.MSVCRT.dll_fclose
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret 4
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esi + 0x2bc]
push edi
push 1
push edx
push eax
mov dword [esi + 0x2d4], eax
call sub.MSVCRT.dll_fread
push edi
call sub.MSVCRT.dll_fclose
mov eax, dword [esi + 0x2d4]
add esp, 0x18
cmp dword [eax], 0x2014b50
jne 0x41e334
pop edi
xor eax, eax
pop esi
ret 4
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x2d4], 0
pop edi
or eax, 0xffffffff
pop esi
ret 4
Function at 0x41e350
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x14038
call fcn.004238a0
mov eax, dword [esp + 0x14040]
push ebx
push ebp
mov ebp, dword [esp + 0x14044]
push esi
push edi
push 0
push eax
push ebp
call sub.MSVCRT.dll_fseek
mov ecx, dword [esp + 0x14064]
push 0x42eeb8
push ecx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x41e39f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14038
ret 0x10
push 0x38
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
push str.1.1.3
lea edx, [esp + 0x18]
push 0xfffffffffffffff1
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], 0x41e5c0
mov dword [esp + 0x40], 0x41e5a0
call fcn.0041e740
mov esi, dword [esp + 0x14064]
xor edi, edi
add esp, 0x10
cmp esi, edi
jbe 0x41e4b7
cmp esi, 0xa000
push ebp
jbe 0x41e3fd
push 0xa000
lea eax, [esp + 0xa050]
push 1
push eax
jmp 0x41e408
push esi
lea ecx, [esp + 0xa050]
push 1
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, edi
je 0x41e53b
sub esi, eax
lea edx, [esp + 0xa048]
lea ecx, [esp + 0x48]
cmp eax, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0xa000
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], edi
jbe 0x41e491
cmp dword [esp + 0x20], edi
jne 0x41e470
push ebx
push 0xa000
lea edx, [esp + 0x50]
push 1
push edx
call sub.MSVCRT.dll_fwrite
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x20], 0xa000
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.0041e850
add esp, 8
cmp eax, edi
jl 0x41e561
cmp eax, 1
je 0x41e491
cmp dword [esp + 0x14], edi
ja 0x41e445
mov ecx, dword [esp + 0x20]
mov eax, 0xa000
sub eax, ecx
je 0x41e4af
push ebx
push 1
lea edx, [esp + 0x50]
push eax
push edx
call sub.MSVCRT.dll_fwrite
add esp, 0x10
cmp esi, edi
ja 0x41e3e3
mov esi, 0xa000
lea eax, [esp + 0x48]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], edi
jne 0x41e4eb
push ebx
push esi
lea ecx, [esp + 0x50]
push 1
push ecx
call sub.MSVCRT.dll_fwrite
lea edx, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 4
push eax
call fcn.0041e850
add esp, 8
test eax, eax
je 0x41e4c8
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, ecx
je 0x41e519
push ebx
push 1
lea ecx, [esp + 0x50]
push eax
push ecx
call sub.MSVCRT.dll_fwrite
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call fcn.0041e6f0
push ebx
call sub.MSVCRT.dll_fclose
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14038
ret 0x10
push ebx
call sub.MSVCRT.dll_fclose
mov eax, dword [esp + 0x1405c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14038
ret 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0041e6f0
push ebx
call sub.MSVCRT.dll_fclose
mov edx, dword [esp + 0x14060]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14038
ret 0x10
Function at 0x41e5d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
lea ecx, [esp]
push ebx
push esi
push edi
push eax
push ecx
call sub.MSVCRT.dll_sprintf
lea edx, [esp + 0x14]
push 0x5c
push edx
call sub.MSVCRT.dll__mbschr
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e645
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x138]
cmp esi, eax
jae 0x41e645
lea ecx, [esp + 0xc]
mov byte [esi], 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x41e630
lea edx, [esp + 0xc]
push 0
push edx
call ebx
test eax, eax
je 0x41e656
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call sub.MSVCRT.dll__mbschr
mov esi, eax
add esp, 8
test esi, esi
jne 0x41e609
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x12c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 4
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
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
Function at 0x401154
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
sub byte [esi + 0x4228d0], 0x55
call edi
add byte [esi + 0x4228d0], 0xae
call edi
xor byte [esi + 0x4228d0], 0xec
call edi
add byte [esi + 0x4228d0], 0x66
call edi
add byte [esi + 0x4228d0], 0xc7
call edi
add byte [esi + 0x4228d0], 0xad
call edi
add byte [esi + 0x4228d0], 0x1d
call edi
xor byte [esi + 0x4228d0], 0x9a
call edi
add byte [esi + 0x4228d0], 0xaa
call edi
add byte [esi + 0x4228d0], 0x3a
call edi
xor byte [esi + 0x4228d0], 0x76
call edi
add byte [esi + 0x4228d0], 0x10
call edi
add byte [esi + 0x4228d0], 0x19
call edi
add byte [esi + 0x4228d0], 0x4a
call edi
add byte [esi + 0x4228d0], 0x77
call edi
add byte [esi + 0x4228d0], 0xd2
call edi
xor byte [esi + 0x4228d0], 0xcc
call edi
add byte [esi + 0x4228d0], 0x54
call edi
add byte [esi + 0x4228d0], 0xb2
call edi
add byte [esi + 0x4228d0], 0x7c
call edi
add byte [esi + 0x4228d0], 0x97
call edi
add byte [esi + 0x4228d0], 0x3b
call edi
add byte [esi + 0x4228d0], 0x68
call edi
add byte [esi + 0x4228d0], 0xe3
call edi
add byte [esi + 0x4228d0], 0xe8
call edi
xor byte [esi + 0x4228d0], 0xb6
call edi
add byte [esi + 0x4228d0], 0xb6
call edi
add byte [esi + 0x4228d0], 0xaf
call edi
add byte [esi + 0x4228d0], 0x8b
call edi
add byte [esi + 0x4228d0], 0x8d
call edi
add byte [esi + 0x4228d0], 0xc5
call edi
xor byte [esi + 0x4228d0], 0xdf
call edi
xor byte [esi + 0x4228d0], 0xf8
call edi
xor byte [esi + 0x4228d0], 0x91
call edi
add byte [esi + 0x4228d0], 0x76
call edi
add byte [esi + 0x4228d0], 0x48
call edi
xor byte [esi + 0x4228d0], 0xb
call edi
add byte [esi + 0x4228d0], 0xc8
call edi
add byte [esi + 0x4228d0], 0xbc
call edi
xor byte [esi + 0x4228d0], 0x42
call edi
add byte [esi + 0x4228d0], 0xce
call edi
xor byte [esi + 0x4228d0], 0xb2
call edi
add byte [esi + 0x4228d0], 0x7c
call edi
xor byte [esi + 0x4228d0], 0xd0
call edi
add byte [esi + 0x4228d0], 0x17
call edi
xor byte [esi + 0x4228d0], 0xa1
call edi
add byte [esi + 0x4228d0], 0x91
call edi
add byte [esi + 0x4228d0], 0x13
call edi
add byte [esi + 0x4228d0], 4
inc esi
cmp esi, 0x23000
jb 0x40115e
pop edi
pop esi
ret
Function at 0x408170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ef5b
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.00461baf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4081f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f62d
mov eax, dword [eax]
push 0x4891d0
push eax
call fcn.004522e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461e3a
test bl, bl
je 0x4081f2
push 0x4891d0
lea ecx, [esp + 0xc]
call fcn.00462216
push 0x48cd44
lea ecx, [esp + 0xc]
call fcn.00462216
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 0x40822e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461e3a
jmp 0x4082f9
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 0x4082b2
lea edx, [esp + 0x7c]
push 0x48cd40
push edx
call fcn.004522e4
add esp, 8
test eax, eax
je 0x4082b2
lea eax, [esp + 0x7c]
push 0x48cd3c
push eax
call fcn.004522e4
add esp, 8
test eax, eax
je 0x4082b2
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 0x408242
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.00461e3a
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 0x409550
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 0x4095b2
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 0x4095c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f0bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x493c34]
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 0x4096f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409626
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461e3a
xor eax, eax
jmp 0x40976f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461fc3
push esi
lea ecx, [esp + 0xc]
call fcn.00462252
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40974d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00409550
test eax, eax
jne 0x40974d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00409550
test eax, eax
jne 0x40974d
lea eax, [esp + 0x14]
push 0x48cd58
push eax
call fcn.004533c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40972c
lea ecx, [esp + 0x14]
push 0x48cd54
push ecx
call fcn.00453340
mov esi, eax
add esp, 8
test esi, esi
jne 0x40972c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40972f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461f73
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40963e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461e3a
xor eax, eax
jmp 0x40976f
mov byte [esi], 0
push 0x48cd50
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.00461e3a
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 0x419cc0
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 0x419d2e
cmp si, 0x69
ja 0x419d2e
add esi, 0xffd0
cmp si, 0x11
je 0x419cfe
push 0x11
call edi
test ax, ax
jge 0x419cfe
or esi, 0x2000
cmp si, 0x10
je 0x419d13
push 0x10
call edi
test ax, ax
jge 0x419d13
or esi, 0x4000
cmp si, 0x12
je 0x419d28
push 0x12
call edi
test ax, ax
jge 0x419d28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419d3b
mov esi, 0xbd
jmp 0x419cef
cmp si, 0x6e
jne 0x419d48
mov esi, 0xbe
jmp 0x419cef
cmp si, 0x6f
jne 0x419ce9
mov esi, 0xbf
jmp 0x419cef

Function at 0x41b3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a49c8]
xor edx, edx
cmp eax, edx
jne 0x41b406
xor eax, eax
mov byte [eax + 0x4a48c8], al
inc eax
cmp eax, 0x100
jl 0x41b3ee
mov dword [0x4a49c8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a48c8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b497
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 0x41b46a
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 0x41b438
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b510
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 0x41b563
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 0x41b54a
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
Function at 0x421fa0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x422138
cmp ebp, ebx
jle 0x422138
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x421ffe
dec eax
or eax, 0xfffffff8
inc eax
je 0x422005
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x422014
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42201b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00461b7b
add esp, 4
cmp eax, ebx
je 0x42203c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00461b7b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42212e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x422115
mov al, byte [edx]
cmp al, 0xc0
jbe 0x422101
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4220f6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x422104
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x422104
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4220a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x422091
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret