joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40191d
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x298], edx
push 0xa
pop ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x294], ebx
mov esi, str.Sample_Window_Class
mov dword [ebp - 0x264], eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x284], 0x401829
rep movsd dword es:[edi], dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x278], ebx
lea eax, [ebp - 0x288]
movlpd qword [ebp - 0x280], xmm0
xor edi, edi
movlpd qword [ebp - 0x274], xmm0
push eax
mov dword [ebp - 0x288], edi
movlpd qword [ebp - 0x26c], xmm0
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0x104
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
push edi
push ebx
push edi
push edi
push 0x140
push 0x258
mov esi, eax
mov eax, 0x80000000
push eax
push eax
push 0xca0000
push str.Windows_Uninstaller
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov dword [ebp - 0x290], ebx
test ebx, ebx
je 0x401af6
push esi
push 1
push 0x80
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x244]
mov edi, dword [ebp - 0x238]
sub edi, dword [ebp - 0x240]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [ebp - 0x28c], eax
call esi
push 1
mov ebx, eax
call esi
sub ebx, dword [ebp - 0x28c]
sub eax, edi
mov esi, dword [ebp - 0x290]
cdq
push 5
sub eax, edx
push 0
sar eax, 1
push 0
push eax
mov eax, ebx
xor ebx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push dword [ebp - 0x294]
push ebx
push esi
push 0x19
push 0x230
push 0xc8
push 0xa
push 0x50000000
push ebx
push str.msctls_progress32
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push ebx
push ebx
push 0x401740
push ebx
push ebx
mov dword [0x4173c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 0x298]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea edi, [ebp - 0x260]
push 7
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x401ae6
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
call esi
test eax, eax
jne 0x401acc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b38
leave
ret
Function at 0x407f51
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 0x407fee
push ebx
push esi
call fcn.00407f1a
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.00407eae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407f9b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407fed
push edi
push eax
call fcn.0040689b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407fbb
call fcn.004069f6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407fec
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407eae
add esp, 0x20
test eax, eax
jne 0x407fda
push edi
call fcn.004069f6
jmp 0x407fe2
push ebx
call fcn.004069f6
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 0x408dfc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411078
push 0x411070
push str.FlsAlloc
push 0x1f
call fcn.00408d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408e30
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f188]
call esi
jmp 0x408e36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408e7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411088
push 0x411080
push str.FlsGetValue
push 0x21
call fcn.00408d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408eb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408eb9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411090
push 0x411088
push str.FlsSetValue
push 0x22
call fcn.00408d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408ef3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x440e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x440e82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440e89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440e78
mov eax, 1
add ebx, ebx
jne 0x440e9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440e90
jne 0x440eac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440e90
xor ecx, ecx
sub eax, 3
jb 0x440ec0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440f32
mov ebp, eax
add ebx, ebx
jne 0x440ecb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x440ed8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x440efc
inc ecx
add ebx, ebx
jne 0x440ee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x440edd
jne 0x440ef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440edd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x440f1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x440f0d
jmp 0x440e7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x440f1c
add edi, ecx
jmp 0x440e7e
pop esi
mov edi, esi
mov ecx, 0xbf4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x440f3a
cmp byte [edi], 6
jne 0x440f3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x440f3f
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440fb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x413b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x41468]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440f6c
mov ecx, edi
jns 0x440f9b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x41470]
or eax, eax
je 0x440fb1
mov dword [ebx], eax
add ebx, 4
jmp 0x440f89
call dword [esi + 0x4146c]
mov ebp, dword [esi + 0x41474]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x440feb
sub esp, 0xffffff80
jmp 0x4054e0
Function at 0x402cc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402b68
mov esi, eax
cmp dword [0x407d94], 0xffffffff
je 0x402d29
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407d90]
jne 0x402d29
lea eax, [ebp - 0x1c]
push eax
push dword [0x407d90]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407d9c], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407da0], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x4088a8
call fcn.00405f74
mov esi, dword [eax]
push 0x4088a8
call fcn.00405f74
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.004057dc
call fcn.00405658
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.004056e4
call fcn.004042cc
test eax, eax
jne 0x402f81
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.004057bc
call fcn.004042cc
test eax, eax
jne 0x402ef7
cmp word [ebp - 0x190], 0x5a4d
jne 0x402ef7
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405700
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.004057bc
jmp 0x402f01
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405700
call fcn.004042cc
test eax, eax
jne 0x402f65
cmp word [ebp - 0x190], 0x4550
jne 0x402f65
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.004057bc
call fcn.004042cc
test eax, eax
jne 0x402f65
cmp dword [ebp - 0x288], 0x4550
jne 0x402f65
cmp word [ebp - 0x22c], 3
jne 0x402f65
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405730
push 0x4088a0
call fcn.00405f74
mov dword [eax], 0
push 0x4088a8
call fcn.00405f74
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402fd8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402b68
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x40307c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407e34], 0
je 0x40309e
mov eax, dword [0x407e34]
mov dword [ebp - 4], eax
jmp 0x403133
push 0x104
call fcn.004043a0
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.00403e68
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x4030e3
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403014
mov esi, eax
inc esi
push esi
call fcn.00403e68
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404400
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403114
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403121
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404be0
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407e34], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403210
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404b54
xor eax, eax
mov bl, 0
cmp dword [0x407dd8], 0
jne 0x40325e
push 0x407b28
push 1
call fcn.00402a74
mov dword [0x407dd8], eax
cmp dword [0x407dd8], 0
jne 0x403277
push 0x8000
call fcn.004043a0
mov esi, eax
mov bl, 1
jmp 0x4032b1
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407dd8]
test eax, eax
jne 0x4032a1
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x4032da
push esi
push 0x8000
push 0xff
call fcn.00404c3c
push esi
push 0x24
push 0
call fcn.00404c3c
mov eax, esi
add eax, 0xc
push eax
call fcn.00404488
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403688
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403614
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x4036c0
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x4036a6
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407d90]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403a68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403a88
mov al, byte [ebp - 4]
jmp 0x403a8b
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405a94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408188]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405ad2
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405acd
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405acd
mov esi, edx
add edx, 0x10
jmp 0x405ab6
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405be6
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405be6
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405be4
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405be4
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405b1a
jmp 0x405be4
sub cl, 3
jne 0x405b34
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405bdf
inc cl
jne 0x405b48
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405bdf
inc cl
jne 0x405b5c
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405b6f
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405b79
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405bd6
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405b8c
cmp byte [ebp - 0x25], 0
jne 0x405bd4
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405bc2
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405b9d
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405be6
jmp 0x405be4
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405b0c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4060bc
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406098
call fcn.00403210
mov dword [0x408188], eax
lea edx, [eax + 0x18]
mov dword [0x4081e8], edx
pop edx
call fcn.00405f18
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4081b4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4081c8], eax
mov dword [0x4081f0], eax
call fcn.00402e40
cmp eax, 3
setb byte [0x408191]
call fcn.00403e60
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406348
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x401620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov byte [esp + 0x41], 0xff
mov dword [esp + 0x3c], 0x3211
mov byte [esp + 0x3b], 0x6a
mov word [esp + 0x1a], 0x1529
mov bl, byte [esp + 0x41]
xor bl, 0xe2
mov byte [esp + 0x13], bl
mov dword [esp + 0x34], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jmp 0x4016d2
mov eax, 0x3212
mov ecx, 0x3231
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
sub ecx, dword [esp + 0x3c]
sub eax, esi
add edx, eax
mov dword [esp + 0x34], edx
cmp edx, ecx
je 0x4016c8
jmp 0x4016d2
mov ax, word [esp + 0x42]
or ax, word [esp + 0x42]
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x42], ax
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov ax, word [esp + 0x42]
sub ax, 0x1a33
mov word [esp + 0x42], ax
mov edx, dword [esp + 0xc]
cmp ecx, edx
jb 0x401791
jmp 0x40166f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [0x4050d0]
mov cx, word [esp + 0x42]
xor cx, 0xffff
mov edx, dword [esp + 0x34]
mov word [esp + 0x42], cx
mov esi, dword [esp + 0x3c]
xor esi, 0x1a45
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x20]
shl edx, 2
add eax, edx
mov bl, byte [esp + 0x41]
xor bl, 0x78
mov dword [esp + 0x2c], eax
mov bh, byte [esp + 0x13]
mov dword [esp + 0x34], esi
cmp bh, bl
jbe 0x401693
jmp 0x4016d2
mov al, byte [esp + 0x33]
mov ecx, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov esi, 0x8942
sub esi, edx
mov ah, byte [ecx]
movsd qword [esp + 0x48], xmm0
sub ah, al
mov byte [esp + 0x2b], ah
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
or ecx, 0x3ad3
mov di, word [esp + 0x1a]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], esi
cmp di, 0x2097
je 0x401791
mov al, byte [esp + 0x2b]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
mov byte [edx + ecx], al
mov ecx, dword [esp + 0x1c]
add ecx, 0x20
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0xc]
cmp ecx, esi
jae 0x40166f
mov eax, 0x3759
mov cl, 0x69
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
and edx, 0x1f
mov ch, byte [edx + 0x4050ac]
mov bl, byte [esp + 0x3b]
mov byte [esp + 0x33], ch
mov edx, dword [esp + 0x44]
xor edx, 0x39c7
mov dword [esp + 0x44], edx
sub cl, byte [esp + 0x41]
sub eax, dword [esp + 0x3c]
mov edx, dword [esp + 8]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
cmp cl, bl
ja 0x401791
jmp 0x40171e
Function at 0x4018c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0x2e08
mov word [esp + 0x68], 0x2d1f
mov dword [esp + 0x64], 0x6ff4
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x751a
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
xor edi, edi
mov ebx, 0x8d6d
sub ebx, edx
sbb edi, esi
sub ebx, 0x751b
sbb edi, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
jb 0x4019fa
jmp 0x401938
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add eax, 0x2451
adc ecx, 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dx, word [esp + 0x68]
mov eax, esp
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov word [esp + 0x2a], dx
call fcn.00401e50
sub esp, 4
mov dx, 0x2d1f
mov si, word [esp + 0x2a]
sub dx, si
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add eax, 6
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp word [eax], dx
je 0x4019cb
jmp 0x401a25
mov eax, 0x700c
mov ecx, dword [esp + 0x48]
mov dx, word [esp + 0x7a]
mov esi, dword [esp + 0x64]
mov word [esp + 0x7a], dx
mov edi, dword [esp + 0x48]
movzx edi, word [edi + 0x14]
sub eax, esi
add ecx, eax
add ecx, edi
mov eax, dword [esp + 0x64]
add eax, 0xffff900c
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ecx
jmp 0x401a48
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x54]
mov ecx, esp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
call fcn.004025c0
sub esp, 0xc
mov dword [esp + 0x24], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, 0x836f
sub eax, dword [esp + 0x64]
mov cl, byte [esp + 0x6b]
xor cl, 0xff
mov byte [esp + 0x6b], cl
mov dword [esp + 0x50], eax
cmp dword [esp + 0x50], 0x1c1b
jae 0x401993
jmp 0x401938
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor edx, edx
mov esi, 0x195e
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
jb 0x401993
jmp 0x401a25
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
xor ecx, 0x6ff5
mov edx, dword [esp + 0x38]
add edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
add ebx, dword [eax + 0xc]
mov dword [esp + 0x18], eax
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
call fcn.004025c0
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
add esi, 0x28
movzx edx, word [edx]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], esi
cmp ecx, edx
mov dword [esp + 0xc], eax
jb 0x401a48
jmp 0x4019cb