joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x42b57a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b570
mov eax, 1
add ebx, ebx
jne 0x42b593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b588
jne 0x42b5a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b588
xor ecx, ecx
sub eax, 3
jb 0x42b5b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b62a
mov ebp, eax
add ebx, ebx
jne 0x42b5c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b5d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b5f4
inc ecx
add ebx, ebx
jne 0x42b5e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b5d5
jne 0x42b5f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b5d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b614
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b605
jmp 0x42b576
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b614
add edi, ecx
jmp 0x42b576
pop esi
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b67c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b0bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b631
mov ecx, edi
jns 0x42b660
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 + 0x2b0c4]
or eax, eax
je 0x42b676
mov dword [ebx], eax
add ebx, 4
jmp 0x42b64e
call dword [esi + 0x2b0c0]
mov ebp, dword [esi + 0x2b0c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x42b6b0
sub esp, 0xffffff80
jmp 0x40b346

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401290
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov ebx, 1
mov byte [esp + 0x18], 0
call fcn.0043d080
add esp, 0xc
test esi, esi
je 0x4013ee
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x4013ee
push esi
call edi
cmp eax, 0x104
ja 0x4013ee
push ebp
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x401385
push 0x5c
push eax
call fcn.00437e1e
mov esi, eax
add esp, 8
test esi, esi
je 0x401385
lea eax, [esp + 0x10]
push eax
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x40133f
test al, 0x10
jne 0x40137d
test al, 0x10
jne 0x40135a
push 0x80
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x40137d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40137d
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x401317
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, 0xffffffff
je 0x401395
test al, 0x10
jne 0x4013d3
test al, 0x10
jne 0x4013b0
push 0x80
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x4013d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4013d3
mov ebx, 1
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00437bf9
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00437bf9
add esp, 0x108
ret
Function at 0x401970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov dword [esp + 0x14], 0xffffffff
mov byte [esp + 0x128], bl
call fcn.0043d080
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x401ada
mov eax, str.RAV.INI
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019d0
sub eax, edx
cmp eax, 2
jb 0x401ada
push esi
lea esi, [esp + 0x120]
call fcn.00401b00
mov eax, esi
mov ecx, 0x104
pop esi
cmp byte [eax], bl
je 0x401a03
inc eax
sub ecx, 1
jne 0x4019f7
jmp 0x401a26
cmp ecx, ebx
je 0x401a26
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 0x11c]
mov eax, str.RAV.INI
call fcn.00402000
push 0x104
lea edx, [esp + 0x19]
push ebx
push edx
mov byte [esp + 0x20], bl
call fcn.0043d080
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0x451170
push edi
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 8], eax
cmp byte [esp + 0x14], bl
je 0x401ada
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x451198
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.00437f6f
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push str.0X_X
push eax
call fcn.00437f6f
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push 0x4511a4
push edx
call fcn.00437f6f
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
mov eax, ebp
mov ecx, dword [esp + 0x220]
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bf9
add esp, 0x21c
ret
Function at 0x401b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
cmp eax, 0x4511a8
je 0x401bfe
test esi, esi
je 0x401bfe
push edi
push 0x103
push eax
lea ecx, [esp + 0x1d]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], al
call fcn.0043d080
push 0x4511a8
push str.SOFTWARERising_s
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401e00
add esp, 0x14
lea edx, [esp + 4]
push edx
push 0x20019
push 0
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bd7
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.datapath
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bb0
sub eax, edx
je 0x401bcc
push 0x451188
mov ecx, 0x104
mov edi, esi
call fcn.00402040
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
pop edi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401be0
sub eax, edx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00437bf9
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00437bf9
add esp, 0x118
ret

Function at 0x401c20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call fcn.0043d080
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x401ce2
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c67
sub eax, edx
cmp eax, 2
jb 0x401ce2
lea esi, [esp + 4]
call fcn.00401b00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x401c92
inc eax
sub ecx, 1
jne 0x401c85
jmp 0x401cb2
test ecx, ecx
je 0x401cb2
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 4]
mov eax, str.RAV.INI
call fcn.00402000
lea edx, [esp + 4]
push edx
push 0x200
push str.LOGSIZE
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00437bf9
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00437bf9
add esp, 0x108
ret
Function at 0x401d00
Capabilities:
Get common file path

Disassembly:
cmp byte [0x560c18], 0
jne 0x401d87
push 0x560c18
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401d2f
push 4
push str.C:Temp
push 0x560c18
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
push 0x560c18
call fcn.00437d4b
add esp, 8
test eax, eax
je 0x401d4b
cmp byte [eax + 1], 0
jne 0x401d4b
mov byte [eax], 0
mov eax, 0x560c18
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d51
mov ecx, dword [str.NewRsInstall.log]
mov edx, dword [0x451280]
mov dword [eax], ecx
mov ecx, dword [0x451284]
mov dword [eax + 4], edx
mov edx, dword [0x451288]
mov dword [eax + 8], ecx
mov cx, word [0x45128c]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
ret
Function at 0x402090
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [0x45e418]
push ebp
push esi
push edi
push 0x104
mov edi, ecx
lea ecx, [esp + 0x1d]
push 0
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
call fcn.0043d080
add esp, 0xc
test edi, edi
je 0x402148
cmp byte [edi], 0
je 0x402148
push 0x5c
push edi
call fcn.00437e1e
add esp, 8
test eax, eax
jne 0x402194
push 0x105
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.00437d4b
add esp, 8
test eax, eax
je 0x402118
mov byte [eax + 1], 0
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x40212e
inc eax
sub ecx, 1
jne 0x402121
jmp 0x402190
test ecx, ecx
je 0x402190
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, edi
jmp 0x40218b
push 0x105
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x402170
inc eax
sub ecx, 1
jne 0x402163
jmp 0x402190
test ecx, ecx
je 0x402190
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, str..log
call fcn.00402000
lea edi, [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4022e3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shl ebx, 0xa
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jbe 0x4022a9
cmp eax, 0xffffffff
je 0x4022a9
push esi
call ebx
push 0x104
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.0043d080
add esp, 0xc
push 0x105
push edi
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x120]
push 0x2e
push ecx
call fcn.00437d4b
add esp, 8
test eax, eax
je 0x402229
mov byte [eax], 0
mov ecx, 0x105
lea eax, [esp + 0x120]
cmp byte [eax], 0
je 0x402242
inc eax
sub ecx, 1
jne 0x402235
jmp 0x402265
test ecx, ecx
je 0x402265
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x120]
mov eax, str.2.log
call fcn.00402000
push 0x80
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
mov eax, edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022c7
push 0
sub eax, edx
lea edx, [esp + 0x14]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bf9
add esp, 0x21c
ret
Function at 0x402dd0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x30
xor eax, eax
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp esi, 2
je 0x402ea9
cmp esi, 8
je 0x402ea9
cmp esi, 4
je 0x402ea9
test esi, esi
jne 0x402e3b
push str.Idle
push 0x104
push ebx
call fcn.004385ed
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x30
ret
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402e7f
lea eax, [esp + 4]
push eax
push 0x28
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x402e76
mov edx, dword [esp + 8]
push 0x104
push ebx
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.OpenProcess___d__ERROR___d_n
push 0x80
call fcn.004025a0
add esp, 0x10
xor eax, eax
cmp byte [ebx], al
je 0x402ec1
test edi, edi
setne al
pop edi
add esp, 0x30
ret
push str.System
push 0x104
push ebx
call fcn.004385ed
add esp, 0xc
mov eax, 1
pop edi
add esp, 0x30
ret
Function at 0x403d70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44d1e9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x45fdc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fdc0
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x2c], esi
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 8]
push 0x7d0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push 0x66
push eax
call edx
cmp eax, esi
jne 0x403e41
mov ebx, dword [esp + 0x14]
cmp ebx, esi
je 0x403e33
call fcn.00402fd0
push eax
push 0x451594
mov edi, ebp
call fcn.004044a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 0x4c]
add esp, 8
push eax
call edx
jmp 0x403e41
push 0x451170
xor edi, edi
mov eax, ebp
call fcn.00404150
mov eax, dword [ebp]
push eax
push str.GetFileNameByComx3_Retun__s
push 0x80
call fcn.004025a0
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x404c60
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x158
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov edi, ecx
test eax, eax
je 0x404d85
test edi, edi
je 0x404d85
push 0x451608
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x404e04
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetFolderPathA
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x404cf2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], eax
test eax, eax
je 0x404ce6
push str.SHGetFolderPathA
push eax
call ebp
mov esi, eax
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x404df9
push edi
push 1
push 0
push 0x23
push 0
call esi
test eax, eax
jl 0x404df9
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d10
sub eax, edx
je 0x404df9
push str.Rising
mov ecx, 0x104
mov ebx, 1
call fcn.00402040
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
mov al, byte [esp + 0x20]
cmp esi, 0xffffffff
je 0x404d50
test al, 0x10
jne 0x404d66
test al, 0x10
jne 0x404d5b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
cmp esi, 0xffffffff
je 0x404d72
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x404da0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404d85
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bf9
add esp, 0x158
ret
push 0x451188
mov ecx, 0x104
call fcn.00402040
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, 0x104
call fcn.00402040
lea edx, [esp + 0x20]
push edx
push edi
call ebp
mov esi, eax
mov al, byte [esp + 0x20]
cmp esi, 0xffffffff
je 0x404dd5
test al, 0x10
jne 0x404de9
test al, 0x10
jne 0x404de0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, 0xffffffff
je 0x404df5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x404e04
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404e07
sub edi, ecx
mov eax, edi
jmp 0x404d87
Function at 0x404ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c1c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.00404e70
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
je 0x40505c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x405300
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x405310
mov eax, 0x400000
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
test ecx, ecx
je 0x405346
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
test al, al
je 0x40534f
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405361
mov eax, 0x80004005
ret 0x10
jle 0x40536d
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x405420
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405448
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x405470
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push eax
call fcn.004470d0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret 8
call edi
test eax, eax
jne 0x405480
pop edi
mov eax, 0x80004005
pop esi
ret 8
jle 0x40548c
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
ret 8

Function at 0x4054a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x4054b0
mov eax, 0x400000
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x10]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x4054ef
mov dword [ecx], eax
test dl, dl
je 0x4054f8
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40550a
mov eax, 0x80004005
ret 0x10
jle 0x405516
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x4063a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c4f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 4]
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x28]
push 0
push 0
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ebx, eax
test ebx, ebx
je 0x406418
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x14
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edi, dword [edi]
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ecx + 0xc]
push edx
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x14

Function at 0x407170
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4071b0
push 0
push 0
call fcn.004394c1
mov edx, dword [esp + 0x20]
add esp, 0x18
mov dword [edx], eax
test eax, eax
je 0x407199
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4071a8
mov eax, 1
pop ecx
ret 4