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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5f9bc8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5777db
cmp word [ebx], dx
jne 0x5777db
or byte [eax + edi + 0x28], 4
jmp 0x5777e0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x577943
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x577923
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x577821
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x577857
cmp eax, edx
jae 0x577865
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5777fc
jmp 0x577943
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57791e
cmp dword [ebp - 0x18], 0
je 0x57791e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5f9bc8]
test byte [eax + edi + 0x28], 0x48
je 0x5778f4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5778b8
mov word [esi], cx
jmp 0x5778ef
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5f9bc8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5f9bc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5f9bc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x577943
pop eax
cmp word [ebp - 4], ax
jne 0x577904
cmp esi, ebx
jne 0x577904
mov word [esi], ax
jmp 0x577940
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056baa5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x577943
push 0xd
pop eax
jmp 0x5778ff
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5f9bc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57793d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x577943
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57a5a7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0057a523
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57a716
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57a716
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57a6cb
jg 0x57a603
test eax, eax
je 0x57a6c1
push 1
push 0x1000
call fcn.00573259
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57a626
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x57a6b8
push 0x8000
push ebx
call fcn.005700cc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x57a64f
jg 0x57a64a
cmp ecx, 0x1000
jb 0x57a64f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0056c3ed
add esp, 0x10
cmp eax, 0xffffffff
je 0x57a694
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x57a64a
jl 0x57a67b
test ecx, ecx
jne 0x57a63c
push dword [ebp - 0xc]
push ebx
call fcn.005700cc
push esi
call fcn.005732b6
add esp, 0xc
xor ebx, ebx
jmp 0x57a724
cmp byte [edi + 0x24], 0
je 0x57a6ab
cmp dword [edi + 0x20], 5
jne 0x57a6ab
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x57a6b6
mov ebx, dword [edi + 0x18]
jmp 0x57a6b8
xor ebx, ebx
push esi
call fcn.005732b6
pop ecx
jmp 0x57a724
test ecx, ecx
jg 0x57a68d
jl 0x57a6cb
test eax, eax
jae 0x57a68d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056baa5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x57a6eb
cmp byte [edi + 0x1c], 0
je 0x57a68d
jmp 0x57a71c
push ebx
call fcn.0057a4b9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57a68d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x57a724
cmp byte [edi + 0x1c], 0
je 0x57a721
mov ebx, dword [edi + 0x18]
jmp 0x57a724
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0056baa5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57d0eb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5ea6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x57d136
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0057d286
test al, al
jne 0x57d130
sub edx, 2
cmp edx, edi
jne 0x57d116
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x57d158
lea eax, [edi + 2]
cmp edx, eax
je 0x57d158
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0057d037
add esp, 0x10
jmp 0x57d252
push esi
lea ecx, [ebp - 0x255]
call fcn.0057d286
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57d19b
push dword [ebp - 0x25c]
jmp 0x57d148
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x57d1d8
cmp word [ebp - 0x226], 0
je 0x57d1f9
cmp word [ebp - 0x226], ax
jne 0x57d1d8
cmp word [ebp - 0x224], 0
je 0x57d1f9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0057d037
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x57d245
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x57d1b2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x57d22d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x57d252
push 0x57ce67
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005821c0
add esp, 0x10
jmp 0x57d222
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512634
leave
ret

Function at 0x57db68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57db79
pop esi
ret
push ebx
push edi
push esi
call fcn.0057db31
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057338c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x57dba1
push ebx
push esi
push edi
call fcn.00552be0
add esp, 0xc
push 0
call fcn.005732b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x57df71
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057dbb6
Function at 0x57fff5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00572f6e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x580064
cmp esi, dword [ebp - 4]
je 0x58005f
cmp dword [ebp + 0xc], 0
je 0x58005f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x58003c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0057fb47
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x580066
xor eax, eax
inc eax
jmp 0x580066
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5800cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ea6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00572f6e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00572f6e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x580142
cmp word [ecx], dx
je 0x580142
mov eax, dword [0x5c2ecc]
push edi
dec eax
push eax
push 0x5c2db8
call fcn.0058006a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5801b5
cmp word [eax], dx
je 0x5801b5
mov eax, dword [edi]
test eax, eax
je 0x580166
cmp word [eax], dx
je 0x580166
lea eax, [ebp - 0x10]
push eax
call fcn.0057fa4d
jmp 0x58016f
lea eax, [ebp - 0x10]
push eax
call fcn.0057fae8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5801df
mov eax, dword [0x5c2db4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c2aa8
call fcn.0058006a
add esp, 0xc
test al, al
je 0x5801df
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5801aa
cmp word [eax], di
je 0x5801aa
lea eax, [ebp - 0x10]
push eax
call fcn.0057fa4d
pop ecx
jmp 0x5801e1
lea eax, [ebp - 0x10]
push eax
call fcn.0057fae8
jmp 0x5801a7
mov eax, dword [edi]
test eax, eax
je 0x5801cc
cmp word [eax], dx
je 0x5801cc
lea eax, [ebp - 0x10]
push eax
call fcn.0057fa02
pop ecx
jmp 0x5801df
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5802aa
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0057feef
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5802aa
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5802aa
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5802aa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x580237
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0057516f
test ebx, ebx
je 0x5802a5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0057516f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5802aa
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5802aa
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0056e622
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5802ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512634
leave
ret
Function at 0x403c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x403c70
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403c80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404150
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x45a0f0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4041ca
xor eax, eax
cmp ecx, ebp
je 0x4041b2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4041d8
cmp ecx, ebp
je 0x40426b
push ecx
jmp 0x404265
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40423a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404150
mov ebx, eax
cmp ebx, ebp
jne 0x404288
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404200
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40424d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404300
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40426b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d98b
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404297
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40426d
Function at 0x404d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4457b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45a0f0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x404dff
call fcn.00403580
mov esi, eax
jmp 0x404ee1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x404e1b
call fcn.00403580
jmp 0x404ed8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x404e34
call fcn.00403580
jmp 0x404ed8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x404e68
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404e56
lea eax, [ebp]
call fcn.00403530
lea esi, [ebp - 0x1c]
call fcn.00403cb0
mov eax, 0x8007000e
jmp 0x404ef3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403540
mov dword [ebp - 4], 1
jmp 0x404e91
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x404e9f
mov esi, 0x8007000e
jmp 0x404eda
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x404ebd
call fcn.00403580
jmp 0x404ed8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404c30
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404ef1
lea eax, [ebp]
call fcn.00403530
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042d98b
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ee0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0x10]
push eax
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x405f04
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
call fcn.0042ddaf
mov edi, eax
add esp, 4
test edi, edi
jne 0x405f1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405f57
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x451680
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push edi
call fcn.0042de79
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4066c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x445bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x45a0f0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov eax, dword [0x45a0f0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov dword [esp + 0x430], 0
mov eax, dword [esp + 0x438]
cmp dword [eax - 8], 0
jne 0x406742
lea ecx, [eax - 0xc]
cmp ecx, dword [0x45bbfc]
je 0x4068cb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4068cb
mov edx, dword [esp + 0x438]
add edx, 0xfffffff4
push edx
jmp 0x4068c3
push 0x208
lea eax, [esp + 0x220]
push 0
push eax
call fcn.0042f120
mov edx, dword [0x45e044]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x21c]
push eax
call esi
lea ecx, [esp + 0x21c]
push ecx
call esi
push 0x4515d0
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0042f120
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
jne 0x406835
cmp dword [esp + 0xc], 1
jne 0x406835
lea ebx, [esp + 0x14]
call fcn.00406b40
test eax, eax
je 0x406835
lea edx, [esp + 0x21c]
push edx
call fcn.00407880
add esp, 4
test eax, eax
je 0x406835
mov ecx, dword [esp + 0x438]
push 0
mov edx, ebx
call fcn.00406b80
add esp, 4
lea ecx, [esp + 0x438]
call fcn.00405540
jmp 0x4068cb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406898
cmp dword [esp + 0xc], 1
jne 0x406898
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406898
lea ecx, [esp + 0x21c]
push ecx
call fcn.00407880
add esp, 4
test eax, eax
je 0x406898
mov ecx, dword [esp + 0x438]
push str.open
lea edx, [esp + 0x18]
call fcn.00406b80
add esp, 4
mov eax, dword [esp + 0x438]
lea edx, [eax - 0xc]
cmp edx, dword [0x45bbfc]
je 0x4068cb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4068cb
mov eax, dword [esp + 0x438]
add eax, 0xfffffff4
push eax
call fcn.0042da66
add esp, 4
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0042d98b
add esp, 0x428
ret
Function at 0x406930
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0x406900
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x406976
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
push 0
push str.360NetmonWindowClass364B97E2_D014_4e2f_88C7_482B040F0D31
call dword [sym.imp.USER32.dll_FindWindowW]
pop esi
pop ecx
ret