joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a90f7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4d28a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00450800
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00450800
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00450800
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004512b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.004512b0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.004512b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x453aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a990a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d28a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x14], 0x8000
mov dword [ebp - 0x10], 0x4d5234
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x45]
push eax
push 0x8000
lea ecx, [ebp - 0x44]
call fcn.00457430
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004525e0
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb4]
call fcn.00450fd0
push eax
push 0x8000
push 0
lea ecx, [ebp - 0x44]
call fcn.004574d0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00450fd0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00450fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004104f0
push 0
lea ecx, [ebp - 0x44]
call fcn.004574d0
push eax
lea ecx, [ebp - 0x34]
call fcn.00414cf0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0045aee0
add esp, 8
movzx eax, al
test eax, eax
je 0x453bd3
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004512d0
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00414d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00457470
mov eax, dword [ebp + 8]
jmp 0x453c23
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.00457150
mov ecx, dword [ebp - 0xac]
or ecx, 1
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00414d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00457470
mov eax, dword [ebp + 8]
jmp 0x453c23
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0047ab62
mov esp, ebp
pop ebp
ret
Function at 0x4542c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d28a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00450fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x454376
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.00457430
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00450fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00414cf0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00457470
mov eax, dword [ebp + 8]
jmp 0x454395
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414d30
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x454790
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d28a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x454838
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.00457430
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00414cf0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00457470
mov eax, dword [ebp + 8]
jmp 0x454853
mov ecx, dword [ebp + 8]
call fcn.00414cc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x455210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9e21
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d28a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.00457430
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004574d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00414cf0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00457470
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x469440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aced8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4d28a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsx eax, byte [0x4e9360]
test eax, eax
jne 0x469475
call fcn.00469330
movzx ecx, byte [0x4e9359]
test ecx, ecx
jne 0x46952f
movzx edx, byte [0x4e9358]
test edx, edx
jne 0x46952f
cmp dword [0x4e9464], 0
je 0x4694d8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x4e9464]
push ecx
call fcn.00454cd0
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x186
mov eax, dword [0x4e9464]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4e9464]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x46952f
push 0x4e9360
lea ecx, [ebp - 0x74]
call fcn.00450800
mov dword [ebp - 4], 0
push 0x10001
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00454ae0
add esp, 0x10
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004104f0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x46952f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x473f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x473f3f
mov eax, dword [eax + 4]
jmp 0x473f42
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x473fcb
push esi
mov esi, dword [0x4e9800]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x473fb0
cmp eax, 3
je 0x473fb0
cmp eax, 0x7b
je 0x473fb0
cmp eax, 0x57
je 0x473fb0
cmp eax, 0xa1
je 0x473fb0
cmp eax, 0x35
je 0x473fb0
cmp eax, 0x20
jne 0x473fa5
mov eax, dword [0x4e9804]
mov dword [ecx], eax
mov edx, dword [0x4e9808]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4e9804]
mov dword [ecx], eax
mov edx, dword [0x4e9808]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4e9804]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4e9808]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x473ff8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x474010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x47401f
mov eax, dword [eax + 4]
jmp 0x474022
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4740ab
push esi
mov esi, dword [0x4e9800]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x474090
cmp eax, 3
je 0x474090
cmp eax, 0x7b
je 0x474090
cmp eax, 0x57
je 0x474090
cmp eax, 0xa1
je 0x474090
cmp eax, 0x35
je 0x474090
cmp eax, 0x20
jne 0x474085
mov eax, dword [0x4e9804]
mov dword [ecx], eax
mov edx, dword [0x4e9808]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4e9804]
mov dword [ecx], eax
mov edx, dword [0x4e9808]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4e9804]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4e9808]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4740d8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x47ab62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d28a0]
jne 0x47ab6c
repz ret
jmp fcn.004871ac
Function at 0x48780f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d34a0]
je 0x48782a
inc edi
cmp edi, 0x17
jb 0x48781b
cmp edi, 0x17
jae 0x4879aa
push ebp
push 3
call fcn.004960be
cmp eax, 1
pop ecx
je 0x487976
push 3
call fcn.004960be
test eax, eax
pop ecx
jne 0x48785e
cmp dword [0x4d2960], 1
je 0x487976
cmp ebx, 0xfc
je 0x4879a9
push 0x4d7104
mov ebx, 0x314
push ebx
mov ebp, 0x4e9ca0
push ebp
call fcn.0047f618
add esp, 0xc
test eax, eax
je 0x487894
push esi
push esi
push esi
push esi
push esi
call fcn.0047b45d
add esp, 0x14
push 0x104
mov esi, 0x4e9cb9
push esi
push 0
mov byte [0x4e9dbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4878d8
push 0x4d70ec
push 0x2fb
push esi
call fcn.0047f618
add esp, 0xc
test eax, eax
je 0x4878d8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047b45d
add esp, 0x14
push esi
call fcn.0047a530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48791d
push esi
call fcn.0047a530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4e9fb4
push 0x4d70e8
sub ecx, eax
push ecx
push eax
call fcn.0047f98f
add esp, 0x14
test eax, eax
je 0x48791d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047b45d
add esp, 0x14
jmp 0x48791f
xor esi, esi
push 0x4d58e0
push ebx
push ebp
call fcn.0047f5a7
add esp, 0xc
test eax, eax
je 0x48793f
push esi
push esi
push esi
push esi
push esi
call fcn.0047b45d
add esp, 0x14
push dword [edi*8 + 0x4d34a4]
push ebx
push ebp
call fcn.0047f5a7
add esp, 0xc
test eax, eax
je 0x487961
push esi
push esi
push esi
push esi
push esi
call fcn.0047b45d
add esp, 0x14
push 0x12010
push 0x4d70c0
push ebp
call fcn.00495f01
add esp, 0xc
jmp 0x4879a9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4879a9
cmp ebp, 0xffffffff
je 0x4879a9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d34a4]
push dword [esi]
call fcn.0047a530
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x495f01
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004869ee
xor ebx, ebx
cmp dword [0x4ea344], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495fd7
push 0x4d88d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4960b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d88c4
push edi
call esi
cmp eax, ebx
je 0x4960b7
push eax
call fcn.00486980
mov dword [esp], 0x4d88b4
push edi
mov dword [0x4ea344], eax
call esi
push eax
call fcn.00486980
mov dword [esp], 0x4d88a0
push edi
mov dword [0x4ea348], eax
call esi
push eax
call fcn.00486980
mov dword [0x4ea34c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047f19f
test eax, eax
pop ecx
pop ecx
je 0x495fa5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047b45d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495fd7
push 0x4d8884
push edi
call esi
push eax
call fcn.00486980
cmp eax, ebx
pop ecx
mov dword [0x4ea354], eax
je 0x495fd7
push 0x4d886c
push edi
call esi
push eax
call fcn.00486980
pop ecx
mov dword [0x4ea350], eax
mov eax, dword [0x4ea350]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49605c
cmp dword [0x4ea354], ecx
je 0x49605c
push eax
call fcn.004869f7
push dword [0x4ea354]
mov esi, eax
call fcn.004869f7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49605c
cmp edi, ebx
je 0x49605c
call esi
cmp eax, ebx
je 0x496029
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x496029
test byte [ebp - 0x18], 1
jne 0x49605c
lea eax, [ebp - 0x10]
push eax
call fcn.0047f24e
test eax, eax
pop ecx
je 0x496044
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047b45d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x496053
or dword [ebp + 0x10], 0x200000
jmp 0x496097
or dword [ebp + 0x10], 0x40000
jmp 0x496097
mov eax, dword [0x4ea348]
cmp eax, dword [ebp - 8]
je 0x496097
push eax
call fcn.004869f7
cmp eax, ebx
pop ecx
je 0x496097
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x496097
mov eax, dword [0x4ea34c]
cmp eax, dword [ebp - 8]
je 0x496097
push eax
call fcn.004869f7
cmp eax, ebx
pop ecx
je 0x496097
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ea344]
call fcn.004869f7
cmp eax, ebx
pop ecx
je 0x4960b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4960b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a089c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4a0921
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0047ba10
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a08e4
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a0906
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4a097c
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004a05ec
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4a0968
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4a097c
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4a08a5
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x619a2fda
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x310126e8
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6210f2c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x799176da
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10002708
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10026010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10002813
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000280c
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100027d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100027d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100027d0
mov edx, dword [esi]
test edx, edx
jne 0x10002799
push 0x200
push edx
push dword [0x100276c4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100027f5
lea ebx, [esi + 8]
jmp 0x100027c3
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100027c3
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100276c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10002824
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000280c
xor edi, edi
cmp dword [esi], edi
je 0x1000280c
push dword [esi]
push edi
push dword [0x100276c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003d0d
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100027f5

Function at 0x10002829
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10002708
test eax, eax
jne 0x1000284d
push 9
pop esi
jmp 0x10002894
cmp dword [edi], esi
je 0x10002894
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10002893
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000288d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.100025b5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10002859
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret