joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x401a7d
inc esi
cmp esi, 0xd
jl 0x401a53
lea eax, [ebp - 0xc]
push eax
call fcn.00401ab2
test eax, eax
pop ecx
pop esi
je 0x401aa4
push 2
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x401aa6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401caa
leave
ret

Function at 0x401ab2
Capabilities:
Delete file

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x108]
push str._sreadme.1xt
push eax
sub esi, esi
call fcn.00401cb9
add esp, 0xc
push esi
push esi
push 1
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401afe
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret

Function at 0x401b21
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4348f4]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402ce6
push dword [esp + 0x24]
call fcn.00401df1
pop ecx
pop ecx
call fcn.00401dfe
sub edx, edx
mov ecx, 0x4538
div ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
sub edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [esp + 0x44]
push edx
pop esi
add esi, 0x8ff1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
mov dword [esp + 0x1c], eax
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 3
push edi
push 2
push 0x40000000
push dword [esp + 0x30]
call ebx
mov ebx, eax
push edi
push ebx
call ebp
mov ecx, 0x16e360
cmp dword [esp + 0x10], ecx
jbe 0x401bc4
sub esi, eax
add esi, ecx
jmp 0x401bcd
cmp dword [esp + 0x10], eax
ja 0x401bcd
xor esi, esi
inc esi
push esi
call fcn.00402d80
pop ecx
push 2
push edi
push edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
jne 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
sub ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
or eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
or eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp 0x403039
push ebp
push esp
pop ebp
sub esp, 0x328
mov dword [0x433f48], eax
mov dword [0x433f44], ecx
mov dword [0x433f40], edx
mov dword [0x433f3c], ebx
mov dword [0x433f38], esi
mov dword [0x433f34], edi
mov word [0x433f60], ss
mov word [0x433f54], cs
mov word [0x433f30], ds
mov word [0x433f2c], es
mov word [0x433f28], fs
mov word [0x433f24], gs
pushfd
pop dword [0x433f58]
mov eax, dword [ebp]
mov dword [0x433f4c], eax
mov eax, dword [ebp + 4]
mov dword [0x433f50], eax
lea eax, [ebp + 8]
mov dword [0x433f5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x433e98], 0x10001
mov eax, dword [0x433f50]
mov dword [0x433e4c], eax
mov dword [0x433e40], 0xc0000409
mov dword [0x433e44], 1
mov eax, dword [0x4110fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x411100]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x433e90], eax
push 1
call fcn.004077da
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40e380
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x433e90], 0
jne 0x403129
push 1
call fcn.004077da
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40302f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x40fde8
call fcn.00407554
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x402e9a
push 0x12
call fcn.00402dea
pop ecx
jmp 0x403024
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x402eb8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x403024
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x402eea
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x434280], esi
mov dword [0x434288], eax
mov dword [0x43428c], ecx
mov dword [0x434290], edx
mov dword [0x434284], edi
call fcn.00402e0e
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004074f8
pop ecx
test eax, eax
jne 0x402f32
push 0x1c
call fcn.00402dea
pop ecx
call fcn.00404531
test eax, eax
jne 0x402f43
push 0x10
call fcn.00402dea
pop ecx
call fcn.00407455
mov dword [ebp - 4], ebx
call fcn.00407215
test eax, eax
jge 0x402f5c
push 0x1b
call fcn.00406706
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x435a58], eax
call fcn.004070e0
mov dword [0x433e30], eax
call fcn.00407027
test eax, eax
jge 0x402f82
push 8
call fcn.00406706
pop ecx
call fcn.00406db4
test eax, eax
jge 0x402f93
push 9
call fcn.00406706
pop ecx
push ebx
call fcn.00406822
pop ecx
test eax, eax
je 0x402fa5
push eax
call fcn.00406706
pop ecx
call fcn.00406d57
test byte [ebp - 0x44], bl
je 0x402fb5
movzx ecx, word [ebp - 0x40]
jmp 0x402fb8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x402fd5
push eax
call fcn.00406982
call fcn.004069a4
jmp 0x40300a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x403029
mov eax, 0xff
call fcn.00407599
ret
call fcn.00407746
jmp 0x402e4f
Function at 0x404531
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
pop edi
test edi, edi
jne 0x40454c
call fcn.00404284
sub eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x434168], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x43416c], eax
call esi
push str.FlsFree
push edi
mov dword [0x434170], eax
call esi
cmp dword [0x434168], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x434174], eax
je 0x4045ac
cmp dword [0x43416c], 0
je 0x4045ac
cmp dword [0x434170], 0
je 0x4045ac
or eax, eax
jne 0x4045d0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x43416c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x434168], 0x404251
mov dword [0x434170], esi
mov dword [0x434174], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x411284], eax
je 0x4046b0
push dword [0x43416c]
push eax
call esi
test eax, eax
je 0x4046b0
call fcn.004069c2
push dword [0x434168]
call fcn.00404182
push dword [0x43416c]
mov dword [0x434168], eax
call fcn.00404182
push dword [0x434170]
mov dword [0x43416c], eax
call fcn.00404182
push dword [0x434174]
mov dword [0x434170], eax
call fcn.00404182
add esp, 0x10
mov dword [0x434174], eax
call fcn.00408ff4
test eax, eax
je 0x4046ab
push 0x404410
push dword [0x434168]
call fcn.004041ee
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x411280], eax
je 0x4046ab
push 0x214
push 1
call fcn.0040517d
mov esi, eax
or esi, esi
pop ecx
pop ecx
je 0x4046ab
push esi
push dword [0x411280]
push dword [0x434170]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x4046ab
push 0
push esi
call fcn.004042c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4046b2
call fcn.00404284
sub eax, eax
pop esi
pop edi
ret
Function at 0x4070e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4346e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x407129
call edi
push eax
pop esi
cmp esi, ebx
je 0x407110
mov dword [0x4346e8], 1
jmp 0x407132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407124
mov eax, ebp
mov dword [0x4346e8], eax
jmp 0x407129
mov eax, dword [0x4346e8]
cmp eax, 1
jne 0x4071b6
cmp esi, ebx
jne 0x407145
call edi
mov esi, eax
cmp esi, ebx
jne 0x407145
sub eax, eax
jmp 0x40720e
cmp word [esi], bx
push esi
pop eax
je 0x40715a
add eax, ebp
cmp word [eax], bx
jne 0x40714c
add eax, ebp
cmp word [eax], bx
jne 0x40714c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
push eax
pop ebp
cmp ebp, ebx
je 0x4071ab
push ebp
call fcn.0040513d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4071ab
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x4071a7
push dword [esp + 0x10]
call fcn.0040504a
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40720e
cmp eax, ebp
je 0x4071be
cmp eax, ebx
jne 0x40713e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push eax
pop esi
cmp esi, ebx
je 0x40713e
cmp byte [esi], bl
je 0x4071dc
inc eax
cmp byte [eax], bl
jne 0x4071d2
inc eax
cmp byte [eax], bl
jne 0x4071d2
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.0040513d
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4071fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40713e
push ebp
push esi
push edi
call fcn.00405260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
sub ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c9aa5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5c9ae4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5c9ae4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c9ae4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5c9ae4
cmp dword [ecx + 0x74], 0xe
jbe 0x5c9ae4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5cf07b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5de2b8
push 0x5de2b0
push str.FlsAlloc
push 0x1f
call fcn.005cef43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cf0af
push dword [ebp + 8]
mov ecx, esi
call dword [0x5db238]
call esi
jmp 0x5cf0b5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5cf0f9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5de2c8
push 0x5de2c0
push 0x5dcb0c
push 0x21
call fcn.005cef43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cf130
push dword [ebp + 8]
mov ecx, esi
call dword [0x5db238]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5cf138
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5de2d0
push 0x5de2c8
push str.FlsSetValue
push 0x22
call fcn.005cef43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cf172
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5db238]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5d3afd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5d3b9a
push ebx
push esi
call fcn.005d3ac6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005d2825
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5d3b47
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5d3b99
push edi
push eax
call fcn.005ce392
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5d3b67
call fcn.005ce3e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5d3b98
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005d2825
add esp, 0x20
test eax, eax
jne 0x5d3b86
push edi
call fcn.005ce3e0
jmp 0x5d3b8e
push ebx
call fcn.005ce3e0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5d630a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005ce7a4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d6379
cmp esi, dword [ebp - 4]
je 0x5d6374
cmp dword [ebp + 0xc], 0
je 0x5d6374
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5d6351
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005d5e5c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5d637b
xor eax, eax
inc eax
jmp 0x5d637b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5d63e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x758010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005ce7a4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005ce7a4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5d6457
cmp word [ecx], dx
je 0x5d6457
mov eax, dword [0x5deac4]
push edi
dec eax
push eax
push 0x5de9b0
call fcn.005d637f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5d64ca
cmp word [eax], dx
je 0x5d64ca
mov eax, dword [edi]
test eax, eax
je 0x5d647b
cmp word [eax], dx
je 0x5d647b
lea eax, [ebp - 0x10]
push eax
call fcn.005d5d62
jmp 0x5d6484
lea eax, [ebp - 0x10]
push eax
call fcn.005d5dfd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5d64f4
mov eax, dword [0x5de9ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5de6a0
call fcn.005d637f
add esp, 0xc
test al, al
je 0x5d64f4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5d64bf
cmp word [eax], di
je 0x5d64bf
lea eax, [ebp - 0x10]
push eax
call fcn.005d5d62
pop ecx
jmp 0x5d64f6
lea eax, [ebp - 0x10]
push eax
call fcn.005d5dfd
jmp 0x5d64bc
mov eax, dword [edi]
test eax, eax
je 0x5d64e1
cmp word [eax], dx
je 0x5d64e1
lea eax, [ebp - 0x10]
push eax
call fcn.005d5d17
pop ecx
jmp 0x5d64f4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5d65bf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005d6204
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5d65bf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5d65bf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5d65bf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5d654c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005cf278
test ebx, ebx
je 0x5d65ba
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005cf278
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d65bf
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d65bf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005d89b2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5d65c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c5345
leave
ret
Function at 0x401370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x401393
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 4], 0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push edi
push ecx
mov dword [ebx], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebx + 0x10]
mov dword [ebx + 4], eax
push esi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
push 1
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [0x42fc48]
push edi
push dword [ebx + 8]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x50010000
push 0x4223fb
push str.CBannerWnd
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebx + 4], eax
test eax, eax
jne 0x401421
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebx + 0x20]
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
push esi
push dword [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x104
lea eax, [ebx + 0x40]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 4]
mov edi, eax
add esi, 0x30
push esi
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
push esi
mov esi, dword [ebp - 4]
push dword [esi + 4]
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x104
lea eax, [esi + 0x144]
push eax
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14