joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52fe03
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0054a839
call fcn.0043baf3
cmp dword [eax + 0x14], 0
jne 0x52fe20
mov ecx, esi
pop esi
jmp fcn.0052f908
pop esi
ret

Function at 0x532eca
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043fadc
call fcn.0043baf3
cmp dword [eax + 0x14], 0
jne 0x532ee7
mov ecx, esi
pop esi
jmp fcn.0053289d
pop esi
ret

Function at 0x54df46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e14a4]
jne 0x54df50
repz ret
jmp fcn.005548e4

Function at 0x56286c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e14a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005572fb
and dword [ebp - 0x14], 0
cmp dword [0x5e9fe8], 0
mov dword [ebp - 0x18], eax
jne 0x56291f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5629c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b243c
push ebx
call edi
test eax, eax
je 0x5629c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b242c
push ebx
mov dword [0x5e9fe8], eax
call edi
push eax
call esi
push 0x5b2418
push ebx
mov dword [0x5e9fec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e9ff0], eax
call edi
push eax
call esi
mov dword [0x5e9ff8], eax
test eax, eax
je 0x56291f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e9ff4], eax
mov eax, dword [0x5e9ff4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x562978
cmp dword [0x5e9ff8], ecx
je 0x562978
push eax
call esi
push dword [0x5e9ff8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x562978
test ebx, ebx
je 0x562978
call edi
test eax, eax
je 0x56296f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x56296f
test byte [ebp - 8], 1
jne 0x562978
or dword [ebp + 0x10], 0x200000
jmp 0x5629ab
mov eax, dword [0x5e9fec]
cmp eax, dword [ebp - 0x18]
je 0x5629ab
push eax
call esi
test eax, eax
je 0x5629ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5629ab
mov eax, dword [0x5e9ff0]
cmp eax, dword [ebp - 0x18]
je 0x5629ab
push eax
call esi
test eax, eax
je 0x5629ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e9fe8]
call esi
test eax, eax
je 0x5629c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5629c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054df46
leave
ret
Function at 0x433001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c706d68
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7c995ffd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x41eb05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040c4cd
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x474b17
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x49dc44
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474b91
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042010a
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00404bce
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x49dc44
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474b88
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00407e53
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.00404fd2
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41eb37

Function at 0x41f1c4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c10c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.004235c3
pop ecx
push eax
call fcn.004233f5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040d2c0
test al, al
jne 0x474ba1
lea ecx, [ebp - 0x18]
call fcn.0040a6d4
mov ecx, edi
call fcn.004084a6
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041f26b
push dword [ebp - 0x18]
push 0x4aec3c
push esi
call fcn.004237bc
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x474bc1
lea ecx, [ebp - 0x18]
call fcn.00405cd3
mov edi, dword [ebp - 8]
push esi
call fcn.00423981
pop ecx
cmp ebx, 0xffffffff
je 0x474bd8
push ebx
push esi
call fcn.004235c3
pop ecx
push eax
call fcn.004233f5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044be8a
push eax
push 1
call fcn.0044be47
push eax
call fcn.0042373e
add esp, 0x10
mov edi, eax
jmp 0x41f244
mov ecx, edi
call fcn.004084a6
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f239
push 0x4000
jmp 0x41f255
Function at 0x43aee5
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040d3d2
lea ecx, [ebp - 0x20]
call fcn.0040d3d2
lea ecx, [ebp - 0x40]
call fcn.0040d3d2
push 0x4b28ec
lea ecx, [ebp - 0x30]
call fcn.00407e53
push esi
lea ecx, [ebp - 0x30]
call fcn.004039e8
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004039e8
lea ecx, [ebp - 0x20]
call fcn.0040c4cd
test edi, edi
je 0x43af68
push 0x5c
pop eax
cmp word [edi], ax
je 0x43af68
cmp word [edi + 2], ax
je 0x43af68
push 0x4b2920
lea ecx, [ebp - 0x20]
call fcn.00407e53
push edi
lea ecx, [ebp - 0x20]
call fcn.004039e8
cmp dword [ebp + 0xc], ebx
je 0x43afb9
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00421970
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.0040c935
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004039e8
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x43b045
lea eax, [ebp - 0x10]
push eax
push 0x80000002
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x43b045
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x43b040
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43b03b
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00405cd3
lea ecx, [ebp - 0x20]
call fcn.00405cd3
lea ecx, [ebp - 0x30]
call fcn.00405cd3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43b7ef
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
xor ebx, ebx
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43b846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43b849
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x43b849
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43b849
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x449e65
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x449e9f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x449edc
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test dword [ebp + 8], eax
je 0x449ec5
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x449e99
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x449f13
or eax, 0xffffffff
jmp 0x449e99
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x449eea
cmp eax, 0xffffffff
je 0x449eea
push 1
mov edx, esi
mov ecx, eax
call fcn.00449d25
pop ecx
jmp 0x449e97
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4b38f4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x449e95
test eax, eax
je 0x449e95
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00449d25
pop ecx
mov ecx, esi
call fcn.00449cce
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x449e97

Function at 0x449f31
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x449f6a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x449fa5
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test al, 1
je 0x449f8f
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x449f64
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x449fdc
or eax, 0xffffffff
jmp 0x449f64
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x449fb3
cmp eax, 0xffffffff
je 0x449fb3
push 1
mov edx, esi
mov ecx, eax
call fcn.00449d25
pop ecx
jmp 0x449f62
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x4b38f4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x449f60
test eax, eax
je 0x449f60
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00449d25
pop ecx
mov ecx, esi
call fcn.00449cce
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x449f62
Function at 0x46e541
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x46e65b
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e578
xor eax, eax
jmp 0x46e68a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x46e59b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46e571
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x46e571
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x48d9bc
xor edi, edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x46e571
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x46e637
cmp dword [ecx], edi
jne 0x46e637
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x46e660
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x46e675
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a353
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a38f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
pop ecx
test esi, esi
pop esi
je 0x40a39f
mov al, 1
jmp 0x40a3a1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a389
xor al, al
leave
ret 8

Function at 0x40a3a5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a3dd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
pop ecx
test esi, esi
pop esi
je 0x40a3ea
mov al, 1
jmp 0x40a3ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a3d7
xor al, al
leave
ret 4

Function at 0x40a3f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a42b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
pop ecx
test esi, esi
pop esi
je 0x40a43a
mov al, 1
jmp 0x40a43c
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a425
xor al, al
leave
ret 4

Function at 0x40a45e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040b099
cmp eax, 0xffffffff
je 0x40a489
test al, 0x10
jne 0x40a489
test al, 1
je 0x40a489
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a353
test al, al
je 0x40a4c1
cmp byte [0x42a988], 0
push esi
jne 0x40a4b7
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
pop ecx
test esi, esi
je 0x40a4c1
mov al, 1
jmp 0x40a4c3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40a4b1
xor al, al
pop esi
leave
ret 4

Function at 0x40a4e5
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a51c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a52b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x40a842
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x41fea7
call fcn.00416cfa
xor ebx, ebx
cmp byte [0x42a988], bl
jne 0x40a887
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00409632
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040983f
pop ecx
cmp esi, ebx
je 0x40a895
mov al, 1
call fcn.00416dd2
ret 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a87b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a8a6
xor al, al
jmp 0x40a87f
lea ecx, [ebp - 0x50]
call fcn.0040b076
lea ecx, [ebp - 0x28]
call fcn.004091f7
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b15c
test al, al
jne 0x40a8d5
push dword [ebp - 0x28]
call fcn.0040983f
pop ecx
mov al, bl
jmp 0x40a87f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x40a8c8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40b0cd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409632
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040983f
pop ecx
mov eax, esi
pop esi
jmp 0x40b0dd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b0dd
or eax, eax
leave
ret 4
Function at 0x40b5f4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b61a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b61a
xor al, al
jmp 0x40b63a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00418e10
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4117be
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x4117de
xor eax, eax
jmp 0x4118f7
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x411800
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x411805
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4117f7
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x4118e0
cmp ecx, 2
jbe 0x411860
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x41187e
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 5
add edi, ecx
cmp dword [ebp + 0x18], 0
je 0x41188b
add eax, edi
jmp 0x41188d
shr esi, cl
test esi, esi
je 0x411822
cmp esi, 4
ja 0x41187e
cmp esi, 3
je 0x41187e
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x411822
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x4117ef
sub eax, edi
test esi, esi
je 0x4118be
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x4118b9
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x4118b7
add eax, edi
jmp 0x4118b9
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x4117ef
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0x14

Function at 0x4144ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00419289
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.0041447c
pop ebp
ret 0xc
Function at 0x416ceb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429a80]
jne 0x416cf5
repz ret
jmp fcn.0041b0bc

Function at 0x41d528
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419b0a
and dword [ebp - 4], 0
cmp dword [0x42b2fc], 0
mov ebx, eax
jne 0x41d5d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d68a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41d68a
push eax
call fcn.00419a98
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b2fc], eax
call esi
push eax
call fcn.00419a98
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b300], eax
call esi
push eax
call fcn.00419a98
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b304], eax
call esi
push eax
call fcn.00419a98
pop ecx
mov dword [0x42b30c], eax
test eax, eax
je 0x41d5d9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419a98
pop ecx
mov dword [0x42b308], eax
mov eax, dword [0x42b308]
cmp eax, ebx
je 0x41d631
cmp dword [0x42b30c], ebx
je 0x41d631
push eax
call fcn.00419b13
push dword [0x42b30c]
mov esi, eax
call fcn.00419b13
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d631
test edi, edi
je 0x41d631
call esi
test eax, eax
je 0x41d628
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d628
test byte [ebp - 0xc], 1
jne 0x41d631
or dword [ebp + 0x10], 0x200000
jmp 0x41d66a
mov eax, dword [0x42b300]
cmp eax, ebx
je 0x41d66a
push eax
call fcn.00419b13
pop ecx
test eax, eax
je 0x41d66a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d66a
mov eax, dword [0x42b304]
cmp eax, ebx
je 0x41d66a
push eax
call fcn.00419b13
pop ecx
test eax, eax
je 0x41d66a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b2fc]
call fcn.00419b13
pop ecx
test eax, eax
je 0x41d68a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d68c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret