joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c8
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5c0fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf0000000
push 0x18
push eax
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, eax
test esi, esi
je 0x404226
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
movaps xmm0, xmmword [str.DttyIymjpTn]
push 0xd
pop edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x65796642
mov dword [ebp - 0x10], 0x3a3a6f75
mov dword [ebp - 0xc], 0x78776e37
mov byte [ebp - 8], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.0040349a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10
pop edx
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040349a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404224
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0x8003
push dword [ebp - 0x34]
call eax
mov esi, eax
test esi, esi
je 0x404226
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push 0xd
pop edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x65796642
mov dword [ebp - 0x10], 0x3a3a6f75
mov dword [ebp - 0xc], 0x78776e37
mov byte [ebp - 8], 0
mov dword [ebp - 0x24], 0x747c7444
mov dword [ebp - 0x20], 0x7b684e79
mov dword [ebp - 0x1c], 0x806c4e71
mov word [ebp - 0x18], 0x6e
call fcn.0040349a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0xe
pop edx
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040349a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404224
push 0
push 0x10
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call eax
mov esi, eax
test esi, esi
je 0x404226
lea eax, [ebp - 0x30]
push eax
push ecx
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00403e1c
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404226
push ebx
push edi
push ecx
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00403eb8
add esp, 0x10
mov esi, eax
jmp 0x404226
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x404232
call fcn.00403f53
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40423e
call fcn.00403fcb
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40424a
call fcn.00404047
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541915
leave
ret
Function at 0x405f65
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x405fb8
push esi
push dword [ebp + 8]
call fcn.0040614e
mov edi, eax
test edi, edi
je 0x405fb3
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405fb3
mov eax, dword [ebp - 8]
jmp 0x405fca
mov eax, dword [ebp + 0x10]
jmp 0x405fca
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4067de
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x560e14
call fcn.00541fb9
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x406804
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40685e
lea ecx, [ebp - 0x10]
call fcn.00401e37
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x570950]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0054b229
push eax
call fcn.00401f52
add esp, 0x14
test esi, esi
je 0x406851
push esi
call fcn.0054ade7
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402240
mov eax, ebx
call fcn.00541f87
ret 8

Function at 0x407312
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x40733d
cmp dword [edi + 0x80], 0
jne 0x40733d
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0041ba07
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004075b0
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40736a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0041ba07
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40739d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004073b0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40e855
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x40e894
call fcn.0041ba07
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e894
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e89c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004228dc
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40f29c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40f328
cmp dword [esi + 0x20], 0
je 0x40f328
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f328
cmp dword [ebp + 8], 0
je 0x40f328
xor edi, edi
mov ebx, edi
call fcn.0041ba07
push 0x572d48
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x40f30c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f328
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0043d6d4
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40f324
mov ecx, esi
call fcn.0040f03a
mov eax, edi
jmp 0x40f32a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4180fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.0041ba07
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4181cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4181cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4181cd
movzx eax, word [edi + 6]
xor ecx, ecx
push ebx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040429d
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x418187
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x418173
mov eax, esi
mov ecx, dword [ebp - 4]
movzx eax, ax
push eax
push ebx
call fcn.00418839
push ebx
mov esi, eax
call fcn.00404298
pop ecx
test esi, esi
je 0x4181c8
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 4]
lea edx, [esi + 7]
push eax
push edx
call fcn.00418a05
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004180ab
mov esi, eax
mov eax, esi
pop ebx
jmp 0x4181cf
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x43f184
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x43f1da
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43f1b3
call fcn.00409ca7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43f1c8
call fcn.00409ca7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43f1da
call fcn.00409ca7
call fcn.0041ba07
cmp dword [eax + 0x3c], 0
je 0x43f1ef
push edi
mov ecx, ebx
call fcn.0043e8a7
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0043f3d5
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x43f218
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x43f224
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4780f8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005196ab
call fcn.0041ba5b
cmp dword [eax + 0x14], 0
jne 0x478113
mov ecx, esi
pop esi
jmp fcn.0047741c
pop esi
ret

Function at 0x47820e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00406707
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x47824a
call fcn.0047842b
mov dword [esi + 0xc], 1
jmp 0x47824f
call fcn.0047842b
cmp dword [esi], 0
je 0x47829a
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x478275
push edi
call fcn.0040923a
lea ecx, [edi + 1]
push ecx
jmp 0x478284
push 0xff
call fcn.00402362
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040628a
pop edi
jmp 0x4782be
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4782be
push dword [esi]
push dword [ebp - 4]
call fcn.0041ce27
pop esi
leave
ret 0xc
Function at 0x478382
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0047842b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4783ca
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040923a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040628a
jmp 0x4783d5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041ce27
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4806e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x480702
call fcn.0041ba07
mov esi, dword [eax + 0xc]
push 0x580fec
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x480744
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480744
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x480744
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048074d
jmp 0x480746
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4cdaf5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055331e
pop ecx
test eax, eax
jne 0x4cdb37
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00406588
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cdafd
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.00401d5d
call fcn.0041ba5b
cmp dword [eax + 0x14], 0
jne 0x516cbe
mov ecx, esi
pop esi
jmp fcn.00516514
pop esi
ret

Function at 0x556bbc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a12d0
push 0x5a12c8
push str.FlsAlloc
push 0x1e
call fcn.00556a3d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x556bf0
push dword [ebp + 8]
mov ecx, esi
call dword [0x570950]
call esi
jmp 0x556bf6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x556c3a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a12e0
push 0x5a12d8
push str.FlsGetValue
push 0x20
call fcn.00556a3d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x556c71
push dword [ebp + 8]
mov ecx, esi
call dword [0x570950]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x55a25b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c0fe4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x55a2a6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0055a3fa
test al, al
jne 0x55a2a0
sub edx, 2
cmp edx, edi
jne 0x55a286
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x55a2c8
lea eax, [edi + 2]
cmp edx, eax
je 0x55a2c8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0055a1a7
add esp, 0x10
jmp 0x55a3c2
push esi
lea ecx, [ebp - 0x255]
call fcn.0055a3fa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55a30b
push dword [ebp - 0x25c]
jmp 0x55a2b8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x55a348
cmp word [ebp - 0x226], 0
je 0x55a369
cmp word [ebp - 0x226], ax
jne 0x55a348
cmp word [ebp - 0x224], 0
je 0x55a369
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0055a1a7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x55a3b5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x55a322
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x55a39d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x55a3c2
push 0x559fd7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0055f470
add esp, 0x10
jmp 0x55a392
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541915
leave
ret

Function at 0x55ae00
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x55ae11
pop esi
ret
push ebx
push edi
push esi
call fcn.0055adc9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00554e32
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x55ae39
push ebx
push esi
push edi
call fcn.005432f0
add esp, 0xc
push 0
call fcn.00554df8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x55b1fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055ae4e
Function at 0x403670
Capabilities:
Encode data using xor

Disassembly:
test ebx, 0x16f810e
test ebp, 0x6130455d
push esi
push esi
xchg edi, ebp
imul ebx, eax
mov bh, al
lea edx, [0x16711cf6]
imul edi, edi
xor edi, esi
mov ah, 0x84
lea esi, [0x9d]
mov bh, dh
imul ecx, ecx
xchg cl, cl
imul esi, esi, 0x30
movzx esi, bp
lea edx, [0xa2cb6116]
and edx, 0
or al, 0x34
movsx edi, bx
test cl, bh
lea esi, [0x6c3bb84a]
add ebp, ecx
add edx, 0xbc0
xchg cl, ah
xor ah, 0xef
sub edx, 0xbbf
mov eax, 0x38cc06e0
xchg eax, ebp
lea edi, [0xab213d45]
inc esi
sub eax, 0x1b1794f9
imul esi, edi, 0xefc9190e
mov ebp, 0x90d02d10
cmp edx, 0xfa
jl 0x4036af
xchg cl, cl
mov al, 2
sub eax, ebx
and cl, 0xfb
or eax, 0x7eb0237d
call 0x403730
dec esi
add ch, bl
xchg ecx, ecx
sbb ah, 0x5c
jae 0x403722
imul edi, ecx
inc ebp
test dh, 0xf2
sub edx, 0x508d
or bl, bh
sub edx, 0x9d9e
inc bl
test bl, al
sub eax, ebx
jb 0x40373b
mov ch, dh
add edi, esi
add edi, esi
dec ebx
dec dh
test dl, 0xb8
pop eax
test dh, 0x5c
mov cl, 0xb
jbe 0x403753
imul edx, ebp, 0xeab81f59
or bl, bl
imul ebp, ecx, 0xb0ce8001
mov edi, 0x910d0393
movsx esi, ax
je 0x40376b
or ch, ah
mov cl, dl
movsx edx, si
inc ebx
mov ecx, 0xe18818b1
mov ecx, 0x56b4c220
imul esi, esi, 0
jmp 0x403785
sub esi, 0xffefe07f
xchg bl, bh
add esi, 0xfe3
mov cl, 0xbc
imul ebx, edi
xadd eax, esi
lea ebx, [0x81221290]
and ebx, 0xa4f10222
sub eax, 0xd75e1
jno 0x4037b1
movsx ecx, dl
push 0x12744
cmp ebp, edx
add cl, dl
test ebp, edx
js 0x4037c4
test edi, esi
mov ebp, edi
mov ebp, esi
inc edx
add edx, esi
push 0x281d73
push 0xb9b9b5
adc cl, bh
lea ebp, [0x764d57b7]
lea esi, [0x43a14eb1]
push eax
xor esi, ebp
cmp edi, edi
test edi, esi
sub edx, edx
test ebx, 0xce59ad4a
mov esi, ebp
mov dh, dh
test dl, 0x87
mov edi, 0xfff1068c
test cl, 4
sbb edx, 0x52512a41
add edi, 0xefb14
mov ecx, ebp
movsx esi, dh
lea ebx, [edi]
imul ebp, eax, 0x801a5dd6
imul ebp, edi
xor ebx, 0x2c7
add cl, al
mov cl, cl
mov edi, ecx
test al, 0x6b
sub ebx, 0xfff3d6e0
or edx, edi
test ch, 0xbc
sub ebx, 0xc2921
mov ch, 0x58
imul ebp, edi, 0xa69aa9bc
add dh, cl
add ch, 0x22
imul ebp, eax
cmp ebx, 0xa2
jne 0x403820
sub dh, bl
movzx ecx, bh
ret
Function at 0x401574
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x40158a
mov esi, 0x100000
jmp 0x401596
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_SuspendThread
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4015d3
mov edx, ebx
mov eax, 0x4775e8
call fcn.00401428
test al, al
jne 0x4015d3
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4015d8
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_SuspendThread
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x401622
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_SuspendThread
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x40164a
mov edx, ebx
mov eax, 0x4775e8
call fcn.00401428
test al, al
jne 0x40164a
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401708
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4775e8]
jmp 0x40178a
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x40175c
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x401766
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x401788
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
jne 0x401788
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x401792
mov esi, dword [esi]
cmp esi, 0x4775e8
jne 0x40174e
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401a5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401b12
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4775c8
call sub.KERNEL32.DLL_VirtualQuery
cmp byte [0x477049], 0
je 0x401a8a
push 0x4775c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 0x4775e8
call fcn.00401420
mov eax, 0x4775f8
call fcn.00401420
mov eax, 0x477624
call fcn.00401420
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x477620], eax
cmp dword [0x477620], 0
je 0x401af1
mov eax, 3
mov edx, dword [0x477620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401ac7
mov eax, 0x477608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x477614], eax
mov byte [0x4775c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b19
cmp byte [0x477049], 0
je 0x401b11
push 0x4775c8
call sub.KERNEL32.DLL_WriteFile
ret
Function at 0x401b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4775c0], 0
je 0x401bfd
xor edx, edx
push ebp
push 0x401bf6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x477049], 0
je 0x401b52
push 0x4775c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov byte [0x4775c0], 0
mov eax, dword [0x477620]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [0x477620], eax
mov ebx, dword [0x4775e8]
jmp 0x401b85
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, dword [ebx]
cmp ebx, 0x4775e8
jne 0x401b73
mov eax, 0x4775e8
call fcn.00401420
mov eax, 0x4775f8
call fcn.00401420
mov eax, 0x477624
call fcn.00401420
mov eax, dword [0x4775e0]
test eax, eax
je 0x401bcb
mov edx, dword [eax]
mov dword [0x4775e0], edx
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4775e0]
test eax, eax
jne 0x401bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401bfd
cmp byte [0x477049], 0
je 0x401beb
push 0x4775c8
call sub.KERNEL32.DLL_WriteFile
push 0x4775c8
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ebx
pop ebp
ret