joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x465ab3
xor eax, eax
jmp 0x465b27
lea eax, [esi + 0x5d538]
push str.MetalinkFile
push eax
call fcn.0047117a
pop ecx
pop ecx
cmp eax, edi
je 0x465adf
xor ecx, ecx
mov word [eax], cx
add eax, 0x1a
push eax
call fcn.0046e794
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.004626ea
test eax, eax
je 0x465aaf
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, edi
je 0x465b24
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4659e4
push edi
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x5d100], 8
call fcn.00471d60
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x467847
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x46784f
mov dword [ecx*4 + 0x56e980], eax
inc ecx
cmp ecx, 0x100
jb 0x46784a
mov edx, 0x800
jmp 0x46789c
mov eax, dword [ecx*4 + 0x56e580]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x56e980]
inc ecx
mov dword [ecx*4 + 0x56e97c], eax
cmp ecx, edx
jb 0x46787b
mov dword [0x56c170], 0x46831d
call fcn.004684bd
pop esi
test eax, eax
jne 0x4678be
mov dword [0x56c170], 0x4683b9
ret
Function at 0x46a03d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x46a056
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x46a079
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x46a07e
inc edi
cmp edi, dword [ebp - 4]
jb 0x46a070
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x46a176
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x46a0d5
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x46a0a9
cmp cl, 0xff
jne 0x46a100
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x46a10e
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x46a115
dec ecx
shl edx, cl
and edx, 7
je 0x46a09a
movzx ecx, byte [edx + 0x4971d0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4971c8], 0
mov cl, byte [ebx + 4]
je 0x46a0fd
test cl, cl
je 0x46a0fd
cmp cl, 0xff
jne 0x46a09a
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x46a06b
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x46a149
movzx esi, byte [edx + 0x4971d0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x46a134
cmp al, 0xff
jne 0x46a146
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x46a0c7
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x46a06b
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x46e0cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a02f0]
jne 0x46e0d7
repz ret
jmp fcn.004755fb
Function at 0x484dbd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00475d21
and dword [ebp - 0x14], 0
cmp dword [0x56cfd0], 0
mov dword [ebp - 0x18], eax
jne 0x484e70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x484f18
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4990f0
push ebx
call edi
test eax, eax
je 0x484f18
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x56cfd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x56cfd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56cfd8], eax
call edi
push eax
call esi
mov dword [0x56cfe0], eax
test eax, eax
je 0x484e70
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56cfdc], eax
mov eax, dword [0x56cfdc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x484ec9
cmp dword [0x56cfe0], ecx
je 0x484ec9
push eax
call esi
push dword [0x56cfe0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x484ec9
test ebx, ebx
je 0x484ec9
call edi
test eax, eax
je 0x484ec0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x484ec0
test byte [ebp - 8], 1
jne 0x484ec9
or dword [ebp + 0x10], 0x200000
jmp 0x484efc
mov eax, dword [0x56cfd4]
cmp eax, dword [ebp - 0x18]
je 0x484efc
push eax
call esi
test eax, eax
je 0x484efc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x484efc
mov eax, dword [0x56cfd8]
cmp eax, dword [ebp - 0x18]
je 0x484efc
push eax
call esi
test eax, eax
je 0x484efc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56cfd0]
call esi
test eax, eax
je 0x484f18
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x484f1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret
Function at 0x48d9dd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x56d354], 0
push esi
push edi
jne 0x48d953
call fcn.0048d8bf
test eax, eax
je 0x48d998
mov eax, dword [0x56d354]
cmp eax, 1
jne 0x48d974
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48d998
jmp 0x48d9da
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x48d9da
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x48d99c
xor eax, eax
jmp 0x48d9da
mov eax, dword [esi]
push dword [0x56d354]
call edi
mov edi, eax
test edi, edi
je 0x48d9be
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x48d9da
lea edi, [esi + 0xff0]
push esi
push dword [0x56d354]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x48d9c4
mov eax, esi
pop edi
pop esi
ret
jmp 0x48d93f
Function at 0x4076ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4076ee
cmp dword [edi + 0x74], 0
jne 0x4076ee
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b81e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040768b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40debd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40df04
call fcn.0041b81e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40df20
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d9c2
mov esi, eax
test edi, edi
je 0x40df1e
test ebx, ebx
je 0x40df1e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e6d7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x529657
call fcn.0050d369
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40e6fc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40e74e
call fcn.0040fb0e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401540
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050f994
push eax
call fcn.00403260
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011a0
mov eax, esi
call fcn.0050d441
ret 8

Function at 0x410cf4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x410d18
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x410d26
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x410d12
xor eax, eax
inc eax
pop esi
ret
Function at 0x435244
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43528c
call fcn.0041b81e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43528c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4352cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4352b8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4352b8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4352cc
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x445eef
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x445e66
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x445e84
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x445ee2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x445ec9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x445ed2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x445edc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x445ebe
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x445e48
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x445f2f
dec eax
je 0x445f26
sub eax, 3
je 0x445f1d
mov dword [ebp - 4], 0x40
jmp 0x445f4c
mov dword [ebp - 4], 4
jmp 0x445f32
mov dword [ebp - 4], 0x20
jmp 0x445f32
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x445f7e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x445efe
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0044578f
add eax, 0xff869aaf
jne 0x445f89
push 1
push esi
call edi
mov eax, esi
jmp 0x445f8a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x470c85
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00470944
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x470ccf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402c80
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405bf3
jmp 0x470cda
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00422574
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x470ce0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040dfc9
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x470d1d
call fcn.00470944
mov dword [esi + 0xc], 1
jmp 0x470d22
call fcn.00470944
cmp dword [esi], 0
je 0x470d6b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x470d43
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402c80
jmp 0x470d55
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401720
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405bf3
jmp 0x470d8f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x470d8f
push dword [esi]
push dword [ebp + 8]
call fcn.00422574
pop esi
pop ebp
ret 0xc

Function at 0x49d58a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x49d5a4
call fcn.0041b81e
mov esi, dword [eax + 0xc]
push dword [0x5853c8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49d5c2
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x49d5ba
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x49d5ef
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x49d5bc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0049d4b8
mov esi, eax
jmp 0x49d5e1

Function at 0x4ebfb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040c34f
call fcn.00402350
cmp eax, esi
pop esi
jne 0x4ebfd0
mov ecx, 0x5830d8
jmp fcn.004201ce
ret
Function at 0x4ef8b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ef8d0
mov edi, dword [esi + 0xc]
jmp 0x4ef910
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ef8e9
call fcn.0042133b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ef8fe
call fcn.0042133b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ef910
call fcn.0042133b
call fcn.0041b81e
cmp dword [eax + 0x3c], 0
je 0x4ef925
push edi
mov ecx, ebx
call fcn.004ee77e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ef7d2
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4ef943
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ef94f
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50ca19
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x580038]
jne 0x50ca23
repz ret
jmp fcn.00514b4c
Function at 0x40ac50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da132
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x64106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.004c06fc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40ace4
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], 0x5e7eac
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401a90
push eax
push esi
call fcn.004c0a44
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x416590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x4165b7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4165b2
mov eax, dword [ebx]
jmp 0x4165b4
mov eax, ebx
mov byte [eax], 0
call fcn.0041a450
test al, al
je 0x4165c9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00418ac0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4165c0
push 0x10000
call fcn.004c244f
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.005144b1
mov edi, eax
add esp, 0x10
test edi, edi
je 0x416656
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x41662c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.004060c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x41666c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.005144b1
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x416610
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005134ff
add esp, 4
test eax, eax
jne 0x41666f
mov byte [ebp - 1], 1
jmp 0x416673
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00513787
add esp, 4
test esi, esi
je 0x416689
push esi
call fcn.004c221a
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4174f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41762f
cmp byte [ebx + 0x3d], 0
je 0x41762f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41753d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.004113f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x18]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4175ae
sub eax, 1
je 0x4175b2
sub eax, 2
je 0x417610
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.004051e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x4175f1
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00513d4b
add esp, 0x10
cmp esi, eax
jne 0x41758f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x417610
test esi, esi
jne 0x417552
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00412b20
jmp 0x41754a
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.004051e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x417d10
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004254d0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004255f0
cmp dword [ebp - 0x10], ebx
je 0x417e5b
nop
cmp byte [ebp - 0x2e4], 0
jne 0x417d9a
test bl, 1
je 0x417d82
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.0041f860
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0050b8e0
add esp, 0xc
jmp 0x417db3
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
test bl, 1
je 0x417dd6
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x417e09
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00417d10
add esp, 4
test al, al
je 0x417eb7
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x417e1b
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x417eb7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004255f0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x417e43
push 0xffffffffffffffff
push 0
push eax
call fcn.00405b70
lea ecx, [ebp - 0x38]
call fcn.00405040
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x417d60
lea ecx, [ebp - 0x20]
call fcn.00405040
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x417e77
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.004259d0
push dword [ebp - 0x54]
call fcn.004c2207
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.00405040
lea ecx, [ebp - 0x8c]
call fcn.00405040
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00405040
xor bl, bl
jmp 0x417e65