joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c46e
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x47d874]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0
push edi
mov edi, dword [esp + 0x20]
jne 0x44c49a
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.00433cd0
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e472
add esp, 0x14
ret 8
call dword [0x47d608]
cmp dword [esi + 0x54], 1
je 0x44c562
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
push ecx
push eax
mov ecx, esi
call fcn.00433cd0
test eax, eax
jne 0x44c4ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44c4ee
push 0
push 0
push 1
push 1
mov ecx, esi
call fcn.004334f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e472
add esp, 0x14
ret 8
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x6c]
movzx eax, ax
push ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], 0
call fcn.00450775
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44c517
sub eax, edx
add eax, 1
push eax
call fcn.0044d9cd
add esp, 4
mov dword [esi + 0x6c], eax
mov ecx, edi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x44c535
pop edi
mov dword [esi + 0x48], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e472
add esp, 0x14
ret 8
xor eax, eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44c5a5
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44c62a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x24]
push ebx
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
push 0x10
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0044b4a0
mov ebx, eax
test ebx, ebx
jne 0x44c5d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44c614
mov ecx, dword [esi + 0x6c]
push ecx
call fcn.00450775
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44c5e8
sub eax, edx
add eax, 1
push eax
call fcn.0044d9cd
add esp, 4
mov dword [esi + 0x6c], eax
mov ecx, edi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x44c606
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e472
add esp, 0x14
ret 8
push 0
push 0
push 7
push 1
mov ecx, esi
call fcn.004334f0
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e472
add esp, 0x14
ret 8
Function at 0x44d200
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
xor edi, edi
test ebp, ebp
mov esi, eax
jle 0x44d289
lea edx, [ebp - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
lea edi, [edx + edx*2]
push ebx
movsx eax, byte [esi]
sar eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movsx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
sar ebx, 4
movzx eax, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movsx ebx, byte [esi + 2]
add ecx, 1
and eax, 0xf
sar ebx, 6
movzx eax, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 1
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 1
mov byte [ecx], al
add ecx, 1
add esi, 3
sub edx, 1
jne 0x44d222
pop ebx
lea edx, [ebp + 1]
cmp edi, edx
jne 0x44d29b
pop edi
pop esi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
pop ebp
ret
add ebp, 2
cmp edi, ebp
jne 0x44d2aa
mov al, 0x3d
mov byte [ecx - 2], al
mov byte [ecx - 1], al
pop edi
pop esi
mov byte [ecx], 0
pop ebp
ret

Function at 0x44d6fd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48020c], 0
push esi
jne 0x44d670
call fcn.0044d59b
test eax, eax
je 0x44d6b3
mov eax, dword [0x48020c]
cmp eax, 1
jne 0x44d691
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44d6b3
pop esi
ret
push eax
call dword [0x480214]
test eax, eax
jne 0x44d6fb
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44d6b7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48020c]
call dword [0x480214]
mov edi, eax
test edi, edi
je 0x44d6de
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x44d6fa
lea edi, [esi + 0xff0]
push esi
push dword [0x48020c]
call dword [0x480210]
add esi, 0x10
cmp esi, edi
jb 0x44d6e4
mov eax, esi
pop edi
pop esi
ret
jmp 0x44d65d
Function at 0x44d84e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47d874]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044d7e3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044fe00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44d89d
cmp dword [ebp - 0x1c], 5
jb 0x44d8b5
jmp 0x44d8b1
cmp dword [ebp - 0x10], 1
jne 0x44d8b5
cmp dword [ebp - 0x1c], 4
ja 0x44d8b1
jne 0x44d8b5
cmp dword [ebp - 0x18], 0
jbe 0x44d8b5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4701a4
call fcn.00409235
test eax, eax
jge 0x44d8d6
mov byte [0x48113c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044e472
add ebp, 0x78
leave
ret

Function at 0x44e472
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d874]
jne 0x44e47c
repz ret
jmp fcn.00457e2b
Function at 0x4642fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00457f92
xor ebx, ebx
cmp dword [0x4810c8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4643d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x46433e
xor eax, eax
jmp 0x464497
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x471ed0
push edi
call esi
cmp eax, ebx
je 0x464337
push eax
call fcn.00457f2f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4810c8], eax
call esi
push eax
call fcn.00457f2f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4810cc], eax
call esi
push eax
call fcn.00457f2f
mov dword [0x4810d0], eax
lea eax, [ebp - 8]
push eax
call fcn.00455cb2
test eax, eax
pop ecx
pop ecx
je 0x4643a1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450085
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4643d3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00457f2f
cmp eax, ebx
pop ecx
mov dword [0x4810d8], eax
je 0x4643d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457f2f
pop ecx
mov dword [0x4810d4], eax
mov eax, dword [0x4810d4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x46444c
cmp dword [0x4810d8], esi
je 0x46444c
push eax
call fcn.00457f9b
pop ecx
call eax
cmp eax, ebx
je 0x464419
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4810d8]
call fcn.00457f9b
pop ecx
call eax
test eax, eax
je 0x464419
test byte [ebp - 0x18], 1
jne 0x46444c
lea eax, [ebp - 0xc]
push eax
call fcn.00455ce9
test eax, eax
pop ecx
je 0x464434
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450085
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x464443
or dword [ebp + 0x10], 0x200000
jmp 0x46447d
or dword [ebp + 0x10], 0x40000
jmp 0x46447d
mov eax, dword [0x4810cc]
cmp eax, esi
je 0x46447d
push eax
call fcn.00457f9b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46447d
mov eax, dword [0x4810d0]
cmp eax, esi
je 0x46447d
push dword [ebp - 4]
push eax
call fcn.00457f9b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4810c8]
call fcn.00457f9b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438cc2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
push 0x6e23b403
pop ebx
call fcn.00438d00
dec edi
and edi, ebx
xor dword [ecx], eax
push 0x25e9a03c
mov edi, dword [esp]
add esp, 4
sub ebx, edi
inc ecx
sub ebx, 0xdd826cb
cmp ecx, esi
jne fcn.00438cc2
sub edi, ebx
add edi, ebx
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401324
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x104
test eax, eax
jne 0x4013e4
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push dword [0x419188]
mov dword [ebp - 0xc], 1
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x4191f8], eax
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [0x419188]
mov dword [ebp - 8], edi
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call ebx
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x4191fc], eax
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [0x419188]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov dword [0x419200], eax
push str.SYSTEM32
push dword [0x419188]
call ebx
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x419208], eax
pop ecx
push edi
push dword [0x419188]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x419204], eax
pop ecx
push dword [0x419188]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x419188]
cmp byte [ecx + eax - 1], 0x5c
lea eax, [ecx + eax - 1]
jne 0x401483
and byte [eax], 0
push dword [0x419188]
call fcn.004015c3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
test eax, eax
je 0x4014b6
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x41920c], eax
pop ecx
jmp 0x4014f8
push dword [0x419200]
push dword [0x419188]
call edi
push str.TEMP
push dword [0x419188]
call ebx
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
push dword [0x419188]
mov dword [0x41920c], eax
call fcn.0040163b
add esp, 0xc
push dword [0x4191f4]
push dword [0x419188]
call edi
push 0x5c
push dword [0x419188]
call fcn.00407890
pop ecx
test eax, eax
pop ecx
je 0x40151c
and byte [eax], 0
push dword [0x419188]
call esi
push eax
push dword [0x419188]
call fcn.0040153c
pop ecx
mov dword [0x419210], eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401571
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and byte [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 7]
cmp dword [0x4191dc], eax
stosd dword es:[edi], eax
pop edi
je 0x4015bf
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x4160b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push dword [0x4191dc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x419320
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4015d5
xor eax, eax
ret
shr eax, 4
and eax, 1
ret

Function at 0x40163b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4016bc
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0x104], 0
push 0x40
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp edx, 0xb7
pop edi
je 0x4016bc
cmp edx, 5
jne 0x401689
push 7
pop eax
jmp 0x4016be
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004016c1
pop ecx
test eax, eax
pop ecx
je 0x4016bc
lea eax, [ebp - 0x104]
push eax
call fcn.0040163b
test eax, eax
pop ecx
jne 0x4016bc
push eax
push dword [ebp + 8]
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x4016be
xor eax, eax
pop esi
leave
ret

Function at 0x40186c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push 3
pop ebx
xor edi, edi
push 0x100
push edi
push dword [esp + 0x18]
call fcn.00401952
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401927
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call fcn.00401c0c
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x4018ae
push 0xd
pop ebx
jmp 0x40191f
push edi
push ebp
push esi
call fcn.004019f4
push 4
push 0x419110
push esi
call fcn.00401a09
mov eax, dword [0x419110]
add esp, 0x18
cmp eax, edi
je 0x4018d8
push eax
call fcn.0040776b
pop ecx
mov edi, eax
push dword [0x419110]
push edi
push esi
call fcn.00401a09
push dword [0x419110]
push edi
call fcn.00401cd4
push dword [0x419110]
push edi
call fcn.00401d0c
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x401914
mov eax, dword [0x419110]
lea eax, [eax + ebp + 4]
mov dword [0x419114], eax
test edi, edi
je 0x40191f
push edi
call fcn.0040781d
pop ecx
push esi
call fcn.00401a4d
pop ecx
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x40214d
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x4160cc
push dword [0x41920c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea eax, [ebp - 0x104]
push 0x8101
push eax
call fcn.00401952
mov esi, eax
or eax, 0xffffffff
add esp, 0xc
cmp esi, eax
je 0x402211
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00401a2b
push esi
call fcn.00401a4d
add esp, 0x10
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x18c]
push 0x1001
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402216
Capabilities:
Delete file
Get common file path

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]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
push str.welcome
push dword [0x41920c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.0040214d
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x4022bd
push 0x100
lea eax, [ebp - 0x104]
push 0x8000
push eax
call fcn.00401952
mov edi, eax
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
je 0x402296
push eax
call fcn.0040776b
pop ecx
push esi
push eax
push edi
mov dword [0x4191ec], eax
call fcn.00401a09
push edi
call fcn.00401a4d
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x4022c0
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x4022c4
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
call fcn.0040776b
pop ecx
xor esi, esi
push eax
push esi
push 0x4160ec
mov dword [0x4191dc], eax
push dword [0x41920c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x4191dc]
call fcn.0040214d
add esp, 0xc
test eax, eax
jge 0x402328
push esi
push esi
push str.LoadLanguage_Failed
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4191dc]
cmp eax, esi
je 0x402322
push eax
call fcn.0040781d
pop ecx
mov dword [0x4191dc], esi
xor eax, eax
pop esi
ret
Function at 0x4035da
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.00401571
add esp, 0x1c
test eax, eax
jne 0x40365e
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
je 0x40367f
cmp dword [ebp + 0x10], 0
jne 0x40367f
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x4036ba
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x208
push dword [0x419188]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401571
add esp, 0x10
test eax, eax
je 0x4036b1
push dword [0x419188]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x40367f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4036c1
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.00405d15
lea eax, [ebp - 0x104]
push eax
call fcn.00405d54
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x403726
cmp eax, 2
jne 0x403752
cmp byte [ebp - 0x103], 0x3a
jne 0x403752
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.0040377b
lea eax, [ebp - 0x104]
mov dword [esp], 0x416180
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 0x40376f
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x403777
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret