joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4138d8
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x413956
cmp word [esi + 8], 2
jne 0x413938
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x413938
mov edi, dword [esi + 0xc]
jmp 0x413932
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00413871
mov dword [ebp], eax
test eax, eax
je 0x413951
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x413912
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0043fea3
add esp, 0x10
xor eax, eax
jmp 0x413974
push 8
pop eax
jmp 0x413974
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x413972
sub eax, 1
je 0x413983
sub eax, 1
je 0x41397c
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x2afb
jmp 0x413974
mov eax, 0x2afa
jmp 0x413974

Function at 0x413f8a
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x474a80], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x413b0e
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x413db4
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00413ad3
jne 0x4140e1
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4140d7
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0043feae
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0043ff08
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test esi, esi
je 0x41404a
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x414046
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x41409b
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0043feae
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0043ff08
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4140d3
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x414097
push esi
call ebp
mov esi, edi
test esi, esi
je 0x4140d3
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x4140b8
inc ebx
cmp ebx, 3
jl 0x41409d
jmp 0x4140bd
push esi
call ebp
mov esi, edi
test esi, esi
je 0x4140d3
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x46f9fc], eax
add edi, 8
cmp edi, 0x18
jl 0x4140c1
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x474a80], 1
mov eax, dword [0x46f9fc]
add esp, 0x22c
ret
Function at 0x41615c
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
push str._sysinfo.txt
push str.temp
call fcn.0043a51f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040415e
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402ff4
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401ee9
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x46a770
lea ecx, [ebp - 0x30]
call fcn.0040ae47
pop ecx
mov ecx, eax
call fcn.00401ee4
push eax
push str.dxdiag
push 0x4640d8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.00401ee9
lea ecx, [ebp - 0x18]
call fcn.004020bf
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00401ee4
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.0041a97c
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.0040619c
test al, al
je 0x416203
cmp esi, 0x4b0
jl 0x4161d4
lea ecx, [ebp - 0x18]
call fcn.0040619c
test al, al
jne 0x416293
lea ecx, [ebp - 0x48]
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.004046d7
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004048a8
test al, al
je 0x416288
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
push 0x472ec0
call fcn.00402f11
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00402ef0
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.00404a81
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0xc8]
call fcn.00404e06
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.00404ec2
lea ecx, [ebp - 0x18]
call fcn.00401fb8
lea ecx, [ebp - 0x48]
call fcn.00401ee9
lea ecx, [ebp + 8]
call fcn.00401fb8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4167bf
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x84]
push ebx
push esi
push edi
push eax
push 0x46408c
call fcn.00402073
push eax
push str.Temp
call fcn.0043a52a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.004052dd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00402ef0
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00401fb8
lea ecx, [ebp - 0x84]
call fcn.00401fb8
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00401f8b
push eax
lea ecx, [ebp - 0x138]
call fcn.0040efa4
lea ecx, [ebp - 0x138]
call fcn.004169fc
test al, al
je 0x4168f0
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.00416a0c
lea ecx, [ebp - 0x138]
call fcn.0040ef55
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], pe_nt_image_headers32
call fcn.00401f8b
movaps xmm0, xmmword [0x46b1a0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
mov esi, 0x464074
mov edi, 0x473578
setne bl
cmp dword [ebp - 0x1c], 0
je 0x4168da
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402073
push 0x70
mov ecx, edi
call fcn.00404a81
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp bl, 1
jne 0x41690b
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402073
push 0x6e
mov ecx, edi
jmp 0x416906
sub esp, 0x18
mov ecx, esp
push 0x464074
call fcn.00402073
push 0x6f
mov ecx, 0x473578
call fcn.00404a81
lea ecx, [ebp - 0x138]
call fcn.0040e77b
lea ecx, [ebp - 0x18]
call fcn.00401fb8
lea ecx, [ebp + 8]
call fcn.00401fb8
lea ecx, [ebp + 0x20]
call fcn.00401fb8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4191f3
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ee4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41922b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419249
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41925a
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x11
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf003f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ee4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419295
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4192e6
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4192b6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x4192e6
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x4192b6
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 3
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4192f7
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push pe_nt_image_headers32
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ee4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41932f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41934d
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41935e
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push pe_nt_image_headers32
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ee4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419396
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4193b4
lea eax, [ebp - 0x1c]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4193c5
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
mov byte [ebp - 1], cl
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 2
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ee4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4193fe
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419442
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0x41941b
sub eax, 1
je 0x419417
sub eax, 1
jne 0x41941e
push 3
jmp 0x41941d
push 2
jmp 0x41941d
push 4
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419464
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea ecx, [esp + 4]
mov dl, 0x30
push esi
push str.alarm.wav
call fcn.0040ce2e
pop ecx
lea ecx, [esp + 8]
call fcn.00401ee4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4194ef
mov esi, 0x4738b0
mov edx, 0x464074
mov ecx, esi
call fcn.00405ae5
test al, al
je 0x4194dd
sub esp, 0x18
cmp byte [0x472aca], 0
mov ecx, esp
push 0x46a8e0
je 0x4194c7
call fcn.00402073
mov ecx, 0x4738c8
jmp 0x4194d1
call fcn.00402073
mov ecx, 0x4734e0
push 0xa1
call fcn.00404a81
jmp 0x4194ff
lea ecx, [esp + 8]
call fcn.00401ee4
mov edx, eax
mov ecx, esi
call fcn.0041a9e9
lea ecx, [esp + 8]
call fcn.00401ee4
mov ecx, eax
call fcn.0041950d
lea ecx, [esp + 8]
call fcn.00401ee9
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419562
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0x4738b0
mov bl, dl
call fcn.00401fa0
test bl, bl
je 0x41957a
pop ebx
jmp fcn.00419464
mov byte [0x472acb], 1
pop ebx
ret
Function at 0x419794
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
push ecx
lea ecx, [esp + 0x98]
call fcn.004199e9
cmp eax, 0xffffffff
jne 0x4197e1
lea ecx, [esp + 0x90]
call fcn.00401ee4
push eax
mov dl, 0x30
lea ecx, [esp + 0x14]
call fcn.0040ce7a
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00401ef3
lea ecx, [esp + 0x10]
call fcn.00401ee9
mov ecx, esi
call fcn.0040245c
lea ecx, [esp + 0x90]
test eax, eax
je 0x4198d5
call fcn.00401ee4
mov edx, eax
mov ecx, esi
call fcn.0041a9e9
push str._alias_audio
mov edx, edi
lea ecx, [esp + 0x74]
call fcn.0041a337
push eax
lea eax, [esp + 0x98]
mov edx, str.open__
push str.__type
push eax
lea ecx, [esp + 0x68]
call fcn.0040ae47
pop ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00402ff4
pop ecx
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00402ff4
pop ecx
lea ecx, [esp + 0x10]
call fcn.00401ee9
lea ecx, [esp + 0x40]
call fcn.00401ee9
lea ecx, [esp + 0x58]
call fcn.00401ee9
lea ecx, [esp + 0x70]
call fcn.00401ee9
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push ebx
push ebx
call fcn.00401ee4
push eax
call dword [sym.imp.WINMM.dll_mciSendStringW]
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
push ebx
push ebx
push ebx
push str.play_audio
call esi
sub esp, 0x18
mov edi, 0x464074
mov ecx, esp
push edi
call fcn.00402073
mov ebp, 0x4738c8
push 0xa9
mov ecx, ebp
call fcn.00404a81
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x472acc], eax
jmp 0x419999
call fcn.00401ee4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419805
sub esp, 0x18
mov ecx, esp
push 0x464074
call fcn.00402073
push 0xa8
mov ecx, 0x4738c8
call fcn.00404a81
jmp 0x4199d5
cmp byte [0x472ac9], bl
je 0x419924
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0x472ac9], bl
cmp byte [0x472ac8], bl
je 0x41993c
push ebx
push ebx
push ebx
push str.resume_audio
call esi
mov byte [0x472ac8], bl
push ebx
push 0x14
lea eax, [esp + 0x18]
push eax
push str.status_audio_mode
call esi
lea eax, [esp + 0x10]
push str.stopped
push eax
call fcn.0043e170
pop ecx
pop ecx
test eax, eax
jne 0x41996c
push dword [0x472acc]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x1f4
push dword [0x472acc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x419994
push dword [0x472acc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
jmp 0x4198cb
mov eax, dword [0x472acc]
test eax, eax
jne 0x41990c
push ebx
push ebx
push ebx
push str.stop_audio
call esi
push ebx
push ebx
push ebx
push str.close_audio
call esi
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402073
push 0xaa
mov ecx, ebp
call fcn.00404a81
lea ecx, [esp + 0x28]
call fcn.00401ee9
lea ecx, [esp + 0x90]
call fcn.00401ee9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x419acd
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004020bf
xor esi, esi
push 0xffff
mov dword [esp + 0x14], esi
call fcn.0043a1a5
pop ecx
push esi
push esi
push esi
push 1
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
push esi
push closesocket
push esi
push esi
mov ebp, eax
push str.http:__geoplugin.net_json.gp
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0xffff
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x419b59
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00402097
push eax
mov ecx, ebx
call fcn.00403356
lea ecx, [esp + 0x18]
call fcn.00401fb8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x419b62
test ecx, ecx
jne 0x419b12
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
push edi
call fcn.0043a1a0
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret

Function at 0x41a143
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x41a1da
push edi
push edi
lea eax, [ebp - 8]
push eax
push ecx
push edi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x41a1da
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x5c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x41a1d1
mov esi, dword [ebp - 0x54]
inc esi
push esi
mov dword [ebp - 0x54], esi
call fcn.0043a1a5
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x41a1d1
push 8
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00435330
push esi
push edi
push dword [ebx]
call fcn.00435330
add esp, 0x18
lea eax, [esi - 1]
mov esi, dword [ebp + 8]
push edi
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push edi
push dword [esi]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
inc edi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a1e3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push esi
push 0x200
push 0
push eax
mov esi, ecx
call fcn.00435330
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x200]
mov ecx, esi
push eax
call fcn.0040415e
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a256
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a27e
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

Function at 0x41a788
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
lea eax, [ebp - 0x410]
push ebx
push esi
push edi
mov edi, ecx
push edi
push eax
call fcn.0043dc74
lea eax, [ebp - 0x410]
push 0x46a83c
push eax
call fcn.0043dc96
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0043dc74
lea eax, [ebp - 0x208]
push 0x4645d8
push eax
call fcn.0043dc96
add esp, 0x20
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a8df
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0043dc74
pop ecx
pop ecx
mov bl, 1
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x41a8b3
lea ecx, [ebp - 0x634]
call fcn.0041a75a
test eax, eax
jne 0x41a8c0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0043dc96
test byte [ebp - 0x660], 0x10
pop ecx
pop ecx
je 0x41a870
lea ecx, [ebp - 0x208]
call fcn.0041a788
test eax, eax
je 0x41a8d8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x41a89c
test byte [ebp - 0x660], 1
je 0x41a88b
push 0x80
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41a8d8
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0043dc74
pop ecx
pop ecx
jmp 0x41a8c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x41a8d8
xor bl, bl
test bl, bl
jne 0x41a80b
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x41a8e1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a8e8
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
xor ebx, ebx
mov ebp, ecx
push edi
mov edi, edx
sub eax, ebx
je 0x41a911
sub eax, 1
jne 0x41a907
push 4
pop eax
mov ecx, eax
jmp 0x41a919
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
jmp 0x41a919
push 2
mov eax, 0x40000000
pop ecx
push ebx
push 0x80
push ecx
push ebx
push ebx
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a938
xor al, al
jmp 0x41a976
cmp dword [esp + 0x1c], 1
jne 0x41a958
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41a958
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41a934
push ebx
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41a96d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41a97c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
xor ebx, ebx
mov ebp, edx
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41a9a6
xor al, al
jmp 0x41a9e4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov ecx, ebp
push ebx
push esi
call fcn.0040242e
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push esi
mov ecx, ebp
call fcn.00401f8b
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
pop esi
test eax, eax
je 0x41a9db
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41aa0c
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41aa32
xor eax, eax
jmp 0x41aa45
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
ret