joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x425d4c
push ecx
call fcn.0040c04b
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
pop ecx
test esi, esi
je 0x404529
push 2
push 0
push esi
call fcn.0040bf84
add esp, 0xc
test eax, eax
jne 0x404529
push esi
call fcn.0040bbd6
mov edi, eax
pop ecx
test edi, edi
jle 0x404529
lea ecx, [edi + 1]
push ecx
call fcn.00405902
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 0x14], ebx
call fcn.0040bf84
add esp, 0x10
test eax, eax
jne 0x40451b
push esi
push edi
push 1
push ebx
call fcn.0040c23b
add esp, 0x10
cmp eax, edi
jne 0x40451b
mov byte [ebx + edi], 0
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov ecx, 0x425d64
mov byte [ebp - 1], 0
xor ebx, ebx
call fcn.004042dc
test eax, eax
je 0x404511
mov esi, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x23
je 0x4044f9
cmp cl, 0x3b
je 0x4044f9
mov edx, eax
mov ecx, 0x425d60
call fcn.004042b7
mov edi, eax
mov dword [ebp - 8], edi
mov al, byte [edi]
test al, al
je 0x4044f9
cmp al, 0x5b
jne 0x4044b1
inc edi
lea edx, [ebp - 8]
mov ecx, 0x425d5c
mov dword [ebp - 8], edi
call fcn.004042dc
test eax, eax
je 0x4044ab
lea edx, [ebp - 8]
mov ecx, 0x425d60
call fcn.004042dc
test eax, eax
jne 0x4044ab
mov edx, str.Strings
xor ecx, ecx
movzx eax, byte [edi + ecx]
cmp al, byte [edx + ecx]
jne 0x4044ab
inc ecx
cmp ecx, 8
jne 0x404496
mov byte [ebp - 1], 1
jmp 0x4044f9
mov byte [ebp - 1], 0
jmp 0x4044f9
cmp byte [ebp - 1], 0
je 0x4044f9
lea edx, [ebp - 8]
mov ecx, 0x425d68
call fcn.004042dc
test eax, eax
je 0x4044f9
mov edx, edi
call fcn.00404336
test eax, eax
js 0x4044f9
cmp eax, 1
jae 0x4044f9
imul edi, eax, 0x258
push 0x257
push dword [ebp - 8]
add edi, esi
push edi
call fcn.0040ad60
add esp, 0xc
mov byte [edi + 0x257], 0
inc ebx
lea edx, [ebp - 0xc]
mov ecx, 0x425d64
call fcn.004042dc
test eax, eax
jne 0x404436
mov esi, dword [ebp - 0x10]
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 5
jmp 0x40451e
push 6
pop ebx
push dword [ebp - 0x14]
call fcn.00405932
pop ecx
jmp 0x40452c
push 6
pop ebx
test esi, esi
je 0x404537
push esi
call fcn.0040bc57
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404905
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x404969
push ebx
push dword [ebp + 0xc]
lea ebx, [esi + 0x20c]
push dword [ebp + 8]
push str._s__s
push 0x104
push ebx
call fcn.00402abc
add esp, 0x14
dec eax
cmp eax, 0x102
ja 0x404968
push edi
lea edi, [esi + 4]
push edi
push 0
push 0x4263e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404967
push 0x4263f0
push edi
call fcn.0040c04b
pop ecx
pop ecx
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40496e
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4049ab
push edi
push dword [esi]
call fcn.0040bc57
and dword [esi], 0
lea edi, [esi + 0x20c]
push 0
push edi
add esi, 4
call fcn.0040c36c
add esp, 0xc
test eax, eax
jne 0x4049a2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4049aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
ret
Function at 0x404be1
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x429010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x4b0], ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x404c19
xor eax, eax
jmp 0x404deb
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
push esi
test edi, edi
jne 0x404c39
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404c12
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
lea eax, [ebp - 0x4ac]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x404c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x404c65
push edi
call esi
jmp 0x404c12
mov esi, dword [ebp - 0x4ac]
push esi
call fcn.00405902
push esi
mov esi, eax
mov dword [ebp - 0x4b4], eax
push ebx
push esi
call fcn.00406960
add esp, 0x10
lea eax, [ebp - 0x4ac]
push eax
push dword [ebp - 0x4ac]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push edi
test eax, eax
jne 0x404ca9
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404de2
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov edi, 0x20a
lea eax, [ebp - 0x4a8]
push edi
push ebx
push eax
call fcn.00406960
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x4a8]
push str.maintenanceservice_tmp.exe
call fcn.00404b58
add esp, 0x10
test eax, eax
je 0x404de2
push edi
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.00406960
push 0x104
push dword [ebp - 0x4b0]
lea eax, [ebp - 0x298]
push eax
call fcn.00407e9a
add esp, 0x18
lea ecx, [ebp - 0x298]
mov edx, 0x424144
call fcn.00404dfc
push ebx
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404de2
push 0x44
pop edi
push edi
lea eax, [ebp - 0x510]
push ebx
push eax
call fcn.00406960
mov dword [ebp - 0x510], edi
xor eax, eax
lea edi, [ebp - 0x4c4]
mov dword [ebp - 0x508], 0x424cd8
stosd dword es:[edi], eax
push 0x80
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00406960
push 0x3f
lea eax, [ebp - 0x88]
push str.dummyparam.exe_upgrade
push eax
call fcn.00407e9a
add esp, 0x24
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x510]
push eax
push dword [ebp - 0x4b0]
lea eax, [ebp - 0x88]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x404de2
push dword [ebp - 0x4c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c0]
call esi
mov esi, dword [ebp - 0x4b4]
push esi
call fcn.00405932
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053fc
mov esp, ebp
pop ebp
ret
Function at 0x404e50
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x429010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x43c]
mov ebx, ecx
mov esi, edx
push edi
push eax
mov dword [ebp - 0x444], ebx
call fcn.00406960
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push edi
push 0x426440
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404f70
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404f70
push esi
lea eax, [ebp - 0x24]
push str.failed:__d
push eax
call fcn.00404b26
lea edi, [ebp - 0x24]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404ede
push 0
lea eax, [ebp - 0x440]
sub edi, ecx
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x404f70
cmp dword [ebp - 0x440], edi
jne 0x404f70
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00406960
push 0x104
push dword [ebp - 0x444]
lea eax, [ebp - 0x230]
push eax
call fcn.00407e9a
add esp, 0x18
lea ecx, [ebp - 0x230]
mov edx, str.update.status
call fcn.00404dfc
test eax, eax
je 0x404f70
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
jmp 0x404f72
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053fc
mov esp, ebp
pop ebp
ret
Function at 0x404f83
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x429010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x404fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x404fc8
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x4050c1
mov eax, 0xfd
jmp 0x4050c1
push esi
push 4
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40503f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x405035
sub esi, 1
je 0x40502b
sub esi, 0x75
je 0x405021
sub esi, 0x3a9
je 0x405017
mov eax, 0xef
jmp 0x4050c0
mov eax, 0xee
jmp 0x4050c0
mov eax, 0xed
jmp 0x4050c0
mov eax, 0xec
jmp 0x4050c0
mov eax, 0xeb
jmp 0x4050c0
push edi
xor edi, edi
mov dword [ebp - 0x24], 0xcf
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40508d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x4050de
cmp eax, 0x41c
je 0x405083
cmp eax, 0x424
jbe 0x4050f4
cmp eax, 0x426
ja 0x4050d0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4050a0
mov edi, dword [ebp - 0x24]
cmp edi, 1
je 0x4050b1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x2c]
add edi, 0x32
mov dword [ebp - 0x2c], edi
cmp edi, 0x7530
jb 0x40504c
mov edi, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004053fc
mov esp, ebp
pop ebp
ret
cmp eax, 0x45b
jne 0x4050f4
mov edi, 0xde
jmp 0x4050f9
je 0x40511a
sub eax, 5
je 0x405113
sub eax, 1
je 0x40510c
sub eax, 0x51
je 0x405105
sub eax, 0x23
je 0x4050fe
mov edi, 0xdf
mov dword [ebp - 0x24], edi
jmp 0x4050b1
mov edi, 0xdb
jmp 0x4050f9
mov edi, 0xdc
jmp 0x4050f9
mov edi, 0xd9
jmp 0x4050f9
mov edi, 0xda
jmp 0x4050f9
mov edi, 0xdd
jmp 0x4050f9
Function at 0x405121
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x429010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405150
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4051ad
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x405176
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4051a4
lea eax, [ebp - 0x20c]
push eax
push 0x424144
call fcn.0040db33
pop ecx
pop ecx
test eax, eax
je 0x4051a4
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405176
mov edi, 0x490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004053fc
mov esp, ebp
pop ebp
ret

Function at 0x4067aa
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41e4dc
push str.FlsAlloc
push 0
call fcn.00406723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4067dc
push dword [ebp + 8]
mov ecx, esi
call fcn.00405c55
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40681e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x41e50c
push str.FlsSetValue
push 3
call fcn.00406723
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x406852
mov ecx, esi
call fcn.00405c55
call esi
jmp 0x406858
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4113f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410d08

Function at 0x4113fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410f49
Function at 0x411724
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x42a1e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411765
cmp byte [edx], 0xa
jne 0x411765
or byte [eax + edi + 0x28], 4
jmp 0x41176a
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x41185b
mov al, byte [ebx]
cmp al, 0x1a
je 0x41183c
cmp al, 0xd
je 0x411793
mov byte [esi], al
inc esi
inc ebx
jmp 0x411831
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4117b3
cmp byte [eax], 0xa
jne 0x4117a8
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4117ae
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x411831
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41182a
cmp dword [ebp - 0x14], 0
je 0x41182a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42a1e0]
test byte [eax + edi + 0x28], 0x48
je 0x411801
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4117f1
mov byte [esi], dl
jmp 0x41182d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42a1e0]
mov byte [eax + edi + 0x2a], dl
jmp 0x41182d
cmp byte [ebp - 1], 0xa
jne 0x411813
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x411813
mov byte [esi], 0xa
jmp 0x4117b0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411709
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41182e
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x41177c
jmp 0x41185b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42a1e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411856
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41185b
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411866
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x42a1e0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4118aa
cmp word [edx], bx
jne 0x4118aa
or byte [edi + eax + 0x28], 4
jmp 0x4118af
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x411a03
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4119e3
cmp ax, word [ebp - 0x10]
je 0x4118e8
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4119d8
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x41190e
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4118fe
push ecx
pop eax
push 4
jmp 0x411903
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4119d2
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4119c9
cmp dword [ebp - 0x18], 0
je 0x4119c9
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x42a1e0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x411995
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x411959
mov word [esi], ax
jmp 0x41198d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x42a1e0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x42a1e0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x42a1e0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4119d8
cmp word [ebp - 4], ax
jne 0x4119aa
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4119aa
mov word [esi], ax
add esi, 2
jmp 0x4119d8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411709
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4119d5
jmp 0x4119cc
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4118c8
jmp 0x411a03
mov ecx, dword [ecx*4 + 0x42a1e0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4119fa
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x411a03
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4128d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412752
Function at 0x4052e6
Capabilities:
Create pipe
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.004133e0
mov eax, dword [0x2488094]
mov ecx, dword [0x2487b24]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4053be
mov edi, ecx
mov ebx, eax
cmp dword [0x2488094], 0x959
jne 0x4053ae
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x403f98
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
lea eax, [ebp - 0x1800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.004050d3
add edi, 8
dec ebx
jne 0x405312
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067ab
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x45ab6d
call fcn.0045a9e0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404074
call fcn.00407415
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.0040869c
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4067f3
call fcn.004072ed
mov dword [ebx], eax
call fcn.004070ac
mov ecx, eax
call fcn.00404d11
mov eax, ebx
jmp 0x4067f5
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], 0x4040cc
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40911f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ddc0]
jne 0x409129
repz ret
jmp fcn.0040e31c
Function at 0x411c9c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45ddc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b1f7
and dword [ebp - 0x14], 0
cmp dword [0x475954], 0
mov dword [ebp - 0x18], eax
jne 0x411d4f
push 0x4037cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411df7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037c0
push ebx
call edi
test eax, eax
je 0x411df7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037b0
push ebx
mov dword [0x475954], eax
call edi
push eax
call esi
push 0x40379c
push ebx
mov dword [0x475958], eax
call edi
push eax
call esi
push 0x403780
push ebx
mov dword [0x47595c], eax
call edi
push eax
call esi
mov dword [0x475964], eax
test eax, eax
je 0x411d4f
push 0x403768
push ebx
call edi
push eax
call esi
mov dword [0x475960], eax
mov eax, dword [0x475960]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411da8
cmp dword [0x475964], ecx
je 0x411da8
push eax
call esi
push dword [0x475964]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411da8
test ebx, ebx
je 0x411da8
call edi
test eax, eax
je 0x411d9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411d9f
test byte [ebp - 8], 1
jne 0x411da8
or dword [ebp + 0x10], 0x200000
jmp 0x411ddb
mov eax, dword [0x475958]
cmp eax, dword [ebp - 0x18]
je 0x411ddb
push eax
call esi
test eax, eax
je 0x411ddb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411ddb
mov eax, dword [0x47595c]
cmp eax, dword [ebp - 0x18]
je 0x411ddb
push eax
call esi
test eax, eax
je 0x411ddb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x475954]
call esi
test eax, eax
je 0x411df7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411df9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040911f
leave
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x12d36b83
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4eb1079f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0xcb656af
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x67376b0c
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219