joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecb0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x427d18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40edcd
lea ebp, [ebx + 4]
cmp edi, dword [ebx + 0x14]
jbe 0x40ecff
call fcn.00414249
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x40ed0e
mov eax, dword [ebp]
jmp 0x40ed10
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x40ed38
cmp edi, dword [ebx + 0x14]
jbe 0x40ed21
call fcn.00414249
cmp dword [ebx + 0x18], esi
jb 0x40ed2b
mov eax, dword [ebp]
jmp 0x40ed2d
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x40edc0
push edi
push ebx
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.00404d10
xor esi, esi
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x28], esi
je 0x40ed93
lea ecx, [esp + 0x14]
push ecx
call fcn.0040eac0
add esp, 4
test al, al
jne 0x40ed93
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40ed71
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ed93
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x40edaf
mov edx, dword [esp + 0x18]
push edx
jmp 0x40eda7
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x40edaf
mov eax, dword [esp + 0x18]
push eax
call fcn.00413bbf
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x40ecf5
push ebx
call fcn.0040eac0
add esp, 4
test al, al
jne 0x40edf9
cmp dword [ebx + 0x18], 8
jb 0x40ede5
mov eax, dword [ebx + 4]
jmp 0x40ede8
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40edf9
xor al, al
jmp 0x40ee02
push ebx
call fcn.0040eb90
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004138c3
add esp, 0x30
ret

Function at 0x40f1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426b28
mov eax, dword fs:[0]
push eax
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.004030d0
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
jb 0x40f21d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00413bbf
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x411150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x400
mov edi, eax
mov esi, ecx
mov dword [esp + 0x18], 1
xor bl, bl
call fcn.0041524f
push 0x400
mov ebp, eax
push 0
push ebp
call fcn.00415be0
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4111c5
mov dword [esi + 4], eax
call fcn.00405590
push ebp
call fcn.00414c9b
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
mov eax, ebp
mov bl, 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4111d0
sub eax, edx
sar eax, 1
push eax
push ebp
mov esi, edi
call fcn.00403260
jmp 0x4111b0
Function at 0x411320
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42790b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x10], bl
jne 0x4114b7
mov ebp, 8
cmp dword [edi + 0x34], ebp
mov dword [esp + 0x18], ebx
jb 0x411378
mov eax, dword [edi + 0x20]
jmp 0x41137b
lea eax, [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x4114bb
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [edi + 0x14], eax
je 0x4114bb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [edi + 0x18], eax
je 0x4114bb
cmp dword [edi + 0x34], ebp
jb 0x4113c0
mov ecx, dword [edi + 0x20]
jmp 0x4113c3
lea ecx, [edi + 0x20]
mov edx, dword [esp + 0x18]
push eax
push esi
push edx
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x42b1a8
push edx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
xor ebp, ebp
test dword [esp + 0x14], 0xfffffffc
jbe 0x4114b3
xor esi, esi
mov edi, edi
push 0x7e
lea eax, [esp + 0x42]
push ebx
push eax
mov word [esp + 0x48], bx
call fcn.00415be0
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
add esp, 0xc
push ecx
push edx
push str.StringFileInfo_04x_04x
lea eax, [esp + 0x48]
push 0x3f
push eax
call fcn.0041479a
lea eax, [esp + 0x50]
add esp, 0x14
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411450
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x28]
call fcn.00403260
mov edx, esi
push edx
mov esi, edi
mov dword [esp + 0xcc], ebx
call fcn.00408c50
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x41149e
mov eax, dword [esp + 0x24]
push eax
call fcn.00413bbf
add esp, 4
mov ecx, dword [esp + 0x14]
add ebp, 1
movzx esi, bp
shr ecx, 2
cmp esi, ecx
jb 0x411400
mov byte [edi + 0x10], 1
mov al, 1
jmp 0x4114bd
xor al, al
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.004138c3
add esp, 0xbc
ret
Function at 0x412560
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x427870
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebp
push esi
push edi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x7d0
mov dword [ebx], ebp
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x78], ebp
push ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebp
mov dword [ebx + 8], eax
je 0x4126b0
push ebp
push ebp
push 3
push ebp
push ebp
push 0x50
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebp
mov dword [ebx + 4], eax
je 0x4126b0
push ebp
push 0x84000000
lea ecx, [esp + 0x20]
push ecx
push ebp
push str.HTTP_1.0
push edi
push str.POST
push eax
mov dword [esp + 0x38], 0x42c160
mov dword [esp + 0x3c], ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebp
mov dword [ebx], eax
je 0x4126b0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [esp + 0x14]
push edx
push 2
push eax
call esi
test eax, eax
je 0x4126b0
mov ecx, dword [ebx]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push ecx
call esi
test eax, eax
je 0x4126b0
mov eax, dword [ebx]
push 4
lea edx, [esp + 0x14]
push edx
push 6
push eax
call esi
test eax, eax
je 0x4126b0
mov eax, dword [esp + 0x74]
cmp eax, ebp
jbe 0x4126b0
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
call fcn.0040d2a0
lea edi, [esp + 0x40]
lea esi, [esp + 0x24]
mov byte [esp + 0x68], 1
call fcn.0040d280
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x41268d
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
push ecx
push eax
push ebp
push ebp
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
lea ecx, [esp + 0x24]
call fcn.00402d40
lea esi, [esp + 0x40]
call fcn.00404b40
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004138c3
add esp, 0x5c
ret 8
Function at 0x412710
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
push ebx
push edi
jne 0x412726
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41271b
mov edx, dword [esp + 0xc]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp edi, dword [esi + 4]
je 0x4127ba
mov ecx, edi
sub ecx, dword [esi + 0x18]
cmp ecx, 0x3e8
jbe 0x41278c
mov ebx, dword [esi + 0xc]
mov eax, ebx
sub eax, dword [esi + 0x1c]
xor edx, edx
div ecx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x412783
fadd qword [0x42c1f8]
fstp qword [esi + 0x10]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 0xc]
fild dword [esi + 0xc]
test eax, eax
jge 0x41279c
fadd qword [0x42c1f8]
mov ecx, edi
sub ecx, dword [esi]
test ecx, ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
jge 0x4127b2
fadd qword [0x42c1f8]
fdivp st(1)
mov dword [esi + 4], edi
fstp qword [esi + 0x20]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
add esp, 8
ret 4

Function at 0x4131e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x1c], 0
call fcn.00415be0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, ebx
xor esi, esi
call fcn.00413320
test eax, eax
jbe 0x41326b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x413249
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x41324e
call fcn.00414249
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
push eax
call fcn.00413bbf
add esp, 4
mov eax, ebx
add esi, 1
call fcn.00413320
cmp esi, eax
jb 0x413236
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x413278
call fcn.00414249
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x413285
call fcn.00414249
cmp esi, edi
je 0x4132ae
mov eax, dword [ebx + 8]
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebp, [ecx + esi]
jle 0x4132ab
push ecx
push edi
push ecx
push esi
call fcn.004138d2
add esp, 0x10
mov dword [ebx + 8], ebp
cmp dword [esp + 0x24], 2
jne 0x4132c9
push ebx
call fcn.00412b30
push ebx
call fcn.00412f70
push ebx
call fcn.004129e0
jmp 0x4132e3
xor esi, esi
cmp dword [esp + 0x10], 0
jne 0x4132e3
call fcn.00412cf0
add esi, 1
cmp esi, 0xa
mov dword [esp + 0x10], eax
jl 0x4132cb
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4132ee
xor ebx, ebx
jmp 0x4132f6
mov ebx, dword [ebx + 8]
sub ebx, eax
sar ebx, 2
mov ecx, dword [esp + 0x130]
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.004138c3
add esp, 0x124
ret

Function at 0x4138c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430240]
jne 0x4138cd
repz ret
jmp fcn.004181ca
Function at 0x4184c4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4302a0]
je 0x4184df
inc edi
cmp edi, 0x17
jb 0x4184d0
cmp edi, 0x17
jae 0x41865f
push ebp
push 3
call fcn.004216c1
cmp eax, 1
pop ecx
je 0x41862b
push 3
call fcn.004216c1
test eax, eax
pop ecx
jne 0x418513
cmp dword [0x4300c8], 1
je 0x41862b
cmp ebx, 0xfc
je 0x41865e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x431bc8
push ebp
call fcn.00418338
add esp, 0xc
test eax, eax
je 0x418549
push esi
push esi
push esi
push esi
push esi
call fcn.00414129
add esp, 0x14
push 0x104
mov esi, 0x431be1
push esi
push 0
mov byte [0x431ce5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41858d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00418338
add esp, 0xc
test eax, eax
je 0x41858d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414129
add esp, 0x14
push esi
call fcn.00415c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4185d2
push esi
call fcn.00415c90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x431edc
push 0x42a41c
sub ecx, eax
push ecx
push eax
call fcn.00420e76
add esp, 0x14
test eax, eax
je 0x4185d2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00414129
add esp, 0x14
jmp 0x4185d4
xor esi, esi
push 0x42a418
push ebx
push ebp
call fcn.00420db6
add esp, 0xc
test eax, eax
je 0x4185f4
push esi
push esi
push esi
push esi
push esi
call fcn.00414129
add esp, 0x14
push dword [edi*8 + 0x4302a4]
push ebx
push ebp
call fcn.00420db6
add esp, 0xc
test eax, eax
je 0x418616
push esi
push esi
push esi
push esi
push esi
call fcn.00414129
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00421504
add esp, 0xc
jmp 0x41865e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41865e
cmp ebp, 0xffffffff
je 0x41865e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4302a4]
push dword [esi]
call fcn.00415c90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x421504
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418777
xor ebx, ebx
cmp dword [0x4323d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4215da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4216ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4216ba
push eax
call fcn.00418709
mov dword [esp], 0x42af38
push edi
mov dword [0x4323d0], eax
call esi
push eax
call fcn.00418709
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4323d4], eax
call esi
push eax
call fcn.00418709
mov dword [0x4323d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417e46
test eax, eax
pop ecx
pop ecx
je 0x4215a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414129
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4215da
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418709
cmp eax, ebx
pop ecx
mov dword [0x4323e0], eax
je 0x4215da
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418709
pop ecx
mov dword [0x4323dc], eax
mov eax, dword [0x4323dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42165f
cmp dword [0x4323e0], ecx
je 0x42165f
push eax
call fcn.00418780
push dword [0x4323e0]
mov esi, eax
call fcn.00418780
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42165f
cmp edi, ebx
je 0x42165f
call esi
cmp eax, ebx
je 0x42162c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42162c
test byte [ebp - 0x18], 1
jne 0x42165f
lea eax, [ebp - 0x10]
push eax
call fcn.00417e7d
test eax, eax
pop ecx
je 0x421647
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414129
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x421656
or dword [ebp + 0x10], 0x200000
jmp 0x42169a
or dword [ebp + 0x10], 0x40000
jmp 0x42169a
mov eax, dword [0x4323d4]
cmp eax, dword [ebp - 8]
je 0x42169a
push eax
call fcn.00418780
cmp eax, ebx
pop ecx
je 0x42169a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42169a
mov eax, dword [0x4323d8]
cmp eax, dword [ebp - 8]
je 0x42169a
push eax
call fcn.00418780
cmp eax, ebx
pop ecx
je 0x42169a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4323d0]
call fcn.00418780
cmp eax, ebx
pop ecx
je 0x4216ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4216bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e070
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100679db
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.1005c9d8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000e0f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005a927
mov eax, dword [eax]
push 0x1007c1e0
push eax
call fcn.1004d894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005cc63
test bl, bl
je 0x1000e0f2
push 0x1007c1e0
lea ecx, [esp + 0xc]
call fcn.1005cff3
push 0x1007fd28
lea ecx, [esp + 0xc]
call fcn.1005cff3
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 0x1000e12e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005cc63
jmp 0x1000e1f9
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 0x1000e1b2
lea edx, [esp + 0x7c]
push 0x1007fd24
push edx
call fcn.1004d894
add esp, 8
test eax, eax
je 0x1000e1b2
lea eax, [esp + 0x7c]
push 0x1007fd20
push eax
call fcn.1004d894
add esp, 8
test eax, eax
je 0x1000e1b2
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 0x1000e142
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.1005cc63
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 0x1000e9f0
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 0x1000ea52
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 0x1000ea60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10067a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10086228]
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 0x1000eb98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000eac6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005cc63
xor eax, eax
jmp 0x1000ec0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1005cda0
push esi
lea ecx, [esp + 0xc]
call fcn.1005d02f
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 0x1000ebed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1000e9f0
test eax, eax
jne 0x1000ebed
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.1000e9f0
test eax, eax
jne 0x1000ebed
lea eax, [esp + 0x14]
push 0x1007fd3c
push eax
call fcn.1004e8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000ebcc
lea ecx, [esp + 0x14]
push 0x1007fd38
push ecx
call fcn.1004e850
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000ebcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000ebcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1005cd50
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1000eade
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005cc63
xor eax, eax
jmp 0x1000ec0f
mov byte [esi], 0
push 0x1007fd34
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.1005cc63
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 0x1001a150
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 0x1001a1be
cmp si, 0x69
ja 0x1001a1be
add esi, 0xffd0
cmp si, 0x11
je 0x1001a18e
push 0x11
call edi
test ax, ax
jge 0x1001a18e
or esi, 0x2000
cmp si, 0x10
je 0x1001a1a3
push 0x10
call edi
test ax, ax
jge 0x1001a1a3
or esi, 0x4000
cmp si, 0x12
je 0x1001a1b8
push 0x12
call edi
test ax, ax
jge 0x1001a1b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001a1cb
mov esi, 0xbd
jmp 0x1001a17f
cmp si, 0x6e
jne 0x1001a1d8
mov esi, 0xbe
jmp 0x1001a17f
cmp si, 0x6f
jne 0x1001a179
mov esi, 0xbf
jmp 0x1001a17f

Function at 0x1001b890
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100968e8]
xor edx, edx
cmp eax, edx
jne 0x1001b8b6
xor eax, eax
mov byte [eax + 0x100967e8], al
inc eax
cmp eax, 0x100
jl 0x1001b89e
mov dword [0x100968e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100967e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001b947
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 0x1001b91a
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 0x1001b8e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1001b9c0
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 0x1001ba13
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 0x1001b9fa
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