joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4327b0
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 0x43296c
mov edx, dword [0x504840]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x50bd08]
jge 0x4327ff
mov eax, dword [ebx]
test eax, eax
jne 0x432840
mov dword [edi + 0x50bd08], 1
jmp 0x432840
push ebx
call fcn.004173f0
add esp, 4
test eax, eax
jne 0x43283a
cmp dword [edi + 0x50bd04], 0
je 0x43294c
mov dword [edi + 0x50bd08], 0
push 0xffffffffffffffff
push dword [edi + 0x50bd04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004173f0
add esp, 4
mov edx, dword [0x504840]
cmp edx, 1
je 0x432938
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x4328af
mov eax, dword [0x504840]
cmp eax, 1
je 0x432894
cmp eax, 2
jge 0x43286f
mov dword [edi + 0x50bd08], 0
jmp 0x432885
mov dword [edi + 0x50bd08], 0
push dword [edi + 0x50bd04]
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 + 0x50bd18]
push dword [edi + 0x50bd14]
call fcn.004173d0
add esp, 8
mov eax, dword [0x504840]
jmp 0x43285e
mov edx, dword [esi]
test edx, edx
je 0x4328bb
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4328c6
mov dword [eax], edx
jmp 0x4328cc
mov dword [edi + 0x50bd00], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x504840]
cmp eax, 1
je 0x43291d
cmp eax, 2
jge 0x4328f1
mov dword [edi + 0x50bd08], 0
jmp 0x432907
mov dword [edi + 0x50bd08], 0
push dword [edi + 0x50bd04]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00429c10
push esi
call fcn.00429c10
add esp, 8
jmp 0x432885
push dword [edi + 0x50bd18]
push dword [edi + 0x50bd14]
call fcn.004173d0
add esp, 8
mov eax, dword [0x504840]
jmp 0x4328e0
lea eax, [edi + 0x50bd14]
push eax
call fcn.004173a0
add esp, 4
jmp 0x432849
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x50bd04], eax
mov dword [edi + 0x50bd08], 0
jmp 0x432823
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x432980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00431fc0
mov ebx, dword [ebp + 8]
cmp dword [0x5115c0], 0
jne 0x4329a7
test ebx, ebx
je 0x43299c
mov eax, dword [ebx]
jmp 0x43299e
xor eax, eax
push eax
call fcn.00475820
add esp, 4
test ebx, ebx
je 0x4329af
mov eax, dword [ebx]
jmp 0x4329b1
xor eax, eax
push eax
call fcn.004cda10
add esp, 4
jmp 0x432994
Function at 0x43c320
Capabilities:
Read file on windows

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

Function at 0x43c32c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x5115c0], 0
je 0x43c401
cmp dword [ebp + 0x20], 2
je 0x43c363
cmp dword [ebp + 0x20], 1
jne 0x43c372
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x43c382
cmp dword [ebp + 0x20], 0xfffffffa
je 0x43c4c6
cmp dword [ebp + 0x20], 0
je 0x43c4d2
xor ecx, ecx
cmp dword [ebp + 0x18], 0
je 0x43c3b5
cmp dword [ebp + 0x1c], 0
je 0x43c3b5
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004cd7c0
push edi
call fcn.004cd930
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43c401
push edi
push esi
push ebx
call fcn.004cd860
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x43c4f6
push 0
push edi
push 2
push 0x4e60ec
call fcn.004cd820
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x43c429
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x43c42e
mov edi, 0x20000
cmp esi, edi
jbe 0x43c4a2
cmp dword [ebp + 0x20], 0
je 0x43c4a2
test ecx, ecx
je 0x43c446
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x43c44b
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c490
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x43c485
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x43c48a
mov edx, 0x20000
cmp esi, edx
ja 0x43c490
mov edi, esi
test esi, esi
je 0x43c4b9
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x43c4b9
test eax, eax
jne 0x43c44e
jmp 0x43c4b9
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x43c394
mov dword [ebp - 0x10], edx
call fcn.004cda50
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x5115c0], 0
je 0x43c3b9
mov ecx, 1
jmp 0x43c38e
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x468730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x14]
Function at 0x490c30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x505020]
jne 0x490c3a
repz ret
jmp fcn.004a2eb0
Function at 0x44f5c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x44f626
call fcn.0044f574
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0044b70c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0044b70c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x44f6a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x459ad0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44f77e
cmp dword [0x459acc], 0
jne 0x44f77e
cmp dword [0x459cb0], 0
je 0x44f738
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0044f474
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44f71e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0044f474
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44f71e
lea ebx, [ebp - 0x84]
jmp 0x44f71f
inc ebx
call fcn.0044f660
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x44f7b9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x459ad4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0044b70c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x459ad7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x44f7b9
cmp dword [0x459acc], 0
je 0x44f798
cmp dword [0x459acc], 0xffffffff
je 0x44f7b9
push esi
call dword [0x459acc]
pop ecx
mov eax, dword [0x459ad0]
test eax, eax
je 0x44f7b9
cmp dword [0x459ad0], 0xffffffff
je 0x44f7b9
cmp byte [eax], 0
je 0x44f7b9
push esi
push eax
call fcn.0044f5c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4505e0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x459cb0], eax
call fcn.0044d950
mov edx, dword [esi + 0x20]
push edx
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.0044dc6c
add esp, 8
mov eax, dword [esi + 0x28]
push eax
call fcn.0044cbf4
pop ecx
mov edx, dword [esi + 0x44]
push edx
call fcn.0044cc04
pop ecx
mov dword [0x45c92c], 1
mov dword [0x45c930], esi
lea ecx, [ebp - 8]
mov dword [0x45c914], ecx
call fcn.0044c744
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x45c904], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x45c900], eax
mov eax, dword [esi + 0x30]
push eax
mov edx, dword [esi + 0x2c]
push edx
call fcn.0044f8cc
add esp, 8
mov ecx, dword [esi + 0x40]
push ecx
mov eax, dword [esi + 0x3c]
push eax
mov edx, dword [esi + 0x38]
push edx
mov ecx, dword [esi + 0x34]
push ecx
call fcn.0044f910
add esp, 0x10
call fcn.00450464
mov edi, eax
test eax, eax
je 0x4506bf
mov edx, dword [edi]
mov dword [edi + edx*4 + 4], 0xffffffff
push 0
push edi
call fcn.0045046c
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ebx, [edi + 4]
jmp 0x4506b8
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push edx
push 0
call dword [eax + 0x18]
add esp, 8
inc dword [ebp - 0xc]
add ebx, 4
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jg 0x4506a4
push 0
push 0x45c92c
call fcn.0045046c
add esp, 8
test byte [esi + 0x10], 1
je 0x45073b
mov ebx, dword [0x45c900]
jmp 0x4506dd
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x4506dc
cmp al, 9
je 0x4506dc
cmp byte [ebx], 0x22
jne 0x4506f1
mov dl, 0x22
inc ebx
jmp 0x4506f6
mov dl, 0x20
jmp 0x4506f6
inc ebx
mov al, byte [ebx]
test al, al
je 0x450704
cmp dl, al
je 0x450704
cmp al, 9
jne 0x4506f5
cmp byte [ebx], 0x22
jne 0x45070d
inc ebx
jmp 0x45070d
inc ebx
mov al, byte [ebx]
test al, al
je 0x450717
cmp al, 0x20
je 0x45070c
cmp al, 9
je 0x45070c
call fcn.00450764
push eax
push ebx
push 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call dword [esi + 0x18]
add esp, 0x10
push eax
call fcn.0044f87c
pop ecx
jmp 0x45075c
mov edx, dword [0x45c8fc]
push edx
mov ecx, dword [0x45c8f8]
push ecx
mov eax, dword [0x45c8f4]
push eax
call dword [esi + 0x18]
add esp, 0xc
push eax
call fcn.0044f87c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x52482c]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405d8e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405d8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d8e
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x405d79
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x405cee
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00406e70
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x405d66
push eax
call fcn.004a807a
add esp, 4
jmp 0x405d66
cmp dx, ax
jne 0x405d6b
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00406e70
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x405d40
push eax
call fcn.004a807a
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x405c66
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a7434
mov esp, ebp
pop ebp
ret 4

