joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f017
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4acf1b], 1
call fcn.00435d80
push 0x822
push 0
push dword [ebp - 4]
call fcn.0047fd70
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x496590
push 0x1000
mov esi, 0x4acf10
push esi
call fcn.004380d1
push 0x496578
push 0x5000
push esi
call fcn.004380d1
push 0x496558
push 0x100
push esi
call fcn.004380d1
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x49654a
call esi
push edi
mov ebx, 0x4acf10
push 0x496548
mov ecx, ebx
call fcn.00435749
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x40f0de
lea edi, [eax + 2]
push edi
push 0x496536
call esi
push edi
push 0x496534
mov ecx, ebx
call fcn.00435749
xor edi, edi
push edi
push edi
push 0x495b2c
call fcn.0040ef87
push edi
push edi
push 0x495b40
call fcn.0040ef87
push edi
push edi
push 0x495aec
call fcn.0040ef87
push edi
push edi
push 0x495adc
call fcn.0040ef87
push edi
push edi
push 0x495ac8
call fcn.0040ef87
push edi
push 0x49651c
push 0x495b14
call fcn.0040ef87
add esp, 0x48
push edi
push 0x496510
push 0x4964fc
call fcn.0040ef87
push edi
push edi
push 0x495b00
call fcn.0040ef87
push 0x4964a8
push 0x496494
push 0x495aac
call fcn.0040ef87
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f19f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.00480210
push esi
mov esi, 0x4ab294
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x40f1c5
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4acf10
call fcn.00435749
add esi, 4
cmp esi, 0x4ab2a8
jl 0x40f1b2
pop esi
leave
ret
Function at 0x410482
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x4104b0
test byte [0x4ada94], 4
jne 0x4104b0
push 2
mov byte [esi], 1
or byte [0x4ada94], 4
push 0x4949b8
call fcn.0040f24d
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x4104b6
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x4104d0
and byte [0x4ada94], 0xfb
push 4
push 0x4949b8
call fcn.0040f24d
pop ecx
pop ecx
ret

Function at 0x4104d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4ad684
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403127
mov edi, dword [sym.imp.SHLWAPI.DLL_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x410529
push dword [ebp + 8]
and word [esi], 0
call fcn.0047f62b
test eax, eax
pop ecx
jne 0x41051e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x410503
cmp byte [ebp - 4], al
je 0x41053f
push dword [ebp - 8]
call fcn.00403138
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x41094e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push pe_nt_image_headers32
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0047fd70
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - pe_nt_image_headers32], 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x410983
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x410a1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
push edi
mov dword [ebp - 0xc], 0x20
je 0x410a36
mov dword [ebp - 8], esi
jmp 0x410a3e
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 0x10]
mov ax, word [esi + 2]
push dword [ebp + 0xc]
mov word [ebp - 4], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x410a69
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
jmp 0x410a6b
xor edi, edi
test ebx, ebx
je 0x410a7b
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
jmp 0x410a7d
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x410a99
test eax, eax
je 0x410b7a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x410b7a
test edi, edi
jle 0x410b7a
test byte [esi], 0x40
jne 0x410b09
push 0
push edi
push ebx
call fcn.0043356e
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x410b09
test byte [esi], 0x20
je 0x410ad3
test al, 2
je 0x410ad3
xor eax, eax
jmp 0x410b83
push 0
lea ecx, [ebp - 0x18]
call fcn.004403a4
movzx eax, word [ebp - 4]
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.00439966
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0043092f
jmp 0x410b46
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0040bb8f
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004102e0
add esp, 0xc
cmp word [ebp - 4], 0
je 0x410b46
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040eae8
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.0047fd70
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.0047fd70
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x410b7c
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410b88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.004045f9
cmp dword [ebp - 8], ebx
jne 0x410bb9
push 0xfffffffffffffffe
pop esi
jmp 0x410c7e
push edi
push dword [ebp - 8]
call fcn.00474fa7
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0043181b
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00435c7d
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.0047fd70
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.0043356e
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x410c67
push dword [0x4acef8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040bbdb
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00439966
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.00435c7d
lea ecx, [ebp - 0x1c]
call fcn.0043092f
push 1
push esi
call fcn.004774cc
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x410c7b
or esi, 0xffffffff
jmp 0x410c7e
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402b27
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41121e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
xor esi, esi
cmp dword [0x4acd88], esi
push edi
jne 0x4113d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push 0x496eec
call ebx
mov edi, eax
cmp edi, esi
jne 0x41131e
push 1
push esi
lea eax, [ebp - 4]
push eax
push 0x496ec0
mov ecx, 0x4acf10
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0043e7f3
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0047f714
add esp, 0xc
test eax, eax
je 0x41130e
push dword [ebp - 4]
call fcn.0040c2f3
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop ecx
cmp word [ebp - 0x248], 0x2e
je 0x4112fb
test byte [ebp - 0x274], 0x10
je 0x4112fb
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
call esi
push edi
mov dword [ebp - 0x14], eax
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx + 0x1e]
push eax
lea ecx, [ebp - 8]
call fcn.00435d80
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
push 0x496e9c
push dword [ebp - 8]
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
push dword [ebp - 8]
call ebx
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0043092f
test edi, edi
jne 0x41130e
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040466f
test eax, eax
jne 0x411298
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.00402b5c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x496e8c
push edi
call esi
push 0x496e7c
push edi
mov dword [0x4acd88], eax
call esi
push 0x496e64
push edi
mov dword [0x4acd8c], eax
call esi
push 0x496e50
push edi
mov dword [0x4acd9c], eax
call esi
push 0x496e3c
push edi
mov dword [fcn.004acd90], eax
call esi
push 0x496e28
push edi
mov dword [0x4acd94], eax
call esi
push 0x496e0c
push edi
mov dword [0x4acd98], eax
call esi
push 0x496df8
push edi
mov dword [0x4acda8], eax
call esi
push 0x496ddc
push edi
mov dword [0x4acdac], eax
call esi
push 0x496dc4
push edi
mov dword [0x4acda0], eax
call esi
push 0x496db4
push edi
mov dword [0x4acda4], eax
call esi
push 0x496da0
push edi
mov dword [0x4acdb0], eax
call esi
push 0x496d8c
push edi
mov dword [0x4acdb4], eax
call esi
mov dword [0x4acdb8], eax
xor esi, esi
pop ebx
cmp dword [0x4ace44], esi
jne 0x4113ff
cmp dword [0x4acd9c], esi
je 0x4113ff
xor eax, eax
mov dword [ebp - 0x24], 1
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0x4ace44
call dword [0x4acd88]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x411419
mov eax, dword [0x4acd9c]
cmp eax, esi
je 0x411419
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x412c8f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x412e66
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
jmp 0x412cc4
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x412cf0
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x412d02
push edi
call fcn.0047f62b
test eax, eax
pop ecx
je 0x412d02
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.004403c3
cmp dword [ebp - 8], 0
je 0x412d1e
push 0x497270
lea ecx, [ebp + 8]
call fcn.00435dd0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0047f714
push dword [ebp + 8]
call fcn.0040c2f3
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x412e09
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.00435dd0
test byte [ebp - 0x264], 0x10
jne 0x412db4
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x412da8
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x412df0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x412da3
inc eax
mov dword [ebp - 4], eax
jmp 0x412df0
call fcn.0040de1a
test eax, eax
pop ecx
je 0x412df0
jmp 0x412da3
cmp word [ebp - 0x238], 0x2e
jne 0x412ddc
cmp word [ebp - 0x236], 0
je 0x412df0
cmp word [ebp - 0x236], 0x2e
jne 0x412ddc
cmp word [ebp - 0x234], 0
je 0x412df0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412c8f
test eax, eax
pop ecx
pop ecx
jne 0x412df0
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040466f
test eax, eax
jne 0x412d65
jmp 0x412e17
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x412e14
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402b5c
xor edi, edi
cmp dword [ebp - 8], edi
je 0x412e54
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x412e47
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x412e54
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x412e51
xor eax, eax
inc eax
jmp 0x412e51
call fcn.0040de1a
cmp eax, edi
pop ecx
je 0x412e54
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0043092f
cmp word [ebx], di
jne 0x412cc1
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x414838
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [esp + 8]
or byte [0x4b0003], 0x80
push ebp
push esi
push edi
mov esi, eax
mov edi, eax
and eax, 0xfffffffe
push eax
push dword [esp + 0x1c]
and esi, 0xfffffffe
shl esi, 0x1e
and edi, 0x70
call fcn.0040df1f
push 2
push 0x494fe0
call fcn.0040f24d
push 2
push 0x497408
call fcn.0040f24d
xor ebp, ebp
add esp, 0x18
mov dword [esp + 0x14], ebp
call fcn.0040d786
shrd eax, edx, 0x10
shr edx, 0x10
cmp eax, 0x60002
jb 0x4148b1
cmp edi, ebp
je 0x4148b1
xor eax, eax
cmp dword [esp + 0x10], ebp
setne al
push eax
push 1
push ebp
push 0x4949a4
push ebp
call dword [sym.imp.ADVAPI32.DLL_InitiateSystemShutdownW]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
push 2
or esi, 1
push esi
mov esi, dword [sym.imp.USER32.DLL_SendMessageTimeoutW]
push 1
push 0x16
mov ebx, 0xffff
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push 1
push 2
push ebp
push ebp
push 0x10
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push 1
push 2
push ebp
push ebp
push 2
push ebx
call esi
cmp edi, ebp
pop ebx
je 0x414925
push 0x495fe4
push 0x495fd8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, ebp
je 0x414927
xor eax, eax
cmp dword [esp + 0x10], ebp
sete al
inc eax
push eax
call ecx
jmp 0x414927
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x415070
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4b0003], 1
je 0x415088
push 0x495b58
call fcn.0040e402
test eax, eax
pop ecx
jne 0x41508b
xor eax, eax
ret
push edi
push 0x49753c
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4150c6
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
pop esi
jne 0x4150c6
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x415bc1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0xc]
call fcn.00435d80
cmp word [ebx], 0x5c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea edi, [eax + esi*2]
mov dword [ebp - 8], 2
jne 0x415c9a
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.DLL_StrChrW]
mov esi, eax
test esi, esi
je 0x415c30
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.DLL_CharUpperW]
movzx esi, word [esi]
test si, si
je 0x415c30
mov dword [ebp + 8], esi
push edi
inc ebx
push 0x324
inc ebx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [edi], 0
mov esi, edi
je 0x415d01
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x415c87
mov edi, dword [ebp - 4]
push ebx
push esi
push 0x497654
push edi
call dword [sym.imp.USER32.DLL_wsprintfW]
push edi
call fcn.0047f62b
add esp, 0x14
test eax, eax
je 0x415c87
push 0x497270
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
call fcn.00415b09
pop ecx
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x415c4a
jmp 0x415d01
push ebx
call fcn.0040eec0
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0047f62b
test eax, eax
pop ecx
pop ecx
je 0x415ccb
push esi
lea ecx, [ebp + 8]
call fcn.00440487
push 0x497270
lea ecx, [ebp + 8]
call fcn.00435dd0
mov esi, dword [ebp + 8]
push esi
push 0x49764c
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_wsprintfW]
push esi
call fcn.0040c2f3
push esi
call fcn.0047f62b
add esp, 0x14
test eax, eax
je 0x415cf9
push dword [ebp - 4]
call fcn.00415b09
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.0043092f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41895b
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x418984
cmp dword [0x4aceb8], ebx
jne 0x418984
mov dword [0x4aceb4], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4aceb8], 1
cmp dword [0x4aceb0], ebx
mov dword [esp + 0x30], eax
jne 0x4189c9
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x41885c
push 0xd
call dword [sym.imp.USER32.DLL_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4aceb0], eax
jne 0x4189c9
sub dword [0x4aceb8], 1
xor esi, esi
jmp 0x418ab9
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x3e8
jb 0x4189f0
push ebx
call fcn.00432240
pop ecx
cmp dword [esp + 0x34], 2
jne 0x418a86
cmp esi, ebx
jne 0x418a86
push 0xa
pop esi
jmp 0x418a86
cmp dword [esp + 0x34], 2
je 0x418a19
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x418a92
cmp byte [0x4ab290], bl
jle 0x418a92
push 0xa
pop eax
cmp esi, eax
ja 0x418a2a
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.DLL_MsgWaitForMultipleObjects]
jmp 0x418a7e
cmp dword [0x4aceb4], ebx
jne 0x418a92
cmp dword [esp + 0x34], 2
je 0x418a54
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x418a86
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x418a86
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
cmp byte [0x4ab290], bl
jg 0x418a3b
cmp dword [0x4aceb4], ebx
je 0x418a08
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4aceb4]
sub dword [0x4aceb8], 1
pop ebp
jne 0x418ab2
mov dword [0x4aceb4], ebx
mov esi, eax
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4196c1
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov dword [0x4ad030], eax
call fcn.0040c09b
call fcn.0042c298
xor ebx, ebx
mov esi, 0x4acf10
push ebx
mov ecx, esi
call fcn.0040cabb
call fcn.00404932
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4acc30]
or eax, dword [0x4acc34]
jne 0x41971c
push 0x4acc30
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x4acc38
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 0x4ace94
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
call fcn.00410232
push ebx
push 0x2eba
call fcn.0040f18f
push 0xd6fbf
push 0x311f1
lea eax, [ebp - 0x60]
push 0x497aa8
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x497a96
mov ecx, esi
call fcn.00435749
lea eax, [ebp - 0x60]
push eax
push 0x497a94
mov ecx, esi
call fcn.00435749
push 0x497a84
lea ecx, [ebp + 0x68]
call fcn.004403c3
push dword [0x4ab0d0]
lea ecx, [ebp + 0x68]
call fcn.00435dd0
push dword [ebp + 0x68]
mov ecx, esi
push 0x497a6c
call fcn.00435749
push 0x497a68
push 0x497a58
mov ecx, esi
call fcn.00435799
push ebx
push 0x2ec7
call fcn.0040f18f
call fcn.0040f017
push ebx
push 0x2ec9
call fcn.0040f18f
mov eax, dword [ebp + 0x78]
mov dword [0x4ace04], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4ab26c], eax
call fcn.00430f76
push 0x497a30
push dword [0x4ad04c]
mov esi, 0x4acf10
push esi
call fcn.004380a5
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
add esp, 0x1c
push 0x497a20
call edi
push eax
push esi
call fcn.004380a5
add esp, 0xc
push 0x497a10
call edi
push eax
call fcn.00403f4e
pop ecx
push eax
push esi
call fcn.004380a5
push 0x4979fc
push dword [0x4ace04]
push esi
call fcn.004380a5
add esp, 0x18
push 0x4979ec
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push esi
call fcn.004380a5
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x2ed2
push ebx
push eax
call fcn.0040f18f
movzx eax, word [0x4b0010]
push 0x4979d0
push eax
push esi
call fcn.004380a5
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.00435d80
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4976a0
call fcn.00435799
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4979c4
call fcn.00435799
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push 0x49768c
call fcn.00435799
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4976b4
call fcn.00435799
call fcn.0040f19f
lea ecx, [ebp + 0x6c]
call fcn.0043092f
lea ecx, [ebp + 0x68]
call fcn.0043092f
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret