joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418857
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0xc]
sub esi, dword [eax]
push edi
sub esi, 0x10
sar esi, 4
push 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
pop edi
sub esi, ebx
jne 0x418891
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, ebx
dec esi
call fcn.00406a0e
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x418904
call fcn.004067aa
cmp dword [eax + 8], 0x13
mov ecx, dword [esp + 0xc]
push 0
mov edx, ebx
jne 0x4188c6
call fcn.00406b3c
pop ecx
push edx
push eax
push str._lld
jmp 0x4188d6
call fcn.00406aff
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.004222e5
add esp, 0x10
test edi, edi
je 0x4188ea
test eax, eax
jg 0x41892c
xor edi, edi
inc ebx
test esi, esi
jne 0x41888d
test edi, edi
jne 0x418883
mov ecx, dword [esp + 0xc]
push edi
xor edx, edx
call fcn.00407f55
pop ecx
jmp 0x418886
lea eax, [esp + 0x14]
push eax
call fcn.0040823e
pop ecx
test edi, edi
je 0x4188ea
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00423e4f
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x4188ea
xor edi, edi
inc edi
jmp 0x4188ec
Function at 0x4389a2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004291c3
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 0x4389da
xor eax, eax
jmp 0x438a06
cmp esi, dword [ebp - 4]
je 0x438a03
cmp dword [ebp + 0xc], 0
je 0x438a03
push dword [edi + 0x9c]
call fcn.004385b0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041fcf4
pop ecx
pop ecx
cmp esi, eax
je 0x4389d6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x439021
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x472550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x473520]
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.0042a577
mov dword [ebp - 0x14], eax
cmp dword [0x474f3c], edi
jne 0x439112
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43909f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4391f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4391f2
push 0x4539a4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4391f2
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x474f3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x474f40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x474f44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x474f4c], eax
test eax, eax
je 0x43910f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x474f48], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x439137
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43912a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43914c
push 4
pop eax
jmp 0x4391f4
cmp dword [ebp - 0x14], edi
je 0x43914c
push dword [0x474f3c]
call dword [0x473524]
push 3
jmp 0x439131
mov eax, dword [0x474f48]
mov ebx, dword [0x473524]
cmp eax, esi
je 0x4391aa
cmp dword [0x474f4c], esi
je 0x4391aa
push eax
call ebx
push dword [0x474f4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4391aa
test eax, eax
je 0x4391aa
call ecx
test eax, eax
je 0x43919f
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 0x43919f
test byte [ebp - 8], 1
jne 0x4391aa
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4391da
mov eax, dword [0x474f40]
cmp eax, esi
je 0x4391d7
push eax
call ebx
test eax, eax
je 0x4391d7
call eax
mov edi, eax
test edi, edi
je 0x4391d7
mov eax, dword [0x474f44]
cmp eax, esi
je 0x4391d7
push eax
call ebx
test eax, eax
je 0x4391d7
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x474f3c]
call ebx
test eax, eax
je 0x4391f2
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4391f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041effa
leave
ret
Function at 0x43ece9
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x44bc4e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472550]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x24], edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x20], eax
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43ee7f
push 0x2c
push ebx
push eax
mov byte [esp + 0x64], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x43ee7f
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43ee7f
cmp dword [esp + 0x2c], 1
je 0x43ee7c
mov edi, dword [esp + 0x24]
jmp 0x43ee05
mov eax, dword [esp + 0x40]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x43edbf
mov eax, ecx
jmp 0x43edc9
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43ee7f
cmp dword [esp + 0x2c], 1
je 0x43ee7c
call ebp
sub eax, dword [esp + 0x20]
cmp eax, edi
ja 0x43ee7f
cmp dword [esp + 0x2c], 3
je 0x43eda7
call ebp
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x14]
lea ecx, [esi + edi]
sub ecx, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043eea0
pop ecx
lea eax, [esp + 0x28]
push eax
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43ee7f
jmp 0x43ee75
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43ee7f
cmp dword [esp + 0x2c], 1
je 0x43ee7c
call ebp
sub eax, esi
cmp eax, edi
ja 0x43ee7f
cmp dword [esp + 0x2c], 1
jne 0x43ee3d
xor ebx, ebx
inc ebx
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041effa
add esp, 0x48
ret
Function at 0x43eea0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44bc7e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472550]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x17]
push eax
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00401186
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x7c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push ebx
inc ebx
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x43ef3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x43ef40
xor ebx, ebx
mov ebp, dword [esp + 0x28]
jmp 0x43efb4
push dword [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.0040106d
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push ebp
push ebx
push dword [esi]
call edi
test eax, eax
je 0x43efb2
and dword [esp + 0x24], 0
cmp dword [esp + 0x1c], 0
jbe 0x43efb4
mov eax, ebp
mov dword [esp + 0x20], ebp
push 0x24
push dword [eax]
mov eax, dword [esp + 0x40]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x43efb2
and dword [esp + 0x40], 0
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x43f01e
xor ebx, ebx
test ebp, ebp
je 0x43efbf
push ebp
call fcn.0041eff5
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041effa
add esp, 0x60
ret
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push eax
push 0x24
lea eax, [esp + 0x48]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43efb2
cmp dword [esp + 0x44], ebx
je 0x43f024
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x78]
ja 0x43efb2
cmp dword [esp + 0x44], ebx
jne 0x43efe0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc edi
add eax, 0x24
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x1c]
jb 0x43ef7b
jmp 0x43efb4
Function at 0x43f047
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x472550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x43f109
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x43f108
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call edi
test eax, eax
je 0x43f108
cmp dword [ebp - 0x24], 3
je 0x43f0bd
cmp dword [ebp - 0x24], 1
jne 0x43f105
push 3
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0043f119
pop ecx
test eax, eax
je 0x43f108
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x43f108
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call edi
test eax, eax
je 0x43f108
push 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0043f119
cmp dword [ebp - 0x24], 4
pop ecx
jne 0x43f108
xor ebx, ebx
inc ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041effa
leave
ret

Function at 0x43f119
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, edx
mov dword [esp + 0x14], ecx
call edi
mov ebp, dword [esi + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x43f18c
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x43f151
mov eax, ecx
jmp 0x43f15b
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401000
test eax, eax
je 0x43f19b
cmp dword [esi + 0x14], ebp
jbe 0x43f181
call edi
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x43f18c
call edi
sub eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
ja 0x43f19b
cmp dword [esi + 4], ebx
je 0x43f13a
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor eax, eax
jmp 0x43f194
Function at 0x43f627
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 4]
push edi
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
cdq
push edx
sub edi, 0x10
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.00406fa3
mov ecx, dword [ebx + 4]
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.00406c77
mov ecx, dword [ebx + 4]
push esi
push dword [ebp + 0xc]
call fcn.00406c77
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
cdq
push edx
push eax
call fcn.00406c77
add esp, 0x20
call fcn.0040299e
push 1
push 3
push dword [ebx + 4]
call fcn.00443add
test eax, eax
je 0x43f71c
mov edx, dword [ebx + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004059fb
mov esi, str.hwang
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp], 0x7f2
lea eax, [esp + 0x3a]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
add esp, 0xc
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.00420286
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
push 0
add dword [eax + 0xc], 0xfffffff0
push 1
lea ecx, [esp + 0x18]
call fcn.00401629
xor eax, eax
jmp 0x43f737
mov ecx, dword [ebx + 4]
push esi
or edx, 0xffffffff
call fcn.00406b3c
pop ecx
mov ecx, dword [ebx + 4]
mov edx, edi
mov esi, eax
call fcn.004068f1
mov eax, esi
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041effa
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43fafd
Capabilities:
Download url
Print debug messages
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44be9a
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x850], eax
push ebx
push esi
push edi
mov eax, dword [0x472550]
xor eax, esp
push eax
lea eax, [esp + 0x868]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xfffffffffffffffe
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.004059fb
pop ecx
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x870], ebx
push eax
mov dword [esp + 0x14], ecx
call fcn.004027f3
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x878], 2
call fcn.00401629
call fcn.00402a51
push dword [esp + 0x10]
call fcn.00402060
push 0xfffffffffffffffd
mov edx, esi
lea ecx, [esp + 0x30]
call fcn.004059fb
pop ecx
or edx, 0xffffffff
mov ecx, esi
call fcn.00406c57
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x43fbb2
mov ecx, dword [ecx]
cmp dword [esp + 0x40], 8
push ebx
push ebx
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push ecx
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jns 0x43fc19
mov esi, str.hwang
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x6e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x6c]
push str.URLDownloadToFileW_failedhwang_err:_d_r_n
push eax
call fcn.00420286
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
inc esi
jmp 0x43fc1b
mov esi, ebx
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00401629
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.00401629
mov eax, esi
mov ecx, dword [esp + 0x868]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.0041effa
mov esp, ebp
pop ebp
ret 4
Function at 0x440473
Capabilities:
Access peb ldr_data
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c047
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push esi
push edi
mov eax, dword [0x472550]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
cdq
push edx
sub edi, 0x10
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.00406fa3
pop ecx
pop ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00401447
and dword [esp + 0x858], 0
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x2c]
call fcn.004056c9
or dword [esp + 0x858], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00401629
call fcn.0040299e
push 1
push 1
push dword [ebx + 4]
call fcn.00443add
test eax, eax
je 0x440596
mov edx, dword [ebx + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004059fb
mov esi, str.hwang
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp], 0x7f2
lea eax, [esp + 0x56]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
add esp, 0xc
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push str._s_r_n
push eax
call fcn.00420286
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
push 0
add dword [eax + 0xc], 0xfffffff0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401629
jmp 0x4405a0
mov ecx, dword [ebx + 4]
mov edx, edi
call fcn.004068f1
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0041effa
mov esp, ebp
pop ebp
ret 4
Function at 0x44415d
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44c6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0x834], eax
push ebp
push esi
push edi
mov eax, dword [0x472550]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esp + 0x85c]
lea ecx, [esp + 0x14]
call fcn.004055e2
xor ebp, ebp
mov dword [esp + 0x854], ebp
cmp dword [esp + 0x28], 0x10
mov ecx, dword [esi]
lea edx, [esp + 0x14]
cmovae edx, dword [esp + 0x14]
push ebp
call fcn.00408782
pop ecx
test eax, eax
jne 0x4441e2
push ebp
push ebp
push dword [esi]
call fcn.00443add
mov ebp, eax
neg ebp
sbb ebp, ebp
inc ebp
jmp 0x44428d
mov edx, dword [esi]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call fcn.004059fb
mov eax, dword [esi]
mov esi, str.hwang
add dword [eax + 0xc], 0xfffffff0
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp], 0x7f2
lea eax, [esp + 0x56]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
add esp, 0xc
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x54]
push str._s_r_n
push eax
call fcn.00420286
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, str.hwang
lea edi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x56]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
add esp, 0xc
lea eax, [esp + 0x50]
push str.luaL_loadbuffer_failed__r_n
push eax
call fcn.00420286
pop ecx
pop ecx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
push 1
lea ecx, [esp + 0x34]
call fcn.00401629
lea ecx, [esp + 0x14]
call fcn.00406251
mov eax, ebp
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.0041effa
add esp, 0x848
ret 4
Function at 0x4448af
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0x83c
mov eax, 0x44cdb9
call fcn.00421367
mov esi, ecx
lea eax, [ebp - 0x828]
push 7
mov dword [ebp - 0x82c], eax
pop edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x814], edi
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push str.Uninst.dar0
push esi
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], ebx
call fcn.004028ee
lea eax, [ebp - 0x844]
mov dword [ebp - 0x848], eax
xor eax, eax
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x834], ebx
mov word [ebp - 0x844], ax
push str.Uninst.dar1
push esi
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 1
call fcn.004028ee
mov eax, dword [ebp - 0x82c]
push 8
pop ebx
cmp dword [eax + 0x14], ebx
jb 0x444940
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x444a2c
mov eax, dword [ebp - 0x848]
cmp dword [eax + 0x14], ebx
jb 0x44495e
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x444a2c
mov esi, dword [ebp - 0x82c]
cmp dword [esi + 0x14], ebx
jb 0x444976
mov esi, dword [esi]
call fcn.0040299e
push esi
mov ecx, eax
call fcn.0044415d
test eax, eax
jne 0x4449e0
mov esi, str.hwang
lea edi, [ebp - 0x810]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x802]
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
mov eax, dword [ebp - 0x82c]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4449b9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x804]
push str.DoLua__s_failed_
push eax
call fcn.00420286
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x444aa6
mov esi, dword [ebp - 0x848]
cmp dword [esi + 0x14], ebx
jb 0x4449ed
mov esi, dword [esi]
call fcn.0040299e
push esi
mov ecx, eax
call fcn.0044415d
test eax, eax
jne 0x444a28
mov esi, str.hwang
lea edi, [ebp - 0x810]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x802]
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
mov eax, dword [ebp - 0x848]
jmp 0x4449af
mov bl, 1
jmp 0x444aa8
mov esi, str.hwang
lea edi, [ebp - 0x810]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [ebp - 0x802]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0041ff10
mov ecx, dword [ebp - 0x848]
add esp, 0xc
cmp dword [ecx + 0x14], ebx
jb 0x444a5f
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x82c]
cmp dword [eax + 0x14], ebx
jb 0x444a6c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x804]
push str.pathGlobalVarLua___s__r_n_pathUnInstallLua___s
push eax
call fcn.00420286
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10010
push 0x455748
push 0x455750
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x844]
call fcn.00401629
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00401629
mov al, bl
call fcn.00421316
ret