joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c7a0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jg 0x41c7c2
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
lea eax, [edi + 4]
push esi
push eax
call fcn.0042b1cc
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41c808
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4523d0
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41c821
test esi, esi
je 0x41c815
push esi
call fcn.0042c456
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
and ecx, 0xffff
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
and eax, 0xffff
mov dword [ecx], eax
test esi, esi
je 0x41c863
push esi
call fcn.0042c456
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x41c980
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx]
push esi
push edi
mov dword [esp + 0xc], ebx
test eax, eax
je 0x41ca86
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41ca86
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4492f8]
mov esi, dword [ebx]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x10]
jbe 0x41c9d3
call fcn.0042c67f
push ebp
mov ebp, dword [esi]
mov esi, dword [ebx]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x41c9e5
call fcn.0042c67f
mov esi, dword [esi]
test ebp, ebp
je 0x41c9ef
cmp ebp, esi
je 0x41c9f4
call fcn.0042c67f
cmp edi, ebx
je 0x41ca50
test ebp, ebp
jne 0x41ca46
call fcn.0042c67f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41ca0d
call fcn.0042c67f
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x41ca18
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [0x4492e8]
test eax, eax
je 0x41ca7c
test ebp, ebp
jne 0x41ca4b
call fcn.0042c67f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41ca3d
call fcn.0042c67f
mov ebx, dword [esp + 0x10]
add edi, 0x1c
jmp 0x41c9d6
mov eax, dword [ebp]
jmp 0x41ca03
mov eax, dword [ebp]
jmp 0x41ca33
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov esi, dword [eax + 4]
push edi
call dword [0x4490b8]
test esi, esi
je 0x41ca7c
push edi
call dword [0x44931c]
test eax, eax
je 0x41ca7c
push 4
push 0
push edi
call dword [0x449110]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 4]
push edi
call dword [0x4490b8]
test esi, esi
je 0x41ca7d
push edi
call dword [0x44931c]
test eax, eax
je 0x41ca7d
push 4
push 0
push edi
call dword [0x449110]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x41cac0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4437ab
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x45ea14]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ea14]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a8]
mov edi, dword [esp + 0x4a4]
mov ecx, dword [esp + 0x4ac]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, edi
mov word [esp + 0x20], dx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41cb32
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.004036d1
mov eax, dword [esp + 0x30]
lea esi, [eax - 1]
mov dword [esp + 0x49c], ebp
cmp esi, eax
jbe 0x41cb63
call fcn.0042c67f
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jae 0x41cb76
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
je 0x41cb8d
push 1
push 0x4523d0
lea ecx, [esp + 0x24]
call fcn.00402fe6
push 1
push 0x44f030
lea ecx, [esp + 0x24]
call fcn.00402fe6
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x41cbab
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [0x4490e4]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41cbd9
cmp dword [esp + 0x34], 8
jb 0x41cbd2
mov edx, dword [esp + 0x20]
push edx
call fcn.0042c02e
add esp, 4
xor eax, eax
jmp 0x41cca8
push 0x208
lea eax, [esp + 0x28c]
push ebp
push eax
call fcn.0042c310
mov esi, dword [0x44930c]
mov ebp, dword [0x449318]
add esp, 0xc
jmp 0x41cc00
push 0x44f02c
lea ecx, [esp + 0x68]
push ecx
call esi
test eax, eax
je 0x41cc74
push 0x4499b8
lea edx, [esp + 0x68]
push edx
call esi
test eax, eax
je 0x41cc74
lea eax, [esp + 0x64]
push eax
push edi
lea ecx, [esp + 0x290]
push ecx
call ebp
test byte [esp + 0x38], 0x10
lea ecx, [esp + 0x288]
je 0x41cc6a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0041cac0
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp dword [edx], 0
je 0x41cc74
lea eax, [esp + 0x288]
push eax
call dword [0x4490e8]
jmp 0x41cc74
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c980
lea edx, [esp + 0x38]
push edx
push ebx
call dword [0x4490e0]
test eax, eax
jne 0x41cc00
push ebx
call dword [0x4490dc]
cmp dword [esp + 0x34], 8
jb 0x41cca3
mov eax, dword [esp + 0x20]
push eax
call fcn.0042c02e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.0042c2f3
add esp, 0x48c
ret
Function at 0x41d6c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45ea14]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x218]
push 0x208
lea eax, [esp + 8]
push 0
push eax
call fcn.0042c310
mov edx, dword [esp + 0x220]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push edx
push 0
call dword [0x4492d4]
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d710
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004036d1
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042c2f3
add esp, 0x20c
ret 8

Function at 0x41da70
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push 3
push ecx
push edx
push eax
call dword [0x449308]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x41daa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45ea14]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0042c310
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x28], 0xffffffff
call dword [0x449304]
test eax, eax
je 0x41db25
mov ecx, dword [esp + 0x430]
mov dword [ebp], ecx
mov eax, 0x80004005
jmp 0x41db2e
mov edx, dword [esp + 0x18]
mov dword [ebp], edx
xor eax, eax
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c2f3
add esp, 0x40c
ret

Function at 0x41db50
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push 4
push ecx
push edx
push eax
call dword [0x449308]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x41dba0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [0x4492fc]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x41dbc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x41dbd2
mov eax, dword [eax + 4]
jmp 0x41dbd5
add eax, 4
mov edx, dword [esp + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push 1
push edx
push eax
push ecx
call dword [0x449308]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x41dc00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45ea14]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0042c310
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x28], 0xffffffff
call dword [0x449304]
test eax, eax
je 0x41dc82
mov ecx, ebp
call fcn.0041b760
mov eax, 0x80004005
jmp 0x41dcae
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dc90
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004036d1
xor eax, eax
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c2f3
add esp, 0x40c
ret

Function at 0x41dd50
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 1
push 0
push eax
push ecx
push str.open
push 0
call dword [0x4492e0]
xor eax, eax
ret
Function at 0x41eb10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
je 0x41ebd1
push esi
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x41eb2e
mov esi, 0x4495c0
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042c310
add esp, 0xc
cmp dword [esp + 0x54], 0
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41eb6f
call fcn.0041e910
mov dword [esp + 0x14], 0x4523d4
test eax, eax
jne 0x41eb77
mov dword [esp + 0x14], str.open
mov ecx, dword [esp + 0x50]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0x440
call dword [0x4492d8]
pop esi
test eax, eax
je 0x41ebc4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x41ebbd
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
xor eax, eax
pop edi
add esp, 0x3c
ret
call dword [0x4490bc]
push edi
call dword [0x44931c]
mov eax, 0x80004005
pop edi
add esp, 0x3c
ret
Function at 0x420382
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x423a6f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45ea14]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call fcn.0042c310
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [0x4492cc]
test eax, eax
jne 0x423ad3
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [0x449190]
mov edi, dword [0x44918c]
mov ebx, dword [0x449188]
cmp dword [ebp + 0x9c], esi
je 0x423af9
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x423af9
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [0x449184]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x423b26
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x423b26
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push str.DownloadLib
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x423b4d
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x423b4d
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.004046c9
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c2f3
add ebp, 0x90
leave
ret
Function at 0x429646
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4449d8
mov eax, dword fs:[0]
push eax
mov eax, 0x28d8
call fcn.0042da60
mov eax, dword [0x45ea14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28c8], ecx
call fcn.004035e5
lea ecx, [ebp - 0x28e4]
call fcn.0041f400
lea eax, [ebp - 0x28e4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00429156
pop ecx
lea eax, [ebp - 0x28cc]
push eax
lea esi, [ebp - 0x28c0]
mov eax, esi
push eax
mov dword [ebp - 0x28cc], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4297dd
mov dword [ebp - 0x28c4], ebx
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x24]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0042ff1b
add esp, 0x20
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004046c9
push ebx
push 0x44f974
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00429079
cmp eax, 0xffffffff
jne 0x429798
push ebx
push str.VMare
lea ecx, [ebp - 0x40]
call fcn.00429079
cmp eax, 0xffffffff
jne 0x429798
push ebx
push str.Virtual
lea ecx, [ebp - 0x40]
call fcn.00429079
cmp eax, 0xffffffff
jne 0x429798
push ebx
push str.SLIP
lea ecx, [ebp - 0x40]
call fcn.00429079
cmp eax, 0xffffffff
jne 0x429798
push ebx
push str.P.P.P
lea ecx, [ebp - 0x40]
call fcn.00429079
cmp eax, 0xffffffff
jne 0x429798
lea eax, [ebp - 0x28e4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00429008
pop ecx
pop ecx
test al, al
je 0x4297c1
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
push 1
cmp esi, ebx
je 0x42980f
mov byte [ebp - 4], bl
call fcn.00404b82
inc dword [ebp - 0x28c4]
cmp dword [ebp - 0x28c4], 0x10
jb 0x4296cf
jmp 0x4297dd
mov ecx, dword [ebp - 0x28c8]
lea eax, [ebp - 0x24]
push eax
call fcn.00404aaa
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00404b82
mov bl, 1
lea ecx, [ebp - 0x28e4]
call fcn.00411ed0
push dword [ebp - 0x28e4]
call fcn.0042c02e
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c2f3
leave
ret
call fcn.00404b82
jmp 0x4297dd
Function at 0x402340
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 [0x4327a4], 3
mov dword [0x4327ac], esi
mov dword [0x4327b8], 0x3e8
mov dword [0x4327a8], esi
mov eax, dword [0x431a60]
lea ecx, [eax + 1]
mov dword [0x431a60], ecx
mov dword [0x4327b4], eax
push 0x4327a0
push dword [0x4327bc]
call edi
push 0x64
push dword [0x4327c0]
call ebx
cmp eax, 0x102
je 0x402354
push dword [0x4327c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x4327c0], esi
mov dword [0x4327a4], 1
mov dword [0x4327ac], esi
mov dword [0x4327b8], esi
mov dword [0x4327a8], 5
mov dword [0x4327b4], esi
push 0x4327a0
push dword [0x4327bc]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x402290
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40240b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x402450
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.0041d510
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x431014]
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 [0x429a30]
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 0x4025c2
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x429a30]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x4025b3
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 0x4025a8
cmp eax, 0xffffffff
mov esi, dword [ebp - 0x10018]
je 0x4025b3
cmp edi, eax
jne 0x4025b0
mov dword [ebp - 0x10020], edi
cmp edi, 0x8000
jae 0x4025f1
mov edi, dword [ebp - 0x10020]
and edi, 0x7fff
je 0x40259c
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 0x4025a8
cmp dword [ebp - 0x10014], edi
jne 0x4025a8
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 0x4025a8
cmp dword [ebp - 0x10014], edi
jne 0x4025a8
push edi
lea eax, [ebp - 0x10010]
push eax
push esi
call fcn.0040b2de
add esp, 0xc
test eax, eax
jne 0x4025a5
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x10018]
jmp 0x4025b3
xor ebx, ebx
inc ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x4025c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1001c]
inc eax
cmp eax, 2
jb 0x4025da
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
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 0x4025a8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4025a8
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 0x4025a8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4025a8
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040b2de
add esp, 0xc
test eax, eax
jne 0x4025a5
dec edi
jne 0x402600
jmp 0x402525
Function at 0x4041e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push eax
call fcn.00409fc3
add esp, 4
mov esi, eax
push eax
push edi
xor eax, eax
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404262
lea eax, [ebp - 0x14]
mov dword [eax], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x42c552
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40428d
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [eax + 0xe]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
movzx eax, word [eax + 0xc]
mov dword [ecx], eax
xor edi, edi
inc edi
jmp 0x4042c5
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4042e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x4042b6
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____lu_
push 0x4327c8
call fcn.00408560
add esp, 0xc
xor edi, edi
push esi
call fcn.00409fcc
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x40427f
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x40427f
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x4042aa
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x4042aa
Function at 0x404370
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x404426
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404460
mov edi, eax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4043fd
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x4043fd
mov eax, dword [ebp - 0x14]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x4043fd
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4043d3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x40441a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x30]
jmp 0x404498
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4044b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____lu_
push 0x4327c8
call fcn.00408560
add esp, 0xc
xor ebx, ebx
jmp 0x40449f
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4044f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____lu_
push 0x4327c8
call fcn.00408560
add esp, 0xc
xor ebx, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x404443
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x404443
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x40447d
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x40447d