joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d10
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x419468
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
jle 0x403f0f
mov dword [esp + 0x20], 0x3a
lea ebx, [ebp + 1]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ecx*4]
mov edi, 7
xor edx, edx
mov ecx, eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], dx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x403da0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x68]
call fcn.004010e0
mov dword [esp + 0x8c], ebp
xor eax, eax
mov word [esp + 0x4c], ax
push ebp
mov eax, 0x41bc98
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
call fcn.004010e0
mov byte [esp + 0x8c], bl
xor ecx, ecx
push ebp
mov eax, 0x41bc98
lea esi, [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], cx
call fcn.004010e0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x68]
mov byte [esp + 0x90], 2
call fcn.00404300
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e42
push ebx
lea eax, [esp + 0x68]
push eax
or eax, edi
lea esi, [esp + 0x50]
call fcn.00401190
push ebp
mov eax, 0x41bc98
lea esi, [esp + 0x30]
call fcn.004010e0
jmp 0x403e72
cmp edi, ebx
jbe 0x403e72
push ebx
lea ecx, [esp + 0x68]
lea eax, [edi - 1]
push ecx
lea esi, [esp + 0x50]
call fcn.00401190
add edi, ebx
cmp edi, dword [esp + 0x78]
jae 0x403e72
push edi
lea edx, [esp + 0x68]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x34]
call fcn.00401190
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.00404110
push 0xffffffffffffffff
mov ecx, eax
push ebp
lea eax, [esp + 0x34]
call fcn.00401250
mov esi, 8
cmp dword [esp + 0x44], esi
jb 0x403ea7
mov edx, dword [esp + 0x30]
push edx
call fcn.0040c0bb
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], ax
cmp dword [esp + 0x60], esi
jb 0x403ece
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0040c0bb
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], dx
cmp dword [esp + 0x7c], esi
jb 0x403efb
mov eax, dword [esp + 0x68]
push eax
call fcn.0040c0bb
add esp, 4
mov eax, dword [esp + 0x18]
add eax, ebx
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x403d7b
xor eax, eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x7c
ret 4
Function at 0x403f40
Capabilities:
Check if file exists
Create directory
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x419328
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], ebp
call fcn.004039f0
push 0xb
mov eax, str._preInstall
lea ecx, [esp + 0x2c]
call section..text
cmp dword [esp + 0x40], 8
mov esi, dword [esp + 0x2c]
jae 0x403fbb
lea esi, [esp + 0x2c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40400e
push esi
call ebx
test eax, eax
je 0x40400e
cmp dword [esp + 0x40], 8
mov esi, dword [esp + 0x2c]
jae 0x403fe4
lea esi, [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], 1
call fcn.00403130
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esp + 0x40], 8
mov esi, dword [esp + 0x2c]
jae 0x40401d
lea esi, [esp + 0x2c]
push esi
call edi
test eax, eax
je 0x40402b
push esi
call ebx
test eax, eax
jne 0x40407f
mov eax, dword [esp + 0x2c]
mov ebx, 8
cmp dword [esp + 0x40], ebx
jae 0x40403e
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebp
push eax
push ebp
call esi
test eax, eax
je 0x404093
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404093
cmp eax, 0x50
je 0x404093
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x404078
lea eax, [esp + 0x2c]
push ebp
push eax
push ebp
call esi
jmp 0x404093
push ebp
mov eax, 0x41bc98
lea esi, [esp + 0x2c]
call fcn.004010e0
mov ebx, 8
mov eax, dword [esp + 0x3c]
push 0x41bc98
xor edi, edi
lea ecx, [esp + 0x2c]
call fcn.004015d0
test eax, eax
je 0x4040d5
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x4040b9
lea eax, [esp + 0x2c]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebp
add ecx, 0x1c
lea eax, [esp + 0x30]
call fcn.00401250
cmp dword [esp + 0x40], ebx
jb 0x4040e8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040c0bb
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x44
ret 4
Function at 0x4054c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4191b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401250
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405516
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call section..text
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401250
cmp dword [esp + 0x24], 8
jb 0x40555f
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c0bb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4058a0
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ecx
movzx ecx, word [esp + 0xc]
push esi
push edi
push eax
push ecx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4058c4
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4058b9
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, edi
jne 0x4058ea
pop ebp
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x14
mov ebx, eax
call fcn.0040c2e0
add esp, 4
cmp eax, edi
je 0x405918
xor edx, edx
mov dword [eax + 4], edi
mov word [eax], dx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov esi, eax
jmp 0x40591a
xor esi, esi
mov eax, dword [esp + 0x18]
mov cx, word [esp + 0x1c]
mov dword [esi + 0xc], eax
mov word [esi], cx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x10]
push edx
push edi
push esi
push 0x405970
push edi
mov dword [esi + 0x10], eax
push edi
mov dword [esp + 0x28], edi
call fcn.0040cebb
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x405be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x414
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0040dc80
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
push 0x80000002
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x405c6e
mov edi, esi
call fcn.00402f60
mov eax, 0x80004005
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x414
ret
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405c75
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
call fcn.004010e0
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040c0c6
add esp, 0x414
ret

Function at 0x405cb0
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x214
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405db3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405db3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push eax
lea eax, [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00405ee0
add esp, 0xc
test eax, eax
jne 0x405db3
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
mov eax, esi
call fcn.004060e0
add esp, 4
cmp dword [esp + 8], 0
jne 0x405d24
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d50
sub eax, edx
sar eax, 1
mov edi, eax
mov ecx, ebx
mov eax, esi
call fcn.00405e50
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x1c], cx
call fcn.0040dc80
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
mov eax, esi
call fcn.00406220
add esp, 4
mov eax, esi
call fcn.00406050
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
mov eax, 0x80004005
call fcn.0040c0c6
add esp, 0x214
ret

Function at 0x405dd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.0040dc80
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x405e32
cmp dword [esp + 0x10], 2
jne 0x405e32
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040c0c6
add esp, 0x118
ret
Function at 0x406610
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x406621
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40663f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x406676
test ecx, ecx
je 0x40666f
test esi, esi
ja 0x406630
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x4091b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor edx, edx
lea esp, [esp]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x421e60], ecx
inc edx
cmp edx, 0x100
jb 0x4091c0
cmp edx, 0x800
jae 0x409299
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x421a60]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x421e60]
inc edx
mov dword [edx*4 + 0x421e5c], eax
cmp edx, 0x800
jb 0x409270
lea esi, [esp + 0x18]
mov dword [0x420c5c], 0x409de0
call fcn.00409ea0
test eax, eax
je 0x409364
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, eax
shr eax, 4
and eax, 0xf00f
shr esi, 8
and esi, 0xff00f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
mov ecx, 0x420020
xor edx, edx
cmp dword [ecx - 8], eax
jne 0x4092f2
cmp dword [ecx - 4], ebp
jne 0x4092f2
cmp dword [ecx], ebx
je 0x409330
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x4092e4
or ecx, 0xffffffff
sub ecx, 0
je 0x409349
sub ecx, 1
je 0x409334
sub ecx, 1
jne 0x409364
cmp esi, 6
jb 0x409364
jne 0x40935a
cmp dword [esp + 0x14], 0xf
jb 0x409364
mov dword [0x420c5c], 0x409e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, edi
jmp 0x409301
cmp esi, 5
jb 0x409364
jne 0x40935a
mov eax, dword [esp + 0x14]
cmp eax, 6
jb 0x409364
cmp eax, 0xa
jmp 0x409358
cmp esi, 6
jb 0x409364
jne 0x40935a
cmp dword [esp + 0x14], 0x100c
je 0x409364
mov dword [0x420c5c], 0x409e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40a410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x40a42d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x40a45d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40a45d
inc edi
cmp edi, ebx
jb 0x40a450
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x40a565
cmp eax, 3
jbe 0x40a490
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x40a4cb
cmp al, 0xff
je 0x40a4cb
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x40a443
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x40a476
movzx ecx, byte [esi + 0x41c514]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x41c50c], 0
mov al, byte [eax + 4]
je 0x40a4b9
test al, al
je 0x40a4b9
cmp al, 0xff
jne 0x40a476
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x40a443
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x40a537
movzx edx, byte [esi + 0x41c514]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x40a51c
cmp bl, 0xff
jne 0x40a533
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x40a4f0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x40a443
pop edi
pop ebx
cmp eax, 3
jbe 0x40a57c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x40c0c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f2b0]
jne 0x40c0d0
repz ret
jmp fcn.0040db76
Function at 0x41718d
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.004101d6
and dword [ebp - 4], 0
cmp dword [0x420c24], 0
mov ebx, eax
jne 0x41723e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4172ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4172ef
push eax
call fcn.00410164
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420c24], eax
call esi
push eax
call fcn.00410164
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420c28], eax
call esi
push eax
call fcn.00410164
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x420c2c], eax
call esi
push eax
call fcn.00410164
pop ecx
mov dword [0x420c34], eax
test eax, eax
je 0x41723e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410164
pop ecx
mov dword [0x420c30], eax
mov eax, dword [0x420c30]
cmp eax, ebx
je 0x417296
cmp dword [0x420c34], ebx
je 0x417296
push eax
call fcn.004101df
push dword [0x420c34]
mov esi, eax
call fcn.004101df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417296
test edi, edi
je 0x417296
call esi
test eax, eax
je 0x41728d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41728d
test byte [ebp - 0xc], 1
jne 0x417296
or dword [ebp + 0x10], 0x200000
jmp 0x4172cf
mov eax, dword [0x420c28]
cmp eax, ebx
je 0x4172cf
push eax
call fcn.004101df
pop ecx
test eax, eax
je 0x4172cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4172cf
mov eax, dword [0x420c2c]
cmp eax, ebx
je 0x4172cf
push eax
call fcn.004101df
pop ecx
test eax, eax
je 0x4172cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420c24]
call fcn.004101df
pop ecx
test eax, eax
je 0x4172ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4172f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403024
pop dword [ebp - 0x40]
mov eax, 0x403024
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xf733eebb
sub dword [ebp - 0x50], 0xa8e1a970
mov dword [ebp - 0x4c], 0x329c7f4e
add dword [ebp - 0x4c], 0xff96ccf7
mov dword [ebp - 0x48], 0x10bb0930
add dword [ebp - 0x48], 0x3b913afe
mov dword [ebp - 0x44], 0xc80045ee
add dword [ebp - 0x44], 0x37ffba12
lea eax, [ebp - 0x50]
push eax
mov eax, 0x62307f95
sub eax, 0x61efff1d
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x892a45e3
sub dword [ebp - 0x50], 0x14b7dc8d
mov dword [ebp - 0x4c], 0x36751a
sub dword [ebp - 0x4c], 0xbeca13a5
mov dword [ebp - 0x48], 0x300b7338
sub dword [ebp - 0x48], 0xcc9c06cc
mov dword [ebp - 0x44], 0xbab34ee0
add dword [ebp - 0x44], 0x454cb120
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36ce0
push 0
call eax
mov ecx, 0x23bbe38e
sub ecx, 0x23bb9c7d
mov edx, eax
mov edi, 0xfef52760
add edi, 0x14feca0
add edi, dword [ebp - 0x40]
mov esi, 0x7497a0ae
add esi, 0x4a22ebf
xor dword [ebp - 0x30], ebx
mov ebx, dword [edi]
add dword [ebp - 0x3c], 0x3cec51e
xor ebx, esi
sub dword [ebp - 0xc], esi
mov dword [edx], ebx
xor dword [ebp - 0x30], esi
add edx, 0xc088e2e8
add edx, 0x3f771d1c
add edi, 0x1c5ca54
sub edi, 0x1c5ca50
loop 0x40313c
add eax, 0xe0764e9b
sub eax, 0xe0753f84
mov ebx, eax
add eax, 5
mov ecx, 0x9df2ca26
add ecx, 0x624d35da
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x417735
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004175ab
Function at 0x41f386
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f028

Function at 0x41f391
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f1b7

Function at 0x41f78b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040afa0
mov eax, dword [0x479d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c994
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f7cd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f929
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429640
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47b958]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042095b
mov ecx, dword [esi*4 + 0x47b958]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41f922
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f922
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f922
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042095b
add esp, 0x14
test edx, edx
jl 0x41f922
jg 0x41f898
test eax, eax
jb 0x41f922
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f922
jl 0x41f8b2
cmp dword [ebp - 0x1008], eax
ja 0x41f922
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f8d0
test ebx, ebx
je 0x41f909
cmp ecx, edi
jae 0x41f909
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f8ea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f8f6
cmp byte [ecx + 1], 0xa
jne 0x41f8f6
inc ecx
jmp 0x41f8f6
movzx eax, al
movsx eax, byte [eax + 0x479fc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f8d0
cmp edx, ebx
jne 0x41f8d0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f927
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a419
leave
ret