joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareActivisionSpider_Man
push 0x80000002
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5155da
lea ecx, [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.DisplayDevice
push eax
call esi
test eax, eax
jne 0x5155bc
mov eax, dword [esp + 4]
test eax, eax
jbe 0x5155bc
lea ecx, [esp + 0xc]
push ecx
call fcn.0052b0cc
add esp, 4
lea edx, [esp + 4]
mov dword [0x2e09810], eax
mov eax, dword [esp + 8]
push edx
push 0x2e09710
push 0
push 0
push str.DisplayDeviceName
push eax
mov dword [esp + 0x1c], 0x80
call esi
test eax, eax
je 0x5155cd
mov eax, dword [esp + 4]
test eax, eax
jbe 0x5155cd
jmp 0x5155c6
mov dword [0x2e09810], 0xffffffff
mov byte [0x2e09710], 0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5155eb
mov dword [0x2e09810], 0xffffffff
mov byte [0x2e09710], 0
push edi
mov edi, 0x2e09710
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x24]
not ecx
dec ecx
mov edi, edx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp esi, ecx
jne 0x515644
mov esi, 0x2e09710
mov eax, edx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x51563b
test cl, cl
je 0x515637
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x51563b
add eax, 2
add esi, 2
test cl, cl
jne 0x515617
xor eax, eax
jmp 0x515640
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x515670
mov eax, dword [0x6b78f8]
test eax, eax
jne 0x51566b
mov dword [0x2e096f8], 0x280
mov dword [0x2e0970c], 0x1e0
mov dword [0x2e098e4], 0x10
call fcn.00515850
pop esi
add esp, 0x18
ret
Function at 0x515d80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push 0
call fcn.005163e0
add esp, 4
xor ecx, ecx
mov edx, ecx
add ecx, 2
cmp ecx, 0x1e
jl 0x515d8f
test al, al
je 0x515e4b
mov eax, dword [0x2e098c0]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x2e098c0]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [0x2e098e8], 1
call ebp
test eax, eax
je 0x515e40
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x2e098c0]
push 0
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call esi
test eax, eax
je 0x515e40
cmp eax, 0xffffffff
je 0x515e40
mov eax, dword [esp + 0x14]
cmp eax, 0x104
je 0x515e28
cmp eax, 0x105
je 0x515e28
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [0x2e098c0]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
test eax, eax
jne 0x515dee
push 1
call fcn.0052a101
pop edi
pop esi
pop ebp
pop ebx
cmp edx, 0x1c
je 0x515e57
push 1
call fcn.0052a101
add esp, 0x1c
ret
Function at 0x516250
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
push 0x3a
push ebx
call fcn.0052b3d8
add esp, 8
test eax, eax
jne 0x516300
push 2
push 0x569648
push ebx
call fcn.0052b3a0
add esp, 0xc
test eax, eax
je 0x516300
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.0052b320
mov byte [eax], 0
mov edi, 0x568094
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x51631e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
push 0
push 3
rep movsb byte es:[edi], byte [esi]
push 0
push 1
lea ecx, [esp + 0x28]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5163c9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 4
jb 0x5163c2
test bl, 3
jne 0x5163c2
mov esi, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
jb 0x5163c9
mov eax, ebx
shr eax, 2
mov dword [esi], eax
call fcn.004fc230
add ebx, 0xfffffffc
xor ecx, ecx
test ebx, ebx
mov edi, eax
jbe 0x5163b5
mov eax, ecx
xor edx, edx
mov ebp, 0x190
div ebp
mov al, byte [ecx + esi + 4]
mov dl, byte [edx + edi]
xor al, dl
mov byte [ecx + esi + 4], al
inc ecx
cmp ecx, ebx
jb 0x516398
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x51ad70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51ad7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x51ae7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x53d114]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53d114]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53d114]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53d114]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53d114]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53d114]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53d114]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x53d114]
xor eax, edx
inc ecx
dec edi
jne 0x51ad96
pop edi
test esi, esi
je 0x51aea0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x53d114]
xor eax, edx
inc ecx
dec esi
jne 0x51ae82
pop esi
pop ebx
not eax
ret

Function at 0x51b1d0
Capabilities:
Terminate process

Disassembly:
call fcn.0051cca0
push eax
mov eax, dword [esp + 8]
push eax
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_acm.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__21_March_2000._n_n
push 0x56d0b0
call fcn.0052bdc5
add esp, 0x10
push 3
call fcn.0052a101
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x51b750
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x51b791
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x56ad48]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x51b76f
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x51b83f
dec esi
je 0x51b81e
dec esi
je 0x51b804
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x51b827
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x532f4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x56ddf8
cmp edx, dword [eax]
je 0x532f6e
add eax, 8
inc ecx
cmp eax, 0x56de88
jl 0x532f5f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x56ddf8]
jne 0x53309c
mov eax, dword [0x2e09e58]
cmp eax, 1
je 0x533076
test eax, eax
jne 0x532f9f
cmp dword [0x56d064], 1
je 0x533076
cmp edx, 0xfc
je 0x53309c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x532fd6
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0052b5c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0052b870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x533019
lea eax, [ebp - 0x1a4]
push eax
call fcn.0052b870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x53e824
push edi
call fcn.00529e10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0052b5c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0052b5d0
lea eax, [ebp - 0xa0]
push 0x53e804
push eax
call fcn.0052b5d0
push dword [esi + 0x56ddfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0052b5d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0053495c
add esp, 0x2c
pop edi
jmp 0x53309c
lea eax, [ebp + 8]
lea esi, [esi + 0x56ddfc]
push 0
push eax
push dword [esi]
call fcn.0052b870
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403f00
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x403f25
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x94
push 0x42bba0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x403f1f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403f1f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403f1f
push ebx
push 0
push 0
push dword [ebp - 0xc]
xor bl, bl
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 4]
mov ecx, 1
cmovne ebx, ecx
test eax, eax
je 0x403fa7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x403fb7
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push str.C:Windows_system32_rdpffg.log
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403ff5
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x14]
push esi
push 0x40
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
jne 0x404036
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [edi], 0
test eax, eax
jle 0x40407c
nop word [eax + eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push dword [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
test eax, eax
je 0x404079
add dword [edi], eax
sub esi, eax
mov ecx, dword [ebp - 4]
test esi, esi
jg 0x404050
mov eax, dword [ebp - 0xc]
cmp dword [edi], eax
pop edi
push ebx
je 0x40409b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push dword [edx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.00410900
push str.Diagnostics.txt
push esi
push 0x42784c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
add esp, 0x20
push 0
push 0
push 3
push 0
push 1
push closesocket
push str.C:Windows_system32_rdpffg.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40651d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
mov edx, 0x153
push eax
call fcn.00406530
add esp, 4
test al, al
je 0x40651d
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00404440
test al, al
je 0x40651d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00410900
push esi
push str._sx86.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045b0
push esi
push str._sx64.dll
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x20c]
mov edx, 0x1a7
push eax
call fcn.00406530
add esp, 0x3c
test al, al
je 0x40651d
lea eax, [ebp - 0x310]
mov edx, 0x1ac
push eax
call fcn.00406530
add esp, 4
test al, al
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x406530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
call fcn.004040b0
add esp, 8
test al, al
jne 0x40655c
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp - 4]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4065a6
push 0
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4065ae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4070a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x2ae0995
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004340f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x2ae0a45
nop
test eax, eax
je 0x407289
push 4
push 0x1000
push 4
push 0
call 0x2ae02a3
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x2aa00b6
nop
test eax, eax
je 0x407289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x458df8
push dword [esp + 0x30]
call 0x2aa046e
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4071ac
push 0x458dfc
push 0x458e14
call 0x2ad0e63
nop
push eax
call 0x2aa0233
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x2aa0314
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x407289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x2ae089b
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x407243
mov dword [esp + 0xc], eax
call fcn.00406ef0
push eax
call 0x2ad009f
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x2ae089b
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4071f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x2ae089b
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x2aa06af
nop
push dword [esp + 0x24]
call 0x2ad0ed3
nop
push 0x8000
push 0
push esi
call 0x2ae07f4
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cff1
mov esp, ebp
pop ebp
ret
Function at 0x41dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x34114d5
nop
test eax, eax
je 0x41dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x41dd07
cmp dword [ecx + 0xe8], 0
je 0x41dd07
mov al, 1
ret
xor al, al
ret
Function at 0x402450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x4336cc], 3
mov dword [0x4336d4], esi
mov dword [0x4336e0], 0x3e8
mov dword [0x4336d0], esi
mov eax, dword [0x432970]
lea ecx, [eax + 1]
mov dword [0x432970], ecx
mov dword [0x4336dc], eax
push 0x4336c8
push dword [0x4336e4]
call edi
push 0x64
push dword [0x4336e8]
call ebx
cmp eax, 0x102
je 0x402464
push dword [0x4336e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x4336e8], esi
mov dword [0x4336cc], 1
mov dword [0x4336d4], esi
mov dword [0x4336e0], esi
mov dword [0x4336d0], 5
mov dword [0x4336dc], esi
push 0x4336c8
push dword [0x4336e4]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x4023a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40251b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x402560
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10014
call fcn.0041ea70
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x43200c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [edx], ebx
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x42a460]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1001c], eax
cmp eax, 0xffffffff
je 0x4026d2
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x42a460]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x4026c3
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 0x1001c]
call edi
mov ecx, edi
mov edi, eax
push ebx
mov dword [ebp - 0x10018], esi
push esi
call ecx
cmp edi, 0xffffffff
je 0x4026b8
cmp eax, 0xffffffff
mov esi, dword [ebp - 0x10018]
je 0x4026c3
cmp edi, eax
jne 0x4026c0
mov dword [ebp - 0x10020], edi
cmp edi, 0x8000
jae 0x402701
mov edi, dword [ebp - 0x10020]
and edi, 0x7fff
je 0x4026ac
lea ecx, [ebp - 0x10014]
lea esi, [ebp - 0x8010]
push 0
push ecx
push edi
push esi
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x4026b8
cmp dword [ebp - 0x10014], edi
jne 0x4026b8
lea edx, [ebp - 0x10010]
push 0
lea ecx, [ebp - 0x10014]
push ecx
push edi
push edx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4026b8
cmp dword [ebp - 0x10014], edi
jne 0x4026b8
push edi
lea eax, [ebp - 0x10010]
push eax
push esi
call fcn.0040bce7
add esp, 0xc
test eax, eax
jne 0x4026b5
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x10018]
jmp 0x4026c3
xor ebx, ebx
inc ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x4026d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1001c]
inc eax
cmp eax, 2
jb 0x4026ea
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ad81
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x10020]
shr edi, 0xf
lea ebx, [ebp - 0x8010]
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
mov esi, ebx
push ebx
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x4026b8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4026b8
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
lea eax, [ebp - 0x10010]
push eax
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4026b8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4026b8
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040bce7
add esp, 0xc
test eax, eax
jne 0x4026b5
dec edi
jne 0x402710
jmp 0x402635