joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x14]
pop ebp
jmp fcn.00436ab0

Function at 0x4503a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x7c
push esi
mov esi, ecx
mov eax, ebx
xor ecx, ecx
mul edx
push edi
mov dword [esi], vtable.DCDstrbtdPrcssng.0
seto cl
mov dword [esi + 4], ebx
neg ecx
mov dword [esi + 8], ebx
or ecx, eax
mov dword [esi + 0xc], 2
push ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0
call fcn.004d8b4b
imul ecx, ebx, 0x7c
mov dword [esi + 0x24], eax
push ecx
push 0
push eax
call fcn.004e4e70
add esp, 0x10
lea eax, [esi + 0x28]
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [esi + 0x24]
push 0
push 0
push 1
mov dword [eax], 1
mov eax, dword [esi + 0x24]
push 0
mov dword [eax + 8], 0
mov eax, dword [esi + 0x24]
mov dword [eax + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0x24]
mov edi, 1
mov dword [ebp - 4], edi
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x24]
mov dword [eax + 0x18], esi
cmp ebx, edi
jbe 0x45057b
mov ebx, 0x7c
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x24]
push 0
push 1
push 1
mov dword [ebx + eax], 0
mov eax, dword [esi + 0x24]
push 0
mov dword [ebx + eax + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
mov ecx, dword [esi + 0x24]
push 0
push 0
push 1
push 0
mov dword [ebx + ecx + 0xc], eax
call edi
mov ecx, dword [esi + 0x24]
mov edi, ebx
mov dword [ebx + ecx + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + eax + 0x14], 0
mov eax, dword [esi + 0x24]
mov dword [ebx + eax + 0x18], esi
mov ebx, 4
nop dword [eax + eax]
mov eax, dword [esi + 0x24]
add eax, 0x1c
push 0xfa0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
add edi, 0x18
sub ebx, 1
jne 0x4504d0
mov edi, dword [ebp - 4]
mov ecx, esi
push 2
push edi
call fcn.00450a60
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x24]
push ebx
mov ebx, dword [ebp - 8]
add eax, ebx
push eax
push 0x450bf0
push 0
push 0
call fcn.004e9a33
mov ecx, dword [esi + 0x24]
add esp, 0x18
push 0
push eax
mov dword [ebx + ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x7c
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
cmp edi, eax
jb 0x450476
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [eax - 1]
mov edi, 0x7c
mov dword [ebp + 8], ecx
nop
mov eax, dword [esi + 0x24]
cmp dword [edi + eax], 0
jne 0x450570
nop dword [eax]
push 1
call ebx
mov eax, dword [esi + 0x24]
cmp dword [edi + eax], 0
je 0x450560
mov ecx, dword [ebp + 8]
add edi, 0x7c
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x450550
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x450cb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x565070
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x565088]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x565088
test esi, esi
je 0x450d23
nop
mov ecx, dword [esi]
cmp dword [ebp - 0xc], ecx
jne 0x450d06
cmp dword [ebp - 8], 0
jne 0x450cf4
push 0
call fcn.00450b40
mov eax, dword [esi + 4]
push 8
push esi
mov dword [edi], eax
call fcn.004d8b3d
add esp, 8
jmp 0x450d1a
call fcn.00420c20
mov edx, eax
call fcn.004348e0
imul edx, eax
lea edi, [esi + 4]
add ebx, edx
mov esi, dword [edi]
test esi, esi
jne 0x450ce0
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], 0
je 0x450d5f
push 8
call fcn.004d8b0d
mov edi, dword [ebp - 0xc]
mov esi, eax
add esp, 4
mov dword [esi], edi
mov ecx, dword [0x565088]
mov dword [esi + 4], ecx
mov ecx, edi
call fcn.00420c20
mov edx, eax
call fcn.004348e0
imul edx, eax
mov dword [0x565088], esi
add ebx, edx
mov dword [ebp - 4], ebx
cmp ebx, 1
jb 0x450e0f
lea eax, [ebp - 0x40]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 0xc], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x565088]
mov esi, dword [ebp - 0x1c]
test ebx, ebx
je 0x450df9
xor eax, eax
mov ecx, dword [ebx]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call fcn.00420c20
mov edx, eax
call fcn.004348e0
imul eax, edx
mov esi, 1
xor edx, edx
imul eax, dword [ebp - 0x2c]
div dword [ebp - 4]
cmp eax, esi
cmovae esi, eax
push esi
call fcn.00450b40
mov edi, dword [ebx]
mov ecx, edi
add dword [ebp - 8], esi
call fcn.004348e0
mov edx, eax
mov eax, dword [ebp - 0xc]
cmp eax, edx
jae 0x450de4
call fcn.004348e0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], edx
mov ebx, dword [ebx + 4]
cmovae esi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], edx
cmovae edi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x450d91
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x450e0f
sub esi, eax
add esi, ecx
mov ecx, edi
push esi
call fcn.00450b40
push 0x565070
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518a48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x55b2f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, edx
call fcn.0046db50
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46fa49
mov ecx, dword [eax + 0x48]
lea ebx, [eax + 0x44]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x18], esi
cmp esi, 3
jae 0x46fa32
push dword [ebp + 8]
push 0
call fcn.004ac350
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
add esi, 0x445
mov eax, dword [ebp - 0x10]
push edi
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0x10]
push 1
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], edi
cmp dword [ebx + 8], ecx
je 0x46f9f2
mov edx, edi
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46f9d6
sub edx, esi
sar edx, 1
push edx
push edi
call fcn.004516e0
add dword [ebx + 4], 0x18
jmp 0x46f9fe
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00470bb0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46fa0a
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46fa1e
push edi
call fcn.004d8b08
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80000006
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, DirectSoundCreate8
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 0x473c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, 0xfffffffe
call fcn.00473dc0
cmp eax, 0xffff0300
jb 0x473d53
push 0x53f830
push 0x81
push dword [0x575084]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x473d4a
push edi
push dword [0x575084]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [0x575084]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebp - 4], eax
call fcn.004d8b4b
add esp, 4
mov dword [ebp - 0xc], eax
push 0x10000
call fcn.004d8b4b
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push dword [ebp - 4]
push esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004e4fd0
add esp, 0xc
mov ecx, esi
call fcn.004aa220
test eax, eax
je 0x473cf8
mov edx, esi
mov ecx, edi
call fcn.004aa1d0
jmp 0x473d11
push 0
push 0
push dword [ebp - 4]
lea edx, [ebp - 0xc]
push esi
lea ecx, [ebp - 8]
call fcn.004796e0
mov edi, dword [ebp - 8]
add esp, 0x10
mov ecx, dword [0x572f70]
lea edx, [ebp - 0x10]
push edx
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1a8]
test eax, eax
js 0x473d38
call fcn.00473c30
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [0x572ee4], eax
push esi
call fcn.004d8b08
add esp, 4
push edi
call fcn.004d8b08
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xf
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474e40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x55b2f8]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x572fcc], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x474f47
call edi
cmp dword [0x5730a8], eax
ja 0x474f47
cmp dword [0x5730a4], 0
je 0x474ee4
lea eax, [esp + 0x14]
push eax
push dword [0x575080]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00472f00
push eax
call fcn.00481a80
mov edx, dword [eax]
call fcn.00481a70
mov ecx, dword [eax]
call fcn.00474ad0
add esp, 0xc
call fcn.00471b50
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
mov dword [0x5730a4], 0
jmp 0x474f2b
call fcn.00472f00
cmp eax, 1
jne 0x474f33
call fcn.00471ea0
test eax, eax
je 0x474f33
push 0
push 0
call fcn.00472f00
push eax
call fcn.00481a80
mov edx, dword [eax]
call fcn.00481a70
mov ecx, dword [eax]
call fcn.00474ad0
add esp, 0xc
call fcn.00471b50
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
inc eax
add eax, esi
mov dword [0x573098], eax
mov dword [0x572fcc], 0
mov dword [0x5730a8], 0
cmp dword [0x5730bc], 0
je 0x474fbd
cmp dword [0x5753f4], 0
je 0x474fb3
call fcn.004a6530
test eax, eax
jne 0x474fb3
call fcn.004a68e0
test eax, eax
jne 0x474fb3
call fcn.00477de0
test eax, eax
jne 0x474fb3
call fcn.00472f00
neg eax
sbb esi, esi
inc esi
call fcn.00481a80
mov edx, dword [eax]
call fcn.00481a70
push 0
push 0
push esi
mov ecx, dword [eax]
call fcn.00474ad0
add esp, 0xc
test eax, eax
je 0x474fb3
push 0
call fcn.00472f00
mov edx, eax
mov ecx, 1
call fcn.004aeae0
add esp, 4
mov dword [0x5730bc], 0
cmp dword [0x573098], 0
je 0x474fdf
call edi
cmp dword [0x573098], eax
ja 0x474fdf
call fcn.004759a0
mov dword [0x573098], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret

Function at 0x478110
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.00477de0
test eax, eax
je 0x478179
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [0x57352c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
test edi, edi
push 0
cmovne eax, dword [0x573418]
push eax
push 0x30
push dword [0x57352c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x575080]
call dword [sym.imp.IMM32.dll_ImmGetDefaultIMEWnd]
xor ecx, ecx
test edi, edi
push 0
setne cl
add ecx, 0x21
push ecx
push 0x283
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x573528], edi
pop edi
ret
Function at 0x4781f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.00477de0
test eax, eax
je 0x47824e
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [0x57352c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
lea eax, [ebp - 0x804]
push 0xffffffffffffffff
push eax
push edi
call fcn.004ac3d0
add esp, 0xc
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.004d8af7
mov esp, ebp
pop ebp
ret

Function at 0x478e40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6dc
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x630]
xor edi, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x478e60
lea eax, [ebp - 0x630]
push eax
call fcn.004eb11e
add esp, 4
lea eax, [ebp - 0x62e]
cmp word [ebp - 0x630], 0x22
lea esi, [ebp - 0x630]
cmove esi, eax
movzx ecx, word [esi]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x478fc1
cmp word [esi + 2], 0x3a
jne 0x478fc1
cmp dword [ecx*4 + 0x5749ac], edi
je 0x478fab
lea ecx, [ebp - 0x6d8]
call fcn.00485a90
cmp dword [ebp - 0x6c8], 2
jne 0x478fab
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push str.._c_c
push eax
call fcn.00451240
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x478f50
push 0
lea eax, [ebp - 0x634]
push eax
push 0
push 0
push 0
push 0
push 0x2d4800
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x478f50
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push 0x53fcd4
push eax
call fcn.00451240
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call ebx
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
mov esi, eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
cmp ecx, 0x5c
jne 0x478fd2
cmp word [esi + 2], cx
mov eax, 1
cmove edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x479100
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
push ebx
mov dword [ebp - 0x9c4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x9c8], ecx
lea ecx, [ebp - 0x310]
push edi
mov dword [ebp - 0x9c0], eax
call fcn.004790c0
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004ac350
add esp, 8
mov dword [ebp - 0x9bc], 1
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], ebx
nop word [eax + eax]
mov dword [ebp - 0x9b8], 0
nop word [eax + eax]
test ebx, ebx
jne 0x4792d8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d8b4b
add esp, 4
mov dword [ebp - 0x9b4], eax
mov esi, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
cmp word [eax], bx
je 0x4791f0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4791d3
cmp eax, 2
jne 0x4791e0
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4791e0
cmp word [esi], ax
jne 0x4791c2
xor esi, esi
test ebx, ebx
jle 0x479243
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.00478e40
test eax, eax
je 0x47923e
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004ace60
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479301
inc esi
cmp esi, ebx
jl 0x479200
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.004d8b08
add esp, 4
test ebx, ebx
jne 0x479272
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004b3a90
test eax, eax
js 0x4792e5
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x479180
test ebx, ebx
jne 0x4792d8
cmp dword [ebp + 0x10], ebx
je 0x4792e5
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x575080]
push 0x41
push edi
call fcn.0046bba0
add esp, 8
cmp eax, 1
je 0x4792d8
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004b0e70
mov ecx, dword [0x575080]
mov edx, eax
push 0x124
push edi
call fcn.0046bba0
add esp, 8
cmp eax, 6
je 0x4792e5
cmp dword [ebp - 0x9bc], 0
jne 0x479170
push esi
call fcn.004d8b08
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x53fcc8
push 0x573870
call fcn.00451240
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x47924f
Function at 0x479390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.004d9760
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4793f8
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4793b1
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4793d7
push 0x53fd60
push 0x573558
call fcn.00402150
add esp, 0xc
jmp 0x4793e4
push 0x573558
call fcn.004acca0
add esp, 8
push 0x573558
push 0x574518
call fcn.004ac350
add esp, 8
jmp 0x47945b
push 0x30c
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004ea1ac
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x53fcc8
push 0x574518
call fcn.00451240
push 1
push 0x574518
push 0x573558
call fcn.004ac3d0
add esp, 0x30
xor eax, eax
mov byte [0x5741a0], 0
push 0x574518
mov word [0x573870], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x573558
push 0x575088
call fcn.004acca0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1864
call fcn.004d9760
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
call fcn.00479390
mov edx, ebx
mov ecx, 0x53fd54
call fcn.004794a0
push 0x53d90c
push esi
call fcn.004acc60
add esp, 8
test eax, eax
je 0x47959a
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.004ac350
add esp, 8
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4795b0
test al, 0x10
je 0x47955f
mov ecx, esi
call fcn.00479390
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004acca0
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.004acd50
mov edi, eax
test edi, edi
je 0x4795aa
lea ecx, [ebp - 0x310]
mov byte [edi], 0
call fcn.00479390
lea ecx, [edi + 1]
mov edx, ebx
call fcn.004794a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
jmp 0x479594
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x61c]
call fcn.00432b60
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xf40]
push 0x53fc94
push eax
call fcn.00402150
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push 0x53fc94
push eax
call fcn.00402150
add esp, 0x2c
lea ecx, [ebp - 0xf40]
call fcn.00479390
mov edx, ebx
lea ecx, [ebp - 0x124c]
call fcn.004794a0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47a430
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00481930
movzx ecx, word [esi + 0xe]
call fcn.004a98c0
mov ebx, dword [0x575394]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x47a476
call fcn.004a98d0
movzx eax, ax
add byte [edi + esi + 0x40], al
movzx eax, byte [edi + esi + 0x40]
add byte [esi + 0x38], al
movzx eax, byte [edi + esi + 0x40]
inc edi
xor byte [esi + 0x39], al
cmp edi, ebx
jl 0x47a455
call fcn.004a98d0
mov byte [esi + 0x3a], al
call fcn.004a98d0
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.00481940

Function at 0x47a5a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.00481930
movzx ecx, word [edi + 0xe]
call fcn.004a98c0
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x575394], esi
jle 0x47a5de
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004a98d0
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x575394]
jl 0x47a5c1
call fcn.00481940
cmp byte [edi + 0x38], bh
jne 0x47a5f6
cmp byte [edi + 0x39], bl
jne 0x47a5f6
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x47a9e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004ac350
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.00478e40
test eax, eax
je 0x47aa35
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret