joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae320
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x4ae33a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x4ae348
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x4ae341
cmp al, 0x20
je 0x4ae352
cmp byte [edi], 0x20
jne 0x4ae352
inc edi
lea ecx, [esp + 0xc]
call fcn.004b03d0
mov dword [esp + 0xc], 0x4b2304
mov al, byte [edi]
test al, al
je 0x4ae416
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x4ae3be
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x4ae399
mov al, byte [esi]
cmp al, 0x22
je 0x4ae399
test al, al
jge 0x4ae391
mov al, byte [esi + 1]
test al, al
je 0x4ae399
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4ae37f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.004b0880
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004b0660
mov al, byte [esi]
mov edi, esi
test al, al
je 0x4ae40c
lea edi, [esi + 1]
jmp 0x4ae40c
cmp al, 0x20
jg 0x4ae3ca
cmp byte [esi], 0
jl 0x4ae3ca
inc edi
jmp 0x4ae40c
test al, al
mov esi, edi
je 0x4ae3f2
mov al, byte [esi]
cmp al, 0x22
je 0x4ae3f2
cmp al, 0x20
jg 0x4ae3de
test al, al
jge 0x4ae3f2
test al, al
jge 0x4ae3ea
mov al, byte [esi + 1]
test al, al
je 0x4ae3f2
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4ae3d0
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.004b0880
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004b0660
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x4ae371
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x4ae429
push eax
call fcn.004b0820
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004ae140
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x4b2300
call fcn.004b05d0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4ae580
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4ae5ea
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4ae5ba
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4ae606
push ecx
push esi
call fcn.004b0880
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4ae8c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4ae929
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004ae140
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x4af0b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4af13b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4af13b
test esi, esi
je 0x4af0f5
cmp esi, 0xffffffff
je 0x4af0f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x4af181
mov eax, dword [esp + 0x160]
test eax, eax
je 0x4af124
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4af13b
jmp 0x4af133
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4af13b
mov dword [esp + 0x10], 1
test esi, esi
je 0x4af181
cmp esi, 0xffffffff
je 0x4af181
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4af1b8
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x4af18e
call edi
test eax, eax
je 0x4af181
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x4af1b8
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x4af169
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x4af181
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x4af1b8
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x4af19b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004ae140
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x4af340
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4af368
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x4af38a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x4afb80
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004ae140
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4afbd7
push ebx
push edi
call fcn.004ae1d0
push esi
mov ebx, esi
call fcn.004ae140
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4afbae
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4afbe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4afc72
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4afc64
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4afc5c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4afc25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4afc80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4afcc1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4afcc1.2
jmp dword [eax*4 + 0x4afd4c]
mov word [esp + 0x48], di
jmp 0x4afcfa
mov word [esp + 0x48], 2
jmp 0x4afcfa
mov word [esp + 0x48], 3
jmp 0x4afcfa
mov word [esp + 0x48], 4
jmp 0x4afcfa
mov word [esp + 0x48], 7
jmp 0x4afcfa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4afd44
cmp dword [esp + 0x70], edi
je 0x4afd30
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x404f30
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4474f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa14
push ebx
push ebp
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
mov dword [esp + 0x14], esi
mov dword [esi + 4], edi
xor ebx, ebx
mov dword [esi], 0x44aff4
mov dword [esp + 0xa2c], ebx
mov dword [esi + 0x20], edi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [esi + 0x28]
mov byte [esp + 0xa44], 1
call fcn.0044243b
mov dword [esi + 0x60], edi
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x25], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x866], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x864], bl
mov byte [esi + 0x865], bl
mov byte [esi + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.patch.shaiya_eclipse.com_shaiya
mov dword [esi + 0x20], eax
push 0x462bb8
mov byte [esi + 0x874], bl
call fcn.00420685
add esp, 8
push str..CONFIG.ini
xor eax, eax
push 0x104
mov ecx, 0x82
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x449ff0
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4050da
lea ecx, [esp + 0x18]
push 0x44af50
push ecx
call fcn.00427c5a
add esp, 8
test eax, eax
jne 0x4050da
push 0x44af4c
push str.UpdaterURL.txt
call fcn.004215f3
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x40506f
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call fcn.0042129b
lea edx, [esp + 0x220]
push edx
xor eax, eax
push 0x44a054
mov ecx, 0x200
lea edi, [esp + 0x228]
push ebp
rep stosd dword es:[edi], eax
call fcn.0042154d
lea eax, [esp + 0x22c]
push eax
call fcn.004206a1
add esp, 0x10
cmp eax, 1
jae 0x4050bf
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call fcn.0042129b
lea ecx, [esp + 0x220]
push ecx
push 0x462bb8
call fcn.00420685
push ebp
call fcn.004213ff
add esp, 0xc
mov ecx, dword [esp + 0xa24]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401c66
pop dword [ebp - 0xc]
mov eax, 0x68fb1364
add eax, 0x97450902
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xaf1f74d5
sub dword [ebp - 0x1c], 0x60cd2f8a
mov dword [ebp - 0x18], 0xc01593f0
sub dword [ebp - 0x18], 0x8de247ab
mov dword [ebp - 0x14], 0x47ce6089
sub dword [ebp - 0x14], 0xfb821c5b
mov dword [ebp - 0x10], 0x44f04405
sub dword [ebp - 0x10], 0x44f04405
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xdad8f833
sub eax, 0xda98c7df
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x21e10b14
sub dword [ebp - 0x1c], 0xad6ea1be
mov dword [ebp - 0x18], 0x21a8d6b8
add dword [ebp - 0x18], 0x1fc38abd
mov dword [ebp - 0x14], 0x6e0988e4
add dword [ebp - 0x14], 0xf565e388
mov dword [ebp - 0x10], 0xecac2014
add dword [ebp - 0x10], 0x1353dfec
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xf50043a7
sub eax, 0xf4c0137b
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x32456
push 0
call eax
mov ecx, 0x4b3fbfe7
add ecx, 0xb4c07742
mov ebx, eax
mov esi, 0x5fd65f39
add esi, 0xa06a10c7
add esi, dword [ebp - 0xc]
mov edx, 0x9829c54d
sub dword [ebp - 8], esi
mov edi, dword [esi]
add dword [ebp - 4], ebx
add edi, edx
sub dword [ebp - 8], edi
mov dword [ebx], edi
xor dword [ebp - 4], 0xefaac09d
add ebx, 0x6ee2cb90
add ebx, 0x911d3474
add esi, 0x434a4345
sub esi, 0x434a4341
loop 0x401d82
add eax, 0xcf77
mov ebx, eax
add eax, 0x187cb12e
add eax, 0xe7834ed7
mov ecx, 0x4e6cdb8e
sub ecx, 0x4e2cdb8e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0xc0d2f7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 1], cl
call fcn.00c0cae4

Function at 0xc18492
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, 0xbe
push word [esp + 2]
bswap edx
lea esp, [esp + 2]
jmp 0xc18784
xchg ah, al
mov eax, dword [esp + 8]
not edx
lea edx, [ecx + ebp]
mov dl, byte [esp]
call 0xc184dd
pop edi
pushfd
push dword [esp + 2]
rdtsc
mov word [esp], cx
xchg dx, ax
jmp 0xc1850e
push edi
mov di, cx
setg ah
rdtsc
rdtsc
xchg di, ax
jmp 0xc1862a
mov dword [esp], eax
mov dx, 0x655e
mov eax, edx
mov edx, esp
bswap eax
lea edx, [ebx + ebp]
jmp 0xc1865f
Function at 0x4020cd
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
bswap eax
mov edi, eax
mov eax, dword [esi + 4]
bswap eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + esi*4]
bswap eax
mov dword [ebp + esi*4 - 0x10], eax
inc esi
cmp esi, 4
jl 0x4020ec
mov ebx, dword [ebp + 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x402108
bswap edi
mov esi, dword [ebp + 0x10]
mov dword [esi], edi
bswap ebx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4022db
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40231a
mov dword [ebp - 4], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 4], esp
je 0x402317
push 0x46
push 0x40da2f2
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x402350
push 0x92
push 0x40da2f2
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402384
push 0x92
push 0x40da2f2
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x402398
mov esp, ebp
pop ebp
ret 8

Function at 0x40773e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x407775
push 0x12
push 0x40da346
push 6
call fcn.0059de3f
add esp, 0xc
jmp 0x40777a
mov esp, ebp
pop ebp
ret 4
Function at 0x40b38d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [0x652447]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b3d0
push 0x2b
push 0x40da500
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x5d3438]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004016b0
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0059fc60
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b423
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b459
push 0x84
push 0x40da500
push 6
call fcn.0059de3f
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b475
push eax
mov ebx, eax
call fcn.00401040
inc eax
push eax
call fcn.0059de33
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b47a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b48b
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x413675
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4136ac
push 0x12
push 0x40da41b
push 6
call fcn.0059de3f
add esp, 0xc
jmp 0x4136b1
mov esp, ebp
pop ebp
ret 4

Function at 0x4143ca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x50
call fcn.0059de33
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x14
rep stosd dword es:[edi], eax
push 0x5d3437
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.00401107
add esp, 8
cmp eax, 0
jne 0x41440b
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 8], esp
je 0x414464
push 0x8c
push 0x40da41f
push 6
call fcn.0059de3f
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jne 0x4144dd
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4144a4
push 0x11e
push 0x40da41f
push 6
call fcn.0059de3f
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4144dd
push 0x141
push 0x40da41f
push 6
call fcn.0059de3f
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x4144f2
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x416035
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41606c
push 0x24
push 0x40da343
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x416080
mov esp, ebp
pop ebp
ret 4

Function at 0x416192
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
push dword [0x6522f7]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4161e9
push 0x19
push 0x40da43e
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416200
mov eax, 0x5d3442
jmp 0x416320
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
push dword [0x6522f7]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416232
push 0xa1
push 0x40da43e
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416249
mov eax, 0x5d3442
jmp 0x416320
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416275
push 0x129
push 0x40da43e
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41628c
mov eax, 0x5d3442
jmp 0x416320
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0059f0c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4162bf
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00416338
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x416301
push 0x1d7
push 0x40da43e
push 6
call fcn.0059de3f
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41631b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0059de33
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x416320
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x416331
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x49f034
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.0049f0de
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x49f091
push 0x4d
push 0x40d34c0
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x49f0a6
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x49f0d0
push 0x7f
push 0x40d34c0
push 6
call fcn.0059de3f
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x49f0d8
mov esp, ebp
pop ebp
ret 4