joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push 0
push 0x497b54
mov ecx, esi
call fcn.00402d30
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0044c250
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x417869
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044c23d
add esp, 0x210
ret
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41789e
lea edx, [esp + 8]
push edx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SogouExplorerExtensioncom.xunlei.ThunderExtension
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x4178d6
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x49a75c
mov dword [esp + 0x14], 0
call eax
mov eax, dword [esp + 4]
push str.SogouExplorerExtensioncom.xunlei.ThunderExtension
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4178e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402d30
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044c23d
add esp, 0x210
ret
Function at 0x418180
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x491249
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 1
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x49851c
mov ecx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], esi
mov byte [esi + 4], bl
call fcn.00402910
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], edi
call fcn.0041ae20
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4181f9
push 0x80004005
call fcn.004013a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x44], edi
call fcn.00418060
mov edi, dword [esp + 0x14]
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41825b
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00403100
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x4c], 2
call fcn.00402830
cmp dword [esp + 0x34], 0x10
jb 0x41825b
mov eax, dword [esp + 0x20]
push eax
call fcn.00418a35
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41827b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x41c9ae
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4916ef
call fcn.004503eb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f1b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41ca10
call fcn.0041dbcc
cmp eax, 1
jne 0x41ca10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041c1e8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041b4ec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040e840
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e840
mov eax, esi
call fcn.004504c3
ret 0x10

Function at 0x41ca39
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x49171a
call fcn.004503eb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f1b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41ca9b
call fcn.0041dbcc
cmp eax, 1
jne 0x41ca9b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041c1e8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041b4ec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040e840
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e840
mov eax, esi
call fcn.004504c3
ret 0x14

Function at 0x41cac7
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x491745
call fcn.004503eb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f1b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41cb29
call fcn.0041dbcc
cmp eax, 1
jne 0x41cb29
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041c1e8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041b4ec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040e840
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e840
mov eax, esi
call fcn.004504c3
ret 8
Function at 0x428bfe
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x492416
call fcn.004503eb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x428c23
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x428c69
lea ecx, [ebp - 0x10]
call fcn.00418030
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419124
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e840
mov eax, esi
call fcn.004504c3
ret 8

Function at 0x434371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4343b8
call fcn.0041e7e6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4343b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4343d4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00433eeb
mov esi, eax
test edi, edi
je 0x4343d2
test ebx, ebx
je 0x4343d2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x437f65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x437f89
cmp dword [edi + 0x54], 0
jne 0x437f89
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041e7e6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00437f26
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44c23d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b99e4]
jne 0x44c247
repz ret
jmp fcn.00456f71
Function at 0x45f52e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x45f60a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x45f5ac
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x45f601
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045f4ce
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x45f5ff
mov edx, dword [ebp - 8]
jmp 0x45f5a3
mov dword [ebp - 0x10], 0
jmp 0x45f625
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
Function at 0x46e5bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004567d8
and dword [ebp - 4], 0
cmp dword [0x4be144], 0
mov ebx, eax
jne 0x46e66c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46e71d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4730
push edi
call esi
test eax, eax
je 0x46e71d
push eax
call fcn.00456766
mov dword [esp], 0x4a4720
push edi
mov dword [0x4be144], eax
call esi
push eax
call fcn.00456766
mov dword [esp], 0x4a470c
push edi
mov dword [0x4be148], eax
call esi
push eax
call fcn.00456766
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4be14c], eax
call esi
push eax
call fcn.00456766
pop ecx
mov dword [0x4be154], eax
test eax, eax
je 0x46e66c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00456766
pop ecx
mov dword [0x4be150], eax
mov eax, dword [0x4be150]
cmp eax, ebx
je 0x46e6c4
cmp dword [0x4be154], ebx
je 0x46e6c4
push eax
call fcn.004567e1
push dword [0x4be154]
mov esi, eax
call fcn.004567e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46e6c4
test edi, edi
je 0x46e6c4
call esi
test eax, eax
je 0x46e6bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46e6bb
test byte [ebp - 0xc], 1
jne 0x46e6c4
or dword [ebp + 0x10], 0x200000
jmp 0x46e6fd
mov eax, dword [0x4be148]
cmp eax, ebx
je 0x46e6fd
push eax
call fcn.004567e1
pop ecx
test eax, eax
je 0x46e6fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46e6fd
mov eax, dword [0x4be14c]
cmp eax, ebx
je 0x46e6fd
push eax
call fcn.004567e1
pop ecx
test eax, eax
je 0x46e6fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4be144]
call fcn.004567e1
pop ecx
test eax, eax
je 0x46e71d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46e71f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10188487
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b4650]
jne 0x10188491
repz ret
jmp fcn.10189f7b

