joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f275
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f312
push ebx
push esi
call fcn.0041f23e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c874
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f2bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f311
push edi
push eax
call fcn.00402440
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f2df
call fcn.00402520
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f310
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c874
add esp, 0x20
test eax, eax
jne 0x41f2fe
push edi
call fcn.00402520
jmp 0x41f306
push ebx
call fcn.00402520
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f315
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41f326
pop esi
ret
push ebx
push edi
push esi
call fcn.0041f23e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402440
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41f34e
push ebx
push esi
push edi
call fcn.0040d120
add esp, 0xc
push 0
call fcn.00402520
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424a78
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004249f4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424be7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424be7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424b9c
jg 0x424ad4
test eax, eax
je 0x424b92
push 1
push 0x1000
call fcn.00402470
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424af7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424b89
push 0x8000
push ebx
call fcn.00418c74
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424b20
jg 0x424b1b
cmp ecx, 0x1000
jb 0x424b20
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00423d0c
add esp, 0x10
cmp eax, 0xffffffff
je 0x424b65
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424b1b
jl 0x424b4c
test ecx, ecx
jne 0x424b0d
push dword [ebp - 0xc]
push ebx
call fcn.00418c74
push esi
call fcn.00402520
add esp, 0xc
xor ebx, ebx
jmp 0x424bf5
cmp byte [edi + 0x24], 0
je 0x424b7c
cmp dword [edi + 0x20], 5
jne 0x424b7c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424b87
mov ebx, dword [edi + 0x18]
jmp 0x424b89
xor ebx, ebx
push esi
call fcn.00402520
pop ecx
jmp 0x424bf5
test ecx, ecx
jg 0x424b5e
jl 0x424b9c
test eax, eax
jae 0x424b5e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b2ba
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424bbc
cmp byte [edi + 0x1c], 0
je 0x424b5e
jmp 0x424bed
push ebx
call fcn.0041fb14
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424b5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424bf5
cmp byte [edi + 0x1c], 0
je 0x424bf2
mov ebx, dword [edi + 0x18]
jmp 0x424bf5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041b2ba
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401149
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401186
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401182
nop word [eax + eax]
cmp esi, edx
jae 0x401186
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401170
cmp esi, edx
jb 0x40118d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4015c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.004093c0
call fcn.004097b0
call fcn.00409860
call fcn.00409910
push 0x1388
call dword [0x428f8c]
push 0x400
lea eax, [ebp - 0x60c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60c]
push eax
push 0x41d7b0
push ecx
call fcn.00409af0
add esp, 0xc
lea eax, [ebp - 0x60c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4288d0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401679
push dword [0x4288d0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x4288d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4288d0], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x610]
xor esi, esi
push eax
push 8
mov dword [ebp - 0x610], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4016ed
lea eax, [ebp - 0x618]
push eax
push 4
lea eax, [ebp - 0x614]
push eax
push 0x14
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x614]
mov eax, dword [ebp - 0x610]
test eax, eax
je 0x4016fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x40177b
mov ecx, edi
call fcn.004017f0
mov ecx, edi
call fcn.004018d0
test eax, eax
je 0x4017cf
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x634]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4017cf
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x634]
push eax
call edi
lea eax, [ebp - 0x634]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x634]
push eax
call esi
test eax, eax
jne 0x401743
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x10
push 0x41d7ac
lea ecx, [ebp - 0x610]
call fcn.00402e20
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x610]
push 0x41d7c8
push eax
call fcn.00403880
mov ecx, dword [ebp - 0x610]
add esp, 0xc
call fcn.00417920
mov edx, dword [ebp - 0x610]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4017cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop edi
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4018d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x804]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x41d7d4
push ecx
call fcn.00409af0
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
push 0x41d7e0
push ecx
call fcn.00409af0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0
push esi
push 0
push 0
push 0xc8
push 0x12c
push 0
push SysReAllocString
push 0xcf0000
push eax
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x401981
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a772
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0041a772
mov esp, ebp
pop ebp
ret
Function at 0x406240
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [edi + 0x1c]
sub ebx, 6
mov dword [ebp - 0x34], ebx
test ebx, ebx
jle 0x406272
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x24]
mov ecx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x28], edx
test ebx, ebx
jle 0x4062c3
mov ecx, 8
mov dword [ebp - 0x30], ecx
cmp edx, dword [edi + 0x1c]
ja 0x406404
cmp esi, ebx
jge 0x4062af
cmp eax, 4
jge 0x4062ac
lea edx, [ecx + eax]
mov ecx, dword [ebp + esi*4 - 0x24]
inc esi
mov dword [edi + edx*4], ecx
mov ecx, dword [ebp - 0x30]
inc eax
cmp esi, ebx
jl 0x406294
mov edx, dword [ebp - 0x28]
cmp eax, 4
jne 0x4062bf
inc edx
add ecx, eax
mov dword [ebp - 0x28], edx
xor eax, eax
mov dword [ebp - 0x30], ecx
cmp esi, ebx
jl 0x406287
cmp edx, dword [edi + 0x1c]
ja 0x406404
mov esi, 0x41da38
movzx ecx, byte [ebp + ebx*4 - 0x27]
mov dl, byte [ebp - 0x24]
xor dl, byte [ecx + 0x41dbb0]
mov byte [ebp - 0x24], dl
mov edx, 1
movzx ecx, byte [ebp + ebx*4 - 0x26]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x23], cl
movzx ecx, byte [ebp + ebx*4 - 0x25]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x22], cl
movzx ecx, byte [ebp + ebx*4 - 0x28]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x21], cl
movzx ecx, byte [esi]
add esi, 4
xor byte [ebp - 0x24], cl
mov dword [ebp - 0x30], esi
cmp ebx, 8
je 0x406340
cmp ebx, edx
jle 0x40639e
nop dword [eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, ebx
jl 0x406330
jmp 0x40639e
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 4
jl 0x406340
movzx ecx, byte [ebp - 0x18]
mov edx, 5
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x14], cl
movzx ecx, byte [ebp - 0x17]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x13], cl
movzx ecx, byte [ebp - 0x16]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x12], cl
movzx ecx, byte [ebp - 0x15]
movzx ecx, byte [ecx + 0x41dbb0]
xor byte [ebp - 0x11], cl
nop dword [eax + eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 8
jl 0x406390
xor esi, esi
test ebx, ebx
jle 0x4063f5
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
lea edi, [edx*4 + 8]
cmp edx, dword [ecx + 0x1c]
ja 0x4063f2
cmp esi, ebx
jge 0x4063e1
nop word [eax + eax]
cmp eax, 4
jge 0x4063db
mov ebx, dword [ebp - 0x2c]
lea edx, [edi + eax]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [ebx + edx*4], ecx
mov ebx, dword [ebp - 0x34]
cmp esi, ebx
jl 0x4063c0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp eax, 4
jne 0x4063ee
inc edx
add edi, eax
mov dword [ebp - 0x28], edx
xor eax, eax
cmp esi, ebx
jl 0x4063b1
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp ecx, dword [edi + 0x1c]
jbe 0x4062d1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a772
mov esp, ebp
pop ebp
ret 4
Function at 0x406420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
mov ebx, 1
cmp dword [edi + 0x1c], ebx
jbe 0x40650a
lea eax, [edi + 0x32]
push esi
nop word [eax + eax]
movzx ecx, byte [eax + 1]
lea eax, [eax + 0x10]
movzx edx, byte [eax - 0x11]
inc ebx
mov esi, dword [ecx*4 + 0x425058]
xor esi, dword [edx*4 + 0x425858]
movzx ecx, byte [eax - 0x10]
xor esi, dword [ecx*4 + 0x425458]
movzx ecx, byte [eax - 0x12]
xor esi, dword [ecx*4 + 0x425c58]
mov dword [eax - 0x12], esi
movzx ecx, byte [eax - 0xb]
movzx edx, byte [eax - 0xc]
mov esi, dword [ecx*4 + 0x425058]
xor esi, dword [edx*4 + 0x425458]
movzx ecx, byte [eax - 0xd]
xor esi, dword [ecx*4 + 0x425858]
movzx ecx, byte [eax - 0xe]
xor esi, dword [ecx*4 + 0x425c58]
mov dword [eax - 0xe], esi
movzx ecx, byte [eax - 7]
movzx edx, byte [eax - 8]
mov esi, dword [ecx*4 + 0x425058]
xor esi, dword [edx*4 + 0x425458]
movzx ecx, byte [eax - 9]
xor esi, dword [ecx*4 + 0x425858]
movzx ecx, byte [eax - 0xa]
xor esi, dword [ecx*4 + 0x425c58]
mov dword [eax - 0xa], esi
movzx ecx, byte [eax - 3]
movzx edx, byte [eax - 4]
mov esi, dword [ecx*4 + 0x425058]
movzx ecx, byte [eax - 5]
xor esi, dword [edx*4 + 0x425458]
xor esi, dword [ecx*4 + 0x425858]
movzx ecx, byte [eax - 6]
xor esi, dword [ecx*4 + 0x425c58]
mov dword [eax - 6], esi
cmp ebx, dword [edi + 0x1c]
jb 0x406440
pop esi
pop edi
pop ebx
ret
Function at 0x406e80
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x406f45
cmp dword [edi + 4], 0
jne 0x406f45
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x406f3a
push 0
push 0x41d7ac
push 0x41d7ac
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
jne 0x406ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
pop ebp
ret 0xc
push 0
push 0x4400000
push 3
push 0
push 0
push 0x50
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 4], eax
test eax, eax
jne 0x406f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov dword [edi], 0
pop esi
pop edi
pop ebp
ret 0xc
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x406f32
push dword [edi + 4]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi]
call esi
mov dword [edi + 4], 0
mov dword [edi], 0
pop esi
xor eax, eax
pop edi
pop ebp
ret 0xc
pop esi
mov eax, 0x57
pop edi
pop ebp
ret 0xc
mov eax, 0xb7
pop edi
pop ebp
ret 0xc
Function at 0x407180
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
je 0x407308
cmp dword [ebp + 0xc], 0
je 0x407308
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x407308
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071b5
push esi
sub ecx, edx
sar ecx, 1
push edi
push ebx
lea esi, [ecx + 1]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4071ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407243
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40721c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x407243
pop edi
pop esi
mov eax, 0x10d2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
call fcn.00407050
mov edi, eax
test edi, edi
je 0x4072fa
mov eax, dword [ebp - 4]
mov edx, 0xfde9
mov ecx, dword [ebp + 8]
mov dword [edi], 1
mov dword [edi + 0x18], eax
call fcn.00407ab0
mov ecx, dword [ebp + 0xc]
mov edx, 0xfde9
mov dword [edi + 0xc], eax
call fcn.00407ab0
mov dword [edi + 0x10], eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ac90
add esp, 4
mov ecx, eax
cmp dword [edi + 0xc], 0
mov dword [edi + 0x14], ecx
je 0x4072fa
cmp dword [edi + 0x10], 0
je 0x4072fa
test ecx, ecx
je 0x4072fa
lea eax, [esi + esi]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
test esi, esi
je 0x4072ef
cmp esi, 0x7fffffff
ja 0x4072e6
push ecx
push ebx
push ecx
mov edx, esi
mov ecx, eax
call fcn.00406df0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x4072ef
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4099c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x409a09
xor ecx, ecx
jmp 0x409a19
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a10
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00402f80
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403080
xor edx, edx
cmp dword [ebp - 0x30], edx
jle 0x409a77
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
mov al, byte [eax + edx]
xor al, 0x5a
mov byte [ecx + edx], al
inc edx
cmp edx, dword [ebp - 0x30]
jl 0x409a53
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x200
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x409aa4
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004032b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x409ac8
inc eax
push eax
push dword [ebp - 0x40]
call fcn.004032b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a772
mov esp, ebp
pop ebp
ret
Function at 0x409bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bd16
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], edx
mov esi, ecx
test esi, esi
jne 0x409c01
xor eax, eax
jmp 0x409dec
cmp byte [esi], 0
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
jne 0x409c25
xor ecx, ecx
jmp 0x409c31
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c28
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x240]
call fcn.00402f80
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push 0
push eax
lea ecx, [ebp - 0x228]
mov word [ebp - 0x244], 0x2427
mov byte [ebp - 0x242], 0x7e
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
call fcn.00403080
xor ebx, ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x230], ebx
jle 0x409cee
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp - 0x22c], 0x10
lea edi, [ebp - 0x240]
lea esi, [ebp - 0x228]
mov eax, 0xaaaaaaab
cmovae edi, dword [ebp - 0x240]
mov ecx, ebx
cmp dword [ebp - 0x214], 0x10
cmovae esi, dword [ebp - 0x228]
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ebp + ecx - 0x244]
xor al, byte [edi + ebx]
mov byte [esi + ebx], al
inc ebx
cmp ebx, dword [ebp - 0x230]
jl 0x409ca0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0x228]
cmp dword [ebp - 0x214], 0x10
cmovae edi, dword [ebp - 0x228]
test edi, edi
je 0x409d81
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409d21
sub esi, ecx
mov ecx, esi
call fcn.00408ca0
inc eax
push eax
mov dword [ebp - 0x244], eax
call fcn.0041ac90
mov ebx, eax
mov edx, esi
lea eax, [ebp - 0x244]
mov ecx, edi
push eax
push ebx
call fcn.00408d20
add esp, 0xc
test eax, eax
je 0x409d81
mov eax, dword [ebp - 0x244]
push ebx
push 0x200
mov byte [ebx + eax], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push ebx
call fcn.0041a7e7
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0x200
push dword [ebp - 0x248]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebp - 0x214]
add esp, 0xc
cmp eax, 0x10
jb 0x409db4
inc eax
push eax
push dword [ebp - 0x228]
call fcn.004032b0
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
cmp eax, 0x10
jb 0x409de7
inc eax
push eax
push dword [ebp - 0x240]
call fcn.004032b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a772
mov esp, ebp
pop ebp
ret