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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405c86
cmp byte [edi + 0x4a], 0
je 0x405c86
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405bdb
xor al, al
jmp 0x405c88
lea esi, [ebp - 0x20]
call fcn.00405556
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c28
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405c2d
dec eax
je 0x405c31
dec eax
dec eax
je 0x405c82
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040568a
mov al, bl
pop ebx
jmp 0x405c88
mov edx, dword [ebp - 0x20]
jmp 0x405bf2
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c3d
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405c63
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c50
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040dea3
add esp, 0x10
cmp esi, eax
jne 0x405c15
cmp byte [edi + 0x4a], 0
je 0x405c82
test esi, esi
jne 0x405be4
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.0040559a
jmp 0x405be4
mov bl, 1
jmp 0x405c17
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bf43
leave
ret
Function at 0x4069c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x4069fe
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406b17
push 0x422920
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x406a47
mov eax, dword [esi]
jmp 0x406a49
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406b17
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406a98
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406b17
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406aad
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406b17
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422cac
push 0x40
push eax
call fcn.004069ac
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret 4

Function at 0x406b2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b33d
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406b6c
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426548
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426548]
xor cx, word [edx*2 + 0x426548]
inc edx
mov word [edi + edx*2 + 0x426546], cx
cmp edx, dword [ebp + 0xc]
jl 0x406b4c
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4073d7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4228d0
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x407425
mov eax, dword [edi]
jmp 0x407427
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x4074ea
push ebx
call fcn.0040b33d
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x407454
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4074de
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228d4
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4074de
cmp dword [ebp - 0x390], esi
je 0x4074de
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x4074de
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push 0x426538
call fcn.00406b2a
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040da12
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret

Function at 0x4076ba
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b1b0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40772c
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x40772a
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x40771c
push eax
push ebx
call fcn.0040773e
test al, al
je 0x407723
inc edi
cmp edi, esi
jb 0x407706
jmp 0x40772a
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bf43
leave
ret
Function at 0x407a65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407a6d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407a88
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x407a8b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e66f
push eax
call fcn.0040e63c
pop ecx
pop ecx
call fcn.0040e64e
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407ae5
mov eax, dword [esi]
jmp 0x407ae7
mov eax, esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push str._s_n_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401455
cmp dword [edi + 0x14], 8
jb 0x407b35
mov eax, dword [edi]
jmp 0x407b37
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407b58
shr eax, 4
and al, 1
je 0x407b58
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407adb
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bf43
leave
ret
Function at 0x407b68
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.00404518
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x407ba8
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407be1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret 4
push 0x42290c
lea esi, [ebp - 0x284]
call fcn.004012ca
push 0x422910
lea esi, [ebp - 0x268]
call fcn.004012ca
test byte [ebp - 0x4d4], 0x10
je 0x407c60
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.004066f6
test eax, eax
je 0x407cc2
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.004066f6
test eax, eax
je 0x407cc2
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.00407b68
jmp 0x407cb3
cmp dword [edi + 0x14], 8
jb 0x407c6a
mov eax, dword [edi]
jmp 0x407c6c
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
lea eax, [ebp - 0x214]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x407cac
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401455
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407c01
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407ce7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401455
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401455
mov bl, 1
jmp 0x407bbf
Function at 0x409503
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40950e
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4095c2
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
add ecx, 8
sub edi, 8
dec esi
jne 0x409525
pop ebx
test edi, edi
je 0x4095db
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x422460]
inc ecx
dec edi
jne 0x4095c6
pop esi
not eax
pop edi
ret

Function at 0x4095e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422460]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422460]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x409c43
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x409c73
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409c6e
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x409c9b
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x409c84
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040eb30
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40aa26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40aaca
cmp dword [ebx + 4], 0xffffffff
jne 0x40aaca
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa55
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40aa8d
cmp eax, 0x2f
je 0x40aa8d
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40aa79
mov edi, esi
mov esi, 0x42109c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c593
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.00409eb8
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40aacf
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40bf43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40bf4d
repz ret
jmp fcn.00410a89
Function at 0x41c503
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
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.0041171e
and dword [ebp - 0x14], 0
cmp dword [0x428354], 0
mov dword [ebp - 0x18], eax
jne 0x41c5b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c65e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fd4
push ebx
call edi
test eax, eax
je 0x41c65e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428354], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428358], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42835c], eax
call edi
push eax
call esi
mov dword [0x428364], eax
test eax, eax
je 0x41c5b6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x428360], eax
mov eax, dword [0x428360]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c60f
cmp dword [0x428364], ecx
je 0x41c60f
push eax
call esi
push dword [0x428364]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c60f
test ebx, ebx
je 0x41c60f
call edi
test eax, eax
je 0x41c606
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c606
test byte [ebp - 8], 1
jne 0x41c60f
or dword [ebp + 0x10], 0x200000
jmp 0x41c642
mov eax, dword [0x428358]
cmp eax, dword [ebp - 0x18]
je 0x41c642
push eax
call esi
test eax, eax
je 0x41c642
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c642
mov eax, dword [0x42835c]
cmp eax, dword [ebp - 0x18]
je 0x41c642
push eax
call esi
test eax, eax
je 0x41c642
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428354]
call esi
test eax, eax
je 0x41c65e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c660
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret
Function at 0x404d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4769e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00411620
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.00411620
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0xff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x404d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4769c5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call dword [0x47ce1c]
xor eax, eax
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call dword [0x47ce28]
lea ecx, [esp + 0x1c]
push ecx
push 0x47e154
lea edx, [esp + 0x54]
mov byte [esp + 0x4c], 1
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call dword [0x47c858]
mov byte [esp + 0x44], 2
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x404e05
call dword [0x47c2fc]
mov ebx, dword [esi + 0xc]
mov ebp, dword [esi]
cmp ebx, dword [esi + 0x10]
jbe 0x404e15
call dword [0x47c2fc]
mov eax, dword [esi]
push edi
push ebp
push ebx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00412610
mov ecx, dword [esp + 0x4c]
cmp dword [ecx - 0xc], 0
je 0x404f10
test byte [esi + 0x38], 1
jne 0x404e43
lea ecx, [esp + 0x4c]
call dword [0x47c860]
push 0
push 0x2a
lea ecx, [esp + 0x54]
call dword [0x47c85c]
cmp eax, 0xffffffff
jne 0x404eb0
test byte [esi + 0x38], 2
jne 0x404eb0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x50]
mov ebx, 0x47e148
call fcn.00411570
add esp, 4
push eax
lea eax, [esp + 0x24]
push eax
mov edi, ebx
mov byte [esp + 0x4c], 3
call fcn.00403020
add esp, 8
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 4
call dword [0x47c994]
lea ecx, [esp + 0x20]
call dword [0x47ce24]
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call dword [0x47ce24]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call dword [0x47c994]
lea ebx, [esp + 0x30]
mov edi, esi
call fcn.004119f0
lea edx, [esp + 0x1c]
push edx
push 0x47e154
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call dword [0x47c858]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 5
call dword [0x47c994]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 2
call dword [0x47ce24]
mov ecx, dword [esp + 0x4c]
cmp dword [ecx - 0xc], 0
jne 0x404e33
lea ecx, [esp + 0x4c]
call dword [0x47ce24]
lea ecx, [esp + 0x30]
call dword [0x47ce24]
lea ecx, [esp + 0x18]
call dword [0x47ce24]
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x41a770
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esi + 0xe8], 0
jne 0x41a7a6
push str.E0A52416_D56A_4c3d_BFC7_3F40E77C718E
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xe8], eax
test eax, eax
jne 0x41a793
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
ret
mov eax, 1
ret

Function at 0x41a820
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x476569
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 7
push 3
call fcn.004740d2
push 5
call fcn.004740d8
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [0x47ce28]
mov ebx, 1
push ebx
push 0x1a
xor esi, esi
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], esi
call dword [0x47ce20]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
test eax, eax
je 0x41a90c
call dword [0x47cde4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [esp + 0x18]
call dword [0x47c848]
lea ecx, [esp + 0x14]
cmp ax, 0x5c
je 0x41a8bd
push 0x48090c
jmp 0x41a8c2
push 0x47d4d8
call dword [0x47c850]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
call dword [0x47ce20]
push eax
call fcn.004740de
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [0x47cde4]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a912
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x41a912
call dword [0x47cde4]
push 2
call fcn.004740e4
add esp, 4
call fcn.0041db30
xor ecx, ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov edx, ebx
mov ecx, esi
shl edx, cl
test eax, edx
je 0x41a971
lea ecx, [esi + 0x41]
movzx edi, cx
mov ecx, edi
call int.0043adc0
test eax, eax
jne 0x41a971
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x20], di
call fcn.004740ea
add esp, 4
mov ebp, ebx
add esi, ebx
cmp esi, 0x20
jl 0x41a93e
push 0
call fcn.004740f0
add esp, 4
lea ecx, [esp + 0x14]
call dword [0x47ce24]
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x41a9b0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x2b4], eax
push 0x4011
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x40
push str._SystemRoot_
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x41a9ff
push eax
call fcn.00472ac2
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004734e6
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
xor eax, eax
call fcn.004734e6
add esp, 0x2b8
ret
Function at 0x41aa20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x2b4], eax
mov eax, dword [esp + 0x2bc]
push 0x4001
push 0x2b4
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x41aa70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004734e6
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
or eax, 0xffffffff
call fcn.004734e6
add esp, 0x2b8
ret

Function at 0x41aa90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476539
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [0x47ce28]
lea eax, [esp + 8]
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00472b8e
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00472b88
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x31
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.00472b9a
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov eax, dword [esp + 8]
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov dword [ebx], ecx
mov ecx, dword [edi + 0x20]
push eax
push ecx
mov dword [ebx + 4], edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 8]
call dword [0x47ce24]
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret