joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dccf1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5028a0]
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.004886f0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x48ba16
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.0048eb40
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.0048ebe0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004886f0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.0048ebe0
push eax
mov ecx, dword [ebp + 8]
call fcn.00444dd0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0048eb80
mov eax, dword [ebp + 8]
jmp 0x48ba35
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00444e20
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 0x48be30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcde1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5028a0]
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 0x48bed8
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.0048eb40
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.0048ebe0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.0048ebe0
push eax
mov ecx, dword [ebp + 8]
call fcn.00444dd0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0048eb80
mov eax, dword [ebp + 8]
jmp 0x48bef3
mov ecx, dword [ebp + 8]
call fcn.00457e00
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 0x48c8b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd051
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5028a0]
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.0048eb40
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.0048ebe0
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.0048ebe0
push eax
mov ecx, dword [ebp + 8]
call fcn.00444dd0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0048eb80
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 0x4a6e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4a6e1f
mov eax, dword [eax + 4]
jmp 0x4a6e22
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a6eab
push esi
mov esi, dword [0x519760]
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 0x4a6e90
cmp eax, 3
je 0x4a6e90
cmp eax, 0x7b
je 0x4a6e90
cmp eax, 0x57
je 0x4a6e90
cmp eax, 0xa1
je 0x4a6e90
cmp eax, 0x35
je 0x4a6e90
cmp eax, 0x20
jne 0x4a6e85
mov eax, dword [0x519764]
mov dword [ecx], eax
mov edx, dword [0x519768]
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 [0x519764]
mov dword [ecx], eax
mov edx, dword [0x519768]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x519764]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x519768]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4a6ed8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

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

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4a6eff
mov eax, dword [eax + 4]
jmp 0x4a6f02
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a6f8b
push esi
mov esi, dword [0x519760]
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 0x4a6f70
cmp eax, 3
je 0x4a6f70
cmp eax, 0x7b
je 0x4a6f70
cmp eax, 0x57
je 0x4a6f70
cmp eax, 0xa1
je 0x4a6f70
cmp eax, 0x35
je 0x4a6f70
cmp eax, 0x20
jne 0x4a6f65
mov eax, dword [0x519764]
mov dword [ecx], eax
mov edx, dword [0x519768]
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 [0x519764]
mov dword [ecx], eax
mov edx, dword [0x519768]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x519764]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x519768]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4a6fb8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x4a9cc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e09cb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5028a0]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
push esi
push edi
mov eax, dword [0x5028a0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2a0]
mov ebp, dword [esp + 0x2a8]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a8]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], 0
call fcn.0045af50
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x294], 0
je 0x4a9d8f
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4a9d74
call fcn.004ae3f4
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4a9d83
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
mov edx, 0x505d70
je 0x4a9d94
mov edx, 0x505d68
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9da0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004a8ca0
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4a9dcd
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x4a9e20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x4a9df7
xor eax, eax
jmp 0x4a9df9
call esi
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x10]
mov edx, dword [0x519760]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x4a9e1c
mov eax, dword [esp + 0x20]
push eax
call fcn.004ade05
add esp, 4
mov eax, esi
jmp 0x4a9e9d
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9e27
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.004909e0
test byte [esp + 0x38], 0x10
je 0x4a9e60
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4a9e74
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x519764]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x519768]
mov dword [edi + 4], ecx
jb 0x4a9e9b
mov edx, dword [esp + 0x20]
push edx
call fcn.004ade05
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004ad9c2
add esp, 0x288
ret
Function at 0x4aa030
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e0a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x5028a0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x5028a0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00445630
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x4aa123
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4aa0e6
call fcn.004ae3f4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x4aa0f5
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x4aa11c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4aa107
call fcn.004ae3f4
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4aa116
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x4aa123
mov edx, 0x50524c
jmp 0x4aa128
mov edx, 0x505d74
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aa130
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0045b330
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x4aa159
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x4aa1ac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x4aa183
xor eax, eax
jmp 0x4aa185
call esi
cmp dword [esp + 0x34], 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x519760]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x4aa1a8
mov eax, dword [esp + 0x20]
push eax
call fcn.004ade05
add esp, 4
mov eax, esi
jmp 0x4aa225
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aa1b3
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.00445fd0
test byte [esp + 0x38], 0x10
je 0x4aa1e8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4aa1fc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x519764]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x519768]
mov dword [edi + 4], ecx
jb 0x4aa223
mov edx, dword [esp + 0x20]
push edx
call fcn.004ade05
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004ad9c2
add esp, 0x178
ret
Function at 0x4aa670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e0b7c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5028a0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x14]
push eax
push esi
call fcn.00493f50
mov edi, eax
mov eax, dword [esi + 0x14]
add esp, 8
test eax, eax
je 0x4aa6d9
cmp edi, eax
jbe 0x4aa6c0
call fcn.004ae3f4
cmp dword [esi + 0x18], 0x10
jb 0x4aa6cb
mov eax, dword [esi + 4]
jmp 0x4aa6ce
lea eax, [esi + 4]
cmp byte [eax + edi], 0x2f
mov byte [esp + 0x17], 1
je 0x4aa6de
mov byte [esp + 0x17], 0
push edi
push esi
call fcn.0049b2d0
add esp, 8
test edi, edi
mov ebp, eax
jbe 0x4aa71d
lea ebx, [edi - 1]
cmp ebx, ebp
je 0x4aa71d
cmp ebx, dword [esi + 0x14]
jbe 0x4aa6ff
call fcn.004ae3f4
cmp dword [esi + 0x18], 0x10
jb 0x4aa70a
mov eax, dword [esi + 4]
jmp 0x4aa70d
lea eax, [esi + 4]
cmp byte [ebx + eax], 0x2f
jne 0x4aa71d
sub edi, 1
sub ebx, 1
test edi, edi
ja 0x4aa6f1
mov ebx, 1
cmp edi, ebx
jne 0x4aa752
test ebp, ebp
jne 0x4aa752
cmp byte [esp + 0x17], 0
je 0x4aa752
mov edi, 0xf
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
lea eax, [esp + 0x54]
mov dword [esp + 0x78], ebx
mov ebp, 0x10
jmp 0x4aa7b4
push edi
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004a8fd0
mov edi, 0xf
mov dword [esp + 0x18], 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov dword [esp + 0x78], 3
jb 0x4aa796
mov eax, dword [eax + 4]
jmp 0x4aa799
add eax, 4
push eax
lea ecx, [esp + 0x20]
call fcn.00492240
lea eax, [esp + 0x1c]
mov dword [esp + 0x78], 4
mov ebx, 6
mov esi, dword [esp + 0x80]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
mov byte [esi + 4], 0
call fcn.00445630
or ebx, 8
test bl, 4
je 0x4aa808
and ebx, 0xfffffffb
cmp dword [esp + 0x34], ebp
jb 0x4aa7f7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004ade05
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bl, 2
je 0x4aa834
and ebx, 0xfffffffd
cmp dword [esp + 0x50], ebp
jb 0x4aa823
mov edx, dword [esp + 0x3c]
push edx
call fcn.004ade05
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
test bl, 1
je 0x4aa84c
cmp dword [esp + 0x6c], ebp
jb 0x4aa84c
mov eax, dword [esp + 0x58]
push eax
call fcn.004ade05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4

Function at 0x4ad9c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5028a0]
jne 0x4ad9cc
repz ret
jmp fcn.004b8bfc
Function at 0x4b925f
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 + 0x503220]
je 0x4b927a
inc edi
cmp edi, 0x17
jb 0x4b926b
cmp edi, 0x17
jae 0x4b93fa
push ebp
push 3
call fcn.004c671e
cmp eax, 1
pop ecx
je 0x4b93c6
push 3
call fcn.004c671e
test eax, eax
pop ecx
jne 0x4b92ae
cmp dword [0x502960], 1
je 0x4b93c6
cmp ebx, 0xfc
je 0x4b93f9
push 0x5070a4
mov ebx, 0x314
push ebx
mov ebp, 0x519be8
push ebp
call fcn.004acb6a
add esp, 0xc
test eax, eax
je 0x4b92e4
push esi
push esi
push esi
push esi
push esi
call fcn.004ae29c
add esp, 0x14
push 0x104
mov esi, 0x519c01
push esi
push 0
mov byte [0x519d05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b9328
push 0x50708c
push 0x2fb
push esi
call fcn.004acb6a
add esp, 0xc
test eax, eax
je 0x4b9328
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ae29c
add esp, 0x14
push esi
call fcn.004ad390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b936d
push esi
call fcn.004ad390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x519efc
push 0x507088
sub ecx, eax
push ecx
push eax
call fcn.004ad9d1
add esp, 0x14
test eax, eax
je 0x4b936d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ae29c
add esp, 0x14
jmp 0x4b936f
xor esi, esi
push 0x5058fc
push ebx
push ebp
call fcn.004acaf9
add esp, 0xc
test eax, eax
je 0x4b938f
push esi
push esi
push esi
push esi
push esi
call fcn.004ae29c
add esp, 0x14
push dword [edi*8 + 0x503224]
push ebx
push ebp
call fcn.004acaf9
add esp, 0xc
test eax, eax
je 0x4b93b1
push esi
push esi
push esi
push esi
push esi
call fcn.004ae29c
add esp, 0x14
push 0x12010
push 0x507060
push ebp
call fcn.004c6561
add esp, 0xc
jmp 0x4b93f9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b93f9
cmp ebp, 0xffffffff
je 0x4b93f9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x503224]
push dword [esi]
call fcn.004ad390
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 0x4c6561
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b843a
xor ebx, ebx
cmp dword [0x51a290], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4c6637
push 0x508890
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c6717
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x508884
push edi
call esi
cmp eax, ebx
je 0x4c6717
push eax
call fcn.004b83cc
mov dword [esp], 0x508874
push edi
mov dword [0x51a290], eax
call esi
push eax
call fcn.004b83cc
mov dword [esp], 0x508860
push edi
mov dword [0x51a294], eax
call esi
push eax
call fcn.004b83cc
mov dword [0x51a298], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b20df
test eax, eax
pop ecx
pop ecx
je 0x4c6605
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ae29c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4c6637
push 0x508844
push edi
call esi
push eax
call fcn.004b83cc
cmp eax, ebx
pop ecx
mov dword [0x51a2a0], eax
je 0x4c6637
push 0x50882c
push edi
call esi
push eax
call fcn.004b83cc
pop ecx
mov dword [0x51a29c], eax
mov eax, dword [0x51a29c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4c66bc
cmp dword [0x51a2a0], ecx
je 0x4c66bc
push eax
call fcn.004b8443
push dword [0x51a2a0]
mov esi, eax
call fcn.004b8443
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4c66bc
cmp edi, ebx
je 0x4c66bc
call esi
cmp eax, ebx
je 0x4c6689
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c6689
test byte [ebp - 0x18], 1
jne 0x4c66bc
lea eax, [ebp - 0x10]
push eax
call fcn.004b218e
test eax, eax
pop ecx
je 0x4c66a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ae29c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4c66b3
or dword [ebp + 0x10], 0x200000
jmp 0x4c66f7
or dword [ebp + 0x10], 0x40000
jmp 0x4c66f7
mov eax, dword [0x51a294]
cmp eax, dword [ebp - 8]
je 0x4c66f7
push eax
call fcn.004b8443
cmp eax, ebx
pop ecx
je 0x4c66f7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4c66f7
mov eax, dword [0x51a298]
cmp eax, dword [ebp - 8]
je 0x4c66f7
push eax
call fcn.004b8443
cmp eax, ebx
pop ecx
je 0x4c66f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51a290]
call fcn.004b8443
cmp eax, ebx
pop ecx
je 0x4c6717
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c6719
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d380a
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 0x4d388f
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004ae950
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 0x4d3852
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 0x4d3874
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4d38ea
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004d355a
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4d38d6
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 0x4d38ea
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4d3813
pop esi
pop ebx
leave
ret
Function at 0x4014f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411645
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x41a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x41a9a8], 0x1c
jl 0x401548
push 0x41a9ac
call fcn.0040f3b0
mov ecx, dword [0x41a9a4]
add esp, 4
test ecx, ecx
je 0x40153a
mov eax, dword [ecx]
mov dword [0x41a9a4], eax
mov dword [0x41a9ac], 1
test ecx, ecx
jne 0x401567
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x401567
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolMem.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x18], 0x40
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x401670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4116bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x41a9a8], 0x1c
jl 0x4016cb
push 0x41a9ac
call fcn.0040f3b0
mov ecx, dword [0x41a9a4]
add esp, 4
test ecx, ecx
je 0x4016bd
mov eax, dword [ecx]
mov dword [0x41a9a4], eax
mov dword [0x41a9ac], 1
test ecx, ecx
jne 0x4016ea
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x4016ea
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push esi
call fcn.004015d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41178d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x41a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x41a9a8], 0xc
jl 0x401cf8
push 0x41a9ac
call fcn.0040f3b0
mov ecx, dword [0x41a9a4]
add esp, 4
test ecx, ecx
je 0x401cea
mov eax, dword [ecx]
mov dword [0x41a9a4], eax
mov dword [0x41a9ac], 1
test ecx, ecx
jne 0x401d17
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x401d17
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret