joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ede
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a710
push esi
call fcn.00406507
push esi
call fcn.00405e81
mov edi, eax
test edi, edi
jne 0x405eff
xor eax, eax
jmp 0x405f57
push edi
call fcn.0040678e
test byte [0x470238], 0x80
je 0x405f1c
mov ax, word [edi]
test ax, ax
je 0x405efb
cmp ax, 0x5c
je 0x405efb
sub edi, esi
sar edi, 1
jmp 0x405f36
call fcn.0040683d
test eax, eax
je 0x405f30
test byte [eax], 0x10
je 0x405efb
push esi
call fcn.00405e22
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f22
call fcn.00405dd6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405fd2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ff1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ff7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406026
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406076
test edi, edi
jne 0x406033
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406070
Function at 0x40614d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x45eda8], 0x55004e
mov dword [0x45edac], 0x4c
mov edi, 0x400
mov ebp, 0x45eda8
je 0x4061a3
push 1
push 0
push esi
call fcn.00405ff7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062c2
cmp eax, edi
jg 0x4062c2
mov esi, 0x45f5a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062c2
cmp eax, edi
jg 0x4062c2
push esi
push ebp
push str._ls_ls_r_n
push 0x45e9a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x470230]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406544
push 4
push 0xc0000000
push esi
call fcn.00405ff7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062c2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4062bb
push edi
push esi
push ebp
call fcn.0040607a
test eax, eax
je 0x4062bb
push str._Rename__r_n
push esi
call fcn.00405f5c
test eax, eax
jne 0x406259
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40628e
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f5c
mov ebp, eax
test ebp, ebp
je 0x40628a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40627b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406275
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406290
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45e9a8
push eax
call fcn.00405fb2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060a9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062c7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4062ea
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040614d
pop ecx
pop ecx
inc dword [0x4702b0]
ret 8
Function at 0x4063d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406374
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406445
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406445
cmp dword [ebp + 0xc], 1
je 0x406449
cmp dword [ebp + 0xc], 2
je 0x406449
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x45fda8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fda8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4e7374
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.0048bb74
xor edx, edx
push ebp
push 0x4e73e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e73f0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x8f9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008f91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8f907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f906a
add dl, dl
jne 0x8f9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f90dc
xor eax, eax
add dl, dl
jne 0x8f9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f917d
add dl, dl
jne 0x8f90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8f90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8f9075
mov eax, 1
add dl, dl
jne 0x8f90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f90e1
sub eax, ebx
mov ebx, 1
jne 0x8f9128
mov ecx, 1
add dl, dl
jne 0x8f910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8f913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f9136
cmp eax, 0x7d00
jae 0x8f916d
cmp eax, 0x500
jb 0x8f9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f9075
cmp eax, 0x7f
ja 0x8f9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8f919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8f9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401aa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
mov edx, str.NI9PJ6bfPYzbG9DHlpNc2ajvYITUHsfdFP0IngPNWq1yta4EAO40FuvJ3
call fcn.00401a00
mov ecx, dword [eax + esi + 0xe98bd9f]
add ecx, eax
mov ecx, dword [ecx + esi + 0xe98bddb]
add ecx, esi
mov edx, dword [eax + ecx + 0xe98bd7b]
mov ebp, dword [eax + ecx + 0xe98bd7f]
mov ebx, dword [eax + ecx + 0xe98bd83]
mov eax, dword [eax + ecx + 0xe98bd87]
add eax, esi
add ebp, esi
add ebx, esi
xor edi, edi
test edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
jbe 0x401b0f
mov edx, dword [ebx + edi*4]
add edx, esi
call fcn.00401a00
cmp eax, dword [esp + 0x18]
je 0x401b0b
add edi, 1
cmp edi, dword [esp + 0xc]
jb 0x401af2
mov edx, dword [esp + 0xc]
cmp edi, edx
jne 0x401b1c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x10]
movzx eax, word [edx + edi*2]
mov eax, dword [ebp + eax*4]
pop edi
pop ebp
add eax, esi
pop ebx
add esp, 8
ret

Function at 0x401b40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x44695c]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0041e531
mov ecx, dword [0x446958]
mov esi, eax
push ecx
mov dword [esp + 0x18], esi
call fcn.0041e531
xor ebx, ebx
add esp, 8
xor ebp, ebp
cmp dword [0x446960], ebx
mov ecx, eax
jbe 0x401bab
sub eax, esi
mov dword [esp + 0x14], eax
jmp 0x401b88
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esi, ebx
mov byte [eax + esi], bl
mov eax, ebx
cdq
mov edi, 0x49
idiv edi
mov eax, dword [esp + 0x24]
add ebx, 1
cmp ebx, dword [0x446960]
mov dl, byte [edx + eax]
mov byte [esi], dl
jb 0x401b80
mov edx, dword [0x446964]
xor edi, edi
test edx, edx
jbe 0x401bfe
mov eax, dword [esp + 0x10]
sub eax, ecx
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jmp 0x401bd4
mov eax, dword [esp + 0x14]
movzx edx, byte [eax + esi]
mov bl, byte [esi]
add edx, ebp
movzx eax, bl
add eax, edx
xor edx, edx
div dword [0x446968]
add esi, 1
sub dword [esp + 0x10], 1
mov ebp, edx
mov al, byte [ecx + ebp]
mov byte [ecx + ebp], bl
mov byte [esi - 1], al
jne 0x401bd0
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x401c70
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
sub ebx, ebp
mov dword [esp + 0x20], eax
jmp 0x401c20
xor edx, edx
lea eax, [edi + 1]
div dword [0x44696c]
add ebp, 1
mov edi, edx
movzx eax, byte [edi + ecx]
add eax, esi
xor edx, edx
div dword [0x446970]
movzx eax, byte [edi + ecx]
mov esi, edx
mov dl, byte [esi + ecx]
mov byte [esi + ecx], al
mov byte [edi + ecx], dl
movzx eax, byte [esi + ecx]
movzx edx, dl
add eax, edx
xor edx, edx
div dword [0x446974]
movzx eax, byte [edx + ecx]
xor al, byte [ebx + ebp - 1]
sub dword [esp + 0x20], 1
mov byte [ebp - 1], al
jne 0x401c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x402bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x406097
cmp dword [edi + 0x54], 0
jne 0x406097
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040d26a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040603e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x403040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403059
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403094
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403090
lea ebx, [ebx]
cmp esi, eax
jae 0x403094
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403080
cmp esi, eax
jb 0x40309a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404c59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x404c9f
call fcn.0040d26a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404c9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x404ce2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x404ccb
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404ccb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404cdf
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ae3a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40ae73
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406296
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406271
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x40c986
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c9c9
call fcn.0040d26a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c9c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c9e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c53d
test ebx, ebx
mov esi, eax
je 0x40c9e2
test edi, edi
je 0x40c9e2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e727
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x433b57
call fcn.0041f991
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e74c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40e798
call fcn.0040eacf
push eax
lea ecx, [ebp - 0x10]
call fcn.00403230
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004033db
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c50
mov eax, esi
call fcn.0041fa69
ret 8
Function at 0x41e2e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445418]
jne 0x41e2f2
repz ret
jmp fcn.00422e52

Function at 0x42ca2a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004244ab
xor ebx, ebx
cmp dword [0x449268], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42caff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42ca6a
xor eax, eax
jmp 0x42cbc3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439e60
push edi
call esi
cmp eax, ebx
je 0x42ca63
push eax
call fcn.00424448
mov dword [esp], 0x439e50
push edi
mov dword [0x449268], eax
call esi
push eax
call fcn.00424448
mov dword [esp], 0x439e3c
push edi
mov dword [0x44926c], eax
call esi
push eax
call fcn.00424448
mov dword [0x449270], eax
lea eax, [ebp - 8]
push eax
call fcn.0041feb4
test eax, eax
pop ecx
pop ecx
je 0x42cacd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423ce7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42caff
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424448
cmp eax, ebx
pop ecx
mov dword [0x449278], eax
je 0x42caff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424448
pop ecx
mov dword [0x449274], eax
mov eax, dword [0x449274]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42cb78
cmp dword [0x449278], esi
je 0x42cb78
push eax
call fcn.004244b4
pop ecx
call eax
cmp eax, ebx
je 0x42cb45
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x449278]
call fcn.004244b4
pop ecx
call eax
test eax, eax
je 0x42cb45
test byte [ebp - 0x18], 1
jne 0x42cb78
lea eax, [ebp - 0xc]
push eax
call fcn.0041feeb
test eax, eax
pop ecx
je 0x42cb60
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423ce7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42cb6f
or dword [ebp + 0x10], 0x200000
jmp 0x42cba9
or dword [ebp + 0x10], 0x40000
jmp 0x42cba9
mov eax, dword [0x44926c]
cmp eax, esi
je 0x42cba9
push eax
call fcn.004244b4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42cba9
mov eax, dword [0x449270]
cmp eax, esi
je 0x42cba9
push dword [ebp - 4]
push eax
call fcn.004244b4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x449268]
call fcn.004244b4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
push ebp
test eax, eax
je 0x40121c
push 0x2800
call fcn.00406330
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40121c
push ebx
xor ebx, ebx
xor ecx, ecx
push esi
mov al, byte [ecx + 0x41aa60]
mov edx, ecx
mov byte [ebx + ebp], al
inc ecx
inc ebx
test bl, 1
jne 0x4010a3
cmp ecx, 0x2800
cmovae ecx, edx
inc ecx
jmp 0x4010b0
lea eax, [edx + 2]
cmp eax, 0x2800
jae 0x4010b8
lea ecx, [edx + 3]
cmp ecx, 0x2800
jb 0x401085
push ebx
push ebp
mov dword [esp + 0x1c], ebx
call fcn.00404480
add esp, 8
mov dword [esp + 0xc], 0
test eax, eax
lea esi, [esp + 0x34]
cmovne ebp, eax
mov dword [esp + 0x1c], ebp
nop dword [eax + eax]
xor eax, eax
mov edx, eax
mov cl, al
add cl, byte [esp + 0xc]
and edx, 7
inc eax
xor cl, byte [edx + 0x41d260]
mov byte [esi], cl
inc esi
cmp eax, 0x10
jl 0x4010e2
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, 8
jl 0x4010e0
xor ecx, ecx
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x4011fc
mov eax, 0x10
mov dword [esp + 0x10], ebp
sub eax, ebp
push edi
mov edi, ebp
mov dword [esp + 0x1c], eax
nop word [eax + eax]
add eax, edi
mov esi, 0x10
cmp eax, ebx
jbe 0x40113f
mov esi, ebx
sub esi, ecx
push esi
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x34], xmm0
call fcn.00402e70
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0xb8]
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebp, 7
nop word [eax + eax]
mov ecx, dword [edx - 4]
lea edx, [edx - 0x10]
add ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
add eax, dword [esp + 0x2c]
shl ecx, 3
shl eax, 3
xor ecx, eax
mov eax, dword [edx + 0x14]
add eax, dword [esp + 0x34]
xor edi, ecx
mov ecx, dword [edx + 0x18]
add ecx, dword [esp + 0x34]
shl ecx, 3
shl eax, 3
xor ecx, eax
xor ebx, ecx
sub ebp, 1
jns 0x401170
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
push eax
push edi
mov dword [esp + 0x3c], ebx
call fcn.00402e70
mov ecx, dword [esp + 0x1c]
add edi, 0x10
mov ebx, dword [esp + 0x24]
add ecx, 0x10
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp ecx, ebx
jb 0x401130
mov ebp, dword [esp + 0x20]
pop edi
nop word [eax + eax]
cmp byte [ebx + ebp - 1], 0x90
jne 0x4011fc
sub ebx, 1
jne 0x4011f0
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebx
pop ebp
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0040139b
add esp, 0xac
ret
mov ecx, dword [esp + 0xac]
xor eax, eax
pop ebp
xor ecx, esp
call fcn.0040139b
add esp, 0xac
ret
Function at 0x40171d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401752
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40174f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40175b
add edx, 0x28
cmp edx, esi
jne 0x40173d
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401758

Function at 0x401b9a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bd9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bd9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bd9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bd9
cmp dword [ecx + 0x74], 0xe
jbe 0x401bd9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret