joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411050
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
add esi, 0x210
push edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], esi
jbe 0x411070
call fcn.0042f791
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x411087
call fcn.0042f791
test esi, esi
je 0x41108f
cmp esi, esi
je 0x411094
call fcn.0042f791
cmp dword [esp + 0x1c], edi
je 0x4111a9
mov ebx, dword [esp + 0x24]
add ebx, 0xa8
push ebx
call ebp
push 0x562840
call ebp
test esi, esi
jne 0x4110bb
call fcn.0042f791
mov edi, dword [esp + 0x1c]
cmp edi, dword [esi + 8]
jb 0x4110c9
call fcn.0042f791
add edi, 0xa8
push edi
call ebp
push 0x562840
call ebp
mov esi, dword [esp + 0x24]
add esi, 0x28
push esi
call ebp
push 0x562840
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 8]
jb 0x4110fc
call fcn.0042f791
mov eax, dword [esp + 0x1c]
add eax, 0x28
push eax
call ebp
push 0x562840
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 8]
jb 0x41111f
call fcn.0042f791
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411143
test dl, dl
je 0x41113f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411143
add eax, 2
add ecx, 2
test dl, dl
jne 0x411123
xor eax, eax
jmp 0x411148
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [esp + 0x1c]
jne 0x41118c
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x41115e
call fcn.0042f791
lea ecx, [edi + 0x28]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411183
test dl, dl
je 0x41117f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411183
add eax, 2
add ecx, 2
test dl, dl
jne 0x411163
xor eax, eax
jmp 0x411188
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4111d6
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x41119a
call fcn.0042f791
mov esi, dword [esp + 0x14]
add edi, 0x1b0
jmp 0x411076
mov edi, dword [esp + 0x24]
lea eax, [edi + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4111b6
sub eax, edx
je 0x4111d6
mov eax, edi
call fcn.00411210
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
Function at 0x411bb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.kernel32.dll
call ebx
test eax, eax
mov dword [esi], eax
jne 0x411bc6
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x411c1d
pop edi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov eax, 1
pop ebx
ret

Function at 0x412fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push 0x64
push ebx
mov dword [esp + 0x18], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x412ffb
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
movzx eax, si
movzx ecx, di
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ecx
ret
push 2
push ebx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x41305a
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x413053
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x413053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x413053
push 0x562af4
lea edx, [esi + 6]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413053
cmp word [esi + 2], bx
jbe 0x413053
mov ebx, dword [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x415bb0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x430]
push ebp
lea ecx, [esp + 4]
push ecx
xor ebp, ebp
push 9
push ebp
push 0x562608
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415c14
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x42c
ret 4
push esi
push 0x206
lea edx, [esp + 0x26]
push ebp
push edx
mov word [esp + 0x2c], bp
call fcn.00436020
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x415d10
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [esi + 1]
jmp 0x415c60
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415cee
push 0x206
lea edx, [esp + 0x236]
push ebp
push edx
mov dword [esp + 0x28], 0x104
mov word [esp + 0x23c], bp
call fcn.00436020
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push str.DisplayName
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x415ce3
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.0042f57c
add esp, 8
test eax, eax
je 0x415ce3
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
add esi, ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x415c60
pop edi
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
xor ecx, esp
call fcn.0042f3aa
add esp, 0x42c
ret 4
Function at 0x4172e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51f0b6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b338]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor edi, edi
push 0x206
lea eax, [esp + 0x52]
push edi
push eax
mov word [esp + 0x58], di
call fcn.00436020
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push edi
push 0x19
lea ecx, [esp + 0x54]
push ecx
push edi
call ebx
test eax, eax
je 0x4173f9
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x417370
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x38]
call fcn.004021f0
push 1
push str._.
mov ecx, esi
mov dword [esp + 0x26c], edi
call fcn.00401d70
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x4173b2
lea ecx, [esp + 0x34]
mov edx, ebp
call fcn.004174e0
mov esi, eax
cmp esi, edi
je 0x4173da
cmp dword [esp + 0x48], 8
jb 0x4173d3
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f3a5
add esp, 4
mov eax, esi
jmp 0x4174ab
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x4173f9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f3a5
add esp, 4
push edi
push 0x10
lea edx, [esp + 0x54]
push edx
push edi
call ebx
test eax, eax
je 0x4174a9
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x417424
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x1c]
call fcn.004021f0
push 1
push str._.
mov ecx, esi
mov dword [esp + 0x26c], 1
call fcn.00401d70
mov ecx, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x41746e
lea ecx, [esp + 0x18]
mov edx, ebp
call fcn.004174e0
mov esi, eax
cmp esi, edi
je 0x417496
cmp dword [esp + 0x2c], ebx
jb 0x4173d3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042f3a5
add esp, 4
mov eax, esi
jmp 0x4174ab
cmp dword [esp + 0x2c], ebx
jb 0x4174a9
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f3a5
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x254
ret 4
Function at 0x417eb0
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x51dcdb
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b338]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x44a]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x450], bx
call fcn.00436020
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x44c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x444]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417f40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x448]
push edx
lea esi, [esp + 0x20]
call fcn.004021f0
push 0x3e
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov ecx, esi
mov dword [esp + 0x868], ebx
call fcn.00401d70
mov eax, edi
lea edx, [eax + 2]
jmp 0x417f80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417f80
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401d70
push 4
push str..lnk
lea ecx, [esp + 0x20]
call fcn.00401d70
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x417fbd
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417fe2
cmp dword [esp + 0x30], ebp
jb 0x417fdb
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042f3a5
add esp, 4
xor eax, eax
jmp 0x418107
push 0x206
lea ecx, [esp + 0x652]
push ebx
push ecx
mov word [esp + 0x658], bx
call fcn.00436020
add esp, 0xc
push 0x206
lea edx, [esp + 0x242]
push ebx
push edx
mov word [esp + 0x248], bx
call fcn.00436020
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], ebp
jae 0x41802c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x418033
lea esi, [esp + 0x23c]
lea edi, [esp + 0x64c]
call fcn.00417d80
push 0x206
lea eax, [esp + 0x3a]
push ebx
push eax
mov word [esp + 0x40], bx
call fcn.00436020
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x34]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418090
sub eax, edx
sar eax, 1
jne 0x4180c5
xor eax, eax
jmp 0x4180b0
movzx ecx, word [esp + eax + 0x23c]
mov word [esp + eax + 0x34], cx
add eax, 2
cmp cx, bx
jne 0x4180b0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4180ef
cmp dword [esp + 0x30], ebp
jb 0x417fdb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f3a5
add esp, 4
xor eax, eax
jmp 0x418107
cmp dword [esp + 0x30], ebp
jb 0x418102
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042f3a5
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x850
ret
Function at 0x418a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00436020
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418aa4
lea edx, [esp]
push edx
call fcn.0043189a
lea eax, [esp + 4]
push str.config_systemprofile
push eax
call fcn.0042f57c
add esp, 0xc
test eax, eax
jne 0x418a88
lea ecx, [esp]
push str.cocuments_and_settingslocalService
push ecx
call fcn.0042f57c
add esp, 8
test eax, eax
je 0x418aa4
mov al, 1
mov byte [0x57acf5], al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
mov al, byte [0x57acf5]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x20c
ret

Function at 0x418ac0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov al, byte [0x57acf5]
sub esp, 8
push ebx
xor bl, bl
test al, al
jne 0x418ad8
call fcn.00418a10
test al, al
je 0x418b1b
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.00418b40
test al, al
je 0x418b1b
mov ecx, dword [esp + 8]
push esi
push 1
push ecx
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x418b06
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x418b2e
push 0
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov al, 1
jne 0x418b30
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x418c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00436020
add esp, 0xc
push esi
push 0x17
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418c85
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x418c62
mov edx, dword [str._.]
push ebp
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [edi], edx
call fcn.00418cb0
jmp 0x418c87
mov eax, esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042f3aa
add esp, 0x214
ret 4
Function at 0x419620
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x51d008
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x56b338]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
xor edi, edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00411bb0
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4196a7
lea edx, [esp + 0x14]
push edx
push eax
call ecx
cmp dword [esp + 0x14], 1
lea eax, [esp + 0x54]
push eax
jne 0x4196fd
push 0xf013f
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419751
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xf013f
mov edx, dword [esp + 0x64]
push edi
push edi
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x419725
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419751
push 0xf003f
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419751
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xf003f
jmp 0x4196dd
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edi
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x54]
push edx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x419762
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x41976d
push eax
call esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 8
Function at 0x41a020
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.00436020
add esp, 0xc
xor eax, eax
jmp 0x41a060
movzx ecx, word [eax + 0x562718]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x41a060
push 0x206
lea ecx, [esp + 0x62e]
push ebx
push ecx
mov word [esp + 0x634], bx
call fcn.00436020
push 0x206
lea edx, [esp + 0x22]
push ebx
push edx
mov word [esp + 0x28], bx
call fcn.00436020
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0042f3fe
push 0x3e6
lea edx, [esp + 0x83e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x844], bx
call fcn.00436020
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x438]
push str._sgswb.log
push ecx
call fcn.0042f46b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x420]
push edx
call esi
test eax, eax
je 0x41a25a
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a121
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x41a140
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.0042f46b
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.00432358
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x41a1b4
mov edi, 1
lea ecx, [esp + 0x424]
push 0x562754
push ecx
call fcn.00432439
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41a259
cmp edi, ebx
jne 0x41a1f1
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.004325ab
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x41a200
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a200
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.004325ab
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.004325ab
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.004325ab
push esi
call fcn.0043269f
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.0042f3aa
add esp, 0xc14
ret
Function at 0x41a280
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov eax, 0x203c
call fcn.00443fe0
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x22e]
push ebx
push eax
mov word [esp + 0x234], bx
call fcn.00436020
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x562718]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x41a2c0
push 0x206
lea ecx, [esp + 0x63e]
push ebx
push ecx
mov word [esp + 0x644], bx
call fcn.00436020
push 0x206
lea edx, [esp + 0x32]
push ebx
push edx
mov word [esp + 0x38], bx
call fcn.00436020
add esp, 0x18
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.0042f3fe
push 0x7fe
lea edx, [esp + 0x84e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x854], bx
call fcn.00436020
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x448]
push str._sgswb.log
push ecx
call fcn.0042f46b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x430]
push edx
call esi
test eax, eax
je 0x41a50a
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a381
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x22]
lea edx, [esp + 0x638]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x41a3a0
lea eax, [esp + 0x638]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x438]
push str._s_s.txt
push edx
call fcn.0042f46b
mov ecx, dword [esp + 0x205c]
lea eax, [esp + 0x2060]
push eax
push ecx
lea edx, [esp + 0x858]
push 0x3ff
push edx
call fcn.00432358
push ebx
call fcn.0042fc13
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], edx
call fcn.00430032
mov edx, dword [eax]
lea ecx, [esp + 0x868]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x1084]
push str.__d__d__d__d__d__d_:_s
push ecx
call fcn.0042f46b
add esp, 0x4c
lea edx, [esp + 0x430]
push edx
mov word [esp + 0x1042], bx
xor edi, edi
call esi
test eax, eax
je 0x41a464
mov edi, 1
lea eax, [esp + 0x430]
push 0x562754
push eax
call fcn.00432439
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41a50a
cmp edi, ebx
jne 0x41a4a1
push esi
push 2
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x24], 0xfeff
call fcn.004325ab
add esp, 0x10
lea eax, [esp + 0x1040]
lea edx, [eax + 2]
jmp 0x41a4b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a4b0
sub eax, edx
sar eax, 1
push esi
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x1048]
push 1
push eax
call fcn.004325ab
push esi
push 2
lea ecx, [esp + 0x28]
push 1
push ecx
mov dword [esp + 0x30], 0xd
call fcn.004325ab
push esi
push 2
lea edx, [esp + 0x38]
push 1
push edx
mov dword [esp + 0x40], 0xa
call fcn.004325ab
push esi
call fcn.0043269f
add esp, 0x34
mov ecx, dword [esp + 0x2044]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f3aa
add esp, 0x203c
ret