joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a500
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00409c50
push eax
call fcn.00408aa0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x40a555
push 0x2007
push 0xc
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.004da41d
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a5a9
push 0x2011
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x40a691
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x40a62a
test eax, eax
jne 0x40a62a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a69a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.004170d0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x40a6a9
push 0x201d
push 0x11
jmp 0x40a6a1
push 0x202c
push 0xe
call fcn.00408f80
add esp, 8
push esi
call fcn.004da446
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x40c860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
call fcn.00409c50
push eax
call fcn.00408aa0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x40c8bb
push 0x2644
push 0xc
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x70]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 8]
mov ebx, eax
push ebx
call fcn.004da41d
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c8f2
push 0x264d
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ebx
push esi
push ecx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x40c9b2
mov ebp, dword [esp + 0x60]
lea edx, [esp + 0x18]
xor ebx, ebx
push 1
push edx
push ebx
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push edx
push esi
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c9bb
mov eax, dword [esp + 0x70]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x64]
push eax
push esi
mov dword [edi + 8], eax
call fcn.004170d0
add esp, 8
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x40c9ca
push 0x2659
push 0x15
jmp 0x40c9c2
push 0x2665
push 0xe
call fcn.00408f80
add esp, 8
push esi
call fcn.004da446
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x40c9e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x44
mov ecx, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp ecx, dword [esi + 0x10]
jae 0x40ca0d
push 0x2680
push 1
call fcn.00408f80
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov edx, dword [esi + 8]
push edx
call fcn.004da41d
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x40ca39
push 0x2687
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [esi + 8]
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x5c]
and ecx, 3
mov dword [esp + 0x14], ebx
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
lea eax, [esp + 0x64]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cb44
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jb 0x40cb44
mov ecx, dword [esi + 0xc]
push ecx
push eax
push ebp
call fcn.004170a0
add esp, 0xc
test eax, eax
je 0x40cb29
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push 0x40
and eax, 0xffff
push edx
push eax
call fcn.00409c50
push eax
call fcn.00408aa0
mov edx, eax
add esp, 0x10
cmp edx, ebx
je 0x40cb32
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x68]
lea ecx, [esp + 0x58]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
lea edi, [esp + 0x1c]
mov ecx, dword [ecx]
xor eax, eax
push ecx
mov ecx, dword [esi + 8]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
push ecx
lea eax, [esp + 0x2c]
mov ecx, edx
mov edx, dword [esp + 0x80]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x40cb3b
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], 1
mov dword [ebx], eax
jmp 0x40cb53
push 0x269c
push 0x1c
jmp 0x40cb4b
push 0x26a7
push 0xc
jmp 0x40cb4b
push 0x26af
push 0x12
jmp 0x40cb4b
push 0x2695
push 0xd
call fcn.00408f80
add esp, 8
push ebp
call fcn.004da446
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x40d2a0
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
push 0
call fcn.00408fa0
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x398]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0040d3a0
add esp, 0xc
test eax, eax
jne 0x40d2f5
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x40d306
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x40daf0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebp, 0xffffffff
je 0x40db68
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40db68
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40db68
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x40db77
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x40db5f
push 0x29a8
push 0xd
call fcn.00408f80
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x299b
push 1
call fcn.00408f80
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40db80
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x40dbcf
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40dbcf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40dbcf
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x40dbc9
push 0x29ba
push 0xe
call fcn.00408f80
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
push 0x29b3
push 1
call fcn.00408f80
add esp, 8
xor eax, eax
ret
Function at 0x40f680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
xor esi, esi
cmp ebp, esi
je 0x40f758
mov ebx, dword [esp + 0x260]
cmp ebx, esi
je 0x40f758
push edi
mov ecx, 0x91
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test esi, esi
push ebx
jne 0x40f6e2
push ebp
lea eax, [esp + 0x1c]
push str._s.tes_s
push eax
call fcn.004243e8
add esp, 0x10
jmp 0x40f6f6
push esi
push ebp
lea ecx, [esp + 0x20]
push str._s._d.tes_s
push ecx
call fcn.004243e8
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call fcn.00424161
add esp, 4
cmp eax, 0x104
jae 0x40f749
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x40f719
inc esi
jmp 0x40f6c8
lea ecx, [esp + 0x14]
push ecx
call fcn.00424161
push eax
mov eax, dword [esp + 0x270]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0042417e
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
Function at 0x410390
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x410
push esi
push edi
push 0
call fcn.00408fa0
mov esi, dword [esp + 0x420]
add esp, 4
test esi, esi
je 0x410565
push esi
call fcn.00424161
add esp, 4
test eax, eax
je 0x410565
mov eax, dword [0x5443c4]
test eax, eax
jne 0x4103d7
push 0x30de
push 2
jmp 0x41056c
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4103fe
push 0x30ef
push 4
jmp 0x41056c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x210]
push eax
push 0x5317f8
push esi
call fcn.0040f680
add esp, 0xc
test eax, eax
jne 0x410447
push 0x30f8
push 0x24
jmp 0x41056c
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x420]
push ebx
push ecx
push edx
lea eax, [esp + 0x21c]
push 1
push eax
push esi
xor ebx, ebx
call fcn.0040e220
add esp, 0x14
test eax, eax
je 0x410526
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x531724
push esi
stosw word es:[edi], ax
call fcn.0040f680
add esp, 0xc
test eax, eax
je 0x410537
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 0xc]
push ebx
push edx
push esi
call edi
test eax, eax
je 0x410515
push 1
lea eax, [esp + 0x218]
push esi
push eax
call edi
test eax, eax
je 0x4104d5
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41054b
push 0x311f
push 0x27
call fcn.00408f80
add esp, 8
lea edx, [esp + 0xc]
push 1
push esi
push edx
call edi
test eax, eax
jne 0x41054b
mov eax, dword [esp + 0x428]
or ebx, 0xffffffff
test eax, eax
je 0x41054b
lea ecx, [esp + 0xc]
push 0x103
push ecx
push eax
call fcn.0042417e
add esp, 0xc
jmp 0x41054b
push 0x312d
push 0x28
call fcn.00408f80
add esp, 8
jmp 0x41054b
mov ebx, 1
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x410
ret
push 0x310d
push 0x24
call fcn.00408f80
add esp, 8
mov ebx, 1
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x410
ret
push 0x30d7
push 1
call fcn.00408f80
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
Function at 0x410830
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x410
push esi
push edi
push 0
call fcn.00408fa0
mov esi, dword [esp + 0x420]
add esp, 4
test esi, esi
je 0x4109fb
push esi
call fcn.00424161
add esp, 4
test eax, eax
je 0x4109fb
mov eax, dword [0x5443c4]
test eax, eax
jne 0x410877
push 0x31c8
push 2
jmp 0x410a02
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41089e
push 0x31d9
push 4
jmp 0x410a02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x210]
push eax
push 0x5317f8
push esi
call fcn.0040f680
add esp, 0xc
test eax, eax
jne 0x4108e7
push 0x31e2
push 0x24
jmp 0x410a02
mov ecx, dword [esp + 0x424]
push ebx
lea edx, [esp + 0x214]
push ecx
push edx
push esi
xor ebx, ebx
call fcn.00410a20
add esp, 0xc
test eax, eax
je 0x4109bc
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0x531724
push esi
call fcn.0040f680
add esp, 0xc
test eax, eax
je 0x4109cd
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0xc]
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x4109ab
push 1
lea edx, [esp + 0x218]
push esi
push edx
call edi
test eax, eax
je 0x41096b
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4109e1
push 0x3209
push 0x27
call fcn.00408f80
add esp, 8
lea ecx, [esp + 0xc]
push 1
push esi
push ecx
call edi
test eax, eax
jne 0x4109e1
mov eax, dword [esp + 0x424]
or ebx, 0xffffffff
test eax, eax
je 0x4109e1
lea edx, [esp + 0xc]
push 0x103
push edx
push eax
call fcn.0042417e
add esp, 0xc
jmp 0x4109e1
push 0x3217
push 0x28
call fcn.00408f80
add esp, 8
jmp 0x4109e1
mov ebx, 1
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x410
ret
push 0x31f7
push 0x24
call fcn.00408f80
add esp, 8
mov ebx, 1
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x410
ret
push 0x31c1
push 1
call fcn.00408f80
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
Function at 0x414ff0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x544a80]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x415195
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x415195
push 0x544a84
call fcn.00424161
add esp, 4
test eax, eax
je 0x415195
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x16], eax
push ecx
mov dword [esp + 0x1e], eax
mov word [esp + 0x18], bx
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
mov edx, dword [0x544a7c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and ecx, 0xffff
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push eax
mov eax, dword [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call fcn.004243e8
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x544a84
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415195
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x415113
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x2c]
push 2
push edx
push esi
mov dword [esp + 0x38], 0xfeff
call edi
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00424161
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.00424161
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41517e
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.00424161
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x41517e
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x530d98
call fcn.00424161
add esp, 4
shl eax, 1
push eax
push 0x530d98
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
Function at 0x43a580
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43a5d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43a5d9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x43a5e0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x43a5bd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43a5db
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x4400b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x440100
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x440100
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x440105
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x4400eb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x440112
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x44adf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x44ae31
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44ae33
mov esi, edi
test esi, esi
je 0x44aea8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44ae9d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x44ae9d
cmp dword [esp + 0x1c], eax
jbe 0x44ae6e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44ae9d
cmp esi, edi
je 0x44ae8f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x44aea8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x44b1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ff9bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x531a1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x44b22b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44b22d
mov esi, edi
test esi, esi
je 0x44b2f7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44b2ec
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x44b26f
cmp eax, 2
je 0x44b26f
cmp eax, 6
je 0x44b26f
cmp eax, 7
jne 0x44b2ec
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.004da41d
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x44b2d2
lea ecx, [esp + 0x14]
call fcn.004da97d
cmp esi, dword [esp + 0x14]
je 0x44b2c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004da446
add esp, 4
jmp 0x44b309
call fcn.004da446
add esp, 4
lea ecx, [esp + 0x10]
push 0x5441d0
call fcn.004da97d
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x44b2f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x44b309
push eax
lea ecx, [esp + 0x14]
call fcn.004da97d
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004da553
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004da7e6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10