joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push eax
push 0xa
push ecx
call fcn.00401070
mov edx, dword [esp + 0x424]
add esp, 0x10
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
add esp, 0x400
ret

Function at 0x407db0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, 0x4254b4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.userRep___.rep
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407e54
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x13f]
push edx
call fcn.0040b54c
add esp, 4
cmp eax, esi
jle 0x407e45
mov esi, eax
lea eax, [esp + 0x110]
push eax
push edi
call ebx
test eax, eax
jne 0x407e2f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x244
ret
Function at 0x407e70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x444
push ebx
push esi
push edi
mov edi, 0x4254b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.moonbase.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x458]
mov ecx, 0x11
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov dword [esp + 0xc], 0x44
je 0x407ef6
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x407f00
push eax
call edi
mov ecx, esi
xor eax, eax
lea edx, [esp + 0xc]
push esi
mov dword [ecx], eax
push edx
push 0x4254b4
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push eax
push eax
push eax
push eax
push eax
mov dword [ecx + 0xc], eax
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov al, byte [esp + 0x45c]
setne bl
test al, al
je 0x407f63
call fcn.00407db0
mov ecx, dword [esp + 0x454]
push 0
push ecx
mov dword [0x4255c8], eax
call fcn.00407cb0
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x444
ret
mov edx, dword [0x4255b8]
push edx
call edi
mov eax, dword [0x4255bc]
push eax
call edi
xor ecx, ecx
pop edi
mov dword [0x4255b8], ecx
mov al, bl
mov dword [0x4255bc], ecx
pop esi
mov dword [0x4255c0], ecx
pop ebx
mov dword [0x4255c4], ecx
add esp, 0x444
ret
Function at 0x408200
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x801c
call fcn.0040b1e0
push ebx
push esi
push 0
push 0
push 0
push 0
push str.InetURL_1.0
mov dword [esp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
mov esi, eax
mov eax, dword [esp + 0x802c]
push 0
push 0
push 0
push eax
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x408303
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x30]
push 0x7fff
push edx
push ebx
lea edi, [esp + 0x3c]
xor esi, esi
call ebp
test eax, eax
je 0x4082f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408297
add edi, eax
add esi, eax
mov ecx, 0x7fff
lea eax, [esp + 0x10]
sub ecx, esi
push eax
push ecx
push edi
push ebx
call ebp
test eax, eax
jne 0x408276
test esi, esi
jbe 0x4082f6
lea edx, [esp + 0x2c]
mov byte [esp + esi + 0x2c], 0
push edx
call fcn.004081b0
add esp, 4
test eax, eax
je 0x4082f6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push str._d._d._d._d
push eax
call fcn.0040b5ea
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
shl eax, 8
add eax, ebp
add esp, 0x18
shl eax, 8
add eax, esi
shl eax, 8
add eax, ecx
mov dword [esp + 0x14], eax
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x24]
pop edi
pop ebp
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x801c
ret

Function at 0x408320
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x220
lea eax, [esp + 0x90]
push edi
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408345
xor eax, eax
pop edi
add esp, 0x220
ret
mov cl, byte [0x4256e0]
xor eax, eax
mov byte [esp + 0x14], cl
mov ecx, 0x1f
lea edi, [esp + 0x15]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
push edx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x40837d
xor eax, eax
pop edi
add esp, 0x220
ret
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408394
pop edi
add esp, 0x220
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push esi
lea edi, [esp + 0xc]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop esi
pop edi
add esp, 0x220
ret
Function at 0x410105
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418148
cmp edx, dword [eax]
je 0x410127
add eax, 8
inc ecx
cmp eax, 0x4181d8
jl 0x410118
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418148]
jne 0x410255
mov eax, dword [0x4321c0]
cmp eax, 1
je 0x41022f
test eax, eax
jne 0x410158
cmp dword [0x417e44], 1
je 0x41022f
cmp edx, 0xfc
je 0x410255
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41018f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410e30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040edf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4101d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040edf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41564c
push edi
call fcn.00412460
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410e30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410e40
lea eax, [ebp - 0xa0]
push 0x41562c
push eax
call fcn.00410e40
push dword [esi + 0x41814c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410e40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004123ce
add esp, 0x2c
pop edi
jmp 0x410255
lea eax, [ebp + 8]
lea esi, [esi + 0x41814c]
push 0
push eax
push dword [esi]
call fcn.0040edf0
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 0x4027c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str.iexplore.exe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], str.C:Program_FilesInternet_Explorer
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret 4
Function at 0x403400
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.OpenProcess
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualQueryEx
push str.KERNEL32.dll
call esi
push eax
call edi
push str.ReadProcessMemory
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x6c], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x48]
lea eax, [edx + edx + 2]
push eax
call fcn.00412595
mov ecx, dword [esp + 0x4c]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [ecx + ecx + 2]
add esp, 4
mov edx, ecx
mov dword [esp + 0x14], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jae 0x4035e8
jmp 0x4034cc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
push 0x1c
push ecx
push eax
push edx
mov dword [esp + 0x38], eax
call dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
lea edi, [eax + esi]
mov eax, dword [esp + 0x40]
cmp eax, 0x20000
mov dword [esp + 0x10], edi
jne 0x4035c1
cmp dword [esp + 0x30], 4
jne 0x4035c1
cmp esi, edi
mov dword [esp + 0x18], esi
jae 0x4035c1
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push esi
push edx
call dword [esp + 0x38]
test eax, eax
je 0x4035d5
mov eax, dword [esp + 0x48]
xor ebp, ebp
test eax, eax
jle 0x4035b3
mov edi, dword [esp + 0x74]
push edi
call fcn.00412651
add esp, 4
mov ecx, eax
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40359b
mov word [ebx], ax
mov edx, dword [esp + 0x48]
test edx, edx
jle 0x403572
mov ecx, ebx
cmp word [ecx], 0x5c
je 0x403571
inc eax
sub ecx, 2
cmp eax, edx
jl 0x403561
jmp 0x403572
dec eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + ecx*2]
push eax
push 0x4250c4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.004033d0
add esp, 0x10
test eax, eax
je 0x4035db
mov eax, dword [esp + 0x48]
inc ebp
add ebx, 2
cmp ebp, eax
jl 0x40353d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esi, eax
cmp esi, edi
mov dword [esp + 0x18], esi
jb 0x40351a
cmp edi, dword [esp + 0x50]
jb 0x4034c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x48]
jmp 0x4035b3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
Function at 0x4030f5
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004032a5
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 0x4031f3
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 0x403196
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4031d9
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4031ad
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4031c8
test al, 0x40
je 0x4031bf
mov ecx, dword [edi + 0x20]
jmp 0x4031c6
test al, 0x80
je 0x4031d9
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4031d9
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 0x403165
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41a1fe
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041a3ae
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 0x41a2fc
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 0x41a29f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x41a2e2
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x41a2b6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x41a2d1
test al, 0x40
je 0x41a2c8
mov ecx, dword [edi + 0x20]
jmp 0x41a2cf
test al, 0x80
je 0x41a2e2
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x41a2e2
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 0x41a26e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42a080
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8c5b
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.004dd0e0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a102
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004dad3d
mov eax, dword [eax]
push 0x757e78
push eax
call fcn.004cbee4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004dd36b
test bl, bl
je 0x42a102
push 0x757e78
lea ecx, [esp + 0xc]
call fcn.004dd6fb
push 0x757e84
lea ecx, [esp + 0xc]
call fcn.004dd6fb
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 0x42a13e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004dd36b
jmp 0x42a209
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 0x42a1c2
lea edx, [esp + 0x7c]
push 0x757e80
push edx
call fcn.004cbee4
add esp, 8
test eax, eax
je 0x42a1c2
lea eax, [esp + 0x7c]
push 0x757e7c
push eax
call fcn.004cbee4
add esp, 8
test eax, eax
je 0x42a1c2
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 0x42a152
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.004dd36b
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 0x42b480
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 0x42b4e2
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 0x42b4f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7787a8]
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 0x42b628
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b556
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004dd36b
xor eax, eax
jmp 0x42b69f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004dd4a8
push esi
lea ecx, [esp + 0xc]
call fcn.004dd737
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x757ec8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42b67d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0042b480
test eax, eax
jne 0x42b67d
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.0042b480
test eax, eax
jne 0x42b67d
lea eax, [esp + 0x14]
push 0x757ea4
push eax
call fcn.004cd050
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b65c
lea ecx, [esp + 0x14]
push 0x757ea0
push ecx
call fcn.004ccfd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b65c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b65f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004dd458
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b56e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004dd36b
xor eax, eax
jmp 0x42b69f
mov byte [esi], 0
push 0x757e9c
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.004dd36b
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 0x43ded0
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 0x43df3e
cmp si, 0x69
ja 0x43df3e
add esi, 0xffd0
cmp si, 0x11
je 0x43df0e
push 0x11
call edi
test ax, ax
jge 0x43df0e
or esi, 0x2000
cmp si, 0x10
je 0x43df23
push 0x10
call edi
test ax, ax
jge 0x43df23
or esi, 0x4000
cmp si, 0x12
je 0x43df38
push 0x12
call edi
test ax, ax
jge 0x43df38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43df4b
mov esi, 0xbd
jmp 0x43deff
cmp si, 0x6e
jne 0x43df58
mov esi, 0xbe
jmp 0x43deff
cmp si, 0x6f
jne 0x43def9
mov esi, 0xbf
jmp 0x43deff

Function at 0x43f8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7890b8]
xor edx, edx
cmp eax, edx
jne 0x43f906
xor eax, eax
mov byte [eax + 0x788fb8], al
inc eax
cmp eax, 0x100
jl 0x43f8ee
mov dword [0x7890b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x788fb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x43f997
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 0x43f96a
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 0x43f938
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43fa10
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 0x43fa63
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 0x43fa4a
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