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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x40133d
xor eax, eax
jmp 0x401363
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x4012a1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x401360
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401b4f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x55dbd0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x401b93
call ebx
test eax, eax
jns 0x401b89
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x55dbcc], eax
mov dword [0x55dbd0], 1
mov eax, dword [0x55dbcc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401baf
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x401bdf
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x401bd5
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x401bca
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x401bcf
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x401bde
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x408c2f
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.004088d3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x408c79
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404dab
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404d7c
jmp 0x408c84
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00408501
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x408c8a
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.00408de0
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x408cc7
call fcn.004088d3
mov dword [esi + 0xc], 1
jmp 0x408ccc
call fcn.004088d3
cmp dword [esi], 0
je 0x408d15
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x408ced
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404dab
jmp 0x408cff
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004044d3
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404d7c
jmp 0x408d39
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x408d39
push dword [esi]
push dword [ebp + 8]
call fcn.00408501
pop esi
pop ebp
ret 0xc

Function at 0x409116
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50ff60
call fcn.004f299f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40913b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40918d
call fcn.00404eaa
push eax
lea ecx, [ebp - 0x10]
call fcn.0040436d
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.004f24df
push eax
call fcn.00404066
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ff3
mov eax, esi
call fcn.004f2a77
ret 8
Function at 0x41269c
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 0x4126e3
call fcn.00404c65
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4126e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4126ff
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041219c
mov esi, eax
test edi, edi
je 0x4126fd
test ebx, ebx
je 0x4126fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415cf4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x55c6a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x415d29
xor eax, eax
jmp 0x415d7c
lea eax, [ebp - 0x210]
push eax
call fcn.004f38bc
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x415d5a
push 0x517c64
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f3522
add esp, 0xc
test eax, eax
jne 0x415d25
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f3522
add esp, 0xc
test eax, eax
jne 0x415d25
lea eax, [ebp - 0x210]
push eax
call fcn.00409941
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f2990
leave
ret

Function at 0x42973f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00404c65
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x429778
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042937c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4297d6
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 0x4297fa
cmp dword [edi + 0x74], 0
jne 0x4297fa
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00404c65
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.00429797
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 0x45455d
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 0x454577
call fcn.00404c65
mov esi, dword [eax + 0xc]
push dword [0x561540]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x454595
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 0x45458d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4545c2
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x45458f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045448b
mov esi, eax
jmp 0x4545b4

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00410b87
call fcn.00407857
cmp eax, esi
pop esi
jne 0x4ce59c
mov ecx, 0x55fc20
jmp fcn.00416ad5
ret

Function at 0x4d8023
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 0x4d803b
mov edi, dword [esi + 0xc]
jmp 0x4d807b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d8054
call fcn.0040aedc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d8069
call fcn.0040aedc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d807b
call fcn.0040aedc
call fcn.00404c65
cmp dword [eax + 0x3c], 0
je 0x4d8090
push edi
mov ecx, ebx
call fcn.004d6e4d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d7f3d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d80ae
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d80ba
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 0x4f2990
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55c6a0]
jne 0x4f299a
repz ret
jmp fcn.004f955c
Function at 0x5041d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55c6a0]
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.004f8f5a
and dword [ebp - 0x14], 0
cmp dword [0x564130], 0
mov dword [ebp - 0x18], eax
jne 0x504283
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50432b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53f2c8
push ebx
call edi
test eax, eax
je 0x50432b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x53f2b8
push ebx
mov dword [0x564130], eax
call edi
push eax
call esi
push 0x53f2a4
push ebx
mov dword [0x564134], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x564138], eax
call edi
push eax
call esi
mov dword [0x564140], eax
test eax, eax
je 0x504283
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56413c], eax
mov eax, dword [0x56413c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5042dc
cmp dword [0x564140], ecx
je 0x5042dc
push eax
call esi
push dword [0x564140]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5042dc
test ebx, ebx
je 0x5042dc
call edi
test eax, eax
je 0x5042d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5042d3
test byte [ebp - 8], 1
jne 0x5042dc
or dword [ebp + 0x10], 0x200000
jmp 0x50430f
mov eax, dword [0x564134]
cmp eax, dword [ebp - 0x18]
je 0x50430f
push eax
call esi
test eax, eax
je 0x50430f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50430f
mov eax, dword [0x564138]
cmp eax, dword [ebp - 0x18]
je 0x50430f
push eax
call esi
test eax, eax
je 0x50430f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x564130]
call esi
test eax, eax
je 0x50432b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50432d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f2990
leave
ret
Function at 0x40925c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, 5
jae 0x409272
xor eax, eax
jmp 0x4093d8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, ecx
sub esi, dword [edx]
cmp esi, 5
jbe 0x409288
lea esi, [ecx - 5]
mov dword [edx], esi
mov esi, dword [ebp + 0x14]
add eax, 0xfffffffb
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
jmp 0x409299
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov cl, byte [edi + eax]
cmp cl, 0xe8
je 0x4092b2
cmp cl, 0xe9
je 0x4092b2
inc edi
inc dword [ebp + 0xc]
jmp 0x4093cb
mov ebx, dword [ebp + 0xc]
mov ecx, edi
sub ecx, dword [edx]
mov dword [edx], ebx
add ecx, dword [ebp + 0x10]
cmp ecx, 5
jbe 0x4092c8
and dword [esi], 0
jmp 0x4092d8
test ecx, ecx
jbe 0x4092d8
mov edx, dword [esi]
and edx, 0x77
add edx, edx
dec ecx
jne 0x4092ce
mov dword [esi], edx
mov dl, byte [edi + eax + 4]
test dl, dl
je 0x4092e9
cmp dl, 0xff
jne 0x4093b4
mov ecx, dword [esi]
shr ecx, 1
mov ebx, ecx
and ebx, 7
cmp dword [ebx*4 + 0x427778], 0
mov dword [ebp + 0x14], ecx
je 0x4093b4
cmp ecx, 0x10
jae 0x4093b4
movzx ebx, byte [edi + eax + 3]
movzx edx, dl
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + eax + 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + eax + 1]
shl edx, 8
or edx, ebx
cmp dword [ebp + 0x1c], 0
je 0x40933c
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx + edx + 5]
jmp 0x409346
sub edx, edi
sub edx, dword [ebp + 0x10]
sub edx, 5
mov ebx, edx
cmp dword [esi], 0
je 0x409382
movzx eax, byte [ecx + 0x427798]
push 3
pop ecx
sub ecx, eax
shl ecx, 3
mov edx, ebx
shr edx, cl
test dl, dl
je 0x409367
cmp dl, 0xff
jne 0x40937f
push 4
xor edx, edx
pop ecx
sub ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 3
inc edx
shl edx, cl
mov ecx, dword [ebp + 0x14]
dec edx
xor edx, ebx
jmp 0x40932d
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], 5
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + eax + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + eax + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + eax + 2], cl
mov byte [edi + eax + 1], bl
add edi, 5
and dword [esi], 0
jmp 0x4093cb
or dword [esi], 1
mov ecx, dword [esi]
inc edi
inc dword [ebp + 0xc]
test dl, dl
je 0x4093c6
cmp dl, 0xff
jne 0x4093cb
or ecx, 0x10
mov dword [esi], ecx
cmp edi, dword [ebp - 4]
jbe 0x409296
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret 0x18

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [ecx]
mov edx, dword [esp + 4]
jbe 0x409ebb
push esi
push edi
movzx esi, byte [edx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x432028]
dec dword [esp + 0x10]
inc edx
cmp dword [esp + 0x10], 0
ja 0x409e9b
pop edi
pop esi
mov dword [ecx], eax
ret 8

Function at 0x40aca6
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40ad2d
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ad41
xor al, al
jmp 0x40ad51
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40af5a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43245c], 0
je 0x40af7d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x40afa3
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040af0f
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.0040aca6
push dword [ebp - 0xc]
mov bl, al
call fcn.00409f4d
pop ecx
mov al, bl
pop ebx
leave
ret 8

Function at 0x40afa7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43245c], 0
je 0x40afc7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40afe9
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040af0f
push dword [eax]
call fcn.0040acbd
push dword [ebp - 0xc]
mov bl, al
call fcn.00409f4d
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40afed
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43245c], 0
je 0x40b00f
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40b031
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040af0f
push dword [eax]
call fcn.0040acf1
push dword [ebp - 0xc]
mov bl, al
call fcn.00409f4d
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40b035
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x43245c], bl
je 0x40b069
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x40b065
cmp eax, 0x50
je 0x40b065
cmp eax, 0xb7
je 0x40b065
xor al, al
jmp 0x40b089
mov al, 1
jmp 0x40b089
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040af0f
push dword [eax]
call fcn.0040ad06
push dword [ebp - 0xc]
mov bl, al
call fcn.00409f4d
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40b08e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43245c], 0
je 0x40b0bc
push 0
push dword [ebp + 8]
call fcn.0040af5a
test al, al
je 0x40b0de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x40b0de
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040af0f
push dword [eax]
call fcn.0040ad2d
push dword [ebp - 0xc]
mov bl, al
call fcn.00409f4d
pop ecx
mov al, bl
pop ebx
leave
ret 4
Function at 0x40b306
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.0040a236
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040a0db
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x40b3e4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.0040a236
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040a0db
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x40bd4d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bd74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bd74
xor al, al
jmp 0x40bd94
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041b7a0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40e685
Capabilities:
Check os version
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x114
mov eax, dword [0x4310cc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, 0x9c
push esi
xor ebx, ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0041b1d0
add esp, 0xc
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40e6e8
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x94
call esi
test eax, eax
je 0x40e825
mov eax, dword [ebp - 0x7c]
push edi
xor edi, edi
dec eax
je 0x40e76d
dec eax
jne 0x40e81b
cmp dword [ebp - 0x88], 5
jb 0x40e70f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
jmp 0x40e811
xor eax, eax
mov word [ebp - 0x9c], ax
lea edi, [ebp - 0x98]
push str.ntdll.dll
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40e81b
lea ecx, [ebp - 0x9c]
push ecx
push 0x40e670
push 1
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
test eax, eax
je 0x40e81b
mov eax, dword [ebp - 0x98]
dec eax
cmp eax, 1
ja 0x40e81b
movzx edi, word [ebp - 0x9c]
jmp 0x40e811
lea eax, [ebp - 0x90]
push eax
push 1
push ebx
push str.DefaultControl_PanelDesktopResourceLocale
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e81b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push dword [ebp - 0x90]
mov dword [ebp - 0x94], ebx
call esi
test eax, eax
jne 0x40e805
cmp dword [ebp - 0x94], 1
jne 0x40e805
push 0x62
mov word [ebp + 0x10], ax
lea eax, [ebp + 0x12]
push ebx
push eax
mov dword [ebp - 0x98], 0x64
call fcn.0041b1d0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push dword [ebp - 0x90]
call esi
test eax, eax
jne 0x40e805
lea eax, [ebp + 0x10]
push eax
call fcn.0041bb5b
pop ecx
movzx edi, ax
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp di, bx
je 0x40e81b
movzx eax, di
jmp 0x40e824
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
pop edi
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.004192b3
add ebp, 0x78
leave
ret

Function at 0x4113de
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4269df
call fcn.004196f4
mov esi, ecx
push 0
push dword [ebp + 8]
lea ecx, [esi + 0x68]
call fcn.00411395
push 0x285f
lea eax, [ebp - 0x18]
push eax
call fcn.0040c244
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040c387
push dword [ebp - 0x18]
call fcn.00409f4d
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00419793
ret 4