joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414150
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 0x41416c
mov dword [ebp - 8], esi
jmp 0x414174
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 0x41419f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x4141a1
xor edi, edi
test ebx, ebx
je 0x4141b1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x4141b3
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x4141cf
test eax, eax
je 0x4142b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x4142b0
test edi, edi
jle 0x4142b0
test byte [esi], 0x40
jne 0x41423f
push 0
push edi
push ebx
call fcn.0043cdfa
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x41423f
test byte [esi], 0x20
je 0x414209
test al, 2
je 0x414209
xor eax, eax
jmp 0x4142b9
push 0
lea ecx, [ebp - 0x18]
call fcn.0044837a
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.00443be5
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00439cfd
jmp 0x41427c
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0040e982
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.00413203
add esp, 0xc
cmp word [ebp - 4], 0
je 0x41427c
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0041192a
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.0049a7e0
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.0049a7e0
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x4142b2
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4142be
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.004054c4
cmp dword [ebp - 8], ebx
jne 0x4142ef
push 0xfffffffffffffffe
pop esi
jmp 0x4143b4
push edi
push dword [ebp - 8]
call fcn.0048c6df
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0043ae64
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0043fc68
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.0049a7e0
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.0043cdfa
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x41439d
push dword [0x4c8ff4]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040e9ce
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.00443be5
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.0043fc68
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
push 1
push esi
call fcn.0048ec3b
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x4143b1
or esi, 0xffffffff
jmp 0x4143b4
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402c5b
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415ea5
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 0x41607c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x415eda
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 0x415f06
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x415f18
push edi
call fcn.00499edd
test eax, eax
pop ecx
je 0x415f18
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.00448399
cmp dword [ebp - 8], 0
je 0x415f34
push 0x4b1e0c
lea ecx, [ebp + 8]
call fcn.0043fe06
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00499fd5
push dword [ebp + 8]
call fcn.0040f20b
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 0x41601f
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0043fe06
test byte [ebp - 0x264], 0x10
jne 0x415fca
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x415fbe
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416006
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415fb9
inc eax
mov dword [ebp - 4], eax
jmp 0x416006
call fcn.00410a93
test eax, eax
pop ecx
je 0x416006
jmp 0x415fb9
cmp word [ebp - 0x238], 0x2e
jne 0x415ff2
cmp word [ebp - 0x236], 0
je 0x416006
cmp word [ebp - 0x236], 0x2e
jne 0x415ff2
cmp word [ebp - 0x234], 0
je 0x416006
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415ea5
test eax, eax
pop ecx
pop ecx
jne 0x416006
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040553a
test eax, eax
jne 0x415f7b
jmp 0x41602d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41602a
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402c90
xor edi, edi
cmp dword [ebp - 8], edi
je 0x41606a
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x41605d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41606a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x416067
xor eax, eax
inc eax
jmp 0x416067
call fcn.00410a93
cmp eax, edi
pop ecx
je 0x41606a
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.00439cfd
cmp word [ebx], di
jne 0x415ed7
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4187b9
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4cc003], 1
je 0x4187d1
push str.UCallBackhWnd
call fcn.00411213
test eax, eax
pop ecx
jne 0x4187d4
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x41880f
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 0x41880f
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4196a5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
jne 0x4196d2
inc edi
inc edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp + 8], edi
call fcn.0040ea44
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fdb8
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0x10]
push 2
pop eax
mov dword [ebp - 8], ebx
lea ebx, [ebx + esi*2]
mov dword [ebp - 0xc], eax
jne 0x4197a2
and dword [ebp + 8], 0
push 0x2c
add edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x419735
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
jne 0x419738
mov esi, dword [ebp + 8]
push edi
call fcn.00411f27
pop ecx
push ebx
push 0x324
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x41979a
cmp word [ebx], si
jb 0x41978f
push dword [ebp + 8]
mov edi, dword [ebp - 8]
push ebx
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.00499edd
add esp, 0x14
test eax, eax
je 0x41978f
push 0x4b1e0c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
push edi
call fcn.004195e0
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x419750
jmp 0x41980d
push edi
call fcn.00411f27
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.00499edd
test eax, eax
pop ecx
pop ecx
je 0x4197d3
push esi
lea ecx, [ebp + 8]
call fcn.0044845d
push 0x4b1e0c
lea ecx, [ebp + 8]
call fcn.0043fe06
mov esi, dword [ebp + 8]
push esi
push 0x4b23d8
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040f20b
push esi
call fcn.00499edd
add esp, 0x14
test eax, eax
je 0x419805
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004195e0
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp + 8]
call fcn.00439cfd
lea ecx, [ebp - 0x10]
call fcn.00439cfd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bff3
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4c9c14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x41c01c
cmp dword [0x4c8fa4], ebx
jne 0x41c01c
mov dword [0x4c8fa0], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4c8fa4], 1
cmp dword [0x4c8f9c], ebx
mov dword [esp + 0x30], eax
jne 0x41c061
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x41bef4
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4c8f9c], eax
jne 0x41c061
sub dword [0x4c8fa4], 1
xor esi, esi
jmp 0x41c152
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, 0x4e20
jb 0x41c089
push 1
call fcn.0043b8ef
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41c11f
cmp esi, ebx
jne 0x41c11f
push 0xa
pop esi
jmp 0x41c11f
cmp dword [esp + 0x34], 2
je 0x41c0b2
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41c12b
cmp byte [0x4c72b4], bl
jle 0x41c12b
push 0xa
pop eax
cmp esi, eax
ja 0x41c0c3
mov eax, esi
push 0x4ff
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41c117
cmp dword [0x4c8fa0], ebx
jne 0x41c12b
cmp dword [esp + 0x34], 2
je 0x41c0ed
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41c11f
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 0x41c11f
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 [0x4c72b4], bl
jg 0x41c0d4
cmp dword [0x4c8fa0], ebx
je 0x41c0a1
push 0x4c9c14
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4c8fa0]
sub dword [0x4c8fa4], 1
pop ebp
jne 0x41c14b
mov dword [0x4c8fa0], ebx
mov esi, eax
mov edi, 0x4c9c14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41d354
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 [0x4c9150], eax
call fcn.0040ef95
call fcn.0043a186
call fcn.0041311b
xor ebx, ebx
mov esi, 0x4c9048
push ebx
mov ecx, esi
call fcn.0040fc00
call fcn.00405a3c
mov edi, 0x4c9c14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4c8ce8]
or eax, dword [0x4c8cec]
jne 0x41d3b4
push 0x4c8ce8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4c8cf0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4c8f7c
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x3509
call fcn.00412243
push 0xd6fc9
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x4b28a6
mov ecx, esi
call fcn.0043f62b
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.0043f62b
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.00448399
push dword [0x4c70f0]
lea ecx, [ebp + 0x68]
call fcn.0043fe06
push dword [ebp + 0x68]
mov ecx, esi
push 0x4b287c
call fcn.0043f62b
push 0x4b2878
push 0x4b2868
mov ecx, esi
call fcn.0043f67b
push ebx
push 0x3516
call fcn.00412243
call fcn.004120a1
push ebx
push 0x3518
call fcn.00412243
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp dword [0x4c8c2c], ebx
mov dword [0x4c8f04], eax
jne 0x41d486
mov dword [0x4c8c2c], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4c728c], eax
call fcn.0043a580
push str.WM_TaskbarRestart
push dword [0x4c9184]
mov esi, 0x4c9048
push esi
call fcn.00442209
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
push str.__PID
call edi
push eax
push esi
call fcn.00442209
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00404c82
pop ecx
push eax
push esi
call fcn.00442209
push str.__HINST
push dword [0x4c8f04]
push esi
call fcn.00442209
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.__TID
push eax
push esi
mov dword [0x4c8e18], eax
call fcn.00442209
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3521
push ebx
push eax
call fcn.00412243
movzx eax, word [0x4cc010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.00442209
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.0043fdb8
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4b242c
call fcn.0043f67b
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.0043f67b
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.0043f67b
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 str.CurFile
call fcn.0043f67b
call fcn.00412253
lea ecx, [ebp + 0x6c]
call fcn.00439cfd
lea ecx, [ebp + 0x68]
call fcn.00439cfd
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x41df56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x41df7d
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040f9d1
test eax, eax
je 0x41df7d
call fcn.0040fa62
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41df84
xor eax, eax
jmp 0x41e093
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41dfbc
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41dfbc
xor eax, eax
jmp 0x41e090
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00413c50
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41dfe9
cmp dword [eax + 0xa4], ebx
jbe 0x41dfe9
push edi
mov ecx, esi
call fcn.0040f729
test eax, eax
je 0x41dfb5
push edi
mov ecx, esi
call fcn.0040f84b
test eax, eax
jne 0x41e004
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41dfb5
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
test byte [eax + 0x17], 0x20
je 0x41e01d
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
jmp 0x41e054
mov ebx, dword [esi]
mov ebp, dword [esi + 0xc]
push str.DllMain
mov ecx, esi
mov dword [esi], 0x200
mov dword [esi + 0xc], edi
call fcn.0040f65f
test eax, eax
mov dword [esi + 4], eax
jne 0x41e04d
push str._dllMain_12
mov ecx, esi
call fcn.0040f65f
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [esi + 0xc], ebp
xor ebx, ebx
mov eax, dword [esi + 4]
xor ebp, ebp
inc ebp
cmp eax, ebx
je 0x41e082
push ebx
push ebp
push edi
call eax
test eax, eax
jne 0x41e082
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41dfb5
mov dword [esi + 0xc], edi
mov dword [esi], ebp
mov dword [0x4c8eec], esi
mov eax, dword [esi + 0xc]
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x42dfcb
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
jmp 0x42dfe6
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42dfde
lea eax, [ebp + 8]
push eax
call fcn.00405444
mov al, byte [ebp - 1]
mov byte [0x4c8f46], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
lea edi, [ebp - 3]
lea esi, [ebp - 4]
lea eax, [ebp + 8]
mov byte [ebp - 3], 0x2a
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
mov byte [ebp - 2], bl
call fcn.0041c162
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42e10f
mov esi, 0x4c9c14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42e05f
cmp dword [0x4c8efc], ebx
je 0x42e05f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42e16b
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4c72a1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4c8f39], 1
jne 0x42e089
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42e089
mov byte [0x4c72a1], bl
mov edi, dword [ebp - 0x10]
push 0x4c8bd0
push 0x10000
push edi
push 0x42ba29
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
cmp word [edi], bx
jne 0x42e0ce
cmp byte [0x4c8f39], bl
je 0x42e0ea
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x7d0
jae 0x42e0ea
push ebx
push ebx
push 0x14
mov ecx, 0x4c9048
call fcn.00414c28
jmp 0x42e0c1
cmp byte [ebp - 2], bl
je 0x42e16b
test byte [ebp - 4], 0x40
je 0x42e16b
jmp 0x42e105
push ebx
push ebx
push 1
mov ecx, 0x4c9048
call fcn.00414c28
cmp dword [0x4c8efc], ebx
jne 0x42e0f7
jmp 0x42e16b
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 5]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.00411df0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42e167
mov esi, 0x4c8efc
mov dword [ebp - 0x10], 0xfa0
jmp 0x42e167
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42e16b
push ebx
push ebx
push 0xa
mov ecx, 0x4c9048
call fcn.00414c28
cmp dword [esi], ebx
jne 0x42e14f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4306a0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4b2554
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.00448399
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.004118b6
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.0043fdb8
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.0040f413
push edi
lea ecx, [ebp - 0x38]
call fcn.0040fc00
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4b242c
mov dword [ebp - 0x24], eax
call fcn.0043f62b
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.0043e808
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.00423c50
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4c9c14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x38]
call fcn.00430616
lea ecx, [ebp + 8]
call fcn.00439cfd
lea ecx, [ebp + 0x68]
call fcn.00439cfd
lea ecx, [ebp + 0x64]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x439dc6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x439def
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43ad75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 4
pop edi
push edi
push 0x20019
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ad24
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x43adcb
test esi, esi
jne 0x43add3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
jne 0x43add3
test edi, edi
je 0x43add3
xor edi, edi
jmp 0x43ad82
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43add9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ad24
add esp, 0x14
test eax, eax
jne 0x43ae23
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43ae25
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ad24
add esp, 0x14
test eax, eax
jne 0x43ae62
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret