joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x402dc4
mov dword [ebp - 8], 0x100000
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x402dd3
mov ebx, 0x48ad08
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402de8
mov ecx, dword [0x597c38]
add ecx, eax
push ecx
call fcn.00402d90
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402d5e
test eax, eax
jne 0x402dff
push 0xfffffffffffffffd
pop eax
jmp 0x402f58
test dword [ebp + 0x14], 0x80000000
je 0x402f37
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x592d10
mov dword [ebp - 0xc], eax
call fcn.004061fc
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402f55
mov esi, 0x80000
cmp dword [ebp + 0x14], esi
jge 0x402e3f
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ad08
push edi
call fcn.00402d5e
test eax, eax
je 0x402df7
sub dword [ebp + 0x14], esi
mov dword [0x592d28], edi
mov dword [0x592d2c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x592d10
mov dword [0x592d30], ebx
mov dword [0x592d34], eax
call fcn.0040621c
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402f29
mov esi, dword [0x592d30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x597cd4], 1
mov edi, eax
je 0x402edd
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402eaa
cmp dword [ebp + 0x14], 0
jne 0x402edd
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004048c0
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402f1e
cmp dword [ebp + 0x10], eax
jne 0x402f06
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f30
cmp dword [ebp - 0x10], esi
jne 0x402f30
add dword [ebp - 4], esi
jmp 0x402f12
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x592d30]
cmp dword [ebp - 0x14], 1
jne 0x402e5e
jmp 0x402f55
cmp dword [ebp + 0x14], eax
jg 0x402e32
jmp 0x402f55
push 0xfffffffffffffffc
jmp 0x402df9
push 0xfffffffffffffffe
jmp 0x402df9
test edi, edi
je 0x402f9e
cmp dword [ebp + 0x14], esi
jge 0x402f43
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402d5e
test eax, eax
je 0x402df7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402f6a
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ad08
push edi
call fcn.00402d5e
test eax, eax
je 0x402df7
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f30
cmp esi, dword [ebp + 0x10]
jne 0x402f30
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402f5f
jmp 0x402f55
Function at 0x4055d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x5951f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x5951f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405611
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40576a
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40576d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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_CreateFileA]
ret 0xc

Function at 0x4057bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057ff
test edi, edi
jne 0x4057c6
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057f9

Function at 0x405803
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405874
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405863
cmp dword [ebp + 0x14], 1
je 0x405865
cmp dword [ebp + 0x14], 2
je 0x405865
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4059ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
push edi
shl esi, 3
mov edi, dword [esi + 0x409070]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x405a61
push 0x208
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x405a6e
push dword [esi + 0x409074]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
leave
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x595238
push esi
call fcn.0040591c
push esi
call fcn.004056dc
mov edi, eax
test edi, edi
jne 0x405b1c
xor eax, eax
jmp 0x405b74
push edi
call fcn.0040593e
test byte [0x597c48], 0x80
je 0x405b35
mov al, byte [edi]
test al, al
je 0x405b18
cmp al, 0x5c
je 0x405b18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405b55
push esi
call fcn.004059d8
test eax, eax
je 0x405b4f
test byte [eax], 0x10
je 0x405b79
push esi
call fcn.00405ad4
push esi
call ebx
cmp eax, edi
jg 0x405b40
push esi
call fcn.00405aa7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405b73
Function at 0x405e29
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004059ff
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e4d
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f86
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x595638], 0x4c554e
mov edi, 0x400
mov ebp, 0x595638
je 0x405e91
push 1
push 0
push esi
call fcn.0040576d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f8c
cmp eax, edi
jg 0x405f8c
push edi
mov esi, 0x595f78
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f8c
cmp eax, edi
jg 0x405f8c
push esi
push ebp
push str._s_s_r_n
push 0x595a38
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x597bec]
push dword [eax + 0x128]
push esi
call fcn.00405bd3
push 4
push 0xc0000000
push esi
call fcn.0040576d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f86
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 0x405f7f
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f7f
cmp edi, dword [esp + 0x18]
jne 0x405f7f
push str._Rename__r_n
push esi
call fcn.00405b7d
test eax, eax
jne 0x405f93
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.0040591c
add edi, 0xa
mov eax, edi
push ebx
push 0x595a38
add eax, esi
push eax
call fcn.00405729
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x597cb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407690
add eax, 0xa
push eax
call fcn.00405b7d
test eax, eax
je 0x405f4a
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fba
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405faf
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f4c
Function at 0x405fc2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405afb
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405ff7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x597ca8], eax
jmp 0x406189
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406012
test eax, eax
je 0x406134
test cl, 2
je 0x406134
push edi
push ebx
mov esi, 0x596378
push esi
call fcn.0040591c
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406035
push str..
push esi
call edi
jmp 0x40603b
push ebx
call fcn.00405ad4
cmp byte [ebx], 0
jne 0x406049
cmp byte [0x596378], 0x5c
jne 0x406051
push 0x407298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406129
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040569b
cmp byte [eax], 0
je 0x406094
cmp byte [ebp - 0x18], 0
je 0x406094
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4060aa
mov al, byte [esi + 1]
test al, al
je 0x406108
cmp al, 0x2e
jne 0x4060aa
cmp byte [esi + 2], 0
je 0x406108
push esi
push edi
call fcn.0040591c
test byte [ebp - 0x148], 0x10
je 0x4060cf
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406108
push dword [ebp + 0xc]
push ebx
call fcn.00405fc2
jmp 0x406108
push ebx
call fcn.0040574d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406100
test byte [ebp + 0xc], 4
je 0x4060f8
push ebx
push 0xfffffffffffffff1
call fcn.004048c0
push 0
push ebx
call fcn.00405e29
jmp 0x406108
inc dword [0x597ca8]
jmp 0x406108
push ebx
push 0xfffffffffffffff2
call fcn.004048c0
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406076
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406133
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406188
cmp dword [ebp - 8], esi
je 0x406178
push ebx
call fcn.004059d8
test eax, eax
je 0x406188
push ebx
call fcn.00405aa7
push ebx
call fcn.0040574d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406180
test byte [ebp + 0xc], 4
je 0x406178
push ebx
push 0xfffffffffffffff1
call fcn.004048c0
push esi
push ebx
call fcn.00405e29
jmp 0x406188
inc dword [0x597ca8]
jmp 0x406188
push ebx
push 0xffffffffffffffe5
call fcn.004048c0
pop esi
pop ebx
leave
ret 8
Function at 0x40618e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x59677c], 0
jne 0x4061c9
xor ecx, ecx
push esi
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 0x4061a2
mov dword [ecx*4 + 0x596778], eax
inc ecx
cmp ecx, 0x100
jl 0x40619d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4061f6
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x596778]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4061d7
not eax
pop ebp
ret 0xc
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x43e05f
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x51a6
push section.packerBY
push 0x43e4e3
call fcn.0043e4a8
cld
mov esi, section.packerBY
mov ecx, 4
sub ecx, esi
cmp esi, 0x40706a
ja 0x43e0a7
lodsb al, byte [esi]
add al, 0x18
sub al, 2
jb 0x43e09d
cmp al, 0x25
jne 0x43e081
mov al, byte [esi]
and al, 0xf0
cmp al, 0x80
jne 0x43e081
inc esi
lea edi, [esi + ecx]
sub dword [esi], edi
add esi, 4
jmp 0x43e081
mov edx, 0x400000
lea esi, [edx + 0x8534]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x43e10a
add eax, edx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
test ebx, ebx
jne 0x43e0c6
mov ebx, edi
add ebx, edx
add edi, edx
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop edi
pop edx
test eax, eax
je 0x43e108
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x43e103
btr eax, 0x1f
jb 0x43e0eb
lea eax, [eax + edx + 2]
push ecx
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
pop edi
pop edx
pop ecx
test eax, eax
je 0x43e108
stosd dword es:[edi], eax
add ebx, 4
jmp 0x43e0db
add esi, 0x14
jmp 0x43e0b2
popal
ret
popal
jmp 0x4031a3
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x5d
ret
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0x4f
dec edi
jl 0x407ee4
mov dword [ebp + 0x10], 0x4e
fld qword [ebp + 8]
fcomp qword [0x40c230]
mov ecx, dword [ebp + 0x18]
push ebx
mov edx, dword [edi - 0x9cc93e0]
push edi
jne 0x407ef9
mov dword [ebp - 4], esi
mov dword [eax - 0x45], esi
mov dl, 5
mov edi, ebx
jp 0x407f33
fld qword [ebp + 8]
fldcw word [edx]
fstp qword [ebp + 8]
mov dword [ecx], 1
nop
dec ebp
or al, 0x8b
xchg ebx, eax
or byte [ebp + 0x5150ec45], cl
in al, 0xff
adc eax, 0x22c118
fstp qword [ebp + 8]
fld qword [ebp - 0x14]
adc eax, 0x40c23056
add byte [ebx - 0x1f20f33c], al
test ah, 0x44
jnp 0x407fcd
dec ebp
jae 0x407fae
cmp edi, dword [esi + 0x45dd5876]
in al, dx
cmp al, 0x1c
xor dl, al
inc eax
add bh, bl
loopne 0x407f64
les eax, [ebx + edi*2 + 0x48]
fld qword [ebp - 0x14]
fmul qword [0x5740c310]
invalid
push cs
pop ds
dec ebp
mov ah, 0x41
cmp esi, ebx
mov dword [ebp - 4], ecx
ja 0x408011
test al, 0x43
push eax
jle 0x407faf
jae 0x40801d
mov cl, dl
enter 0x4647, 0x3b
invalid
imul bl
neg ebp
inc ebp
or byte [eax], bl
sbb eax, 0x40c287
fld qword [ebp + 8]
sbb byte [0x40c287], bl
fnstsw ax
and eax, 0x4100
pop ss
xchg byte ds:[ebp + 0x6e], al
fmul qword [0x40c241]
fst qword [ebp - 0xc]
wait
js 0x407fca
aad 0x1b
leave
inc eax
cmp ebx, edi
loopne 0x408012
les eax, [0x17dd217a]
out 0xdd, eax
pop ebp
das

Function at 0x409860
Capabilities:
Encode data using xor

Disassembly:
inc eax
mov esi, 0x50560040
call 0x52035640
mov esi, dword [esi + 0x58]
lahf
mul byte [ecx]
push es
push esi
call fcn.0040a39f
xor edx, dword [esi]
pop esi
in eax, 0xc2
add al, 0
nop
push cs
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
insb byte es:[edi], dx
cwde
or byte [ebp + 0x57501745], cl
push ecx
mov dword [ebp + 0x10], esi
mov al, byte [0xa7d1]
dec ebx
dec ebp
adc byte [ebx - 7], cl
sub esi, ecx
sub ecx, ebx
insd dword es:[edi], dx
xor eax, 0xf6b40475
ja 0x40986e
mov ecx, dword [ebp + 0x14]
test eax, ebp
je 0x409899
push ecx
sbb dword [edi + 0x5e], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
nop
nop
nop
nop
xor eax, eax
add al, 0x42
nop
nop
nop
nop
nop
nop
nop
nop
outsb dx, byte [esi]
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
jbe 0x40a39b
mov edx, 0xc4d8b33
pushfd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sal byte fs:[ebp + 0x4d], 0x56
push esi
xor eax, 0xb6409798
call esi
test eax, eax
jne 0x40a3fe
pop esi
pop ebp
ret 0x1208
lahf
salc
add eax, 0x670afccc
pop esi
pop ebp
clc
or byte [eax], al
xor esi, eax
pop ebp
lds ecx, [eax]
clc
mov eax, 0x4e3b
pop ebp
ret 0x44
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f40
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 0x401f59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401f90
lea ebx, [ebx]
cmp esi, eax
jae 0x401f94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f80
cmp esi, eax
jb 0x401f9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41828c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4294ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 4], vtable.CProxy_IConnectionEvent_class_CConnection_.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], vtable.CProxyIConnectionEvent_class_CConnection_.0
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov byte [esp + 0x18], 2
call edx
add eax, 0x10
mov dword [esi + 0x54], eax
push str.CConnection::CConnection__
mov byte [esp + 0x1c], 3
call fcn.00416aa0
add esp, 4
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4068e0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406956
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x406925
cmp eax, 2
jne 0x406941
mov eax, dword [esp + 0x14]
test esi, esi
je 0x406950
test eax, eax
je 0x40694b
test al, 1
jne 0x406941
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406950
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc