joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040b9cc
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004837d8
test ebx, ebx
jne 0x4895a7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004893d0
mov ebx, eax
test ebx, ebx
je 0x48969d
cmp esi, ebx
je 0x4895d0
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x4895e5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x48961d
add eax, 0xffffff5f
sub eax, 2
jb 0x489635
dec eax
sub eax, 2
jb 0x489649
dec eax
sub eax, 2
jb 0x48963f
jmp 0x489653
add eax, 0xfffffdff
sub eax, 2
jb 0x489635
dec eax
sub eax, 2
jb 0x489649
dec eax
sub eax, 2
jb 0x48963f
jmp 0x489653
mov byte [esp + 0x120], 0
jmp 0x48965b
mov byte [esp + 0x120], 2
jmp 0x48965b
mov byte [esp + 0x120], 1
jmp 0x48965b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004f9654
mov esi, eax
call fcn.004802f8
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00485070
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x48969f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x48e453
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
jmp 0x48e1bb
pop ecx
push ebx
or ebx, 0x16e4f
pop ebx
jmp 0x48e3f7
push esi
call 0x48e407
add byte [edx + 0x4f], cl
dec ebp
inc ebp
cmp byte [eax + 0x46], al
push eax
cmp al, byte [ebx - 0x117efb3c]
push 0x39
add byte [eax], al
pop esi
push ecx
push esi
add esp, 4
or ecx, 0x13415
or ecx, 0xfcd5
and ecx, 0x10abc
pop ecx
mov dword [ebp - 0xa5c], 0
push ebx
or ebx, 0x61d7
pop ebx
push eax
push edi
add esp, 4
sub eax, 0x90f0
call 0x48e453
add byte [eax], bh
inc ebx
cmp eax, dword [ebp + 0x33]
inc edx
dec edi
add esp, 4
or eax, 0x6561
jmp 0x48e464
pop eax
mov byte [ebp - 0x804], 0x45
mov byte [ebp - 0x803], 0x78
mov byte [ebp - 0x802], 0x69
mov byte [ebp - 0x801], 0x74
mov byte [ebp - 0x800], 0x50
mov byte [ebp - 0x7ff], 0x72
mov byte [ebp - 0x7fe], 0x6f
mov byte [ebp - 0x7fd], 0x63
mov byte [ebp - 0x7fc], 0x65
mov byte [ebp - 0x7fb], 0x73
mov byte [ebp - 0x7fa], 0x73
mov byte [ebp - 0x7f9], 0
push edx
and edx, 0x1831b
pop edx
push eax
push ecx
add esp, 4
or eax, 0x1cf2
or eax, 0x3751
call 0x48e4e1
add byte [ecx], bh
dec esi
xor bh, byte [eax]
inc eax
inc ebx
cmp eax, 0xc4833444
add al, 0x81
sar byte [edi + 0x78], 0
add byte [eax - 0x47], bl
imul eax, dword [eax], 0
add byte [esi - 0x77], ah
invalid
Function at 0x48e4e1
Capabilities:
Get number of processors

Disassembly:
add esp, 4
jmp 0x48e1bb
pop ecx
push ebx
or ebx, 0x16e4f
pop ebx
jmp 0x48e3f7
push esi
call 0x48e407
add byte [edx + 0x4f], cl
dec ebp
inc ebp
cmp byte [eax + 0x46], al
push eax
cmp al, byte [ebx - 0x117efb3c]
push 0x39
add byte [eax], al
pop esi
push ecx
push esi
add esp, 4
or ecx, 0x13415
or ecx, 0xfcd5
and ecx, 0x10abc
pop ecx
mov dword [ebp - 0xa5c], 0
push ebx
or ebx, 0x61d7
pop ebx
push eax
push edi
add esp, 4
sub eax, 0x90f0
call 0x48e453
add byte [eax], bh
inc ebx
cmp eax, dword [ebp + 0x33]
inc edx
dec edi
add esp, 4
or eax, 0x6561
jmp 0x48e464
pop eax
mov byte [ebp - 0x804], 0x45
mov byte [ebp - 0x803], 0x78
mov byte [ebp - 0x802], 0x69
mov byte [ebp - 0x801], 0x74
mov byte [ebp - 0x800], 0x50
mov byte [ebp - 0x7ff], 0x72
mov byte [ebp - 0x7fe], 0x6f
mov byte [ebp - 0x7fd], 0x63
mov byte [ebp - 0x7fc], 0x65
mov byte [ebp - 0x7fb], 0x73
mov byte [ebp - 0x7fa], 0x73
mov byte [ebp - 0x7f9], 0
push edx
and edx, 0x1831b
pop edx
push eax
push ecx
add esp, 4
or eax, 0x1cf2
or eax, 0x3751
call 0x48e4e1
add byte [ecx], bh
dec esi
xor bh, byte [eax]
inc eax
inc ebx
cmp eax, 0xc4833444
add al, 0x81
sar byte [edi + 0x78], 0
add byte [eax - 0x47], bl
imul eax, dword [eax], 0
add byte [esi - 0x77], ah
invalid

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

Disassembly:
cmp byte [eax + 0x48], al
dec eax
xor edx, 0xcffb
add edx, 0xf93d
pop edx
push edi
push ebx
add esp, 4
sub edi, 0x12872
jb 0x48f5f6
add dword [eax], eax
and edi, 0x14ca8
and edi, 0xaf99
pop edi
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2fc], ecx
push ebx
add ebx, 0x5bab
add ebx, 0x100fc
call 0x48f607
add byte [eax + 0x32], al
inc ecx
xor al, 0x3a
xor al, 0x40
dec ebp
add esp, 4
call 0x48f61a
add byte [esi + 0x3d], cl
cmp eax, 0x3d4e4938
inc edx
inc edi
dec ebx
add esp, 4
pop ebx
invalid
invalid
Function at 0x549624
Capabilities:
Log keystrokes via polling

Disassembly:
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
test byte [esp + 0xa2], 0x80
jne 0x549648
test byte [esp + 0xa3], 0x80
jne 0x549648
xor eax, eax
jmp 0x54964a
mov al, 1
add esp, 0x100
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x468b05a4
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x364b2f02
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4013da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040e523
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401544
push 0x5c
mov ecx, edi
call fcn.004015e1
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x4014af
push edi
push edi
mov dword [0x419198], esi
mov dword [0x4191a0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x4191fc], 2
mov dword [0x41919c], eax
je 0x401437
call fcn.0040737b
push 0xffffffffffffffff
push dword [0x41919c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4191a0]
mov dword [0x419208], edi
cmp eax, edi
je 0x40148a
mov ecx, eax
dec ecx
je 0x40147e
dec ecx
je 0x40147a
dec ecx
je 0x401476
push eax
push 0x14
push edi
call fcn.00407249
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
push 0x12
jmp 0x401480
push 0x13
jmp 0x401480
push 0x11
push edi
call fcn.00407249
pop ecx
pop ecx
jmp 0x40146b
cmp dword [0x41920c], edi
jne 0x40146b
lea eax, [ebp + 8]
push eax
push dword [0x41919c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40146b
cmp dword [ebp + 8], edi
jne 0x40146b
xor eax, eax
jmp 0x401470

Function at 0x401909
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401925
xor eax, eax
jmp 0x401974
mov eax, dword [0x419200]
test eax, eax
je 0x401961
cmp eax, 2
jne 0x401971
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401961
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x401971
push esi
call fcn.00402379
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
jmp 0x401974
push 1
pop eax
pop esi
leave
ret

Function at 0x401977
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019a7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019aa
test al, 0x10
jne 0x4019aa
xor eax, eax
ret
push 1
pop eax
ret
Function at 0x4019ae
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x412040
call fcn.00411c00
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040169c
cmp dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
jg 0x4019e6
push 2
lea ecx, [ebp - 0x18]
call fcn.0040169c
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push dword [ebp - 0x18]
mov eax, dword [edi]
push eax
call esi
cmp eax, ebx
je 0x401a42
lea ebx, [eax + 1]
cmp ebx, dword [ebp - 0x10]
jl 0x401a11
lea eax, [ebx + 1]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040169c
mov eax, dword [edi]
push ebx
push dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x18]
xor esi, esi
xor eax, eax
cmp word [ecx], si
je 0x401a30
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], si
jne 0x401a28
mov word [ecx + eax*2], si
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004015a3
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4020f1
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x41212c
call fcn.00411c00
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esi
call fcn.00402b62
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jg 0x40212d
push 1
lea ecx, [ebp - 0x24]
call fcn.0040169c
mov ax, word [edi + esi*2 - 2]
mov ebx, dword [ebp - 0x24]
cmp ax, 0x5c
je 0x402141
cmp ax, 0x2f
jne 0x40214b
and word [ebx + esi*2 - 2], 0
dec esi
mov dword [ebp - 0x10], esi
push ebx
call fcn.00401977
test eax, eax
pop ecx
jne 0x4021aa
test esi, esi
jle 0x402175
lea eax, [ebx + esi*2]
mov cx, word [eax]
cmp cx, 0x2f
je 0x402173
cmp cx, 0x5c
je 0x402173
dec esi
dec eax
dec eax
test esi, esi
jg 0x40215d
test esi, esi
je 0x40217e
and word [ebx + esi*2], 0
jmp 0x40214b
cmp dword [ebp - 0x10], 2
jne 0x4021a0
mov ax, word [edi]
or al, 0x20
cmp ax, 0x61
jb 0x4021a0
cmp ax, 0x7a
ja 0x4021a0
cmp word [edi + 2], 0x3a
je 0x402234
push edi
push 0xc
push 0
jmp 0x40222a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40221a
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00401909
pop ecx
test eax, eax
pop ecx
je 0x40221a
xor esi, esi
jmp 0x402237
cmp esi, dword [ebp - 0x10]
jge 0x402234
mov eax, dword [ebp - 0x10]
lea edi, [ebx + esi*2]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp word [edi], 0
je 0x4021f9
inc esi
lea ecx, [ebx + esi*2]
mov ax, word [ecx]
test ax, ax
je 0x402215
cmp ax, 0x5c
je 0x402215
cmp word [ecx], 0x2f
je 0x402215
inc esi
inc ecx
inc ecx
jmp 0x4021fc
and word [ebx + esi*2], 0
push ebx
call fcn.00401977
test eax, eax
pop ecx
jne 0x4021d3
push ebx
push 0xc
push 1
call fcn.00407249
add esp, 0xc
jmp 0x4021cf
push 1
pop esi
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402255
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x412140
call fcn.00411c00
sub esp, 0x25c
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.00402b62
and dword [ebp - 4], 0
push 0x418080
lea ecx, [ebp - 0x18]
call fcn.00402bc3
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40233c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401544
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004015e1
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402bc3
test byte [ebp - 0x268], 0x10
je 0x402307
lea eax, [ebp - 0x23c]
push 0x41807c
push eax
call ebx
test eax, eax
je 0x40231f
lea eax, [ebp - 0x23c]
push 0x418074
push eax
call ebx
test eax, eax
je 0x40231f
push dword [ebp - 0x18]
call fcn.00402255
pop ecx
jmp 0x40231b
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x402359
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402359
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4022ab
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402359
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402359
push 1
pop esi
jmp 0x40235b
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x402379
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x419228], 0
push esi
jne 0x402393
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402398
push 1
pop eax
pop esi
ret
test al, 0x10
jne 0x4023b6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4023b2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402255
pop ecx
pop esi
ret
Function at 0x402fa8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4180e0]
push edi
xor edi, edi
test eax, eax
je 0x402fcc
mov ecx, 0x4180e0
cmp eax, dword [ebp + 8]
je 0x402fcc
mov eax, dword [ecx + 0x10]
add ecx, 0x10
inc edi
test eax, eax
jne 0x402fbc
shl edi, 4
mov eax, dword [edi + 0x4180ec]
test eax, eax
jne 0x403090
cmp dword [0x4182c4], 0xffffffff
jne 0x402ff1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x4182c4], eax
cmp word [0x4182c0], 0xffff
jne 0x403008
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x4182c0], ax
mov ax, word [0x4182c8]
cmp ax, 0xffff
jne 0x40301f
call fcn.00402b0c
mov word [0x4182c8], ax
mov ecx, dword [edi + 0x4180e8]
and dword [ebp + 8], 0
push ebx
mov ebx, dword [edi + 0x4180e4]
test ecx, ecx
push esi
je 0x40305b
mov edx, 0x419
cmp dword [0x4182c4], edx
je 0x403050
cmp word [0x4182c0], dx
je 0x403050
cmp ax, dx
jne 0x40305b
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp + 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [edi + 0x4180ec], eax
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x4180ec]
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x40317e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412224
call fcn.00411c00
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00402fa8
push 2
mov dword [0x4191f8], eax
call fcn.00402fa8
push 5
mov dword [0x4191f4], eax
call fcn.00402fa8
push 0x15
mov dword [0x4191f0], eax
call fcn.00402fa8
push 0x16
mov dword [0x4191ec], eax
call fcn.00402fa8
push 0x17
mov dword [0x4191e8], eax
call fcn.00402fa8
xor edi, edi
add esp, 0x18
mov dword [0x4191e4], eax
mov dword [0x4191dc], edi
mov dword [0x4191e0], edi
xor ebx, ebx
mov esi, 0x4191a8
push edi
lea eax, [ebp - 0x2b0]
push ebx
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4032ab
push ebx
lea eax, [ebp - 0xa4]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004032c4
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.00401544
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401544
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00402d2b
mov edi, 0x41892c
cmp dword [edi - 4], ebx
jne 0x403281
push dword [edi]
lea ecx, [ebp - 0x24]
call fcn.00401544
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401544
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00402d2b
add edi, 8
cmp edi, str.MyDocs
jb 0x403258
push dword [ebp - 0x18]
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor edi, edi
pop ecx
inc ebx
cmp ebx, 0x40
jl 0x4031f1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40330c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x412263
call fcn.00411c00
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 0xf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040169c
cmp dword [ebp - 0x1c], 2
push 1
pop edi
mov dword [ebp - 4], edi
jg 0x40334a
push 3
lea ecx, [ebp - 0x24]
call fcn.0040169c
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
call esi
mov ecx, dword [ebp - 0x24]
mov word [ecx], bx
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jbe 0x40339d
lea edi, [eax + 1]
cmp edi, dword [ebp - 0x1c]
jl 0x403379
lea eax, [edi + 1]
lea ecx, [ebp - 0x24]
push eax
call fcn.0040169c
push dword [ebp - 0x24]
push edi
call esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp word [eax], bx
je 0x403393
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40338b
push 1
mov word [eax + ecx*2], bx
mov dword [ebp - 0x20], ecx
pop edi
lea eax, [ecx + 0xf]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
lea esi, [ecx + ecx]
jmp 0x4033ae
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x4033bd
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.0040169c
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
add eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x24]
add esp, 0xc
xor eax, eax
cmp word [ecx], bx
je 0x4033e6
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], bx
jne 0x4033de
mov word [ecx + eax*2], bx
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403407
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xfff
jl 0x4033ab
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040150a
mov dword [ebp - 0x18], edi
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40346a
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x412278
call fcn.00411c00
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4191b0], esi
jle 0x4034ce
mov eax, dword [0x4191b4]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040150a
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.0040344f
mov eax, dword [0x4191b4]
pop ecx
push dword [ebp - 0x18]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x4191b0]
jl 0x403482
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405d28
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
and eax, 3
sub eax, ebx
je 0x405db2
dec eax
je 0x405d8e
dec eax
je 0x405d61
dec eax
jne 0x405ddc
push 0x19
call fcn.00402fa8
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406061
push 0x1a
jmp 0x405dc9
push 0x1a
call fcn.00402fa8
pop ecx
mov edi, 0x4b4
push eax
push edi
mov ecx, esi
call fcn.00406061
push ebx
push 0x4b3
mov ecx, esi
call fcn.00405f6e
push edi
mov ecx, esi
call fcn.00405b6d
jmp 0x405ddc
push 0x19
call fcn.00402fa8
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406061
push ebx
push 0x4b4
mov ecx, esi
call fcn.00405f6e
jmp 0x405ddc
push 0x1b
call fcn.00402fa8
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406061
push 0x1c
call fcn.00402fa8
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.00406061
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and eax, 0x1c
cmp eax, 4
je 0x405e1f
cmp eax, 8
je 0x405e16
cmp eax, 0xc
je 0x405e0f
cmp eax, 0x10
jne 0x405e55
push 0x7f04
jmp 0x405e1b
push 0x7f01
jmp 0x405e1b
push 0x7f02
push 0
jmp 0x405e26
push 0x65
push 0
call ebx
push eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x405e55
push 0x4b1
mov dword [esi + 0x30], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esp + 0x10]
push 1
push 0x172
push eax
call ebp
jmp 0x405e67
and dword [esi + 0x30], 0
push 0
push 0x4b1
mov ecx, esi
call fcn.00405f6e
test byte [0x418915], 2
jne 0x405ec2
push 0x65
push 0
call ebx
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x405ea8
mov ebx, dword [esp + 0x10]
push dword [esp + 0x10]
mov edi, 0x80
push 1
push edi
push dword [esi + 4]
call ebp
push ebx
push 0
push edi
push dword [esi + 4]
call ebp
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 0x10]
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [0x418914], 8
jne 0x405eef
mov ecx, esi
call fcn.004063ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret