joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068ae
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.0040676c
mov esi, eax
push 8
mov dword [esp + 0x10], esi
call fcn.004010e8
pop ecx
pop ecx
push 0x429410
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4068f7
push ebx
call fcn.0040110a
push esi
call fcn.004066bf
pop ecx
pop ecx
xor eax, eax
jmp 0x4069f6
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], 0x42943c
push edi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x40690f
and dword [ebx + 4], 0
jmp 0x406928
push 0x429410
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0x42943c
test ebp, ebp
je 0x4069da
push ebp
call fcn.00409940
pop ecx
cmp eax, 4
jl 0x406902
cmp byte [eax + ebp - 4], 0x2e
jne 0x406902
lea edi, [eax - 3]
add edi, ebp
push 0x41faa0
push edi
call fcn.0040afe0
pop ecx
pop ecx
test eax, eax
je 0x40696a
push 0x41faa4
push edi
call fcn.0040afe0
pop ecx
pop ecx
test eax, eax
jne 0x406902
push 0x3b
push ebp
call fcn.0040cf60
pop ecx
pop ecx
test eax, eax
jne 0x406902
push dword [esp + 0x1c]
call fcn.00409940
push ebp
mov edi, eax
call fcn.00409940
mov esi, eax
lea ecx, [esi + edi]
push ecx
call fcn.004010e8
lea ecx, [edi - 1]
mov ebx, eax
push ecx
push dword [esp + 0x2c]
push ebx
call fcn.0040a800
lea ecx, [esi + 1]
push ecx
lea eax, [edi - 1]
add eax, ebx
push ebp
push eax
call fcn.0040a800
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc eax
push eax
push esi
call fcn.0040658c
mov ecx, dword [esi + 4]
add esp, 0x2c
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [esi + 4]
mov ebx, dword [esp + 0x14]
jmp 0x406902
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.0040110a
push ebx
call fcn.0040110a
pop ecx
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x41641f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4282e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040f37f
mov dword [ebp - 0x14], eax
cmp dword [0x42a2dc], esi
jne 0x416512
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41649f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4165f2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4165f2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4165f2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42a2dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42a2e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42a2e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a2ec], eax
test eax, eax
je 0x41650f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a2e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416537
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41652a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41654c
push 4
pop eax
jmp 0x4165f4
cmp dword [ebp - 0x14], esi
je 0x41654c
push dword [0x42a2dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416531
mov eax, dword [0x42a2e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4165aa
cmp dword [0x42a2ec], edi
je 0x4165aa
push eax
call ebx
push dword [0x42a2ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4165aa
test eax, eax
je 0x4165aa
call ecx
test eax, eax
je 0x41659f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41659f
test byte [ebp - 8], 1
jne 0x4165aa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4165da
mov eax, dword [0x42a2e0]
cmp eax, edi
je 0x4165d7
push eax
call ebx
test eax, eax
je 0x4165d7
call eax
mov esi, eax
test esi, esi
je 0x4165d7
mov eax, dword [0x42a2e4]
cmp eax, edi
je 0x4165d7
push eax
call ebx
test eax, eax
je 0x4165d7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42a2dc]
call ebx
test eax, eax
je 0x4165f2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4165f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b10c
mov esp, ebp
pop ebp
ret
Function at 0x409ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x430fb8], eax
pop esi
pop edi
pop ebp
ret
Function at 0x416e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov edx, dword [0x4305f0]
xor edx, ebp
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x20], eax
call fcn.00412760
lea ecx, [ebp - 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00416f80
lea eax, [0x4180b0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.00418130
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], 0
lea edx, [0x4180b0]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov dword [ebp - 0x28], ecx
call fcn.0041bd06
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x1ecb2900
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, 0xc8775b9
mov dword [ebp - 0x2c], eax
je 0x416f44
jmp 0x416ed7
mov eax, dword [ebp - 0x2c]
sub eax, 0x1ecb2900
je 0x416f15
jmp 0x416eea
mov eax, dword [ebp - 0x2c]
sub eax, 0x43da1f37
je 0x416f30
jmp 0x416efd
mov eax, dword [ebp - 0x2c]
sub eax, 0x63059e61
je 0x416f5a
jmp 0x416f10
jmp 0x416f75
mov eax, dword [ebp - 8]
cmp eax, 0
mov eax, 0x43da1f37
mov ecx, 0xc8775b9
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x416f75
lea ecx, [ebp - 0x10]
call fcn.00418150
mov dword [ebp - 0x1c], 0x63059e61
jmp 0x416f75
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov dword [esp], 6
call fcn.0041943d
lea ecx, [ebp - 0x10]
call fcn.004181a0
mov eax, dword [ebp - 4]
xor eax, ebp
mov ecx, eax
call fcn.00419261
add esp, 0x44
pop ebp
ret 4
jmp 0x416ebe

Function at 0x41a40c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a44b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a44b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a44b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a44b
cmp dword [ecx + 0x74], 0xe
jbe 0x41a44b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41e7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e7cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e7cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41eb32
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428dcc
push 0x428dc4
push str.FlsAlloc
push 0x1f
call fcn.0041eebe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb66
push dword [ebp + 8]
mov ecx, esi
call dword [section..bss]
call esi
jmp 0x41eb6c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41ebb0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428ddc
push 0x428dd4
push str.FlsGetValue
push 0x21
call fcn.0041eebe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ebe7
push dword [ebp + 8]
mov ecx, esi
call dword [section..bss]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ebef
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428de4
push 0x428ddc
push str.FlsSetValue
push 0x22
call fcn.0041eebe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec29
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..bss]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42224d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4222ea
push ebx
push esi
call fcn.004222ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00422151
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422297
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4222e9
push edi
push eax
call fcn.00420c65
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4222b7
call fcn.004200eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4222e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422151
add esp, 0x20
test eax, eax
jne 0x4222d6
push edi
call fcn.004200eb
jmp 0x4222de
push ebx
call fcn.004200eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x535f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe1000]
push edi
jmp 0x535faa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x535fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535fa0
mov eax, 1
add ebx, ebx
jne 0x535fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x535fd4
jne 0x535ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535ff3
dec eax
add ebx, ebx
jne 0x535fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x535fb8
add ebx, ebx
jne 0x535fef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x536045
xor ecx, ecx
sub eax, 3
jb 0x53600b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53607a
sar eax, 1
mov ebp, eax
jmp 0x536016
add ebx, ebx
jne 0x536016
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535fe4
inc ecx
add ebx, ebx
jne 0x536024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535fe4
add ebx, ebx
jne 0x536031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x536026
jne 0x536042
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x536026
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x536064
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x536056
jmp 0x535fa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x536064
add edi, ecx
jmp 0x535fa6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x536082
cmp byte [edi], 0x11
jne 0x536082
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 0x536087
lea edi, [esi + 0x12e000]
mov eax, dword [edi]
or eax, eax
je 0x5360ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x192e38]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x192fb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5360b4
mov ecx, edi
jns 0x5360e3
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 + 0x192fb8]
or eax, eax
je 0x5360f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5360d1
call dword [esi + 0x192fc8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x536130
cmp al, 0xef
ja 0x536123
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x536105
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x536112
mov ebp, dword [esi + 0x192fbc]
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 0x536164
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001170
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100011cf
push 0x10001d70
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_creating_socket.
call fcn.10001b50
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10001fcc
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0x2328
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x14], 0xf
mov word [esp + 0xe], ax
jbe 0x100011f1
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.10001fcc
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
or dword [ebp - 4], 0xffffffff
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ecx], 0xfffffff6
je 0x4010bc
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4010b3
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4010a9
cmp dword [edi], 0x4643534d
jne 0x40109d
push esi
mov esi, dword [edi + 0x10]
add esi, edi
cmp word [edi + 0x1c], bx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40109c
mov eax, dword [esi]
add esi, 0x11
add dword [ebp - 4], eax
push esi
call fcn.00407080
inc dword [ebp + 8]
lea esi, [esi + eax + 1]
mov ax, word [ebp + 8]
pop ecx
cmp ax, word [edi + 0x1c]
jb 0x40107c
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4010c2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.00401146
add esp, 0xc
mov dword [0x415138], eax
test eax, eax
jne 0x4010ed
call fcn.00402226
test eax, eax
mov dword [0x415138], eax
je 0x401113
jle 0x40110c
cmp dword [0x4150ec], 0
jne 0x40110c
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f63
add esp, 0x10
call fcn.004049d5
jmp 0x401135
call fcn.004049d5
test eax, eax
mov dword [0x415138], eax
je 0x401135
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f63
add esp, 0x10
push dword [0x415138]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4030d7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and byte [ebp - 0x118], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push 5
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetWindow]
call edi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x14]
push str.Dialog_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040144c
add esp, 0x1c
test eax, eax
jne 0x40315b
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
je 0x40317a
cmp dword [ebp + 0x10], 0
jne 0x40317a
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test ebx, ebx
je 0x4031b5
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
push dword [0x415148]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040144c
add esp, 0x10
test eax, eax
je 0x4031ac
push dword [0x415148]
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push ebx
call edi
mov ebx, eax
jmp 0x40317a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4031bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.004056a7
lea eax, [ebp - 0x104]
push eax
call fcn.004056e6
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x403221
cmp eax, 2
jne 0x40324d
cmp byte [ebp - 0x103], 0x3a
jne 0x40324d
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.00403276
lea eax, [ebp - 0x104]
mov dword [esp], 0x414180
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40326a
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x403272
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret
Function at 0x4046ae
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x100
push 0x8000
push dword [ebp + 8]
movzx ebx, word [esi + 0x1c]
call fcn.00401756
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x404736
and dword [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov ax, word [esi + 0x1a]
push eax
mov ax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40472c
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40472c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
and ebx, 0x27
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x404dac
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e04
call fcn.00407c60
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x7e04], 0
mov ecx, 0x1f3f
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x7e03]
rep stosd dword es:[edi], eax
push 4
push 0
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x404e97
mov ebx, str.wininit.ini
lea eax, [ebp - 0x7e04]
push ebx
push 0x7cff
mov edi, str.rename
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
jne 0x404e50
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x414208
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404e97
lea eax, [ebp + esi - 0x7e04]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x414208
push eax
mov dword [ebp + 8], eax
call esi
push 0x414204
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
push 0x4152dc
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x7e04]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret