joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a3bb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e6dc]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041008c
mov dword [ebp - 0x14], eax
cmp dword [0x431050], edi
jne 0x41a4ac
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41a439
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a58c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41a58c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a58c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x431050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x431054], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x431058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431060], eax
test eax, eax
je 0x41a4a9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43105c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a4d1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a4c4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41a4e6
push 4
pop eax
jmp 0x41a58e
cmp dword [ebp - 0x14], edi
je 0x41a4e6
push dword [0x431050]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a4cb
mov eax, dword [0x43105c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41a544
cmp dword [0x431060], esi
je 0x41a544
push eax
call ebx
push dword [0x431060]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a544
test eax, eax
je 0x41a544
call ecx
test eax, eax
je 0x41a539
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 0x41a539
test byte [ebp - 8], 1
jne 0x41a544
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41a574
mov eax, dword [0x431054]
cmp eax, esi
je 0x41a571
push eax
call ebx
test eax, eax
je 0x41a571
call eax
mov edi, eax
test edi, edi
je 0x41a571
mov eax, dword [0x431058]
cmp eax, esi
je 0x41a571
push eax
call ebx
test eax, eax
je 0x41a571
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x431050]
call ebx
test eax, eax
je 0x41a58c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41a58e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0df
leave
ret
Function at 0x41dee2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414cd1
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41df1a
xor eax, eax
jmp 0x41df46
cmp esi, dword [ebp - 4]
je 0x41df43
cmp dword [ebp + 0xc], 0
je 0x41df43
push dword [edi + 0x9c]
call fcn.0041daf0
push dword [edi + 0x9c]
mov esi, eax
call fcn.00410436
pop ecx
pop ecx
cmp esi, eax
je 0x41df16
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4028a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4028b1
pop dword [ebp - 0x20]
mov eax, 0xef5cc437
add eax, 0x10e3647a
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xda58751
add dword [ebp - 0x30], 0x40acbdfa
mov dword [ebp - 0x2c], 0x5f022e61
sub dword [ebp - 0x2c], 0x2ccee21c
mov dword [ebp - 0x28], 0x45d95da9
add dword [ebp - 0x28], 0x672e685
mov dword [ebp - 0x24], 0x1911706
add dword [ebp - 0x24], 0xfe6ee8fa
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2560cfce
add dword [ebp - 0x30], 0x4f119988
mov dword [ebp - 0x2c], 0x8d351411
sub dword [ebp - 0x2c], 0x4bc8b29c
mov dword [ebp - 0x28], 0xd773358e
sub dword [ebp - 0x28], 0x7403c922
mov dword [ebp - 0x24], 0x320583c1
sub dword [ebp - 0x24], 0x320583c1
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xaf29de59
sub eax, 0xaee96e39
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x382d4
push 0
call eax
mov ecx, 0x49d8
xor edi, edi
add edi, eax
mov ebx, 0x40c800
add ebx, dword [ebp - 0x20]
mov edx, 0xb555354
add dword [ebp - 0x10], 0xa7505ef5
mov esi, dword [ebx]
add dword [ebp - 0x1c], ebx
sub esi, edx
sub dword [ebp - 8], ebx
mov dword [edi], esi
xor dword [ebp - 0xc], 0x60c8b774
add edi, 0x5bbfce6d
add edi, 0xa4403197
add ebx, 0xee68af80
sub ebx, 0xee68af7c
loop 0x4029be
add eax, 0xd5cab5af
sub eax, 0xd5c99b7c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004028a2
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004028a2
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x12124f07
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x4ff1664f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4066b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4066d3
mov eax, 1
jmp 0x4067de
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x4066e9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x4066f3
mov eax, 2
jmp 0x4067de
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x40671e
mov eax, 1
jmp 0x4067de
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x406744
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x406744
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x40674e
mov eax, 2
jmp 0x4067de
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00412590
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x40678f
mov eax, 3
jmp 0x4067de
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4067dc
mov eax, 1
jmp 0x4067de
xor eax, eax
pop ebp
ret

Function at 0x407170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x407186
xor eax, eax
jmp 0x4071c6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x4071ab
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x4071af
xor eax, eax
jmp 0x4071c6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004071d0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x413180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4131b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x4131c3
xor eax, eax
jmp 0x413281
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4131de
xor eax, eax
jmp 0x413281
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x4131fc
xor eax, eax
jmp 0x413281
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41323e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x41327f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.004125b0
add esp, 8
test eax, eax
jne 0x41327d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x413281
jmp 0x413235
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
invalid
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x58bb556c
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x32472600
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0x678224
sub eax, 0x275996
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x8aa5b2f0
sub dword [ebp - 0x54], 0x3c536da5
mov dword [ebp - 0x50], 0x5940a9c1
add dword [ebp - 0x50], 0xd8f2a284
mov dword [ebp - 0x4c], 0x61026e82
add dword [ebp - 0x4c], 0xeb49d5ac
mov dword [ebp - 0x48], 0xa2f787ed
add dword [ebp - 0x48], 0x5d087813
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x96b637b2
sub dword [ebp - 0x54], 0x2243ce5c
mov dword [ebp - 0x50], 0x1f59bd0
sub dword [ebp - 0x50], 0xc0893a5b
mov dword [ebp - 0x4c], 0x58041bf8
add dword [ebp - 0x4c], 0xb6b5074
mov dword [ebp - 0x48], 0x88bea8bc
sub dword [ebp - 0x48], 0x88bea8bc
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3784e
push 0
call eax
mov ecx, 0x4bb1
mov ebx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x44]
mov edi, 0x62de6169
add edi, 0x39f97248
add dword [ebp - 0x3c], 0xf1fa8f74
mov edx, dword [esi]
mov dword [ebp - 0x18], 0xd7729e02
xor edx, edi
mov dword [ebx], edx
xor dword [ebp - 0x24], 0x941ab606
add ebx, 0xc4c40d38
add ebx, 0x3b3bf2cc
add esi, 0xbf74967b
sub esi, 0xbf749677
loop 0x40299a
add eax, 0x12197
mov ebx, eax
add eax, 0xb2d2077f
sub eax, 0xb2d2077a
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00409790
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409790
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edx, 2
shl edx, 1
mov dword [ebp - 0x41c], edx
cmp dword [ebp - 0x41c], 0x208
jae 0x401088
jmp 0x40108d
call fcn.00405c0f
xor eax, eax
mov ecx, dword [ebp - 0x41c]
mov word [ebp + ecx - 0x414], ax
push str.HangameKOREANHanUninstall.exe
lea edx, [ebp - 0x414]
push edx
push 0x41866c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4010df
mov edx, dword [ebp - 0x418]
or edx, 1
mov dword [ebp - 0x418], edx
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
push 0x4186c0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401121
mov eax, dword [ebp - 0x418]
or eax, 2
mov dword [ebp - 0x418], eax
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea ecx, [ebp - 0x414]
push ecx
push 0x4186cc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401163
mov ecx, dword [ebp - 0x418]
or ecx, 4
mov dword [ebp - 0x418], ecx
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea edx, [ebp - 0x414]
push edx
push 0x418724
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011a8
mov edx, dword [ebp - 0x418]
or edx, 0x100
mov dword [ebp - 0x418], edx
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
push 0x418784
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011ec
mov eax, dword [ebp - 0x418]
or eax, 0x200
mov dword [ebp - 0x418], eax
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea ecx, [ebp - 0x414]
push ecx
push str._s_s
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
mov ecx, dword [ebp - 0x418]
or ecx, 0x400
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
or edx, 0x2000000
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3e
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.00409790
add esp, 0xc
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp - 0x44]
call fcn.00404640
lea edx, [ebp - 0x44]
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1e4], 0x41bf88
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x1f0]
mov dx, word [ecx]
mov word [ebp - 0x1de], dx
mov eax, dword [ebp - 0x1e4]
mov cx, word [ebp - 0x1de]
mov word [eax], cx
mov edx, dword [ebp - 0x1f0]
add edx, 2
mov dword [ebp - 0x1f0], edx
mov eax, dword [ebp - 0x1e4]
add eax, 2
mov dword [ebp - 0x1e4], eax
cmp word [ebp - 0x1de], 0
jne 0x401784
push 0x41bf88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
je 0x401801
mov ecx, dword [ebp - 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4019bd
push 0x41bf88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x401828
xor eax, eax
jmp 0x4019bd
lea edx, [ebp - 0x1d4]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41cb20
call fcn.00402530
add esp, 4
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jne 0x401982
mov dword [ebp - 0x1f4], str.dgudf
mov dword [ebp - 0x1e8], 0x41ccc8
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x1f4]
mov dx, word [ecx]
mov word [ebp - 0x1d8], dx
mov eax, dword [ebp - 0x1e8]
mov cx, word [ebp - 0x1d8]
mov word [eax], cx
mov edx, dword [ebp - 0x1f4]
add edx, 2
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 2
mov dword [ebp - 0x1e8], eax
cmp word [ebp - 0x1d8], 0
jne 0x40187a
push 0x4188b0
push 0x41cb24
call fcn.004024c0
add esp, 8
push str.GTDR
push 0x41cba6
call fcn.004024e0
add esp, 8
push 0x4188dc
push 0x41cbc6
call fcn.004024c0
add esp, 8
mov ecx, 0x51
mov word [0x41cba4], cx
mov edx, 0x2b8e
mov word [0x41cc46], dx
mov dword [ebp - 0x1f8], str.BHSBDHS
mov dword [ebp - 0x1ec], 0x41cca8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x1f8]
mov dx, word [ecx]
mov word [ebp - 0x1d6], dx
mov eax, dword [ebp - 0x1ec]
mov cx, word [ebp - 0x1d6]
mov word [eax], cx
mov edx, dword [ebp - 0x1f8]
add edx, 2
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1ec]
add eax, 2
mov dword [ebp - 0x1ec], eax
cmp word [ebp - 0x1d6], 0
jne 0x401930
mov dword [0x41cce8], 5
call fcn.004046e0
mov ecx, 0x41890c
call fcn.00404780
mov dword [0x41ce20], eax
push 0x41c920
call fcn.004013a0
add esp, 4
push 0
push 0
push 0
push 0x4015d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret