joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b20
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540db0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x59ff60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call fcn.00403fd0
add esp, 4
test eax, eax
je 0x403bd6
push esi
call fcn.00403cb0
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x403b77
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x403bab
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push 0x58b0cc
push eax
call fcn.00525173
push esi
call fcn.00403ec0
add esp, 4
push esi
call fcn.00403de0
mov edi, 1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edx, eax
mov dword [0x5a5094], edx
test edx, edx
jne 0x403c02
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x12]
push 0x58b0cc
push eax
call fcn.00525173
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x403c0d
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x403c18
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x403c22
mov ebx, dword [esi]
jmp 0x403c24
mov ebx, esi
push 0
push 0
push 0
push 0
push str.NDIS
push eax
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x5a5098], eax
test eax, eax
je 0x403c69
push eax
call ebx
mov edi, 1
push esi
mov dword [ebp - 0x18], edi
call fcn.00403de0
add esp, 4
push dword [0x5a5094]
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d40
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540dd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x59ff60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.00403ec0
add esp, 4
test eax, eax
je 0x403dc4
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00403cb0
add esp, 4
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [0x5a5098]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403de0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540df0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x59ff60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
call fcn.00403fd0
add esp, 4
test eax, eax
je 0x403eab
cmp dword [esi + 0x14], 0x10
jb 0x403e29
mov eax, dword [esi]
jmp 0x403e2b
mov eax, esi
push eax
call fcn.004039b0
add esp, 4
cmp eax, 4
jne 0x403e50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0
call fcn.00403cb0
add esp, 4
push 0
push 0
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403e87
push 0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00404060
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ec0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540e10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x34], edi
call fcn.00403fd0
add esp, 4
test eax, eax
je 0x403faf
cmp dword [edi + 0x14], 0x10
jb 0x403f0f
mov eax, dword [edi]
jmp 0x403f11
mov eax, edi
push eax
call fcn.004039b0
add esp, 4
cmp eax, 1
jne 0x403f24
jmp 0x403fb1
push edi
mov dword [ebp - 4], 0
call fcn.00403cb0
add esp, 4
lea eax, [ebp - 0x30]
push eax
push 1
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x5a5098]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403f68
push edi
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
call fcn.00403fd0
add esp, 4
test eax, eax
je 0x403fab
lea esi, [ebx + 0x10]
test ebx, ebx
jne 0x403fab
mov ecx, edi
call fcn.004036c0
push eax
call fcn.004039b0
add esp, 4
dec eax
jne 0x403f9b
lea ebx, [eax + 1]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
test esi, esi
jg 0x403f81
mov eax, ebx
jmp 0x403fb1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00525164
mov esp, ebp
pop ebp
ret
Function at 0x405950
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea eax, [ebp - 0x128]
mov dword [ebp - 0x130], 0
push 0
push eax
call fcn.00525c60
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00526ce6
add esp, 8
test eax, eax
jne 0x4059f5
push dword [ebp - 0x124]
push eax
push 0x1fffff
call ebx
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x130]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4059b4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x405a2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525164
mov esp, ebp
pop ebp
ret 4
Function at 0x405ab0
Capabilities:
Check if file exists
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541038
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59ff60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 4], 0
mov esi, esp
push eax
call fcn.00403470
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00405950
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or edi, 0xffffffff
test eax, eax
je 0x405b8f
call fcn.0040a217
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405b30
push 0x80004005
call fcn.00401e00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._c_del__F__Q___s_
push eax
call fcn.00405870
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0
push 0x551d28
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405b8f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405c03
call fcn.0040a217
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405bb8
push 0x80004005
call fcn.00401e00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push str.cmd.exe__c_del__F__Q___s_
push eax
call fcn.00405870
mov esi, dword [ebp - 0x10]
push esi
call fcn.00526b04
add esi, 0xfffffff0
mov byte [ebp - 4], 0
add esp, 0x10
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405c03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x405c24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541238
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x59ff60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ecx
mov ecx, esp
test eax, eax
jne 0x406cf1
push str.Failed_to_open_process_handle__r_n
call fcn.00401bb0
call fcn.00408270
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406de5
push str.Open_Process_OK__r_n
call fcn.00401bb0
call fcn.00408270
add esp, 4
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0xc
push eax
push 1
push 1
lea eax, [ebp - 0x24]
push eax
push 0x2000000
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push ecx
mov ecx, esp
test eax, eax
jne 0x406d5a
push str.Failed_to_DuplicateTokenEx_handle__r_n
call fcn.00401bb0
call fcn.00408270
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406de5
push str.Duplicate_Token_OK__r_n
call fcn.00401bb0
call fcn.00408270
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00525c60
mov eax, dword [ebp + 0xc]
mov edx, 1
mov dword [ebp - 0x78], 0x44
add esp, 0x10
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x406d9f
push 0
lea ecx, [ebp + 0xc]
call fcn.00402330
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x30
push 0
lea ecx, [ebp - 0x24]
push ecx
push ecx
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
setne al
test al, al
jne 0x406dd0
mov ecx, edi
call fcn.004057a0
push ecx
mov ecx, esp
push str.Start_Process_OK__r_n
call fcn.00401bb0
call fcn.00408270
add esp, 4
mov esi, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add esi, 0xfffffff0
movdqu xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
movdqu xmmword [edi], xmm0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e15
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40ae76
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x5416da
call fcn.00527450
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x40aea4
call fcn.00408ec5
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x40ae9f
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40aeec
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.005273d0
push eax
call fcn.004048c0
add esp, 0x14
push ebx
push edi
call fcn.0040ae49
xor eax, eax
jmp 0x40b00d
cmp eax, 0x104
jb 0x40af09
test edi, edi
je 0x40aee5
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004024e0
jmp 0x40aee5
call fcn.0040a217
push eax
lea ecx, [ebp - 0x15c]
call fcn.00401b80
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.0040a7a0
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x40b002
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40af74
push ebx
push edi
call fcn.0040ae49
lea ecx, [esi - 0x10]
call fcn.00402420
jmp 0x40aee5
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x40af90
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x40b002
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40b002
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x40af60
cmp eax, dword [ebp - 0x158]
jbe 0x40af60
lea eax, [ebp - 0x124]
push eax
call fcn.00527500
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x40b015
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.00527a6f
push eax
call fcn.004048c0
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00402420
xor eax, eax
inc eax
call fcn.005273ff
ret 0xc
test edi, edi
je 0x40af67
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004024e0
jmp 0x40af67

Function at 0x40c6c6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x40c6ef
call fcn.0040f5fa
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
je 0x40c71c
push esi
push eax
mov ecx, 0x5a51c8
call fcn.0040d5d4
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0040cbf8
int3
Function at 0x40d7bb
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x840], eax
test edi, edi
je 0x40d8b9
test ecx, ecx
je 0x40d8b9
mov edx, dword [ebp + 0x18]
xor eax, eax
and edx, 0x2e000000
mov dword [ebp - 0x830], 0x824
test dword [ebp + 0x18], 0x90000000
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], eax
je 0x40d853
cmp dword [edi + 0x30], eax
je 0x40d853
test dword [ebp + 0x18], 0x2000000
je 0x40d849
mov dword [ebp - 0x838], 1
jmp 0x40d853
mov dword [ebp - 0x83c], SysReAllocString
push edx
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x40d8ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d8b9
push dword [ebp - 0x830]
call fcn.00408de4
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40d8b9
push dword [ebp - 0x844]
lea eax, [ebp - 0x830]
mov dword [ebp - 0x82c], 1
push eax
push ebx
push dword [ebp - 0x834]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x40d8d4
push ebx
call fcn.00408e11
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525164
mov esp, ebp
pop ebp
ret 0x14
lea ebx, [ebp - 0x828]
push edi
push dword [ebp - 0x83c]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x838], 0
mov dword [ebp - 0x834], eax
je 0x40d935
cmp dword [edi + 0x2c], 0
je 0x40d909
push dword [edi + 0x2c]
call fcn.00527500
pop ecx
cmp eax, 0x824
jae 0x40d957
push 0x2100000
xor eax, eax
push eax
push eax
push dword [edi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
js 0x40d957
cmp dword [edi + 0x2c], 0
jne 0x40d929
xor eax, eax
jmp 0x40d932
push dword [edi + 0x2c]
call fcn.00527500
pop ecx
mov dword [edi + 0x30], eax
cmp dword [ebp - 0x82c], 0
je 0x40d945
push ebx
call fcn.00408e11
pop ecx
mov ecx, dword [ebp - 0x834]
test ecx, ecx
jne 0x40d969
mov dword [esi], 0x1000
jmp 0x40d9c4
cmp dword [ebp - 0x82c], 0
je 0x40d8b9
jmp 0x40d8b2
mov edx, dword [ebp - 0x840]
mov ax, word [edi + 0x18]
mov word [edx], ax
mov eax, dword [edi + 0xc]
dec eax
je 0x40d9be
dec eax
je 0x40d9b6
dec eax
je 0x40d9ae
dec eax
je 0x40d9a6
dec eax
je 0x40d99e
dec eax
je 0x40d996
dec eax
jne 0x40d94f
mov dword [esi], 0x1002
jmp 0x40d9c4
mov dword [esi], 0x1006
jmp 0x40d9c4
mov dword [esi], 0x1001
jmp 0x40d9c4
mov dword [esi], 0x100b
jmp 0x40d9c4
mov dword [esi], 3
jmp 0x40d9c4
mov dword [esi], 2
jmp 0x40d9c4
mov dword [esi], 1
mov eax, ecx
jmp 0x40d8bb
Function at 0x415b06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x415b4b
call fcn.0040f5fa
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415b4b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x415b67
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420c47
mov ebx, eax
test edi, edi
je 0x415b65
test esi, esi
je 0x415b65
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b900
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542086
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0052be60
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1028], ebx
cmp dword [ecx + 0x58], ebx
je 0x41ba34
push ebx
push eax
call fcn.0041ba83
mov ebx, eax
test ebx, ebx
jne 0x41b968
push esi
jmp 0x41ba5c
call fcn.0040a217
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401b80
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1024], eax
test eax, eax
jne 0x41b9f3
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.004023a0
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x101c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1024], eax
call fcn.00409ec3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1024], 0
jne 0x41ba21
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00403470
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402420
jmp 0x41ba63
push esi
mov ecx, edi
call fcn.00401bb0
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x41ba1a
test esi, esi
jne 0x41ba3d
mov esi, 0x551d28
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00401bb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525164
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cd0a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41cd9c
test esi, esi
je 0x41cd9c
push esi
call fcn.00527500
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.00525c60
mov eax, 0x100
add esp, 0x10
cmp ebx, eax
ja 0x41cd81
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x41cd81
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41cd89
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525164
mov esp, ebp
pop ebp
ret 8
call fcn.00408ec5
int3

Function at 0x41f8ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041a1eb
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41f8ea
call fcn.0041facd
mov dword [esi + 0xc], 1
jmp 0x41f8ef
call fcn.0041facd
cmp dword [esi], 0
je 0x41f938
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41f912
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00409ea0
jmp 0x41f923
push 0xff
mov ecx, esi
call fcn.004023a0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00409ec3
jmp 0x41f95c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41f95c
push dword [esi]
push dword [ebp - 4]
call fcn.0041cd0a
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41fa22
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0041facd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41fa6a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409ea0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409ec3
jmp 0x41fa75
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041cd0a
pop edi
pop esi
pop ebp
ret 0xc