joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036d2
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 4
call dword [0x4a61b4]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x40377f
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [0x4a61b0]
pop edi
test eax, eax
jne 0x403725
push ebx
call dword [0x4a61b8]
xor eax, eax
jmp 0x40377f
push esi
call dword [0x4a6130]
cmp dword [ebp - 0x14], eax
jne 0x40376e
call dword [0x4a61ec]
cmp dword [ebp - 0x18], eax
je 0x40376e
push dword [ebp - 0x18]
push 0
push 0x1f03ff
call dword [0x4a61ac]
mov esi, eax
test esi, esi
je 0x40378e
cmp dword [ebp + 8], 0
push esi
je 0x403761
call dword [0x4a61a8]
jmp 0x403767
call dword [0x4a6154]
push esi
call dword [0x4a61b8]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4a6050]
test eax, eax
jne 0x403726
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret 4
xor eax, eax
jmp 0x40377e

Function at 0x403ea5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x30
push 0x4beb70
call fcn.00493db0
mov al, byte [0x4d1316]
test al, al
jne 0x403f1c
mov byte [0x4d1316], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x3c], vtable.pure_call_patch::PureCallBase.0
mov eax, dword [vtable.pure_call_patch::PureCallBase.0]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x4b2b08
lea ecx, [ebp - 0x3c]
call dword [0x4b2b08]
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push eax
push 0x40
push 1
push edi
mov esi, dword [0x4a6088]
call esi
mov byte [edi], 0xcc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push 1
push edi
call esi
jmp 0x403f10
mov dword [ebp - 4], 0xfffffffe
mov al, byte [0x4d1316]
call fcn.00493df8
ret
Function at 0x40462c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x40463e
xor eax, eax
jmp 0x4046ad
push esi
mov esi, edi
call fcn.00404890
lea esi, [ebp - 0x14]
call fcn.0040309c
push dword [ebp + 8]
mov esi, 0x5834
push esi
push ebx
push 4
add eax, 4
push eax
push 0xffffffffffffffff
call dword [0x4a60a8]
mov dword [edi + 4], eax
cmp dword [ebp - 4], ebx
je 0x40467f
push dword [ebp - 4]
push ebx
call dword [0x4a61c4]
push eax
call dword [0x4a61c0]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4046a2
push esi
push ebx
push ebx
push 6
push eax
call dword [0x4a60ac]
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x4046a6
push dword [edi + 4]
call dword [0x4a61b8]
xor eax, eax
jmp 0x4046ac
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
pop esi
pop ebx
leave
ret 4

Function at 0x4051ef
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0047a8e0
mov esi, dword [0x4a61bc]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x40524d
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x405257
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00478b4c
leave
ret
Function at 0x4065d2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.0040658b
mov edi, eax
cmp edi, ebx
je 0x406640
cmp dword [ebp - 0x218], ebx
je 0x406639
push dword [ebp - 0x218]
call dword [0x4a6020]
mov eax, edi
jmp 0x406703
mov edi, dword [0x4a6018]
jmp 0x406664
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004065d2
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x4066cd
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x406648
mov edi, dword [0x4a6020]
cmp dword [ebp - 0x218], ebx
je 0x4066af
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x4066e9
mov esi, eax
call fcn.00406760
jmp 0x4066ef
cmp dword [ebp - 0x218], ebx
je 0x4066e1
push dword [ebp - 0x218]
call dword [0x4a6020]
mov eax, dword [ebp - 0x224]
jmp 0x406703
call dword [0x4a6024]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x406701
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret 4
Function at 0x406fd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x408], esi
call dword [0x4a6074]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x407023
call fcn.00405b64
mov esi, eax
jmp 0x4070e8
push ebx
push edi
push eax
call dword [0x4a61fc]
mov edi, eax
cmp edi, esi
jne 0x40703c
call fcn.00405b64
jmp 0x4070da
push edi
push dword [ebp - 0x40c]
call dword [0x4a6200]
mov ebx, eax
cmp ebx, esi
je 0x407032
push edi
push dword [ebp - 0x40c]
call dword [0x4a6270]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x40706c
mov esi, 0x8007000e
jmp 0x4070dc
push 2
push eax
call fcn.004060ea
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x40708c
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00405b41
jmp 0x407098
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x407065
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [0x4a61cc]
cmp eax, esi
je 0x407032
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x414]
call fcn.00406e71
mov esi, eax
push dword [ebp - 0x40c]
call dword [0x4a605c]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x407101
lea eax, [ebp - 0x408]
call fcn.004060e1
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret 0xc
Function at 0x409a5e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
call fcn.004074cf
cmp dword [eax + 4], 0
je 0x409ac6
mov eax, dword [esi + 0x44]
test eax, eax
je 0x409ac6
add esi, 0x48
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x409abe
cmp dword [eax + 0x28], 0
jne 0x409abe
cmp dword [eax + 0x24], 0
jne 0x409abe
push dword [eax + 0x20]
call dword [0x4a62d4]
cmp eax, 1
jne 0x409abe
mov eax, dword [esi]
push 0
push 0xd002
push 0xf402
mov dword [eax + 0x24], 1
push dword [0x4d1ecc]
call dword [0x4a6318]
add esi, 4
dec dword [ebp - 4]
jne 0x409a7d
pop esi
leave
ret
Function at 0x409ac9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x48], eax
call fcn.004074cf
cmp dword [eax + 4], 0
je 0x409cc0
lea ecx, [ebp - 0x34]
call fcn.0040e98a
push str.bdbtray_rh_rh.xml
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x38]
call fcn.004028ff
pop ecx
call fcn.00402a77
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.00402878
mov esi, dword [ebp - 0x34]
push esi
call dword [0x4a62d4]
test eax, eax
je 0x409cb8
and dword [ebp - 0x30], 0
lea edi, [ebp - 0x30]
call fcn.0040b013
test eax, eax
js 0x409cab
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409cb8
push esi
lea esi, [ebp - 0x24]
call fcn.0040d5e9
mov edx, eax
call fcn.0040d617
xor ecx, ecx
cmp cx, ax
mov eax, esi
push eax
sete bl
call dword [0x4a628c]
test bl, bl
je 0x409b8f
mov esi, edi
call fcn.0040aff9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x409b84
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
jmp 0x409cbb
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x409ba0
push 0x80004003
call fcn.004789b0
lea edi, [ebp - 0x38]
call fcn.0040d5bb
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x409b77
push ecx
mov edi, esp
push 0x4b3350
call fcn.0040d4e9
lea ebx, [ebp - 0x3c]
call fcn.0040d573
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x409bd6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409b77
and dword [ebp - 0x44], 0
call fcn.0040d4c2
dec eax
mov dword [ebp - 0x40], eax
jns 0x409c06
mov esi, dword [ebp - 0x48]
add esi, 0x64
mov ecx, esi
call fcn.0040a96e
push esi
call fcn.0040a906
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409bcb
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
push eax
lea edi, [ebp - 0x4c]
call fcn.0040d492
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x409c93
lea edi, [ebp - 0x50]
mov eax, ebx
call fcn.0040d3f0
mov eax, dword [eax]
test eax, eax
je 0x409c2d
mov eax, dword [eax]
jmp 0x409c2f
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407327
lea edi, [ebp - 0x50]
call fcn.0040d533
mov edi, dword [ebp - 0x48]
add edi, 0x64
mov esi, dword [edi]
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
push esi
push edi
call fcn.0040b673
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x409ca1
inc ecx
inc dword [ebp - 0x44]
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x2c]
push 1
call fcn.004018e2
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [ebp - 0x44], 0x7d0
jg 0x409be5
dec dword [ebp - 0x40]
jns 0x409c03
jmp 0x409be5
push str.list_T__too_long
call fcn.00427e86
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x409cb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esi - 0x10]
call fcn.00402878
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret 4
Function at 0x409cd1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.004074cf
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x409ea8
lea ecx, [ebp - 8]
call fcn.0040e98a
push 0x4b3354
lea edi, [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.004028ff
pop ecx
call fcn.00402a77
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402878
push dword [ebp - 8]
call dword [0x4a61e0]
cmp eax, 0xffffffff
je 0x409d25
test al, 0x10
jne 0x409d2f
push dword [ebp - 8]
push ebx
call dword [0x4a62bc]
push str.rh.xml
lea eax, [ebp - 8]
push eax
call fcn.004029c5
lea edi, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0040b013
test eax, eax
js 0x409e90
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x409e9d
push ecx
mov edi, esp
push 0x4b337c
call fcn.0040d4e9
lea ebx, [ebp - 0xc]
call fcn.0040d3a8
cmp dword [ebp - 0xc], 0
jne 0x409d80
mov eax, dword [ebp - 4]
test eax, eax
jmp 0x409e95
mov esi, dword [ebp - 4]
test esi, esi
jne 0x409d91
push 0x80004003
call fcn.004789b0
push dword [ebp - 0xc]
lea edi, [ebp - 0x10]
call fcn.0040d378
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409da9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
add esi, 0x64
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.0040a96e
push esi
call fcn.0040a906
mov eax, dword [esi]
and dword [ebp - 0x10], 0
cmp eax, dword [eax]
jmp 0x409e45
mov esi, dword [ebp - 4]
test esi, esi
je 0x409d87
push ecx
mov edi, esp
push 0x4b3350
call fcn.0040d4e9
lea ebx, [ebp - 0x14]
call fcn.0040d3a8
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x409e2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add eax, 8
cmp dword [eax + 0x14], 8
jb 0x409dfd
mov eax, dword [eax]
push ecx
mov edi, esp
push eax
call fcn.0040d4e9
mov esi, ebx
call fcn.0040d343
mov esi, dword [ebp - 0xc]
push ebx
lea edi, [ebp - 0x18]
call fcn.0040d378
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409e26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [ebp - 0x10], 0x7d0
jg 0x409e4e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ecx, dword [ecx]
inc dword [ebp - 0x10]
cmp eax, dword [ecx]
mov dword [ebp + 8], eax
jne 0x409dc9
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409d87
mov edi, dword [ebp - 8]
push edi
lea esi, [ebp - 0x2c]
call fcn.0040d5e9
mov ecx, eax
call fcn.0040d316
mov eax, esi
push eax
call dword [0x4a628c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x409e8b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [edi - 0x10]
jmp 0x409ea3
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x409e9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402878
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409f52
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004074cf
cmp dword [eax + 4], 0
je 0x40a103
lea edi, [esi + 0x80]
mov dword [ebp - 0x44], edi
call fcn.0040af6e
lea ecx, [ebp - 0x30]
call fcn.0040e98a
push str.bdbtray_nmr_nmr.xml
lea edi, [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.004028ff
pop ecx
call fcn.00402a77
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.00402878
mov esi, dword [ebp - 0x30]
push esi
call dword [0x4a62d4]
test eax, eax
je 0x40a0fb
and dword [ebp - 0x2c], 0
lea edi, [ebp - 0x2c]
call fcn.0040b013
test eax, eax
js 0x40a0ee
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a0fb
push esi
lea esi, [ebp - 0x20]
call fcn.0040d5e9
mov edx, eax
call fcn.0040d617
xor ecx, ecx
cmp cx, ax
mov eax, esi
push eax
sete bl
call dword [0x4a628c]
test bl, bl
je 0x40a022
mov esi, edi
call fcn.0040aff9
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40a017
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
jmp 0x40a0fe
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x40a033
push 0x80004003
call fcn.004789b0
lea edi, [ebp - 0x34]
call fcn.0040d5bb
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x40a00a
push ecx
mov edi, esp
push 0x4b33ac
call fcn.0040d4e9
lea ebx, [ebp - 0x38]
call fcn.0040d573
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x40a069
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a00a
and dword [ebp - 0x3c], 0
call fcn.0040d4c2
mov ebx, eax
jmp 0x40a0dd
mov esi, dword [ebp - 0x38]
push ebx
lea edi, [ebp - 0x48]
call fcn.0040d492
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x40a0dd
lea edi, [ebp - 0x40]
mov eax, esi
call fcn.0040d3f0
mov eax, dword [eax]
test eax, eax
je 0x40a09d
mov eax, dword [eax]
jmp 0x40a09f
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00407327
lea edi, [ebp - 0x40]
call fcn.0040d533
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
call fcn.0040ac8c
inc dword [ebp - 0x3c]
push 0
lea ecx, [ebp - 0x28]
push 1
mov byte [eax], 0
call fcn.004018e2
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 0x3c], 0x7d0
jg 0x40a0e0
dec ebx
jns 0x40a076
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a05e
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40a0fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esi - 0x10]
call fcn.00402878
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret
Function at 0x40a112
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.004074cf
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x40a2e4
lea ecx, [ebp - 8]
call fcn.0040e98a
push 0x4b33b0
lea edi, [ebp - 8]
lea eax, [ebp - 0x14]
call fcn.004028ff
pop ecx
call fcn.00402a77
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402878
push dword [ebp - 8]
call dword [0x4a61e0]
cmp eax, 0xffffffff
je 0x40a166
test al, 0x10
jne 0x40a170
push dword [ebp - 8]
push ebx
call dword [0x4a62bc]
push str.nmr.xml
lea eax, [ebp - 8]
push eax
call fcn.004029c5
lea edi, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0040b013
test eax, eax
js 0x40a2cc
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x40a2d9
push ecx
mov edi, esp
push 0x4b33dc
call fcn.0040d4e9
lea ebx, [ebp - 0xc]
call fcn.0040d3a8
cmp dword [ebp - 0xc], 0
jne 0x40a1c1
mov eax, dword [ebp - 4]
test eax, eax
jmp 0x40a2d1
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40a1d2
push 0x80004003
call fcn.004789b0
push dword [ebp - 0xc]
lea edi, [ebp - 0x14]
call fcn.0040d378
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a1ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x84]
mov ecx, dword [eax]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], ecx
cmp ecx, eax
je 0x40a28a
mov esi, dword [ebp - 4]
test esi, esi
je 0x40a1c8
push ecx
mov edi, esp
push 0x4b33ac
call fcn.0040d4e9
lea ebx, [ebp - 0x18]
call fcn.0040d3a8
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a264
mov eax, dword [ebp - 0x14]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40a235
mov eax, dword [eax]
push ecx
mov edi, esp
push eax
call fcn.0040d4e9
mov esi, ebx
call fcn.0040d343
mov esi, dword [ebp - 0xc]
push ebx
lea edi, [ebp - 0x1c]
call fcn.0040d378
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a25e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [ebp - 0x10], 0x7d0
jg 0x40a28a
lea eax, [ebp - 0x14]
call fcn.0040b542
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc dword [ebp - 0x10]
cmp eax, dword [ecx + 0x84]
jne 0x40a204
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a1c8
mov edi, dword [ebp - 8]
push edi
lea esi, [ebp - 0x2c]
call fcn.0040d5e9
mov ecx, eax
call fcn.0040d316
mov eax, esi
push eax
call dword [0x4a628c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a2c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [edi - 0x10]
jmp 0x40a2df
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40a2d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402878
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d68d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov ebx, 0x4d2430
push ebx
call dword [0x4a61f0]
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0047a8e0
mov esi, dword [0x4d2424]
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40d6eb
lea edi, [ebp - 0x84]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40d6dc
mov dword [edi], eax
add edi, 4
lea eax, [ebp - 4]
call fcn.0040e788
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x40d6d0
push 0x7d0
push 1
lea eax, [ebp - 0x84]
push eax
push dword [0x4d2428]
call dword [0x4a60d0]
mov esi, dword [0x4d2424]
cmp eax, 0x102
jne 0x40d74c
mov edi, dword [esi]
mov dword [ebp - 4], edi
jmp 0x40d748
cmp dword [edi + 0xc], 0
je 0x40d73d
push 0
push dword [edi + 0x10]
call dword [0x4a60cc]
push dword [edi + 0x10]
call dword [0x4a61b8]
and dword [edi + 0x10], 0
mov esi, dword [0x4d2424]
lea eax, [ebp - 4]
call fcn.0040e788
mov edi, dword [ebp - 4]
cmp edi, esi
jne 0x40d719
push dword [esi + 4]
mov ecx, 0x4d2420
call fcn.0040e45d
mov eax, dword [0x4d2424]
mov dword [eax + 4], eax
mov eax, dword [0x4d2424]
mov dword [eax], eax
mov eax, dword [0x4d2424]
mov dword [eax + 8], eax
and dword [0x4d2428], 0
push ebx
call dword [0x4a61f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d7d7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x4d2554], 1
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x620], esi
jne 0x40d825
mov eax, dword [section..data]
or dword [0x4d2554], 1
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
push 0x4a4f1e
mov dword [0x4d2550], eax
call fcn.00479305
pop ecx
test byte [0x4d2554], 2
jne 0x40d84b
or dword [0x4d2554], 2
push 0x4d2538
call dword [0x4a60b4]
push 0x4a4f2b
call fcn.00479305
pop ecx
push 0x4d2538
call dword [0x4a61f0]
mov eax, dword [0x4d2550]
xor edi, edi
cmp dword [eax - 0xc], edi
jle 0x40d893
mov eax, 0x4d2550
mov edi, esi
call fcn.00402a77
xor esi, esi
inc esi
push 0x4d2538
call dword [0x4a61f4]
mov eax, esi
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478b4c
leave
ret
push str.00000
push esi
call fcn.0040260a
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.0047a8e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [0x4cff34]
call dword [0x4a61e4]
test eax, eax
jne 0x40d8dc
xor esi, esi
jmp 0x40d871
push str.....P2PStatReport.dll
lea eax, [ebp - 0x21c]
push eax
call dword [0x4a62d0]
test eax, eax
je 0x40d8d8
lea eax, [ebp - 0x21c]
push eax
call dword [0x4a62d4]
test eax, eax
je 0x40d8d8
push 8
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [0x4a6074]
mov esi, eax
mov dword [ebp - 0x624], esi
cmp esi, edi
je 0x40d8d8
push str.ReportGetMachineID
push esi
call dword [0x4a6064]
mov ebx, eax
cmp ebx, edi
jne 0x40d93a
push esi
call dword [0x4a605c]
jmp 0x40d8d8
mov esi, 0x400
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0047a8e0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x61c]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call dword [0x4a60b8]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x40d983
xor eax, eax
jmp 0x40d99c
lea eax, [edi + edi]
call fcn.0047e430
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.0040eca5
push eax
mov esi, 0x4d2550
push esi
call fcn.0040260a
mov edi, dword [ebp - 0x620]
mov eax, esi
call fcn.00402a77
push dword [ebp - 0x624]
call dword [0x4a605c]
jmp 0x40d86e