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

Disassembly:
push 0xffffffffffffffff
push 0x5120d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004fdb67
push 0xffffffffffffffff
push 0x400
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.004fdbc7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esi + 0x60]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
test eax, eax
ja 0x404baa
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], 0xffffffff
jmp 0x404bc3
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x10]
call fcn.004fdbc7
lea edx, [esp + 8]
lea ecx, [esi + 0x64]
push edx
call fcn.004fdcbe
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.004fdb9a
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x405ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512257
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x520068]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 8]
mov dword [ebp], eax
mov ecx, dword [0x520068]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00402510
mov dword [esi + 0x1c], 0x51cb60
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0xa
lea edi, [esi + 0x38]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.0041c420
mov dword [edi], 0x51ca9c
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x55c14c
mov ecx, ebp
mov byte [esp + 0x20], 4
mov dword [esi], 0x51cb5c
mov dword [esi + 4], 0x50
call fcn.00434ba0
push str.index.html
lea ecx, [esi + 0xc]
call fcn.00434ba0
push esi
lea ecx, [esi + 0x10]
call fcn.00402560
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405d60
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret
Function at 0x40c900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512e1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x52006c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 0xf]
mov al, byte [ecx + 0xe]
push edx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 0xd]
mov al, byte [ecx + 0xc]
push edx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 0xb]
mov al, byte [ecx + 0xa]
push edx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 9]
mov al, byte [ecx + 8]
push edx
push eax
xor edx, edx
xor eax, eax
mov dx, word [ecx + 6]
mov ax, word [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x48], 1
call fcn.0043d080
mov esi, dword [esp + 0x50]
add esp, 0x34
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004395f0
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0043a070
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x40c9c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x547720
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call fcn.0042141e
lea ecx, [esp + 0xc]
push 0x5476dc
push ecx
call fcn.004213f4
add esp, 0x10
lea edx, [esp + 4]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x40ca2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret

Function at 0x40d0f0
Capabilities:
Access the windows event log

Disassembly:
push esi
call fcn.0040cbf0
test eax, eax
je 0x40d149
call fcn.0040cbf0
mov eax, dword [eax + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40d149
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 1
call fcn.0040cbe0
mov ecx, eax
add ecx, 0xc8
call fcn.004494f0
mov ecx, dword [esp + 0x18]
push eax
push 0xc0000000
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret
Function at 0x40dc70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x513010
push eax
mov eax, 0x400c
mov dword fs:[0], esp
call fcn.00421590
push esi
push edi
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00449940
mov ecx, dword [eax]
push str.SCIssueVersion.ini
push ecx
lea edx, [esp + 0x10]
push 0x548148
push edx
mov dword [esp + 0x402c], 1
call fcn.004497b0
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x401c], 3
call fcn.0043a070
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x4030]
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x4030]
push 0x1fff
push ecx
mov ecx, dword [esp + 0x4034]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x4024]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00439800
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x401c], 0
call fcn.0043a070
mov ecx, dword [esp + 0x4014]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4018
ret

Function at 0x40dd90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x513030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea eax, [esp + 8]
push 0
push eax
call fcn.00449940
mov ecx, dword [eax]
push str.SCIssueVersion.ini
push ecx
lea edx, [esp + 0xc]
push 0x548148
push edx
mov dword [esp + 0x24], 0
call fcn.004497b0
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.0043a070
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.0043a070
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40e090
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5130d8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0040dfd0
add esp, 8
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.0043b1d0
mov esi, eax
test esi, esi
jl 0x40e10e
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.0043c840
mov eax, dword [eax]
push edi
push eax
call ebx
lea ecx, [esp + 0x20]
call fcn.0043a070
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x5c
call fcn.0043b210
mov esi, eax
test esi, esi
jge 0x40e0dd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043a070
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x41668d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x52006c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [esi], 0x51cf2c
mov eax, dword [0x52006c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 4
test eax, eax
je 0x4166e2
call fcn.0047d970
push eax
lea ecx, [esp + 0x18]
push str.__lu
push ecx
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x416703
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x14]
push str.__lu
push edx
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x416724
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x10]
push str.__lu
push eax
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x416745
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x549330
push ecx
call fcn.0043d080
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.00439800
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._s_s_s_s_s
push edi
mov byte [esp + 0x40], 5
call fcn.0043d080
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.0043a070
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0043a070
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0043a070
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0043a070
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0043a070
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x41682d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x52006c]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
cmp eax, 0xffffffff
je 0x416869
push eax
lea eax, [esp + 0x14]
push str.__lu
push eax
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x416885
push eax
lea ecx, [esp + 0x10]
push str.__lu
push ecx
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x4168a1
push eax
lea edx, [esp + 0xc]
push str.__lu
push edx
call fcn.0043d080
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x4168bd
push eax
lea eax, [esp + 8]
push 0x549330
push eax
call fcn.0043d080
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00439800
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
add esi, 4
push str._s_s_s_s_s
push esi
mov byte [esp + 0x38], 4
call fcn.0043d080
add esp, 0x1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.0043a070
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.0043a070
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.0043a070
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.0043a070
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043a070
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x421504
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x421524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423629
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x421547
test byte [esp + 8], 2
je 0x421547
call fcn.0042369c
mov dword [eax], 0xd
call fcn.004236a5
mov dword [eax], 5
jmp 0x421520
xor eax, eax
ret
Function at 0x438560
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4385b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4385b9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4385c0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x43859d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4385bb
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x43e090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43e0e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43e0e0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43e0e5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43e0cb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43e0f2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x449c10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x515eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x52006c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0043a350
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0043c630
mov ecx, dword [eax]
push 0x548184
push ecx
call fcn.004214cf
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0043a070
test edi, edi
je 0x449c90
push 0x548184
mov ecx, esi
call fcn.0043acb0
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x449df0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x515f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x52006c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0043a350
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0043c630
mov ecx, dword [eax]
push 0x548184
push ecx
call fcn.004214cf
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0043a070
test edi, edi
je 0x449e70
push 0x548184
mov ecx, esi
call fcn.0043acb0
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x44dd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
je 0x44ddb5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x44ddb5
mov eax, dword [esp + 8]
cmp esi, 4
push ebx
not eax
jb 0x44dd8a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x52008c]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x52008c]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x52008c]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x52008c]
xor eax, ecx
dec edi
jne 0x44dd2b
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x44ddb0
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x52008c]
xor eax, ecx
inc edx
dec esi
jne 0x44dd92
pop ebx
pop esi
not eax
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x44dddd
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5162ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x52006c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov ecx, dword [0x52006c]
lea ebp, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebp], ecx
mov edx, dword [0x52006c]
mov dword [esi + 0xc], edx
mov eax, dword [0x52006c]
mov dword [esi + 0x10], eax
push 0xf003f
push edi
push edi
mov byte [esp + 0x28], 3
mov dword [esi], 0x520548
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x44de3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0043a350
mov edx, dword [esp + 0x28]
mov ecx, ebp
push edx
call fcn.0043a350
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0xc]
push eax
call fcn.0043a350
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esi + 0x10]
call fcn.0043a350
push edi
push edi
push 1
push edi
mov dword [esi + 0x18], 0x10
mov dword [esi + 0x1c], 1
mov dword [esi + 0x30], 0xbb8
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x38], eax
mov dword [0x564400], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x44e730
Capabilities:
Delete registry key
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5163a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], esi
cmp eax, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
jne 0x44e77c
mov eax, dword [esi + 0x3c]
lea ecx, [ebp - 0x24]
push 0x53cb50
push ecx
mov dword [ebp - 0x24], eax
call fcn.00421994
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x44e7a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x28]
push 0x53cb50
push edx
mov dword [ebp - 0x28], eax
call fcn.00421994
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x14]
lea ebx, [esi + 4]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
jne 0x44e7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2c]
push 0x53cb50
push edx
mov dword [ebp - 0x2c], eax
call fcn.00421994
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x44e800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x53cb50
push eax
call fcn.00421994
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [ebp - 0x14]
call fcn.00439800
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043ad10
mov ecx, dword [ebp - 0x14]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x40], 0
mov byte [ebp - 4], 0
call fcn.0043a070
jmp 0x44e853
test edi, edi
je 0x44e85e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44e86c
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov ecx, dword [esi + 0x40]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451240
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [ecx]
lea eax, [esp]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x451268
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x451268
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esp + 4]
xor edx, edx
xor eax, eax
or edx, esi
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
pop ecx
ret 4

Function at 0x451320
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x516638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esp + 0x10]
mov ecx, dword [esi]
push ebx
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x451378
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x451378
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0xc]
call fcn.00448be0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push 0x2000
lea ecx, [esp + 0x14]
call fcn.00448dc0
lea edx, [esp + 0x10]
push 0
push edx
push 0x2000
lea ecx, [esp + 0x18]
call fcn.004494f0
push eax
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x4513fc
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x14]
call fcn.00448dc0
lea ecx, [esp + 0xc]
call fcn.00448db0
test eax, eax
je 0x451423
lea ecx, [esp + 0xc]
call fcn.00448db0
push eax
lea ecx, [esp + 0x10]
call fcn.004494d0
push eax
push ebx
call fcn.0044dd00
add esp, 0xc
mov ebx, eax
jmp 0x45138f
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00448d10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
mov dword [edx], ebx
call fcn.00448d10
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4