Function at 0x409e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409e15
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409e54
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409e50
lea ebx, [ebx]
cmp esi, edx
jae 0x409e54
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409e40
cmp esi, edx
jb 0x409e59
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x417900
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x521340]
push ebx
push esi
mov esi, ecx
imul esi, ecx
mov eax, esi
push edi
cdq
mov edi, 0x17
idiv edi
mov bl, 1
cmp edx, 0x11
jne 0x4179e1
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov edi, 0xc
idiv edi
cmp edx, 0xa
je 0x4179db
and esi, 0x80000003
jns 0x41794d
dec esi
or esi, 0xfffffffc
inc esi
cmp esi, 2
jne 0x4179db
xor esi, esi
mov edx, esi
and edx, 1
dec edx
not edx
and edx, ecx
mov eax, esi
sar eax, 1
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
inc esi
add ecx, eax
cmp esi, 0x100
jl 0x417958
mov dword [0x521340], ecx
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x41d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c749b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x521730]
test eax, eax
jne 0x41d793
mov ecx, dword [0x521340]
mov esi, 0x16
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 0x12
jne 0x41d6a1
dec ecx
mov dword [0x521340], ecx
push 0x51b234
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x521730], 0
jne 0x41d6dd
push 0x5c
call fcn.004a6c5d
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41d6d6
mov ecx, eax
call fcn.004261f0
jmp 0x41d6d8
xor eax, eax
mov dword [0x521730], eax
mov esi, dword [0x521340]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0xb
jne 0x41d783
xor edx, edx
jmp 0x41d700
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x41d700
mov dword [0x521340], esi
push 0x51b234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x521730]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4261f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c80d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00426610
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00426610
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.00426710
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.00426710
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4276a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8263
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
call fcn.004289d0
test al, al
jne 0x4276f1
call fcn.004a8009
mov ecx, dword [0x521340]
cmp ecx, eax
jne 0x4276f1
dec ecx
mov dword [0x521340], ecx
mov byte [edi + 0xc], 0
mov ecx, dword [0x521340]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0xf
idiv esi
cmp edx, 0xb
jne 0x42774c
push 0x28
call fcn.004a63b0
add esp, 4
mov ebx, eax
xor esi, esi
jmp 0x427720
call fcn.004a8009
add eax, dword [0x521340]
inc esi
mov dword [ebx + esi*4 - 4], eax
cmp esi, 0xa
jl 0x427720
mov eax, dword [ebx + 0x24]
push ebx
mov dword [0x521340], eax
call fcn.004a8200
mov ecx, dword [0x521340]
add esp, 4
mov eax, dword [edi + 0x14]
test eax, eax
je 0x427769
push eax
call fcn.00452630
mov dword [edi + 0x14], 0
mov ecx, dword [0x521340]
add esp, 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x427786
push eax
call fcn.00451f40
mov dword [edi + 0x10], 0
mov ecx, dword [0x521340]
add esp, 4
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x14
idiv esi
mov dword [ebp - 4], 1
cmp edx, 7
jne 0x4277c1
lea eax, [esi - 4]
mov esi, 0xbd
test esi, esi
je 0x4277b8
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x4277a7
lea ecx, [esi + eax]
mov dword [0x521340], ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4277e5
mov ecx, esi
call fcn.0043f3f0
push esi
call fcn.004a6c2e
mov dword [edi + 8], 0
mov ecx, dword [0x521340]
add esp, 4
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x17
idiv esi
cmp edx, 7
jne 0x427883
xor esi, esi
lea ecx, [ecx]
mov edx, esi
and edx, 1
dec edx
not edx
and edx, ecx
mov eax, esi
sar eax, 1
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
inc esi
add ecx, eax
cmp esi, 0x100
jl 0x427800
mov dword [0x521340], ecx
mov edx, dword [edi + 4]
sub edx, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4278a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ed0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x521340]
imul eax, eax
push ebx
mov ebx, ecx
cdq
mov ecx, 0xe
idiv ecx
push esi
mov dword [ebp - 0xc], ebx
cmp edx, 0xd
jne 0x428f04
push 4
call fcn.004a6c5d
mov ecx, dword [0x521340]
add esp, 4
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00428e90
mov esi, eax
test esi, esi
jne 0x428f38
call fcn.00429260
test al, al
jne 0x428f2e
inc dword [0x521804]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
mov dword [ebp - 8], 0x15
push dword [ebp - 4]
inc edi
push 0x4291f0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x428f91
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x521340]
mov ebx, eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv dword [ebp - 8]
cmp edx, 8
jne 0x428f96
test ecx, ecx
jne 0x428f96
mov dword [0x521340], 1
jmp 0x428f96
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 5
jge 0x428fc2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00428e90
mov esi, eax
test esi, esi
jne 0x428f42
pop edi
xor eax, eax
cmp ebx, 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4