joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4437b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45dc64]
cmp byte [eax + 0xc], 0
je 0x443921
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44391a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x461544], 0
jne 0x443808
push 0x443928
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443930
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461544], eax
cmp dword [0x45d5ac], 0
jne 0x443903
push 0x443940
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45d5ac], eax
cmp dword [0x45d5ac], 0
je 0x443903
push 0x44394c
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461548], eax
push 0x44395c
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46154c], eax
push 0x443970
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461550], eax
push 0x443988
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461554], eax
push 0x4439a0
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461558], eax
push 0x4439b4
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46155c], eax
push 0x4439cc
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461560], eax
push 0x4439e4
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461564], eax
push 0x443a00
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461568], eax
push 0x443a0c
mov eax, dword [0x45d5ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46156c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443921
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x448f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x448fe4]
test si, 4
je 0x448fa5
or bl, 1
test si, 8
je 0x448faf
or bl, 4
test si, 1
je 0x448fb9
or bl, 8
test si, 2
je 0x448fc3
or bl, 0x10
test si, 0x10
je 0x448fcd
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448fdc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448fe8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449024]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449002
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449011
or bl, 4
test esi, 0x20000000
je 0x44901c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4506d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4506ea
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f48
mov eax, dword [0x45d90c]
mov dword [eax + 4], ebx
mov dword [eax], 0x450a7c
mov eax, dword [0x45d918]
mov dword [eax + 4], ebx
mov dword [eax], 0x450a88
mov eax, ebx
call fcn.00450a94
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c52c
push eax
push 0
push 0
mov eax, dword [0x45da78]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dabc]
call fcn.0041efdc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dabc]
call fcn.0041efdc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dabc]
call fcn.0041efdc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450ec4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d94
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d94
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450827
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450b78
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450d04
mov dl, 1
mov eax, dword [0x412168]
call fcn.00403804
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450cf3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443b10
test al, al
je 0x450ce6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450d34
lea eax, [ebp - 0x254]
call fcn.004091f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450ce6
xor eax, eax
push ebp
push 0x450cdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450d6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450cc8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450cc8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450ce6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450be9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415e48
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450d2a
lea eax, [ebp - 0x260]
call fcn.00404648
ret

Function at 0x45169c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46157c]
cmp byte [eax + 0xad], 0
jne 0x45170d
cmp dword [0x461594], 0
jne 0x4516ce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451658
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461594], eax
cmp dword [0x461590], 0
jne 0x4516e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461590], eax
cmp dword [0x461598], 0
jne 0x45170d
push esp
push 0
push 0
push 0x4515fc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x461598], eax
pop edx
ret
Function at 0x4518e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4518f7
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f48
mov eax, dword [0x45da5c]
cmp word [eax + 2], 0
jne 0x45191f
mov eax, dword [0x45da5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453390
mov eax, dword [0x45db0c]
cmp word [eax + 2], 0
jne 0x451939
mov eax, dword [0x45db0c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045359c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.00403804
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e298]
call fcn.004240e0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451af0
mov eax, dword [0x45d978]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004244b4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453c5c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45d978]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c900
test eax, eax
je 0x451a40
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ba8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c934
test eax, eax
je 0x451a54
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x452ef0
call fcn.0041b0c4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45d86c]
cmp byte [eax], 0
jne 0x451aa5
mov eax, ebx
call fcn.00451c34
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00453e38
mov eax, ebx
call fcn.00454998
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451ae5
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451eb4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46157c]
cmp dword [eax + 0x30], 0
je 0x451f5e
cmp dword [ebx + 0x94], 0
jne 0x451f58
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451e44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451f58
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451f1e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451f58
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004140f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451f2d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452c78
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452cad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404738
jmp 0x452cba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040469c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45401c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45408a
mov eax, esi
call fcn.0043e918
test al, al
je 0x45408a
mov eax, dword [ebx + 0x84]
call fcn.0043e578
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45408a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45407e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e578
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004369e4
jmp 0x45408a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00453e58
pop esi
pop ebx
ret
Function at 0x454edc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
mov eax, dword [ebp - 8]
call fcn.00404afc
xor eax, eax
push ebp
push 0x454fad
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
push esi
call sub.kernel32.dll_LoadLibraryW
test eax, eax
push esi
call sub.kernel32.dll_GetModuleHandleW
mov dword [0x46161c], eax
mov eax, dword [ebp - 8]
call fcn.00404b0c
push eax
mov eax, dword [0x46161c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461620], eax
push 0x461618
push 0x40
push 0x3b9aca03
push 0x461620
call sub.kernel32.dll_VirtualProtect
mov edx, 0x461620
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00402e7c
mov edx, 0x461620
mov eax, 0x45d764
mov ecx, 4
call fcn.00454ec0
push 0x461618
push 4
push sub.kernel32.dll_GetCPInfo
mov eax, dword [0x461620]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454fb4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040466c
ret
Function at 0x43d2d1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43d2ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d31d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043d23b
jmp 0x43d31d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43d31d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043d23b
test edi, edi
mov eax, edi
jne 0x43d307
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x566c94]
test ecx, ecx
je 0x43d3d0
jmp 0x43d2d0
ret 8
Function at 0x10001000
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x31c
xor eax, eax
push ebx
mov dword [esp + 5], eax
push ebp
mov dword [esp + 0xd], eax
push esi
mov dword [esp + 0x15], eax
push edi
xor ebx, ebx
mov word [esp + 0x1d], ax
mov ecx, 0x40
lea edi, [esp + 0x229]
mov byte [esp + 0x1f], al
mov byte [esp + 0x228], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esp + 0x10], bl
stosb byte es:[edi], al
mov eax, dword [0x10009bf8]
cmp eax, ebx
jne 0x10001115
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.lpk.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x10009bf8], eax
jne 0x10001115
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0x1000709c
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x124]
push 0x10
push str.MemCode
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x10009bf8]
cmp eax, ebx
jne 0x10001115
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esp + 0x330]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
jne 0x10001176
mov ecx, esi
shr ecx, 0x10
jne 0x10001145
push esi
lea edx, [esp + 0x14]
push 0x10007090
push edx
call ebp
add esp, 0xc
lea esi, [esp + 0x10]
push esi
lea eax, [esp + 0x22c]
push 0x10007068
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x228]
push 0x10
push str.MemCode
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret 4
Function at 0x10001190
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 1
sub esp, 0x158
cmp ecx, eax
jne 0x10001241
push esi
lea eax, [esp + 0x58]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x58]
push 0x1000710c
push ecx
lea esi, [esp + 0x60]
call fcn.10001340
add esp, 8
test eax, eax
jbe 0x100011e9
lea esi, [eax + 1]
push 0x1000710c
push esi
call fcn.10001340
add esp, 8
test eax, eax
ja 0x100011d4
push str.explorer.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop esi
je 0x10001205
xor eax, eax
add esp, 0x158
ret 0xc
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.C:Program_FilesComPlus_Applications_takesoft.exe
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
add esp, 0x158
ret 0xc
Function at 0x685a2b8f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x69185018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x69185018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x685a2c7a
jmp 0x685a2d45
jmp 0x685a2e10
jmp 0x685a2edb
jmp 0x685a2fa6
jmp 0x685a3071
jmp 0x685a313c
jmp 0x685a3207
jmp 0x685a32d2
jmp 0x685a339d
mov dword [ebp - 0x14], 0
jmp 0x685a346f
jmp 0x685a353a
jmp 0x685a3605
jmp 0x685a36d0
jmp 0x685a379b
jmp 0x685a3866
jmp 0x685a3931
jmp 0x685a39fc
jmp 0x685a3ac7
jmp 0x685a3b92
mov dword [ebp - 0x18], 0
jmp 0x685a3c64
jmp 0x685a3d2f
jmp 0x685a3dfa
jmp 0x685a3ec5
jmp 0x685a3f90
jmp 0x685a405b
jmp 0x685a4126
jmp 0x685a41f1
jmp 0x685a42bc
jmp 0x685a4387
mov dword [ebp - 0x10], 0
jmp 0x685a4459
jmp 0x685a4524
jmp 0x685a45ef
jmp 0x685a46ba
jmp 0x685a4785
jmp 0x685a4850
jmp 0x685a491b
jmp 0x685a49e6
jmp 0x685a4ab1
jmp 0x685a4b7c
mov dword [ebp - 0x10], 0
jmp 0x685a7376
jmp 0x685a4c53
jmp 0x685a4d1e
jmp 0x685a4de9
jmp 0x685a4eb4
jmp 0x685a4f7f
jmp 0x685a504a
jmp 0x685a5115
jmp 0x685a51e0
jmp 0x685a52ab
jmp 0x685a5376
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x69185014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x685a5452
jmp 0x685a551d
jmp 0x685a55e8
jmp 0x685a56b3
jmp 0x685a577e
jmp 0x685a5849
jmp 0x685a5914
jmp 0x685a59df
jmp 0x685a5aaa
jmp 0x685a5b75
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6918501c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x685a5c51
jmp 0x685a5d1c
jmp 0x685a5de7
jmp 0x685a5eb2
jmp 0x685a5f7d
jmp 0x685a6048
jmp 0x685a6113
jmp 0x685a61de
jmp 0x685a62a9
jmp 0x685a6374
mov eax, dword [0x69185008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x685a645d
jmp 0x685a6528
jmp 0x685a65f3
jmp 0x685a66be
jmp 0x685a6789
jmp 0x685a6854
jmp 0x685a691f
jmp 0x685a69ea
jmp 0x685a6ab5
jmp 0x685a6b80
add dword [ebp - 0xc], 0x28
jmp 0x685a6c4f
jmp 0x685a6d1a
jmp 0x685a6de5
jmp 0x685a6eb0
jmp 0x685a6f7b
jmp 0x685a7046
jmp 0x685a7111
jmp 0x685a71dc
jmp 0x685a72a7
jmp 0x685a7372
add dword [ebp - 0x10], 1
mov eax, dword [0x69185018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x685a4b88
nop
leave
ret

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x5da466
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x5da504
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x5da504
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5da504
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5da504
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x50]
mov dword [ebp - 8], ebx
push edi
push 4
push 0x2000
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d2d2f]
pop edi
test eax, eax
jne 0x5da4f7
push edi
push 4
push 0x2000
push dword [ebp - 8]
push 0
call dword [edi + 0x122d2d2f]
pop edi
test eax, eax
je 0x5da504
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5da589
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5da635
push ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jae 0x5da5ca
mov ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
push ecx
push edi
push 4
push 0x1000
push dword [ebp - 4]
push eax
call dword [edi + 0x122d2d2f]
pop edi
pop ecx
test eax, eax
je 0x5da628
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5da608
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
lea eax, [ebx + 0x10]
cmp dword [eax + 4], 0
je 0x5da61d
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5da5b1
pop ecx
mov dword [ebp - 0x10], 0
jmp 0x5da63c
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5da856
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5da8d0
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x24]
push edx
call fcn.005da7fb
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x1247995f]
pop edi
test eax, eax
jne 0x5da8c6
pop ecx
jmp 0x5da8d7
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5da87f
mov dword [ebp - 0x18], 1
popal
mov eax, dword [ebp - 0x18]
leave
ret 4