Function at 0x1018b26f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1018858c
and dword [ebp - 4], 0
cmp dword [0x101b6388], 0
mov ebx, eax
jne 0x1018b320
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1018b3d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1018b3d1
push eax
call fcn.1018851a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b6388], eax
call esi
push eax
call fcn.1018851a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b638c], eax
call esi
push eax
call fcn.1018851a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b6390], eax
call esi
push eax
call fcn.1018851a
pop ecx
mov dword [0x101b6398], eax
test eax, eax
je 0x1018b320
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1018851a
pop ecx
mov dword [0x101b6394], eax
mov eax, dword [0x101b6394]
cmp eax, ebx
je 0x1018b378
cmp dword [0x101b6398], ebx
je 0x1018b378
push eax
call fcn.10188595
push dword [0x101b6398]
mov esi, eax
call fcn.10188595
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1018b378
test edi, edi
je 0x1018b378
call esi
test eax, eax
je 0x1018b36f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1018b36f
test byte [ebp - 0xc], 1
jne 0x1018b378
or dword [ebp + 0x10], 0x200000
jmp 0x1018b3b1
mov eax, dword [0x101b638c]
cmp eax, ebx
je 0x1018b3b1
push eax
call fcn.10188595
pop ecx
test eax, eax
je 0x1018b3b1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1018b3b1
mov eax, dword [0x101b6390]
cmp eax, ebx
je 0x1018b3b1
push eax
call fcn.10188595
pop ecx
test eax, eax
je 0x1018b3b1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b6388]
call fcn.10188595
pop ecx
test eax, eax
je 0x1018b3d1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1018b3d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1018cd75
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1018dd91
xor ecx, ecx
mov edx, eax
mov esi, dword [0x101b40d0]
add esi, 0x1e9f
mov dword [0x101b40d4], esi
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1018cdc3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x101b40d0], 0x1ee2
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1018cedc
jmp 0x1018ce45
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x1018ce86
jmp 0x1018ce59
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1018cdfe
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x1018ce29
mov al, byte [ebp - 0x3d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x3c]
add edx, 1
mov ah, byte [ebp - 0x3e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x34], edx
jne 0x1018cdfe
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1018ceb9
jmp 0x1018ce8f
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x4c]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], eax
jb 0x1018ce29
jmp 0x1018cedc
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x101b40d0], 0xe82
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018cfb5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b40d0], 0x1094
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019c0cd]
mov dh, byte [eax + 0x1019c09e]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1018cfd7
lea eax, [ebp - 0x24]
mov dword [0x101b40d4], 0x2682
mov dword [0x101b40d0], 0x1830
mov dword [ebp - 0x34], eax
call fcn.1018cefe
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1018cc4b
cmp eax, 0
mov dword [ebp - 0x38], eax
jne 0x1018d041
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101b40d0], 0x1666
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1018d8c8
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], ecx
mov dword [0x101b40d4], 0x225e
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x40], ecx
mov dword [0x101b40d0], 0x6c0
add ecx, 0x1a03
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1018d0e0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1018d328
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x101b40d4], 0x350
mov dword [ebp - 4], 0
mov dword [0x101b40d0], 0x1212
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1018d3d8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1018d428
jmp 0x1018d45a
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x1018d3d8
jmp 0x1018d3b7
mov dword [0x101b40d0], 0xb66
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1018d368
jmp 0x1018d45a
mov eax, dword [ebp - 0x1c]
mov dword [0x101b40d4], 0x17f8
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1018d3f0
jmp 0x1018d45a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1018d3b7
jmp 0x1018d380
mov dword [0x101b40d0], 0xf85
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1018d45a
mov dword [0x101b40d0], 0x2175
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1018d399
jmp 0x1018d45a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1018d45a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x1018d45a
mov eax, 1
mov dword [0x101b40d4], 0xeaf
mov dword [ebp - 0x20], eax
jmp 0x1018d469
xor eax, eax
mov dword [0x101b40d0], 0xda6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1018db3a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b40d0], 0x1f4f
mov dword [0x101b40dc], 0
mov byte [0x101b40e0], 0
mov dword [0x101b40d8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101b40d8]
add eax, 1
mov dword [0x101b40d8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1018db7f
xor eax, eax
mov ecx, dword [0x101b40d0]
add ecx, 0x1879
mov dword [0x101b40d4], ecx
mov dword [0x101b40d8], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101b40e4], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b40dc]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b40e4], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x101b40dc], edx
mov dword [0x101b40d4], 0x9a3
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b40e0], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b40e0]
mov esi, dword [0x101b40dc]
mov byte [ebx + esi], cl
mov esi, dword [0x101b40d8]
add esi, 1
mov dword [0x101b40d8], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1018dbc6
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018defd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101b40d8], 0
mov dword [0x101b40dc], 0
mov dword [0x101b40e8], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1018e084
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov dword [0x101b40d0], 0x1117
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101b40d8], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101b40dc], edx
mov dword [0x101b40d4], 0x1d4a
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x101b40e0], cl
mov dword [0x101b40d4], 0xde
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x101b40d0]
add edx, 0xfffff139
mov dword [0x101b40d0], edx
mov cl, byte [0x101b40e0]
mov edx, dword [0x101b40dc]
mov byte [ebx + edx], cl
mov edx, dword [0x101b40d8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b40dc]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x101b40d4]
mov esi, edx
add esi, 0xffffed9e
mov dword [0x101b40d0], esi
and ecx, 0xff
mov dword [0x101b40e8], ecx
add edx, 0xffffd6c7
mov dword [0x101b40d4], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x101b40d0], 0x1c45
xor ch, cl
mov byte [0x101b40ec], ch
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x101b40d4], 0x1677
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1018e084
mov eax, dword [0x101b40dc]
mov ecx, dword [0x101b40d8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1018df56
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret