joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a8c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x408b9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x408bfe
call fcn.00408b4c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040513c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040513c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x408c5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x44f898], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408d36
cmp dword [0x44f894], 0
jne 0x408d36
cmp dword [0x44fa88], 0
je 0x408cf0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408a4c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408cd6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408a4c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408cd6
lea ebx, [ebp - 0x84]
jmp 0x408cd7
inc ebx
call fcn.00408c18
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x408d71
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x44f89c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040513c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44f89f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x408d71
cmp dword [0x44f894], 0
je 0x408d50
cmp dword [0x44f894], 0xffffffff
je 0x408d71
push esi
call dword [0x44f894]
pop ecx
mov eax, dword [0x44f898]
test eax, eax
je 0x408d71
cmp dword [0x44f898], 0xffffffff
je 0x408d71
cmp byte [eax], 0
je 0x408d71
push esi
push eax
call fcn.00408b9c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40955c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x451574], 0
jne 0x4095dd
cmp dword [0x451594], 0
jne 0x40958c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x451594], eax
test eax, eax
jne 0x40958c
push str.GetEnvironmentStrings_failed
call fcn.00408d88
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x451594]
jmp 0x4095a0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040513c
pop ecx
mov edi, eax
test eax, eax
jne 0x409598
lea edi, [ebp + 1]
push edi
call fcn.00404044
pop ecx
mov ebx, eax
mov dword [0x451578], ebx
test ebx, ebx
jne 0x4095ca
xor eax, eax
jmp 0x4096a0
push edi
mov edx, dword [0x451594]
push edx
push ebx
call fcn.00405028
add esp, 0xc
jmp 0x4095fd
xor esi, esi
mov ebx, dword [0x451574]
jmp 0x4095f7
push eax
call fcn.0040513c
pop ecx
test eax, eax
jne 0x4095f3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4095e7
lea ebx, [esi + 4]
push 4
mov dword [0x45157c], ebx
inc ebx
push ebx
call fcn.00403ba8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409620
xor eax, eax
jmp 0x4096a0
cmp dword [0x451574], 0
jne 0x409651
xor esi, esi
mov ebx, dword [0x451578]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409642
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040513c
pop ecx
mov edi, eax
test eax, eax
jne 0x409638
jmp 0x409682
xor esi, esi
mov ebx, dword [0x451574]
mov eax, dword [esp]
mov edi, eax
jmp 0x40967c
push eax
call fcn.0040513c
pop ecx
test eax, eax
je 0x409671
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409675
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409660
mov eax, dword [0x451574]
test eax, eax
je 0x409692
push eax
call fcn.00404054
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x451574], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b954
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x45031c
sub eax, eax
test esi, esi
je 0x40ba34
sub eax, 1
test ecx, ecx
je 0x40ba32
test esi, 3
je 0x40b992
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40b977
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40ba19
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40b9a0
mov ecx, edx
test ecx, ecx
je 0x40ba32
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40ba1f
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40bd18
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040bd9b
jae 0x40bd26
xor ecx, ecx
call fcn.0040bd9b
jae 0x40bd55
xor eax, eax
call fcn.0040bd9b
jae 0x40bd65
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040bd9b
adc al, al
jae 0x40bd47
jne 0x40bd91
stosb byte es:[edi], al
jmp 0x40bd29
call fcn.0040bda7
sub ecx, ebx
jne 0x40bd6e
call fcn.0040bda5
jmp 0x40bd8d
lodsb al, byte [esi]
shr eax, 1
je 0x40bdb7
adc ecx, ecx
jmp 0x40bd8a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040bda5
cmp eax, 0x7d00
jae 0x40bd8a
cmp ah, 5
jae 0x40bd8b
cmp eax, 0x7f
ja 0x40bd8c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40bd29
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x140f082
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x140f0ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x140f0c8
mov ecx, dword [0x144f7f8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140f0bc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140f0a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x140f0ca
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1410c53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x1410cbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x1410d08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0142a100
add esp, 8
test eax, eax
jne 0x1410d06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x1410d0a
jmp 0x1410cb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x14198fa
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.01413337
add esp, 4
and eax, 0xff
test eax, eax
je 0x1419983
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.01424820
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1419981
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x1419981
jmp 0x1419983
jmp 0x1419903
mov esp, ebp
pop ebp
ret

Function at 0x1419df3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x1450404]
test eax, eax
jne 0x1419e07
call fcn.01419d24
xor ecx, ecx
mov cl, byte [0x1450401]
test ecx, ecx
jne 0x1419e8e
xor edx, edx
mov dl, byte [0x1450400]
test edx, edx
jne 0x1419e8e
cmp dword [0x145060c], 0
je 0x1419e69
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x145060c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x145060c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x145060c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x1419e8e
push 0x10001
push 0x1450404
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x1419e8e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x141cf9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x141cfaa
xor eax, eax
jmp 0x141d173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x141d12b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x144deac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x141cfb3
cmp dword [ebp + 0x10], 0
je 0x141d16d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x144deac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x141d131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x14269b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x144b4c8
cmp edx, dword [eax]
je 0x14269d2
add eax, 8
inc ecx
cmp eax, 0x144b558
jl 0x14269c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x144b4c8]
jne 0x1426b00
mov eax, dword [0x1450688]
cmp eax, 1
je 0x1426ada
test eax, eax
jne 0x1426a03
cmp dword [0x144b204], 1
je 0x1426ada
cmp edx, 0xfc
je 0x1426b00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1426a3a
lea eax, [ebp - 0x1a4]
push 0x144f2c8
push eax
call fcn.01424980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.01424b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1426a7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.01424b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x144f2c4
push edi
call fcn.01424bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x144f2a8
push eax
call fcn.01424980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.01424990
lea eax, [ebp - 0xa0]
push 0x144f2a4
push eax
call fcn.01424990
push dword [esi + 0x144b4cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.01424990
push 0x12010
lea eax, [ebp - 0xa0]
push 0x144f27c
push eax
call fcn.01428f78
add esp, 0x2c
pop edi
jmp 0x1426b00
lea eax, [ebp + 8]
lea esi, [esi + 0x144b4cc]
push 0
push eax
push dword [esi]
call fcn.01424b30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4c6950
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x54ac2b
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.0053f525
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c69d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0053d437
mov eax, dword [eax]
push 0x5fdd18
push eax
call fcn.0052f574
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0053f7b0
test bl, bl
je 0x4c69d2
push 0x5fdd18
lea ecx, [esp + 0xc]
call fcn.0053fb40
push 0x5fdd24
lea ecx, [esp + 0xc]
call fcn.0053fb40
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 0x4c6a0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0053f7b0
jmp 0x4c6ad9
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 0x4c6a92
lea edx, [esp + 0x7c]
push 0x5fdd20
push edx
call fcn.0052f574
add esp, 8
test eax, eax
je 0x4c6a92
lea eax, [esp + 0x7c]
push 0x5fdd1c
push eax
call fcn.0052f574
add esp, 8
test eax, eax
je 0x4c6a92
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 0x4c6a22
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.0053f7b0
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 0x4c72f0
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 0x4c7352
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 0x4c7360
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x54acab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6136a8]
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 0x4c7498
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4c73c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0053f7b0
xor eax, eax
jmp 0x4c750f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0053f8ed
push esi
lea ecx, [esp + 0xc]
call fcn.0053fb7c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5fdd58
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4c74ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004c72f0
test eax, eax
jne 0x4c74ed
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 closesocket
mov ecx, edi
call fcn.004c72f0
test eax, eax
jne 0x4c74ed
lea eax, [esp + 0x14]
push 0x5fdd34
push eax
call fcn.005305f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c74cc
lea ecx, [esp + 0x14]
push 0x5fdd30
push ecx
call fcn.00530570
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c74cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4c74cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0053f89d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4c73de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0053f7b0
xor eax, eax
jmp 0x4c750f
mov byte [esi], 0
push 0x5fdd2c
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.0053f7b0
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 0x4d9480
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 0x4d94ee
cmp si, 0x69
ja 0x4d94ee
add esi, 0xffd0
cmp si, 0x11
je 0x4d94be
push 0x11
call edi
test ax, ax
jge 0x4d94be
or esi, 0x2000
cmp si, 0x10
je 0x4d94d3
push 0x10
call edi
test ax, ax
jge 0x4d94d3
or esi, 0x4000
cmp si, 0x12
je 0x4d94e8
push 0x12
call edi
test ax, ax
jge 0x4d94e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4d94fb
mov esi, 0xbd
jmp 0x4d94af
cmp si, 0x6e
jne 0x4d9508
mov esi, 0xbe
jmp 0x4d94af
cmp si, 0x6f
jne 0x4d94a9
mov esi, 0xbf
jmp 0x4d94af

Function at 0x4dae00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x623eb0]
xor edx, edx
cmp eax, edx
jne 0x4dae26
xor eax, eax
mov byte [eax + 0x623db0], al
inc eax
cmp eax, 0x100
jl 0x4dae0e
mov dword [0x623eb0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x623db0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4daeb7
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 0x4dae8a
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 0x4dae58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4daf30
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 0x4daf83
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 0x4daf6a
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