joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4740d0
Capabilities:
Move file
Write file on windows

Disassembly:
mov edx, dword [0x532f2c]
mov ecx, dword [0x532f28]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
sub eax, ecx
push esi
sar eax, 2
xor esi, esi
push edi
test eax, eax
jbe 0x474117
cmp esi, eax
jb 0x474106
call fcn.004c96d9
mov ecx, dword [0x532f28]
mov edx, dword [0x532f2c]
cmp dword [ecx + esi*4], ebp
je 0x47411c
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x474106
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, ecx
cmp ecx, edx
jbe 0x47412d
call fcn.004c96d9
mov ecx, dword [0x532f28]
mov eax, dword [0x532f1c]
mov edi, eax
test eax, eax
jne 0x474155
call fcn.004c96d9
mov ecx, dword [0x532f28]
xor eax, eax
lea esi, [ebx + esi*4]
cmp esi, dword [eax + 0x10]
ja 0x474160
test edi, edi
je 0x474159
mov eax, dword [edi]
jmp 0x47415b
mov eax, dword [eax]
jmp 0x474145
xor eax, eax
cmp esi, dword [eax + 0xc]
jae 0x47416b
call fcn.004c96d9
mov ecx, dword [0x532f28]
mov eax, dword [0x532f2c]
lea edx, [esi + 4]
sub eax, edx
sar eax, 2
test eax, eax
jle 0x474192
add eax, eax
add eax, eax
push eax
push edx
push eax
push esi
call fcn.004c92d0
mov ecx, dword [0x532f28]
add esp, 0x10
sub dword [0x532f2c], 4
cmp ecx, esi
ja 0x4741a5
cmp esi, dword [0x532f2c]
jbe 0x4741aa
call fcn.004c96d9
mov ecx, dword [0x532f88]
mov eax, dword [ecx]
mov edx, dword [eax]
push 0
push 0
push 1
push ebp
call edx
cmp dword [ebp + 0x20], 8
jb 0x4741c8
mov esi, dword [ebp + 0xc]
jmp 0x4741cb
lea esi, [ebp + 0xc]
call fcn.00469880
push eax
mov ecx, esi
call fcn.00469450
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
jmp fcn.004775f0

Function at 0x474230
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
lea esi, [esp + 4]
call fcn.00474210
mov eax, dword [esp + 8]
mov esi, 8
cmp dword [esp + 0x1c], esi
jae 0x47425b
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47427d
mov eax, dword [esp + 8]
cmp dword [esp + 0x1c], esi
jae 0x474274
lea eax, [esp + 8]
push eax
call fcn.004cd230
add esp, 4
cmp dword [esp + 0x1c], esi
pop esi
jb 0x474291
mov eax, dword [esp + 4]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8f08
add esp, 0x20
ret
Function at 0x4746c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
mov ebx, dword [0x532e64]
test ebx, ebx
je 0x4748ad
add ebx, 0x108
je 0x4748ad
push ebp
push esi
push edi
xor ebp, ebp
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
mov dword [esp + 0x10], ebp
sar eax, 2
cmp ebp, eax
jae 0x4748aa
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3e]
push edx
mov word [esp + 0x40], cx
call fcn.004d1df0
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
add esp, 0xc
sar eax, 2
cmp ebp, eax
jb 0x474735
call fcn.004c96d9
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x38]
push str.autoswitch_cat_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0047fd60
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x47476a
mov eax, dword [eax + 4]
jmp 0x47476d
add eax, 4
push eax
push 0
lea edx, [esp + 0x3c]
push edx
push str.wallpaper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp dword [esp + 0x30], edi
jb 0x474795
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c8f17
add esp, 4
mov edx, dword [ebx + 0x14]
sub edx, dword [ebx + 0x10]
xor edi, edi
xor ecx, ecx
sar edx, 2
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], cx
cmp ebp, edx
jb 0x4747bc
call fcn.004c96d9
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + ebp*4]
cmp esi, edi
setne al
mov byte [edx + 0x8c], al
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
sar eax, 2
cmp ebp, eax
jb 0x4747df
call fcn.004c96d9
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 0x64]
sub ecx, dword [eax + 0x60]
add eax, 0x54
sar ecx, 2
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x4748a4
lea ecx, [ecx]
mov edx, dword [ebx + 0x14]
sub edx, dword [ebx + 0x10]
sar edx, 2
cmp ebp, edx
jb 0x474812
call fcn.004c96d9
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + ebp*4]
mov ecx, dword [esi + 0x64]
sub ecx, dword [esi + 0x60]
add esi, 0x54
sar ecx, 2
cmp edi, ecx
jb 0x47482d
call fcn.004c96d9
mov edx, dword [esi + 0xc]
mov ebp, dword [edx + edi*4]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x38]
push str.autoswitch_subcat_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0047fd60
cmp dword [eax + 0x18], 8
jb 0x47485e
mov eax, dword [eax + 4]
jmp 0x474861
add eax, 4
push eax
push 0
lea edx, [esp + 0x3c]
push edx
push str.wallpaper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x30], 8
mov esi, eax
jb 0x47488a
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c8f17
add esp, 4
test esi, esi
setne cl
inc edi
cmp edi, dword [esp + 0x14]
mov byte [ebp + 0xb0], cl
mov ebp, dword [esp + 0x10]
jl 0x474800
inc ebp
jmp 0x4746f4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x230]
pop ebx
xor ecx, esp
call fcn.004c8f08
add esp, 0x230
ret
Function at 0x4749d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1c
push esi
lea esi, [esp + 4]
call fcn.0047fd60
cmp dword [eax + 0x18], 8
jb 0x4749e8
mov eax, dword [eax + 4]
jmp 0x4749eb
add eax, 4
push eax
push 0
push str.autoswitch_positionex
push str.wallpaper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x1c], 8
mov esi, eax
jb 0x474a14
mov eax, dword [esp + 8]
push eax
call fcn.004c8f17
add esp, 4
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x474a20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1c
push esi
lea esi, [esp + 4]
call fcn.0047fd60
cmp dword [eax + 0x18], 8
jb 0x474a38
mov eax, dword [eax + 4]
jmp 0x474a3b
add eax, 4
push eax
push 0
push str.autoswitch_openstatus
push str.wallpaper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x1c], 8
mov esi, eax
jb 0x474a64
mov eax, dword [esp + 8]
push eax
call fcn.004c8f17
add esp, 4
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x475af0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ef476
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xbc]
lea esi, [esp + 0x18]
call fcn.00474210
xor esi, esi
mov dword [esp + 0xb4], esi
mov eax, dword [esp + 0x1c]
mov edi, 8
mov dword [esp + 0x14], esi
cmp dword [esp + 0x30], edi
jae 0x475b5b
lea eax, [esp + 0x1c]
push 0x5092e4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004c97c6
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, esi
jne 0x475b90
cmp dword [esp + 0x30], edi
jb 0x475b89
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c8f17
add esp, 4
xor al, al
jmp 0x475c94
push 2
push esi
push eax
call fcn.004cbfa2
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call fcn.004cbeaa
mov ecx, eax
imul ecx, ecx, 0x6e
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x18]
add esp, 4
sar edx, 5
push esi
mov eax, edx
shr eax, 0x1f
push esi
push ecx
lea ebp, [edx + eax + 0xa]
call fcn.004cbfa2
lea edx, [ebp + 0x64]
add esp, 0xc
push edx
call fcn.004c85fa
mov edi, eax
add esp, 4
cmp edi, esi
je 0x475c54
push ebp
push esi
push edi
call fcn.004d1df0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push ebp
push 1
push edi
call fcn.004c9ab9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c9c66
mov dword [esp + 0x28], esi
add esp, 0x14
lea esi, [esp + 0x34]
call fcn.004836b0
mov byte [esp + 0xb4], 1
xor eax, eax
lea edx, [edi + ebp + 0x64]
push ebx
mov ecx, esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
mov byte [esp + 0xa4], 1
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.00483760
mov eax, esi
call fcn.00483700
push edi
call fcn.004ca215
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
add esp, 4
test eax, 0xfffffffc
jne 0x475c7c
mov ecx, dword [ebx + 0x54]
sub ecx, dword [ebx + 0x50]
test ecx, 0xfffffffc
jne 0x475c7c
xor bl, bl
jmp 0x475c7e
mov bl, 1
cmp dword [esp + 0x30], 8
jb 0x475c92
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c8f17
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004c8f08
add esp, 0xa4
ret
Function at 0x475cc0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ef438
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x10]
mov dword [esp + 0x38], ebx
call fcn.00474210
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
jae 0x475d12
lea eax, [esp + 0x14]
push 0x5092f8
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004c97c6
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp ecx, ebx
jne 0x475d62
cmp dword [esp + 0x28], 8
jb 0x475d41
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
jb 0x475dca
mov eax, dword [esp + 0x44]
push eax
jmp 0x475dc2
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp dword [esp + 0x58], esi
jae 0x475d75
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push 1
push eax
call fcn.004ca3f1
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c9c66
add esp, 0x14
cmp dword [esp + 0x28], 8
jb 0x475da4
mov eax, dword [esp + 0x14]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
cmp dword [esp + 0x58], esi
jb 0x475dca
mov edx, dword [esp + 0x44]
push edx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c8f08
add esp, 0x30
ret
Function at 0x477200
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f2c18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x10], ax
push 0x532f54
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
call fcn.00401850
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x47726d
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477291
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x477287
lea eax, [esp + 8]
push 0
call fcn.0046a290
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x4772a5
mov ecx, dword [esp + 8]
push ecx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2c
ret
Function at 0x4779b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f197e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea esi, [esp + 0x38]
call fcn.004784a0
mov dword [esp + 0xd0], 0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x477a0e
lea eax, [esp + 0x3c]
push 0x5092e4
push eax
call fcn.004c97af
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x477bea
push 2
push 0
push ebp
call fcn.004cbfa2
add esp, 0xc
push ebp
call fcn.004cbeaa
add esp, 4
push 0
push 0
push ebp
mov esi, eax
call fcn.004cbfa2
add esp, 0xc
lea ebx, [esi + 0x64]
push ebx
call fcn.004c85fa
mov edi, eax
add esp, 4
test edi, edi
je 0x477be1
push ebx
push 0
push edi
call fcn.004d1df0
add esp, 0xc
push ebp
push esi
push 1
lea ebx, [edi + esi]
push edi
mov byte [ebx], 0
call fcn.004c9ab9
add esp, 0x10
lea esi, [esp + 0x54]
call fcn.004836b0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xd4], 1
call fcn.004773d0
mov byte [esp + 0xd0], 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x94], ebx
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x94], edi
mov byte [esp + 0xc4], 1
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00483760
push edi
call fcn.004ca215
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 4
cmp ebx, eax
jae 0x477bc2
mov eax, dword [ecx + ebx*4]
add eax, 0x10
cmp dword [eax + 0x18], 8
jb 0x477b11
mov esi, dword [eax + 4]
jmp 0x477b14
lea esi, [eax + 4]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jb 0x477b26
call fcn.004c96d9
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 8]
push eax
mov ecx, esi
call fcn.00478070
add esp, 4
mov ebp, eax
push 0xb
push str.ScreenSaver
lea esi, [ebp + 0x30]
call fcn.00401760
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp ebx, ecx
jb 0x477b5c
call fcn.004c96d9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 0x30]
mov dword [ebp + 0x2c], ecx
cmp byte [0x532eb8], 0
mov dword [esp + 0x14], ebp
je 0x477ba6
lea edx, [esp + 0x14]
push edx
mov edi, 0x532f1c
call fcn.0044a780
mov ecx, dword [0x532f88]
test ecx, ecx
je 0x477ba6
mov eax, dword [ecx]
mov edx, dword [eax]
push 0
push 0
push 0
push ebp
call edx
push 1
call fcn.004775f0
add esp, 4
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, edx
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x477b00
mov ebp, dword [esp + 0x18]
call fcn.00470020
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.00477430
lea eax, [esp + 0x54]
call fcn.00483700
push ebp
call fcn.004c9c66
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x477bfe
mov eax, dword [esp + 0x3c]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004c8f08
add esp, 0xc0
ret
Function at 0x478120
Capabilities:
Get number of processors
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f192e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xac], eax
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
lea esi, [esp + 0x30]
call fcn.00478480
mov dword [esp + 0xc8], 0
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x47817d
lea eax, [esp + 0x34]
push 0x5092e4
push eax
call fcn.004c97af
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x478304
push 2
push 0
push edi
call fcn.004cbfa2
add esp, 0xc
push edi
call fcn.004cbeaa
add esp, 4
push 0
push 0
push edi
mov esi, eax
call fcn.004cbfa2
add esp, 0xc
lea ebp, [esi + 0x64]
push ebp
call fcn.004c85fa
mov edi, eax
add esp, 4
test edi, edi
je 0x4782f7
push ebp
push 0
push edi
call fcn.004d1df0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push esi
push 1
lea ebp, [edi + esi]
push edi
mov byte [ebp], 0
call fcn.004c9ab9
add esp, 0x10
lea esi, [esp + 0x4c]
call fcn.004836b0
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xcc], 1
call fcn.004773d0
mov byte [esp + 0xc8], 2
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], ebp
mov byte [esp + 0xbc], 1
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call fcn.00483760
push edi
call fcn.004ca215
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 4
xor esi, esi
test eax, eax
jbe 0x4782dd
cmp esi, eax
jb 0x478289
call fcn.004c96d9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
add eax, 0x10
cmp dword [eax + 0x18], 8
jb 0x47829a
mov edi, dword [eax + 4]
jmp 0x47829d
lea edi, [eax + 4]
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x4782af
call fcn.004c96d9
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 8]
push ecx
mov ecx, edi
call fcn.00478070
add esp, 4
push eax
call fcn.00473880
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
add esp, 4
cmp esi, eax
jb 0x478289
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 1
call fcn.00477430
lea eax, [esp + 0x4c]
call fcn.00483700
mov edx, dword [esp + 0x10]
push edx
call fcn.004c9c66
add esp, 4
cmp dword [esp + 0x48], 8
jb 0x478318
mov eax, dword [esp + 0x34]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.004c8f08
add esp, 0xbc
ret
Function at 0x47c6a0
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ee260
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea esi, [edi + edi + 2]
cmp esi, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], edi
jge 0x47c7cb
sub esp, 0x24
mov edi, esp
mov dword [esp + 0x48], esp
lea ecx, [esi + esi*8]
xor edx, edx
push 0xffffffffffffffff
lea ebp, [ebp + ecx*4]
push edx
lea ebx, [ebp - 0x24]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
push ebx
mov eax, edi
mov word [edi + 4], dx
call fcn.00401850
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov ecx, dword [ebx + 0x20]
mov dword [edi + 0x20], ecx
sub esp, 0x24
mov edi, esp
mov dword [esp + 0x68], esp
xor edx, edx
push 0xffffffffffffffff
mov byte [esp + 0x7c], 1
push edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
push ebp
mov eax, edi
mov word [edi + 4], dx
call fcn.00401850
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp + 0x20]
mov dword [edi + 0x20], ecx
mov byte [esp + 0x78], 0
call dword [esp + 0x60]
add esp, 0x48
test al, al
je 0x47c77f
dec esi
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea edx, [esi + esi*8]
lea eax, [eax + eax*8]
push 0xffffffffffffffff
lea edi, [ebx + edx*4]
lea ebx, [ebx + eax*4]
push 0
push edi
mov eax, ebx
call fcn.00401850
mov ecx, dword [edi + 0x1c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x3c], esi
mov dword [ebx + 0x1c], ecx
mov edx, dword [edi + 0x20]
lea esi, [esi + esi + 2]
cmp esi, dword [esp + 0x40]
mov dword [ebx + 0x20], edx
jl 0x47c6f7
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
cmp esi, ebx
jne 0x47c7fa
push 0xffffffffffffffff
lea eax, [ebx + ebx*8]
lea ecx, [edi + edi*8]
lea esi, [ebp + eax*4 - 0x24]
lea edi, [ebp + ecx*4]
push 0
push esi
mov eax, edi
call fcn.00401850
mov edx, dword [esi + 0x1c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x20]
dec ebx
mov dword [edi + 0x20], eax
mov dword [esp + 0x3c], ebx
mov edi, ebx
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x44], esp
xor ecx, ecx
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x70]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push edx
mov eax, esi
mov word [esi + 4], cx
call fcn.00401850
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x40]
push edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x8c]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x40]
push edi
push ebp
call fcn.0047c910
add esp, 0x30
cmp dword [esp + 0x5c], 8
jb 0x47c861
mov eax, dword [esp + 0x48]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x47c910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ee230
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [ebx - 1]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0
jge 0x47ca2f
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x40], esp
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x6c]
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov eax, esi
mov word [esi + 4], dx
call fcn.00401850
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x20], edx
mov ecx, dword [esp + 0x38]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x68], esp
xor edx, edx
push 0xffffffffffffffff
lea eax, [ebp + ebp*8]
mov byte [esp + 0x78], 1
lea edi, [ecx + eax*4]
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push edi
mov eax, esi
mov word [esi + 4], dx
call fcn.00401850
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov byte [esp + 0x74], 0
call dword [esp + 0x60]
add esp, 0x48
test al, al
je 0x47ca2f
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
lea edx, [ebx + ebx*8]
lea esi, [eax + edx*4]
push 0
push edi
mov eax, esi
call fcn.00401850
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
lea eax, [ebp - 1]
mov dword [esi + 0x20], edx
cdq
sub eax, edx
mov ebx, ebp
sar eax, 1
cmp dword [esp + 0x3c], ebx
mov ebp, eax
jl 0x47c963
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
push 0
lea edx, [esp + 0x48]
push edx
mov eax, esi
call fcn.00401850
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
jb 0x47ca6b
mov edx, dword [esp + 0x44]
push edx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x47ccd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x47cced
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47cd24
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x47cd20
lea ebx, [ebx]
cmp esi, eax
jae 0x47cd24
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x47cd10
cmp esi, eax
jb 0x47cd2b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret