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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a9e2c
or eax, 0xffffffff
jmp 0x4a9e8d
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4a9e89
push 0x3d
push esi
call fcn.004a9fe8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a9e89
cmp esi, eax
je 0x4a9e89
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x515d88]
sete cl
cmp eax, dword [0x515d8c]
mov dword [ebp - 8], ecx
jne 0x4a9e6f
mov edi, eax
call fcn.004a9db2
mov dword [0x515d88], eax
cmp eax, ebx
jne 0x4a9ec8
cmp dword [ebp + 0xc], ebx
je 0x4a9e91
cmp dword [0x515d90], ebx
je 0x4a9e91
call fcn.004a9935
test eax, eax
je 0x4a9ec8
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4a9e9a
xor eax, eax
jmp 0x4a9e8c
push 4
call fcn.00498e24
cmp eax, ebx
pop ecx
mov dword [0x515d88], eax
je 0x4a9e89
mov dword [eax], ebx
cmp dword [0x515d90], ebx
jne 0x4a9ec8
push 4
call fcn.00498e24
cmp eax, ebx
pop ecx
mov dword [0x515d90], eax
je 0x4a9e89
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x515d88]
call fcn.004a9d65
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4a9f29
cmp dword [esi], ebx
je 0x4a9f29
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00498e36
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4a9f0c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4a9f6a
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4a9f03
mov eax, edi
shl eax, 2
push eax
push dword [0x515d88]
call fcn.0049a805
cmp eax, ebx
pop ecx
pop ecx
je 0x4a9f6a
jmp 0x4a9f65
cmp dword [ebp - 8], ebx
jne 0x4a9fd5
cmp edi, ebx
jge 0x4a9f38
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x515d88]
call fcn.0049a805
cmp eax, ebx
pop ecx
pop ecx
je 0x4a9e89
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x515d88], eax
cmp dword [ebp + 0xc], ebx
je 0x4a9fbf
push dword [ebp - 4]
call fcn.0049fa30
inc eax
inc eax
push eax
call fcn.00498e24
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a9fbf
push dword [ebp - 4]
push esi
call fcn.004a0090
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4a9fb8
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00498e36
pop ecx
cmp dword [ebp - 8], ebx
je 0x4a9fcd
push dword [ebp - 4]
call fcn.00498e36
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a9e8c
push dword [ebp - 4]
call fcn.00498e36
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4a9e96
Function at 0x40142d
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x18c
mov eax, 0x410977
call fcn.00403894
mov esi, ecx
lea eax, [ebp - 0x11c]
mov edi, 0x104
push eax
xor ebx, ebx
push edi
mov dword [ebp - 0x150], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, edi
ja 0x40155d
test eax, eax
je 0x40155d
lea ecx, [ebp - 0x14c]
call fcn.004013d5
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x180]
call fcn.0040160e
mov edi, 0x4164e0
mov byte [ebp - 4], 1
push edi
mov edx, eax
lea ecx, [ebp - 0x198]
call fcn.00401c03
pop ecx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x168]
call fcn.00401c43
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x134]
call fcn.00401c03
pop ecx
xor edi, edi
lea ecx, [ebp - 0x168]
push ebx
inc edi
push edi
call fcn.00401871
push ebx
push edi
lea ecx, [ebp - 0x198]
call fcn.00401871
push ebx
push edi
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 7
call fcn.00401871
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push ebx
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, esi
test eax, eax
je 0x401551
lea eax, [ebp - 0x134]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.00401647
push ebx
push edi
lea ecx, [ebp - 0x134]
call fcn.00401871
push ebx
push edi
lea ecx, [ebp - 0x14c]
call fcn.00401871
jmp 0x401569
push 0x416467
call fcn.0040160e
jmp 0x401535
push 0x416467
mov ecx, esi
call fcn.0040160e
mov eax, esi
call fcn.00403852
ret

Function at 0x401571
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x20]
push 0x416530
call fcn.0040160e
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
push 0x357c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00401871
push 0x416534
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00402a61
push dword [ebp - 8]
push 1
push esi
push edi
call fcn.00402bff
push dword [ebp - 8]
call fcn.00402ced
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040210c
mov esp, ebp
pop ebp
ret
Function at 0x401ca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
push 0x38
mov dword [ebp - 0x44], eax
mov edi, ecx
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040a6c0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov dword [ebp - 0x30], edi
mov edx, str.runas
mov dword [ebp - 0x2c], ebx
mov ecx, 0x416467
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0
cmove ecx, edx
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x34], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401d6c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040210c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040210c
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str..
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00401b74
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edi, eax
cmp edi, 0xffffffff
setne cl
test ecx, ecx
je 0x401f24
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ebx, [ebx]
mov ecx, 0x416570
lea eax, [ebp - 0x154]
jmp 0x401e10
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401e30
test dl, dl
je 0x401e2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401e30
add eax, 2
add ecx, 2
test dl, dl
jne 0x401e10
xor eax, eax
jmp 0x401e35
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f12
mov eax, 0x416574
lea ecx, [ebp - 0x154]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401e68
test dl, dl
je 0x401e64
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401e68
add ecx, 2
add eax, 2
test dl, dl
jne 0x401e48
xor eax, eax
jmp 0x401e6d
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f12
push 0x4164e0
mov edx, esi
lea ecx, [ebp - 0x198]
call fcn.00401b74
add esp, 4
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00401c03
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x184], 0x10
jb 0x401ebd
push dword [ebp - 0x198]
call fcn.0040211b
add esp, 4
test byte [ebp - 0x180], 0x10
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
je 0x401eeb
lea ecx, [ebp - 0x28]
call fcn.00401d80
jmp 0x401efd
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x401f12
push dword [ebp - 0x28]
call fcn.0040211b
add esp, 4
lea eax, [ebp - 0x180]
push eax
push edi
call ebx
test eax, eax
jne 0x401e00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x401f33
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0x2c], 0x10
mov esi, eax
jb 0x401f4d
push dword [ebp - 0x40]
call fcn.0040211b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040210c
mov esp, ebp
pop ebp
ret
Function at 0x40c704
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408413
mov dword [ebp - 0x14], eax
cmp dword [0x41a220], esi
jne 0x40c7f7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c784
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c8d7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c8d7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c8d7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41a220], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41a224], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41a228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a230], eax
test eax, eax
je 0x40c7f4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a22c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c81c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c80f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c831
push 4
pop eax
jmp 0x40c8d9
cmp dword [ebp - 0x14], esi
je 0x40c831
push dword [0x41a220]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c816
mov eax, dword [0x41a22c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c88f
cmp dword [0x41a230], edi
je 0x40c88f
push eax
call ebx
push dword [0x41a230]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c88f
test eax, eax
je 0x40c88f
call ecx
test eax, eax
je 0x40c884
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c884
test byte [ebp - 8], 1
jne 0x40c88f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c8bf
mov eax, dword [0x41a224]
cmp eax, edi
je 0x40c8bc
push eax
call ebx
test eax, eax
je 0x40c8bc
call eax
mov esi, eax
test esi, esi
je 0x40c8bc
mov eax, dword [0x41a228]
cmp eax, edi
je 0x40c8bc
push eax
call ebx
test eax, eax
je 0x40c8bc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41a220]
call ebx
test eax, eax
je 0x40c8d7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c8d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040210c
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4e68d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40185c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x40185c
cmp ebx, 0x15f90
jl 0x401853
cmp ebx, 0x1d4c0
jge 0x401830
mov eax, 0x32
jmp 0x401855
cmp ebx, 0x2bf20
jge 0x40183f
mov eax, 0x64
jmp 0x401855
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x401855
mov eax, 0xfa
jmp 0x401855
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401870
inc ebx
cmp ebx, 0x57e40
jl 0x4017e8
mov eax, dword [ebp - 4]
test eax, eax
je 0x40188a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0040e4b0
add esp, 4
mov eax, dword [0x4e68d4]
test eax, eax
jne 0x4018c0
cmp dword [0x4e30a0], 1
je 0x401944
xor ebx, ebx
xor esi, esi
cmp dword [0x4e68cc], 0
je 0x401904
mov dword [0x4e68d4], 1
cmp dword [0x4e30a0], 1
je 0x4018ef
mov dword [0x4e68d0], 0
push dword [0x4e68c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x401962
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0045c3c0
push ebx
push 0x16
call fcn.0045c3c0
add esp, 0x10
jmp 0x4018c0
mov dword [0x4e68cc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e68c8], eax
cmp eax, 0xffffffff
jne 0x401928
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4018ad
push 0x401760
call fcn.0045cde0
push 0x401720
call fcn.0045cde0
add esp, 8
jmp 0x4018ad
push 1
push 2
call fcn.0045c3c0
mov esi, eax
push 1
push 0x16
call fcn.0045c3c0
add esp, 0x10
mov ebx, eax
jmp 0x4018a4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x40198c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4e2ffc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e2ff8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e2ff4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e2ff0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x401994
push dword [ebp - 0x10]
push dword [0x4e68c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x4018de
Function at 0x4019e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4e68d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x401a6c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x401a6c
cmp ebx, 0x15f90
jl 0x401a63
cmp ebx, 0x1d4c0
jge 0x401a40
mov eax, 0x32
jmp 0x401a65
cmp ebx, 0x2bf20
jge 0x401a4f
mov eax, 0x64
jmp 0x401a65
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x401a65
mov eax, 0xfa
jmp 0x401a65
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401a80
inc ebx
cmp ebx, 0x57e40
jl 0x4019f8
mov eax, dword [ebp - 4]
test eax, eax
je 0x401a9a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0040e4b0
add esp, 4
mov eax, dword [0x4e68d4]
test eax, eax
jne 0x401ad0
cmp dword [0x4e30a0], 1
je 0x401b69
xor ebx, ebx
xor esi, esi
cmp dword [0x4e68cc], 0
je 0x401b26
mov dword [0x4e68d4], 1
cmp dword [0x4e30a0], 1
je 0x401b11
mov dword [0x4e68d0], 0
push dword [0x4e68c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x401ba7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4e30a0], 1
je 0x401b87
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0045c3c0
push ebx
push 0x16
call fcn.0045c3c0
add esp, 0x10
jmp 0x401ad0
mov dword [0x4e68cc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e68c8], eax
cmp eax, 0xffffffff
jne 0x401b4d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401abd
push 0x401760
call fcn.0045cde0
push 0x401720
call fcn.0045cde0
add esp, 8
jmp 0x401abd
push 1
push 2
call fcn.0045c3c0
mov esi, eax
push 1
push 0x16
call fcn.0045c3c0
add esp, 0x10
mov ebx, eax
jmp 0x401ab4
push 1
push 2
call fcn.0045c3c0
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.0045c3c0
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x401b05
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x401bce
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4e2ffc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e2ff8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e2ff4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e2ff0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x401bd6
push dword [ebp - 0x10]
push dword [0x4e68c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x401af3
Function at 0x40bd90
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x40cc00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp eax, 0xfffffffa
mov dword [ebp - 0x10], ebx
mov ebx, ecx
lea ecx, [eax + 5]
jg 0x40cc15
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, 0xfb93e673
mov dword [ebp - 8], esi
mov esi, edx
mul ecx
shr edx, 9
mov dword [ebp - 0xc], edi
imul edi, edx, 0x209
sub ecx, edi
mov edi, dword [0x4e30a0]
cmp edi, 2
lea eax, [ecx + 0x69]
mov dword [esi], eax
jge 0x40cc71
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x4e6904]
test ecx, ecx
jne 0x40ccfa
mov dword [edx + 0x4e6904], 1
mov eax, dword [esi]
jmp 0x40ccfa
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4e6904]
push ecx
call fcn.00401c70
add esp, 4
test eax, eax
jne 0x40ccf2
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4e6900], 0
je 0x40cd6a
mov dword [edx + 0x4e6904], 0
mov edx, dword [esi]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6900]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4e6904]
push ecx
call fcn.00401c70
add esp, 4
mov edi, dword [0x4e30a0]
mov eax, dword [esi]
cmp edi, 1
je 0x40cd4b
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ecx, dword [eax + 0x4e6918]
xor eax, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x40cd43
mov esi, dword [ebp - 4]
cmp esi, dword [ecx + 0x100]
jbe 0x40cd32
mov eax, ecx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov dword [ebx], ecx
jne 0x40cd1f
mov dword [edx], eax
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [edx], 0
jmp 0x40cd34
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4e6910]
push eax
call fcn.00401c20
add esp, 4
mov eax, dword [esi]
jmp 0x40ccff
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4e6900], eax
mov dword [ecx + 0x4e6904], 0
jmp 0x40ccb9
Function at 0x40e2e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x40e49c
mov edx, dword [0x4e30a0]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x4eada8]
jge 0x40e32f
mov eax, dword [ebx]
test eax, eax
jne 0x40e370
mov dword [edi + 0x4eada8], 1
jmp 0x40e370
push ebx
call fcn.00401c70
add esp, 4
test eax, eax
jne 0x40e36a
cmp dword [edi + 0x4eada4], 0
je 0x40e47c
mov dword [edi + 0x4eada8], 0
push 0xffffffffffffffff
push dword [edi + 0x4eada4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.00401c70
add esp, 4
mov edx, dword [0x4e30a0]
cmp edx, 1
je 0x40e468
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x40e3df
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40e3c4
cmp eax, 2
jge 0x40e39f
mov dword [edi + 0x4eada8], 0
jmp 0x40e3b5
mov dword [edi + 0x4eada8], 0
push dword [edi + 0x4eada4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x4eadb8]
push dword [edi + 0x4eadb4]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40e38e
mov edx, dword [esi]
test edx, edx
je 0x40e3eb
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40e3f6
mov dword [eax], edx
jmp 0x40e3fc
mov dword [edi + 0x4eada0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40e44d
cmp eax, 2
jge 0x40e421
mov dword [edi + 0x4eada8], 0
jmp 0x40e437
mov dword [edi + 0x4eada8], 0
push dword [edi + 0x4eada4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.0040e5b0
push esi
call fcn.0040e5b0
add esp, 8
jmp 0x40e3b5
push dword [edi + 0x4eadb8]
push dword [edi + 0x4eadb4]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40e410
lea eax, [edi + 0x4eadb4]
push eax
call fcn.00401c20
add esp, 4
jmp 0x40e379
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x4eada4], eax
mov dword [edi + 0x4eada8], 0
jmp 0x40e353
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40e4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00421fe0
mov ebx, dword [ebp + 8]
cmp dword [0x4f1140], 0
jne 0x40e4d7
test ebx, ebx
je 0x40e4cc
mov eax, dword [ebx]
jmp 0x40e4ce
xor eax, eax
push eax
call fcn.0045e0a0
add esp, 4
test ebx, ebx
je 0x40e4df
mov eax, dword [ebx]
jmp 0x40e4e1
xor eax, eax
push eax
call fcn.004b30e0
add esp, 4
jmp 0x40e4c4
Function at 0x413fb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]