joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439f00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004694df
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004398a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046940d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00465bf4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00465bf4
push 1
push 0
push 0
mov ecx, esi
call fcn.00465b9c
push 1
push 0
push 1
mov ecx, esi
call fcn.00465b9c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469551
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a080
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004694df
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004398a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046940d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a144
cmp dword [esp + 0x40], 1
jne 0x43a142
cmp ecx, eax
jge 0x43a144
mov eax, ecx
cmp eax, 0xc8
jge 0x43a150
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439f00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469551
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a8d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4724b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00464014
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00469787
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046acdf
test eax, eax
je 0x43a9ec
mov ecx, dword [esp + 0x3c]
call fcn.004697b4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a9b0
push edi
mov ecx, esi
call fcn.00466d78
mov ecx, esi
call fcn.0043ab50
cmp dword [esp + 0x38], 1
jne 0x43a9e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00466ee2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d400
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d433
push esi
call fcn.004404f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d42c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d4b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d4a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43d457
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d49e
cmp eax, 2
je 0x43d4a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d44a
cmp eax, 3
je 0x43d47d
cmp eax, 1
jne 0x43d44a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d44a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d44a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d4e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d4c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d4e0
add esp, 4
pop esi
ret

Function at 0x464e0a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464e42
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462ec1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462e99
jmp 0x464e4e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4664fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46653e
call fcn.0046c1eb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46653e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466535
xor eax, eax
jmp 0x466546
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046654c
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c71b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46c749
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c767
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c681
jmp 0x46c767
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c767
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c681
test edi, edi
mov eax, edi
jne 0x46c751
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401100
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
sub esp, 0x110
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.004010c0
push 0x65327c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xa54180], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x854138]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
mov dword [esp + 8], 8
push edx
mov dword [esp + 0x10], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [0xa54180]
test eax, eax
je 0x4012a3
push 0x653264
push eax
call esi
mov ecx, dword [0xa54180]
push 0x653250
push ecx
mov dword [0xa5418c], eax
call esi
mov edx, dword [0xa54180]
push 0x653234
push edx
mov dword [0xa54160], eax
call esi
mov dword [0xa54188], eax
mov eax, dword [0xa54180]
push 0x653214
push eax
call esi
mov ecx, dword [0xa54180]
push 0x6531f4
push ecx
mov dword [0xa5416c], eax
call esi
mov edx, dword [0xa54180]
push 0x6531d0
push edx
mov dword [0xa5419c], eax
call esi
mov dword [0xa54184], eax
mov eax, dword [0xa54180]
push 0x6531ac
push eax
call esi
test edi, edi
mov dword [0xa54168], eax
je 0x401220
mov ecx, dword [0x653f54]
push 0x653c88
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [0xa54180]
push 0x65318c
push edx
call esi
mov dword [0xa5415c], eax
mov eax, dword [0xa54180]
push 0x65316c
push eax
call esi
mov ecx, dword [0xa54180]
push 0x65314c
push ecx
mov dword [0xa54198], eax
call esi
mov edx, dword [0xa54180]
push 0x65312c
push edx
mov dword [0xa54164], eax
call esi
mov dword [0xa54158], eax
mov eax, dword [0xa54180]
push 0x653110
push eax
call esi
mov ecx, dword [0xa54180]
push 0x6530f0
push ecx
mov dword [0xa54154], eax
call esi
mov edx, dword [0xa54180]
push 0x6530d0
push edx
mov dword [0xa54190], eax
call esi
mov dword [0x65407c], eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x6530c4
call edi
test eax, eax
mov dword [0x854148], eax
je 0x4012d8
push 0x6530a8
push eax
call esi
mov dword [0x654084], eax
mov eax, dword [0x854148]
push 0x653094
push eax
call esi
mov dword [0x654080], eax
push 0x653088
call edi
test eax, eax
mov dword [0xa54150], eax
je 0x4012f5
push 0x653074
push eax
call esi
mov dword [0x854144], eax
push 0x653068
call edi
test eax, eax
mov dword [0xa5414c], eax
je 0x40132a
push 0x653054
push eax
call esi
Function at 0x64f4a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650658
push 0x64f490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cld
add bh, bh
adc eax, sym.imp.MSVCRT.dll___set_app_type
pop ecx
or dword [0xa541d4], 0xffffffff
or dword [0xa541d8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0xa541d0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0xa541cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0xa541dc], eax
call fcn.0064f61f
cmp dword [0x653470], ebx
jne 0x64f523
push 0x64f61c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0064f60a
push 0x65300c
push 0x653008
call sub.MSVCRT.dll__initterm
mov eax, dword [0xa541c8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0xa541c4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x653004
push section..data1
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x64f5b6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f58a
cmp al, 0x22
jne 0x64f57c
cmp byte [esi], 0x22
jne 0x64f593
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f59d
cmp al, 0x20
jbe 0x64f58f
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x64f5c1
movzx eax, word [ebp - 0x2c]
jmp 0x64f5c4
cmp byte [esi], 0x20
jbe 0x64f593
inc esi
mov dword [ebp - 0x74], esi
jmp 0x64f5b6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4af120
Capabilities:
Resume thread
Suspend thread

Disassembly:
call fcn.004aff50
cmp ax, 0x3c
jne 0x4af13f
mov eax, dword [0x4a8370]
mov ecx, dword [0x4a8374]
cmp eax, ecx
jae 0x4af13f
mov ax, 0x3c
ret
mov eax, dword [0x4a8480]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4af1ac
mov edx, dword [0x49bca4]
push 4
inc edx
push edi
push 0x4a8454
mov dword [0x49bca4], edx
mov edx, dword [0x4aa738]
push 0x4a8450
push edi
push 0x4a85bc
mov dword [0x4a8a54], edi
mov dword [0x4a8450], edx
mov dword [0x4a8454], edi
call fcn.004b1570
mov esi, eax
cmp si, di
jne 0x4af1a0
mov eax, dword [0x4a8454]
mov ecx, dword [0x4aa738]
xor eax, ecx
je 0x4af1a5
mov esi, 3
mov ax, si
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x49bca8]
mov ebx, 1
cmp eax, ebx
mov dword [0x4a8a54], ebx
je 0x4af224
mov ecx, dword [0x49bca4]
mov eax, dword [0x49bca0]
cmp ecx, eax
je 0x4af224
mov edx, ecx
push 4
inc edx
push edi
push 0x4a8454
mov dword [0x49bca4], edx
mov edx, dword [0x4aa738]
push 0x4a8450
push edi
push 0x4a85bc
mov dword [0x4a8450], edx
mov dword [0x4a8454], edi
call fcn.004b1570
mov esi, eax
cmp si, di
jne 0x4af1a0
mov eax, dword [0x4a8454]
mov ecx, dword [0x4aa738]
xor eax, ecx
je 0x4af1a5
mov esi, 3
pop edi
mov ax, si
pop esi
pop ebx
ret
push edi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
push 4
idiv ecx
mov eax, dword [0x4aa738]
push edi
and eax, 0x1f3
push 0x4a8454
mov dword [0x4a8460], eax
push 0x4a8450
mov dword [0x49bca4], ebx
mov dword [0x4a8454], edi
inc edx
mov dword [0x49bca0], edx
mov edx, dword [eax*4 + 0x498010]
movzx ax, byte [0x49800d]
xor edx, 0xfd0699d6
push eax
push 0x4a85bc
mov dword [0x4a8450], edx
call fcn.004b1570
mov esi, eax
cmp si, di
jne 0x4af2c9
mov ecx, dword [0x4a8460]
mov edx, dword [ecx*4 + 0x4987e0]
mov ecx, dword [0x4a8454]
xor edx, ecx
xor edx, 0x7b2309a7
jne 0x4af2c9
mov dword [0x49bca8], edi
mov ax, si
pop edi
pop esi
pop ebx
ret
mov al, byte [0x49af6a]
cmp al, 0x31
jne 0x4af2d9
mov esi, 3
jmp 0x4af2e3
cmp al, 0x32
je 0x4af2e1
cmp al, 0x33
jne 0x4af2e3
xor esi, esi
mov ecx, dword [0x4a84a4]
mov dword [0x49bca8], ebx
cmp ecx, edi
jne 0x4af1a5
cmp al, 0x32
je 0x4af303
cmp al, 0x33
jne 0x4af1a5
mov eax, dword [0x4a85ac]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x4a845c], 0xc
call fcn.004b05c0
mov ecx, dword [0x4a85ac]
mov dword [0x4a845c], edi
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ax, si
pop edi
mov dword [0x4a84a4], ebx
pop esi
pop ebx
ret
Function at 0x4af720
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x4aa720
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi*4 + 0x4aa760]
test eax, eax
je 0x4af773
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
je 0x4af773
cmp dword [esp + 0xc], 0x103
je 0x4af773
mov edx, dword [esi*4 + 0x4aa760]
push edx
call edi
mov dword [esi*4 + 0x4aa760], 0
push esi
call fcn.004af910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4af73d
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
xor esi, esi
mov eax, dword [esi*4 + 0x4aa760]
test eax, eax
je 0x4af799
push eax
call edi
push esi
call fcn.004af910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4af78b
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4af7b0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
mov eax, dword [esi*4 + 0x4aa760]
test eax, eax
je 0x4af7c8
push eax
call edi
push esi
call fcn.004af910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4af7ba
push 0x4aa720
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret

Function at 0x4b05c0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push edi
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x4b0570
push 0
push 0
mov dword [esp + 0x20], 1
mov dword [0x4a8464], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, eax
test esi, esi
jne 0x4b0602
push 0
call edi
cmp byte [0x49af6a], 0x31
je 0x4b0612
push 0xea60
jmp 0x4b0617
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [0x49af6a], 0x31
jne 0x4b0642
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x4b0de0
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 0x4b0e55
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x4b0e2c
mov word [0x4a8a60], cx
call fcn.004b32e0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x4b0e19
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x4b0e19
mov word [0x4a8a60], ax
call fcn.004b0b30
call fcn.004b0cc0
call fcn.004b32e0
add esp, 0x94
ret
Function at 0x4b1b80
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.004bd200
test eax, eax
jne 0x4b1bb0
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 0x4b1bc5
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 0x4b1c09
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x4b1be9
cmp eax, 0x102
jne 0x4b1bf6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x4b1c00
jmp 0x4b1bcf
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.004b1c80
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4b1c20
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.004bd200
test eax, eax
jne 0x4b1c38
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x4b1c41
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 0x4b1c54
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b1c6b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x4b5490
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 0x4b54de
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 0x4a72e8
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4b5506
jbe 0x4b5506
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4b550e
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x4b5521
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.004b9cc0
test ax, ax
jne 0x4b5696
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x4b56ab
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x4b5670
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x4a72c8
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.004b4990
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x4a72c8
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 0x4a72c8
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x49bd78
push edx
call esi
add esp, 0x28
test eax, eax
je 0x4b561c
lea eax, [esp + 0x20]
push 0x4a64e8
push eax
call esi
add esp, 8
test eax, eax
jne 0x4b562b
push 0x4a64d8
push ebp
call esi
add esp, 8
test eax, eax
je 0x4b566c
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.004b4e10
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x4b5692
lea edx, [esp + 0x60]
push 0x4a72c8
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 0x4b5589
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x4b56af
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