joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470cf0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x470df6
lea ecx, [esp + 0x10]
push ecx
push ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x470df6
cmp dword [esp + 0x10], esi
jne 0x470df6
push edi
call fcn.0052680d
add esp, 4
push esi
lea edx, [esp + 0x14]
push edx
push edi
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470df6
lea eax, [esp + 0x14]
push eax
xor edi, edi
push 1
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x470dd7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [edx]
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0x18]
push eax
push edx
call ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push ecx
push ebp
push eax
call edx
test eax, eax
jne 0x470dc0
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x470dbc
mov ecx, dword [esp + 0x14]
mov esi, eax
call fcn.00455920
jmp 0x470dbe
xor eax, eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
call fcn.0052744f
add esp, 4
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x470df6
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x470e02
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x470e1b
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x28], edi
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, edi
je 0x470e3f
mov dword [esi + 8], eax
mov edx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [ebx + 8], edx
pop ebx
add esp, 0xc
ret 4

Function at 0x471220
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x58d078
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x20], esp
push 4
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push str.2001
mov byte [ecx + 4], 0
call fcn.00405bb0
mov dword [esp + 0x2c], 0
mov edx, dword [0x5ef5f8]
test edx, edx
jne 0x47129b
call fcn.00404c10
mov ecx, dword [0x5ef5f8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00488790
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x472250
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4722a6
mov ecx, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov eax, dword [esi + 0x828]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x472298
mov edx, dword [eax + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x828]
mov ecx, dword [eax + 0x24]
push 0
push 0
push 0x10
push ecx
call ebx
mov edx, dword [esi + 8]
push 0
push 0
push 0x10
push edx
call ebx
pop edi
pop ebx
ret
Function at 0x4760f0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x58c769
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x5ef5f8]
test eax, eax
jne 0x47612b
call fcn.00404c10
mov ecx, dword [0x5ef5f8]
mov esi, dword [ecx + 0x40]
cmp dword [esi + 0x30], 0
jle 0x4761f1
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x47614d
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push 0x11
lea eax, [esp + 0x18]
push eax
call fcn.0047a8d0
mov dword [esp + 0x38], 0
push eax
mov ecx, 0x5aab0c
mov dword [esp + 0x14], 1
call fcn.00404b00
test eax, eax
je 0x476198
push 8
push 0x5aab10
lea edx, [esi + 0x34]
xor eax, eax
call fcn.00403c00
cmp eax, 0xffffffff
jne 0x476198
xor bl, bl
jmp 0x47619a
mov bl, 1
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4761b6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005273b8
add esp, 4
test bl, bl
je 0x4761f1
mov edx, dword [0x5ef5f4]
dec dword [esi + 0x30]
test edx, edx
jne 0x4761cc
call fcn.00404b70
mov eax, dword [esi + 0x30]
push eax
push 0x5aab24
call fcn.0047b0e0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
xor bl, bl
cmp dword [edi + 0x91c], 0
jne 0x476258
mov ecx, dword [edi + 0x848]
cmp byte [ecx + 0x88], bl
je 0x47620c
mov bl, 1
cmp dword [edi + 0x8f4], 0xb4
jl 0x476231
cmp dword [edi + 0x92c], 0
jne 0x476231
test bl, bl
jne 0x476231
mov bl, 1
mov dword [edi + 0x92c], 1
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x476240
call fcn.00404b70
mov eax, dword [edi + 0x8f4]
push eax
push 0x5aab3c
call fcn.0047b0e0
add esp, 8
test bl, bl
je 0x4762d1
call fcn.004927f0
test eax, eax
jne 0x47626a
call fcn.004762f0
test eax, eax
jne 0x4762b6
lea ecx, [esp + 0xc]
push ecx
push 0x492b40
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc], 0
jne 0x4762a0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x4762af
call fcn.00404b70
push str.hQO_
jmp 0x4762c9
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x4762c4
call fcn.00404b70
push 0x5aab64
call fcn.0047b0e0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x476e30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58d88b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x850], 0
jne 0x47702e
mov ecx, dword [0x5ef5f8]
test ecx, ecx
jne 0x476e77
call fcn.00404c10
mov edx, dword [0x5ef5f8]
mov esi, dword [edx + 0x40]
lea ebp, [esi + 0x1f8]
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x476e95
mov eax, dword [ebp + 4]
jmp 0x476e98
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476ed3
cmp dword [ebp + 0x18], edi
jb 0x476ead
mov ebp, dword [ebp + 4]
jmp 0x476eb0
add ebp, 4
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x476ebe
call fcn.00404b70
push ebp
push str.AdLeft:img_path_Err
call fcn.0047b0e0
add esp, 8
xor eax, eax
jmp 0x477033
push 4
lea ebx, [esi + 0x214]
push 0x59ace8
xor eax, eax
mov edx, ebx
call fcn.00403c00
cmp eax, 0xffffffff
jne 0x476f11
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x476efd
call fcn.00404b70
push str.AdLeft:clk_url_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x477033
push 0xb4
call fcn.0052747b
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esp + 0x2c], eax
cmp edi, eax
je 0x476f7e
push 1
sub esp, 0x1c
lea ecx, [esi + 0x230]
mov esi, esp
mov dword [esp + 0x38], esp
call fcn.00405770
sub esp, 0x1c
mov byte [esp + 0x68], 1
mov ecx, ebx
mov esi, esp
mov dword [esp + 0x58], esp
call fcn.00405770
sub esp, 0x1c
mov ecx, ebp
mov esi, esp
mov byte [esp + 0x84], 2
mov dword [esp + 0x78], esp
call fcn.00405770
mov byte [esp + 0x84], 0
call fcn.0046fe20
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
mov dword [edi + 0x850], eax
test eax, eax
jne 0x476fb4
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x476fa3
call fcn.00404b70
push str.AdLeft:New_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x477033
push 0
mov ecx, eax
call fcn.00470140
test al, al
jne 0x476ff0
mov esi, dword [edi + 0x850]
test esi, esi
je 0x476fda
call fcn.00472aa0
mov dword [edi + 0x850], 0
call fcn.00404980
push str.AdLeft:Crt_Wnd_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x477033
cmp dword [edi + 0x858], 0
jne 0x47701c
mov eax, dword [edi + 4]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [edi + 4]
push 0x473f90
push 0xfffffffffffffffc
push ecx
mov dword [edi + 0x858], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.00404980
push str.AdLeft:Crt_Wnd_succ
call fcn.0047b0e0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x477260
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58d84b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44]
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x14]
sub eax, dword [esp + 0x24]
add ecx, 0xa0
cmp ecx, eax
jg 0x47747a
cmp dword [ebx + 0x854], 0
jne 0x47747a
mov edx, dword [0x5ef5f8]
test edx, edx
jne 0x4772d1
call fcn.00404c10
mov eax, dword [0x5ef5f8]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x280], 8
jb 0x4772ea
mov eax, dword [eax + 0x26c]
jmp 0x4772ef
add eax, 0x26c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47747a
cmp dword [ebx + 0x854], 0
jne 0x47747a
mov ecx, dword [0x5ef5f8]
test ecx, ecx
jne 0x47731a
call fcn.00404c10
mov edx, dword [0x5ef5f8]
mov ebp, dword [edx + 0x40]
push 4
lea edi, [ebp + 0x284]
push 0x59ace8
xor eax, eax
mov edx, edi
call fcn.00403c00
cmp eax, 0xffffffff
jne 0x477357
call fcn.00404980
push str.AdTopImg:clk_url_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x47747f
push 0xb4
call fcn.0052747b
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], 0
test eax, eax
je 0x4773d1
push 0
sub esp, 0x1c
lea ecx, [ebp + 0x2a0]
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.00405770
sub esp, 0x1c
mov byte [esp + 0x78], 1
mov ecx, edi
mov esi, esp
mov dword [esp + 0x54], esp
call fcn.00405770
sub esp, 0x1c
lea ecx, [ebp + 0x268]
mov esi, esp
mov byte [esp + 0x94], 2
mov dword [esp + 0x74], esp
call fcn.00405770
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x94], 0
call fcn.0046fe20
jmp 0x4773d3
xor eax, eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [ebx + 0x854], eax
test eax, eax
jne 0x4773fe
call fcn.00404980
push str.AdTopImg:New_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x47747f
mov ecx, dword [ebx + 4]
push ecx
mov ecx, eax
call fcn.00470140
test al, al
jne 0x47743c
mov esi, dword [ebx + 0x854]
test esi, esi
je 0x477426
call fcn.00472aa0
mov dword [ebx + 0x854], 0
call fcn.00404980
push str.AdTopImg:Crt_Wnd_Err
call fcn.0047b0e0
add esp, 4
xor eax, eax
jmp 0x47747f
cmp dword [ebx + 0x858], 0
jne 0x477468
mov edx, dword [ebx + 4]
push 0xfffffffffffffffc
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x473f90
mov dword [ebx + 0x858], eax
mov eax, dword [ebx + 4]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.00404980
push str.AdTopImg:Crt_Wnd_succ
call fcn.0047b0e0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x478b00
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x824
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x820], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x622]
push ecx
mov word [esp + 0x624], ax
call fcn.0052e300
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.0052e300
add esp, 0x18
xor eax, eax
jmp 0x478b60
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x618], cx
add eax, 2
test cx, cx
jne 0x478b60
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x41a]
push edx
mov word [esp + 0x41c], cx
call fcn.0052e300
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0052e300
add esp, 0x18
push 0x104
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp]
push 0x5c
push eax
call fcn.00527ab0
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [esp]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478be0
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 2]
lea edx, [esp + 0x410]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x478c00
lea edx, [esp + 0x410]
push edx
lea eax, [esp + 0x61c]
push eax
lea ecx, [esp + 0x210]
push str._s_s.txt
push ecx
call fcn.00527adc
add esp, 0x10
lea edx, [esp + 0x208]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478c54
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.005273c3
add esp, 0x824
ret
Function at 0x47ace0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58c688
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
call fcn.0047a8d0
push esi
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.004924e0
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x47ad45
mov edx, dword [esp + 0xc]
push edx
call fcn.005273b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
add esp, 0x2c
ret 8
Function at 0x47ae10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58c0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, 8
cmp dword [esi + 0x7c], ebp
jb 0x47ae53
mov eax, dword [esi + 0x68]
jmp 0x47ae56
lea eax, [esi + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.FirstInstallTime
push str.Setting
call edi
test eax, eax
jne 0x47afe2
cmp dword [esi + 0x7c], ebp
jb 0x47ae7d
mov eax, dword [esi + 0x68]
jmp 0x47ae80
lea eax, [esi + 0x68]
push eax
push 0
push str.InstallTime
push str.Setting
call edi
test eax, eax
jne 0x47afe2
cmp dword [esi + 0x108], ebp
jb 0x47aea7
mov eax, dword [esi + 0xf4]
jmp 0x47aead
lea eax, [esi + 0xf4]
push eax
push 0
push str.InstallTime
push str.Setting
call edi
test eax, eax
jne 0x47afe2
cmp dword [esi + 0x1d0], ebp
jb 0x47aed4
mov edi, dword [esi + 0x1bc]
jmp 0x47aeda
lea edi, [esi + 0x1bc]
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x47aee8
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push str.InstallTimeEx
push edi
lea edx, [esp + 0x20]
call fcn.0047c7f0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x47af13
lea eax, [esp + 0x1c]
push eax
call fcn.00527f79
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47afd7
xor ecx, ecx
push ecx
mov word [esp + 0x38], cx
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
call fcn.0052a618
add esp, 4
push edx
push eax
lea edx, [esp + 0x3c]
push 0x5aaa1c
push edx
call fcn.00527adc
add esp, 0x10
cmp dword [esi + 0x1d0], ebp
jb 0x47af83
mov edi, dword [esi + 0x1bc]
jmp 0x47af89
lea edi, [esi + 0x1bc]
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x47af97
call fcn.00404b70
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [0x5ef5f4]
push str.InstallTimeEx
push edi
call fcn.0047c6b0
cmp dword [esi + 0x7c], ebp
jb 0x47afb7
mov esi, dword [esi + 0x68]
jmp 0x47afba
add esi, 0x68
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x47afc9
call fcn.00404b70
push esi
push str.Not_Find_FirstInstallTime_m_strUseVestigeFile
call fcn.0047b0e0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00406300
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005273c3
add esp, 0x58
ret
Function at 0x47b0e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x620
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x61c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.0052e300
add esp, 0xc
xor eax, eax
jmp 0x47b120
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x210], cx
add eax, 2
test cx, cx
jne 0x47b120
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x41c]
push str._sgswb.log
push eax
call fcn.00527adc
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.0052e300
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.00527ab0
xor edx, edx
mov word [eax], dx
add esp, 8
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b20e
mov edx, dword [esp + 0x62c]
lea ecx, [esp + 0x630]
push ecx
push edx
call fcn.0052a6c0
lea edi, [eax + eax + 2]
push edi
call fcn.00528c05
add esp, 0xc
push edi
mov esi, eax
push 0
push esi
call fcn.0052e300
add esp, 0xc
test esi, esi
je 0x47b20e
mov ecx, dword [esp + 0x62c]
lea eax, [esp + 0x630]
push eax
push ecx
dec edi
push edi
push esi
call fcn.0052a7b0
push esi
push str._MiNi_
push 0x5ab79c
call fcn.004936d0
add esp, 0x1c
push esi
call fcn.005282dc
add esp, 4
mov ecx, dword [esp + 0x624]
pop edi
pop esi
xor ecx, esp
call fcn.005273c3
add esp, 0x620
ret
Function at 0x47c7f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58aa93
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x258]
mov ebx, dword [esp + 0x25c]
xor eax, eax
mov esi, edx
push 0x206
mov dword [esp + 0x254], eax
mov edi, ecx
push eax
lea edx, [esp + 0x46]
xor ecx, ecx
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x44], esi
mov word [esp + 0x48], cx
call fcn.0052e300
add esp, 0xc
cmp dword [edi + 0xb4], 8
jb 0x47c879
mov eax, dword [edi + 0xa0]
jmp 0x47c87f
lea eax, [edi + 0xa0]
push eax
push 0x104
lea eax, [esp + 0x44]
push eax
push 0x59b2fc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [esp + 0x3c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c8b2
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00406150
mov dword [esp + 0x250], 0
push esi
mov ecx, 0x59b2fc
mov dword [esp + 0x1c], 1
call fcn.00404b00
test eax, eax
jne 0x47c9f9
lea ecx, [esp + 0x1c]
call fcn.00491bb0
cmp dword [eax + 0x18], 8
jb 0x47c906
mov eax, dword [eax + 4]
jmp 0x47c909
add eax, 4
push str.system
push eax
call fcn.00527a1d
add esp, 8
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x34], 8
jb 0x47c932
mov eax, dword [esp + 0x20]
push eax
call fcn.005273b8
add esp, 4
cmp byte [esp + 0x17], 0
je 0x47c9c3
add edi, 0x128
push edi
mov ecx, 0x59b2fc
call fcn.00404b00
test eax, eax
jne 0x47c983
lea ecx, [esp + 0x1c]
call fcn.0047cd60
push 0xffffffffffffffff
push 0
push eax
mov eax, edi
mov dword [esp + 0x25c], 1
call fcn.00405d70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 0
call fcn.00406300
cmp dword [edi + 0x18], 8
jb 0x47c98e
mov edi, dword [edi + 4]
jmp 0x47c991
add edi, 4
push ebp
push edi
mov ecx, ebx
lea edi, [esp + 0x24]
call fcn.0047d170
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
mov dword [esp + 0x25c], 2
call fcn.00405d70
cmp dword [esp + 0x34], 8
jb 0x47c9f9
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x47c9f1
push ebx
push ebp
lea edi, [esp + 0x24]
call fcn.0047cf30
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
mov dword [esp + 0x25c], 3
call fcn.00405d70
cmp dword [esp + 0x34], 8
jb 0x47c9f9
mov edx, dword [esp + 0x20]
push edx
call fcn.005273b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005273c3
add esp, 0x240
ret 8
Function at 0x47cb00
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47cc07
mov edx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push str.MiNi
push edx
call esi
test eax, eax
je 0x47cb7d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 8
ret 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push edx
push eax
call esi
test eax, eax
je 0x47cbbd
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
pop esi
pop ebx
add esp, 8
ret 0xc
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cbc2
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
pop ebx
add esp, 8
ret 0xc