joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412f0a
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x412f6e
push 0xc0000000
push dword [ebp + 8]
call dword [0x4c8fd0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41304d
push 0x80000000
push dword [ebp + 8]
call dword [0x4c8fd0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41304d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4130ed
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x412f88
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x412fa9
push esi
call edi
cmp eax, 3
jne 0x412fa7
lea eax, [esi + 2]
push 0x4b17e4
push eax
call fcn.0049abfd
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x412fa9
xor eax, eax
cmp eax, ebx
je 0x413002
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41304d
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x412f4d
push 0xc0000000
push esi
call dword [0x4c8fd4]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41304d
push 0x80000000
push esi
call dword [0x4c8fd4]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41304d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
je 0x413045
sub eax, 0x56
je 0x413045
sub eax, 0x3a
je 0x413045
sub eax, 0x7a
je 0x413045
sub eax, 0x101b
push 9
pop eax
jmp 0x4130ed
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x413084
push 3
pop ebx
jmp 0x4130e4
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x4130b6
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x4130ba
push 2
jmp 0x413081
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0049a840
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413876
Capabilities:
Acquire debug privileges

Disassembly:
xor eax, eax
cmp byte [esp + 4], al
push esi
mov esi, ecx
mov byte [esi], al
je 0x4138a6
test byte [0x4c9c70], 4
jne 0x4138a6
push eax
push 2
mov byte [esi], 1
or byte [0x4c9c70], 4
push str.SeDebugPrivilege
call fcn.00412301
add esp, 0xc
mov eax, esi
pop esi
ret 4

Function at 0x413a9b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4c9c14
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403e2d
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x413af3
push dword [ebp + 8]
and word [esi], 0
call fcn.00499edd
test eax, eax
pop ecx
jne 0x413ae8
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 0x413acd
cmp byte [ebp - 4], al
je 0x413b09
push dword [ebp - 8]
call fcn.00403e3e
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 0x413c50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 6]
mov eax, dword [eax + 0x54]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push dword [ebp + 0xc]
push edi
call fcn.004131b9
mov eax, dword [esi + 0x14]
xor ebx, ebx
add esp, 0xc
cmp word [eax + 6], bx
mov dword [ebp - 4], ebx
jbe 0x413cf3
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x413ce1
mov edx, dword [eax + 0x10]
test edx, edx
je 0x413ce1
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 0xc]
push edx
add edi, ecx
push eax
push edi
call fcn.004131b9
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, ebx
push str..rsrc
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x413cde
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x18]
sub edi, eax
lea ecx, [ecx + ebx + 0xc]
lea edx, [edi + eax]
add dword [ecx], edx
mov ecx, dword [esi + 0x18]
lea ecx, [ecx + ebx + 0x14]
add edi, eax
add dword [ecx], edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jl 0x413c87
mov dword [esi + 0x10], edi
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [esi + 0x14], eax
add eax, 0xf8
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
leave
ret 8

Function at 0x413fa0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0049a7e0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x413fd5
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 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