joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a760
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x424698
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x40a80b
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 8
push esi
push edi
jb 0x40a7a8
mov esi, dword [ebx + 4]
jmp 0x40a7ab
lea esi, [ebx + 4]
push esi
call dword [0x4230e8]
mov edi, dword [0x42300c]
lea edx, [eax + eax + 2]
push edx
push esi
mov esi, dword [esp + 0x14]
push 1
push 0
push str.DefaultBrowser
push esi
call edi
push 8
lea eax, [ebx + 0x1c]
push eax
push 3
push 0
push str.DefaultBrowserFileTimeStamp
push esi
call edi
push 4
add ebx, 0x24
push ebx
push 3
push 0
push str.DefaultBrowserFlag
push esi
call edi
test esi, esi
je 0x40a7fd
push esi
call dword [0x423010]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
mov eax, 1
add esp, 8
ret 4
Function at 0x40c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x422690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push 0x424698
push 0x80000001
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], edi
call dword [0x423008]
cmp eax, edi
jne 0x40c5c5
mov ebx, dword [esp + 0x10]
mov edx, dword [0x42cb58]
mov ecx, 0x42cb58
mov dword [esp + 0x28], ebx
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x34], 1
jge 0x40c48f
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401f10
mov esi, dword [esp + 0x10]
mov ebp, dword [section..rdata]
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
push str.DefaultBrowser
push ebx
mov dword [esp + 0x2c], 0x208
call ebp
cmp eax, edi
je 0x40c4b9
mov edi, eax
jmp 0x40c4e1
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x40c4c7
cmp eax, 2
jne 0x40c4dc
cmp esi, edi
je 0x40c4e1
mov eax, dword [esp + 0x14]
test al, 1
jne 0x40c4dc
shr eax, 1
cmp word [esi + eax*2 - 2], di
je 0x40c4e1
mov edi, 0xd
test esi, esi
jne 0x40c4e9
xor eax, eax
jmp 0x40c4fa
push esi
call fcn.00416231
add esp, 4
test eax, eax
jl 0x40c5de
cmp eax, dword [esi - 8]
jg 0x40c5de
test edi, edi
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
jne 0x40c57c
push esi
call fcn.00416231
mov edi, dword [esp + 0x40]
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.004023b0
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push str.DefaultBrowserFileTimeStamp
push ebx
mov dword [esp + 0x38], 8
call ebp
test eax, eax
jne 0x40c59b
cmp dword [esp + 0x3c], 3
jne 0x40c59b
lea eax, [esp + 0x24]
push eax
add edi, 0x24
push edi
lea ecx, [esp + 0x44]
push ecx
push 0
push str.DefaultBrowserFileTimeStamp
push ebx
mov dword [esp + 0x3c], 4
call ebp
test eax, eax
jne 0x40c57c
cmp dword [esp + 0x3c], 3
je 0x40c593
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c5b0
mov dword [esp + 0x18], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
je 0x40c5c5
push ebx
call dword [0x423010]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push 0x80070057
call fcn.00401220
int3
Function at 0x40fb10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x422a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x42b130]
push str.ntdll.dll
mov dword [esp + 0x5c], eax
call dword [0x42306c]
test eax, eax
je 0x40fd23
push edi
push str.NtQuerySystemInformation
push eax
call dword [0x423124]
mov edi, eax
test edi, edi
je 0x40fd22
push ebx
push ebp
push esi
mov esi, 0x19000
push esi
push 8
call dword [0x42310c]
mov ebx, dword [0x423108]
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x40fb82
xor eax, eax
jmp 0x40fd1f
push 0
push 0x19000
push ebp
push 5
call edi
cmp eax, 0xc0000004
jne 0x40fbc6
push ebp
mov ebp, dword [0x42310c]
push 0
call ebp
push eax
call dword [0x423104]
add esi, esi
push esi
push 8
call ebp
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40fb7b
push 0
push esi
push ebp
push 5
call edi
cmp eax, 0xc0000004
je 0x40fb95
mov ebx, dword [esp + 0x7c]
mov edi, ebp
lea esp, [esp]
cmp word [edi + 0x38], 0
je 0x40fcf3
mov eax, dword [0x42cb58]
mov ecx, 0x42cb58
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x7c], esi
movzx ecx, word [edi + 0x38]
mov eax, dword [esi - 4]
shr ecx, 1
mov edx, 1
sub edx, eax
mov eax, dword [esi - 8]
inc ecx
sub eax, ecx
or eax, edx
mov dword [esp + 0x74], 0
jge 0x40fc22
push ecx
lea ecx, [esp + 0x80]
call fcn.00401f10
mov esi, dword [esp + 0x7c]
movzx eax, word [edi + 0x38]
mov ecx, dword [edi + 0x3c]
shr eax, 1
inc eax
push eax
push ecx
push esi
call fcn.00416798
add esp, 0xc
test esi, esi
jne 0x40fc3f
xor eax, eax
jmp 0x40fc50
push esi
call fcn.00416231
add esp, 4
test eax, eax
jl 0x40fd00
cmp eax, dword [esi - 8]
jg 0x40fd00
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x7c]
mov word [esi + eax*2], 0
call fcn.0040af10
lea ecx, [esp + 0x10]
call fcn.00405760
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
mov esi, dword [esp + 0x7c]
push esi
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.00416231
add esp, 4
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.004023b0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push edx
mov eax, edx
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
call fcn.00405fa0
mov ecx, eax
call fcn.0040ef70
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.004055c0
lea eax, [esi - 0x10]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
test eax, eax
je 0x40fd0a
add edi, eax
jmp 0x40fbd0
push 0x80070057
call fcn.00401220
push ebp
push 0
call dword [0x42310c]
push eax
call dword [0x423104]
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
call fcn.00415f8e
add esp, 0x68
ret 4
Function at 0x4103e0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x422a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
jmp 0x410410
push 0x1f4
call dword [0x423074]
lea ecx, [esp + 0x18]
call fcn.00406180
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 4]
mov dword [esp + 0x5c], 0
call fcn.0040fb10
mov esi, dword [ebx + 0x38]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x18], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x410469
cmp eax, dword [esi]
jne 0x410469
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41049d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x41056f
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040f830
mov byte [esp + 0x58], 1
call fcn.00412660
push eax
push str.actEnumWindows_Begin_time_u
push 0x30
call fcn.00412510
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x410170
call dword [0x423268]
call fcn.00412660
push eax
push str.actEnumWindows_End_time_u
push 0x30
call fcn.00412510
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0040e450
test eax, eax
jne 0x410574
mov eax, dword [ebx + 0x38]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.004034c0
lea edx, [esp + 0x20]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0040dea0
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
je 0x4105ab
call fcn.0040f430
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.00406210
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x410410
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
jmp fcn.004016a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
call fcn.0040f430
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.00406210
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
call fcn.0040f430
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.00406210
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret
Function at 0x412180
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x18], str.open
mov dword [esp + 0x10], 0x140
call dword [0x423258]
mov esi, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4121d6
push eax
call dword [0x423098]
pop edi
mov eax, esi
pop esi
add esp, 0x3c
ret

Function at 0x412900
Capabilities:
Initialize iwebbrowser2

Disassembly:
sub esp, 0x14
push edi
push str.using_com_method_to_start_IE
push 0x30
call fcn.00412510
add esp, 8
xor edi, edi
push edi
call dword [0x423340]
test eax, eax
jl 0x4129ae
lea eax, [esp + 4]
push eax
push 0x426e40
push 4
push edi
push 0x426e30
mov dword [esp + 0x18], edi
call dword [0x423338]
cmp dword [esp + 4], edi
je 0x4129a8
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [0x423244]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [edx + 0xa4]
mov eax, dword [esp + 0x20]
push eax
call dword [0x423240]
lea edx, [esp + 0xc]
push edx
push edx
push edx
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x2c]
push eax
push str.act__IWebBrowser2_Navigate___result:__d
push 0x30
call fcn.00412510
add esp, 0xc
push esi
mov edi, 1
call dword [0x42323c]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
call dword [0x42333c]
mov eax, edi
pop edi
add esp, 0x14
ret

Function at 0x4129c0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412a28
push esi
mov esi, dword [esp + 4]
push edi
mov edi, dword [0x423018]
push str.BaiduTn
push esi
call edi
push str.NewBaiduTn
push esi
call edi
test esi, esi
je 0x412a1d
push esi
call dword [0x423010]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x412a40
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412a9c
push esi
mov esi, dword [esp + 4]
push str.TnFromIEHomePage
push esi
call dword [0x423018]
test esi, esi
je 0x412a92
push esi
call dword [0x423010]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret
Function at 0x412ab0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412b0c
push esi
mov esi, dword [esp + 4]
push str.IEHomePage
push esi
call dword [0x423018]
test esi, esi
je 0x412b02
push esi
call dword [0x423010]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x412b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
lea ecx, [esp + 8]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x28], edi
call dword [0x423008]
test eax, eax
jne 0x412ba4
push esi
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push str.InstallValue
push esi
mov dword [esp + 0x28], 4
call dword [section..rdata]
test eax, eax
jne 0x412b98
cmp dword [esp + 8], 4
jne 0x412b98
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [edx], eax
mov edi, 1
test esi, esi
je 0x412ba3
push esi
call dword [0x423010]
pop esi
mov eax, edi
pop edi
add esp, 0xc
ret

Function at 0x412bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
lea ecx, [esp + 8]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x28], edi
call dword [0x423008]
test eax, eax
jne 0x412c34
push esi
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push str.LaunchCount
push esi
mov dword [esp + 0x28], 4
call dword [section..rdata]
test eax, eax
jne 0x412c28
cmp dword [esp + 8], 4
jne 0x412c28
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [edx], eax
mov edi, 1
test esi, esi
je 0x412c33
push esi
call dword [0x423010]
pop esi
mov eax, edi
pop edi
add esp, 0xc
ret

Function at 0x412c40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412caf
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.LaunchCount
push esi
mov dword [esp + 0x20], edx
call dword [0x42300c]
test esi, esi
je 0x412ca5
push esi
call dword [0x423010]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret
Function at 0x412d00
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412d5c
push esi
mov esi, dword [esp + 4]
push str.LaunchCount
push esi
call dword [0x423018]
test esi, esi
je 0x412d52
push esi
call dword [0x423010]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x412d70
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareBaiduHao123hao123desk
push 0x80000001
mov dword [esp + 0x24], 0
call dword [0x423008]
test eax, eax
jne 0x412dcc
push esi
mov esi, dword [esp + 4]
push str.InstallValue
push esi
call dword [0x423018]
test esi, esi
je 0x412dc2
push esi
call dword [0x423010]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x414a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425ce0
push 0x416130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [0x423134]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x414ab7
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x414ab7
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x414ab7
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x414ab7
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425cf0
push 0x416130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [0x423134]
test eax, eax
je 0x414ed7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x414ed0
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
cmp dword [ecx], 0x4550
jne 0x414ed0
cmp word [ecx + 0x14], 0
je 0x414ed0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b56
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417b84
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417b8b
cmp ebx, dword [eax + 4]
jae 0x417b8b
xor eax, eax
jmp 0x417d7b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417b9c
xor eax, eax
inc eax
jmp 0x417d7a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417bb2
cmp ecx, edx
jae 0x417cf7
cmp dword [eax + 4], 0
je 0x417bbb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417ba3
cmp dword [ebp + 8], 0
je 0x417bdd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417cf7
cmp eax, esi
jae 0x417cf7
mov eax, dword [0x42c6a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417c02
cmp dword [esi*4 + 0x42c6b0], edi
je 0x417cfb
inc esi
cmp esi, eax
jl 0x417bf0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x423134]
test eax, eax
je 0x417d77
cmp dword [ebp - 8], 0x1000000
jne 0x417d77
test byte [ebp - 0xc], 0xcc
je 0x417c80
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417d77
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417d77
cmp word [eax + 0x18], 0x10b
jne 0x417d77
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417d77
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417c80
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417c80
test byte [ecx + 0x27], 0x80
jne 0x417cf7
push 1
push 0x42c6f0
call dword [0x423210]
test eax, eax
jne 0x417b94
mov ecx, dword [0x42c6a8]
test ecx, ecx
mov edx, ecx
jle 0x417cb4
lea eax, [ecx*4 + 0x42c6ac]
cmp dword [eax], edi
je 0x417cb4
dec edx
sub eax, 4
test edx, edx
jg 0x417ca8
test edx, edx
jne 0x417ce5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417cc1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417cd9
lea eax, [edx*4 + 0x42c6b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417cc7
cmp ecx, 0x10
jge 0x417ce5
inc ecx
mov dword [0x42c6a8], ecx
push 0
push 0x42c6f0
call dword [0x423210]
jmp 0x417b94
xor eax, eax
jmp 0x417d7a
test esi, esi
jle 0x417b94
mov ebx, dword [0x423210]
push 1
push 0x42c6f0
call ebx
test eax, eax
jne 0x417b94
cmp dword [esi*4 + 0x42c6b0], edi
je 0x417d51
mov eax, dword [0x42c6a8]
lea esi, [eax - 1]
test esi, esi
jl 0x417d3f
cmp dword [esi*4 + 0x42c6b0], edi
je 0x417d3b
dec esi
jns 0x417d2f
test esi, esi
jge 0x417d4f
cmp eax, 0x10
jge 0x417d4a
inc eax
mov dword [0x42c6a8], eax
lea esi, [eax - 1]
jmp 0x417d51
je 0x417d69
xor ecx, ecx
test esi, esi
jl 0x417d69
lea eax, [ecx*4 + 0x42c6b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417d57
push 0
push 0x42c6f0
call ebx
jmp 0x417b94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x402a41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push edi
lea ecx, [esp + 0x14]
call fcn.00401b60
lea ecx, [esp + 4]
mov dword [esp + 0x174], 0
call fcn.00401b60
mov eax, dword [esp + 0x17c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x178], 1
call fcn.00401c80
mov edx, dword [esp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x4011d0
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
push ebx
not ecx
dec ecx
push ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [edx - 4]
cmp ecx, 1
push esi
mov ebx, eax
jbe 0x4010d7
add eax, 7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], 1
mov edi, dword [esp + 0x18]
lea ebp, [eax + 4]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
lea ecx, [eax - 4]
call fcn.00401890
mov edx, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp byte [edx + ecx - 1], 0x5c
je 0x4010ed
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004020d0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.00401c80
push 0x2a
lea ecx, [esp + 0x24]
call fcn.004020d0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011c2
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x10
lea edx, [esp + 0x64]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004019f0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 2
call fcn.00401c80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 1
call fcn.00401c60
test byte [esp + 0x38], bl
je 0x4011a0
lea ecx, [esp + 0x64]
push 0x404030
push ecx
call esi
add esp, 8
test eax, eax
je 0x4011ab
lea edx, [esp + 0x64]
push 0x40402c
push edx
call esi
add esp, 8
test eax, eax
je 0x4011ab
lea eax, [esp + 0x20]
push eax
call section..text
add esp, 4
jmp 0x4011ab
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x38]
push edx
push edi
call ebp
test eax, eax
jne 0x40112f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
pop ebp
pop ebx
lea ecx, [esp + 4]
mov byte [esp + 0x174], 0
call fcn.00401c60
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.00401c60
mov ecx, dword [esp + 0x16c]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x174
ret